This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
85 lines (84 loc) · 2.41 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const colors = require('tailwindcss/colors');
module.exports = {
darkMode: 'class',
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'node_modules/myst-to-react/dist/**/*.{js,ts,jsx,tsx}',
'node_modules/@myst-theme/frontmatter/dist/**/*.{js,ts,jsx,tsx}',
// Occasionally look to these folders as well in development only
'.yalc/myst-to-react/dist/**/*.{js,ts,jsx,tsx}',
'.yalc/@myst-theme/frontmatter/dist/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {
colors: {
primary: colors.blue,
success: colors.green[500]
},
// See https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js
typography: theme => ({
DEFAULT: {
css: {
code: {
fontWeight: '400'
},
'code::before': {
content: ''
},
'code::after': {
content: ''
},
'blockquote p:first-of-type::before': { content: 'none' },
'blockquote p:first-of-type::after': { content: 'none' },
li: {
marginTop: '0.25rem',
marginBottom: '0.25rem'
},
a: {
textDecoration: 'none',
color: 'var(--jp-content-link-color, #1976d2)', // --md-blue-700
fontWeight: 400,
'&:hover': {
color: 'var(--jp-content-link-color, #1976d2)', // --md-blue-700
textDecoration: 'underline',
fontWeight: 400
}
},
'li > p, dd > p, header > p, footer > p': {
marginTop: '0.25rem',
marginBottom: '0.25rem'
}
}
},
invert: {
css: {
'--tw-prose-code': theme('colors.pink[500]')
}
},
stone: {
css: {
'--tw-prose-code': theme('colors.pink[600]')
}
}
}),
keyframes: {
load: {
'0%': { width: '0%' },
'100%': { width: '50%' }
},
fadeIn: {
'0%': { opacity: 0.0 },
'25%': { opacity: 0.25 },
'50%': { opacity: 0.5 },
'75%': { opacity: 0.75 },
'100%': { opacity: 1 }
}
},
animation: {
load: 'load 2.5s ease-out',
'fadein-fast': 'fadeIn 1s ease-out'
}
}
},
plugins: [require('@tailwindcss/typography')]
};