-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
83 lines (80 loc) · 2.77 KB
/
tailwind.config.cjs
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
const { fontFamily } = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
// hack to fix this issue w/ deprecated color names https://github.com/tailwindlabs/tailwindcss/issues/4690
delete colors['lightBlue'];
delete colors['warmGray'];
delete colors['trueGray'];
delete colors['coolGray'];
delete colors['blueGray'];
module.exports = {
mode: 'jit',
darkMode: 'class',
content: ['./public/**/*.html', './src/**/*.{astro,js,ts}'],
// purge: {
// content: ['./public/**/*.html', './src/**/*.{astro,js,ts}'],
// options: {
// safelist: ['dark'],
// },
// },
theme: {
colors: {
...colors,
// Shades-of-X
// keep one group of colors enabled at a time
primary: colors.violet[700],
primaryDark: colors.violet[600],
primarySecondary: colors.violet[700],
primarySecondaryDark: colors.violet[600],
},
fontFamily: {
sans: ['Atkinson Hyperlegible', ...fontFamily.sans],
serif: ['Fira Mono', ...fontFamily.serif],
mono: ['Fira Mono', ...fontFamily.mono],
display: ['Atkinson Hyperlegible', ...fontFamily.sans]
},
extend: {
typography: (theme) => ({
dark: {
css: {
color: theme("colors.gray.200"),
},
},
DEFAULT: {
css: {
a: {
color: theme('colors.primarySecondaryDark'),
'&:hover': {
color: theme('colors.primary'),
},
},
blockquote: {
color: theme('colors.primary'),
borderColor: theme('colors.primaryDark')
},
'blockquote > p::before, p::after': {
color: theme('colors.primaryDark'),
},
h1: {
color: theme('colors.primarySecondaryDark'),
},
h2: {
color: theme('colors.primarySecondaryDark'),
},
h3: {
color: theme('colors.primarySecondaryDark'),
},
}
},
}),
},
},
// variants: {
// extend: { typography: ["dark"] }
// },
plugins: [
require('@tailwindcss/typography'),
// require('@tailwindcss/forms'),
// require('@tailwindcss/line-clamp'),
// require('@tailwindcss/aspect-ratio'),
]
};