-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
94 lines (90 loc) · 2.2 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
94
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
module.exports = {
purge: false,
darkMode: 'class',
theme: {
colors: {
'transparent': 'transparent',
'current': 'currentColor',
'black': colors.black,
'white': colors.white,
'gray': colors.coolGray,
'red': colors.red,
'yellow': colors.amber,
'green': colors.emerald,
'lime': colors.lime,
'blue': colors.blue,
'indigo': colors.indigo,
'purple': colors.violet,
'pink': colors.pink,
'light-blue': colors.lightBlue,
'amber': colors.amber,
},
zIndex: {
100: '100',
},
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
width: {
18: '4.5rem',
},
typography: (theme) => ({
DEFAULT: {
css: {
'color': theme('colors.gray.800'),
},
},
dark: {
css: {
'color': theme('colors.gray.200'),
'h1': {
color: theme('colors.gray.50'),
},
'h2': {
color: theme('colors.gray.50'),
},
'h3': {
color: theme('colors.gray.50'),
},
'h4': {
color: theme('colors.gray.50'),
},
'h5': {
color: theme('colors.gray.50'),
},
'h6': {
color: theme('colors.gray.50'),
},
'strong': {
color: theme('colors.gray.100'),
},
'code': {
color: theme('colors.gray.200'),
},
'figcaption': {
color: theme('colors.gray.500'),
},
'blockquote': {
color: theme('colors.gray.200'),
},
'::selection': {
backgroundColor: '#6f7bb635',
},
},
},
}),
},
},
variants: {
display: ['responsive', 'dark'],
typography: ['dark'],
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
],
};