-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
93 lines (92 loc) · 2.33 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
86
87
88
89
90
91
92
93
const colors = require('tailwindcss/colors')
module.exports = {
purge: {
content: ['./src/**/*.ts', './src/**/*.tsx'],
},
darkMode: 'class',
theme: {
colors: {
black: colors.black,
white: colors.white,
orange: colors.orange,
gray: colors.gray,
lightBlue: colors.lightBlue,
cyan: colors.cyan,
green: colors.green,
purple: colors.purple,
yellow: colors.yellow,
pink: colors.pink,
blue: colors.blue,
},
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.900'),
h1: {
color: theme('colors.gray.900'),
},
h2: {
color: theme('colors.gray.900'),
},
h3: {
color: theme('colors.gray.900'),
},
h4: {
color: theme('colors.gray.900'),
},
a: {
color: theme('colors.orange.500'),
'&:hover': {
color: theme('colors.white'),
background: theme('colors.black'),
},
code: { color: theme('colors.blue.400') },
},
strong: {
color: theme('colors.black'),
},
code: { color: theme('colors.pink.500') },
},
},
dark: {
css: {
color: theme('colors.gray.50'),
h1: {
color: theme('colors.gray.50'),
},
h2: {
color: theme('colors.gray.50'),
},
h3: {
color: theme('colors.gray.50'),
},
h4: {
color: theme('colors.gray.50'),
},
a: {
color: theme('colors.orange.500'),
'&:hover': {
color: theme('colors.black'),
background: theme('colors.white'),
},
},
strong: {
color: theme('colors.white'),
},
},
},
}),
},
},
variants: {
typography: ['dark'],
extend: {
display: ['group-hover'],
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('@tailwindcss/aspect-ratio')],
future: {
purgeLayersByDefault: true,
},
};