-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
70 lines (69 loc) · 1.57 KB
/
tailwind.config.js
File metadata and controls
70 lines (69 loc) · 1.57 KB
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
const colors = require('tailwindcss/colors');
module.exports = {
purge: [
"./**/*.tmpl",
"./**/*.tmpl.partial",
],
darkMode: 'class', // or 'media' or 'class'
theme: {
colors: {
transparent: 'transparent',
gray: colors.warmGray,
black: colors.black,
yellow: colors.yellow,
white: colors.white,
blue: colors.blue,
red: colors.red,
},
extend: {
typography: (theme) => ({
dark: {
css: {
color: theme('colors.gray.200'),
a: {
color: theme('colors.green.500'),
'&:hover': {
color: theme('colors.green.500'),
},
},
h1: {
color: theme('colors.gray.200'),
},
h2: {
color: theme('colors.gray.200'),
},
h3: {
color: theme('colors.gray.200'),
},
h4: {
color: theme('colors.gray.200'),
},
h5: {
color: theme('colors.gray.200'),
},
h6: {
color: theme('colors.gray.200'),
},
strong: {
color: theme('colors.gray.200'),
},
code: {
color: theme('colors.gray.200'),
},
figcaption: {
color: theme('colors.gray.500'),
},
},
},
}),
},
},
variants: {
extend: {
typography: ['dark']
}
},
plugins: [
require('@tailwindcss/typography'),
],
}