-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
146 lines (143 loc) · 4.37 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
const colors = require('tailwindcss/colors');
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: 'class', // or 'media' or 'class'
// important: true,
theme: {
container: {
center: true,
padding: "2.4rem",
},
debugScreens: {
position: ['bottom', 'left'],
selector: '.debug-screens',
style: {
backgroundColor: 'black',
color: 'white',
},
},
screens: {
xxsm: '320px',
xsm: '425px',
'mobile': '425px',
sm: '640px',
'tablet': '640px',
md: '768px',
lg: '1024px',
'laptop': '1024px',
xl: '1280px',
'desktop': '1280px',
'2xl': '1536px',
},
extend: {
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
mono: [...defaultTheme.fontFamily.mono],
headings: ['Manrope', ...defaultTheme.fontFamily.sans],
fancy: ['Sriracha'],
fira: ['Fira Sans', 'sans-serif']
},
colors: {
orange: colors.orange,
blueGray: colors.slate,
coolGray: colors.gray,
teal: colors.teal,
dark: '#111827',
darker: '#0d131f',
midnight: '#1e293b',
'midnight-hover': '#334155',
emerald: colors.emerald,
fuchsia: colors.fuchsia,
amber: colors.amber,
sky: colors.sky
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.slate.700'),
a: {
color: theme('colors.slate.900'),
'&:hover': {},
textDecorationColor: theme('colors.teal.500'),
textUnderlineOffset: '3px',
textDecorationStyle: 'decoration-solid',
code: { color: theme('colors.blue.400') }
},
blockquote: {
borderLeftColor: theme('colors.teal.500'),
backgroundColor: theme('colors.gray.50'),
color: theme('colors.gray.700')
},
'h1,h2,h3,h4': {
color: theme('colors.gray.900')
},
// hr: { borderColor: theme('colors.gray.700') },
strong: { color: theme('colors.gray.700') },
thead: {
color: theme('colors.gray.100'),
borderBottomColor: theme('colors.gray.600')
},
tbody: {
tr: {
borderBottomColor: theme('colors.gray.700')
}
},
hr: {
color: theme('colors.gray.200'),
'&before': { content: '∿∿∿' }
},
code: { color: theme('colors.indigo.500') },
'blockquote p:first-of-type::before': false,
'blockquote p:last-of-type::after': false,
pre: {
backgroundColor: theme('colors.gray.100')
}
}
},
dark: {
css: {
color: theme('colors.slate.300'),
a: {
color: theme('colors.slate.50'),
'&:hover': {
color: theme('colors.teal.500')
},
textDecorationColor: theme('colors.teal.400'),
textUnderlineOffset: '3px',
textDecorationStyle: 'decoration-solid',
code: { color: theme('colors.blue.400') }
},
blockquote: {
borderLeftColor: theme('colors.teal.500'),
backgroundColor: theme('colors.slate.800'),
color: theme('colors.gray.400')
},
'h1,h2,h3,h4': {
color: theme('colors.white')
},
hr: { borderColor: theme('colors.gray.600') },
strong: { color: theme('colors.gray.100') },
thead: {
color: theme('colors.gray.100'),
borderBottomColor: theme('colors.gray.600')
},
tbody: {
tr: {
borderBottomColor: theme('colors.gray.700')
}
},
code: { color: theme('colors.indigo.200') },
pre: {
backgroundColor: theme('colors.midnight')
}
}
}
})
},
},
plugins: [require("tailwindcss-debug-screens"),
require("tailwindcss-brand-colors"),
require('@tailwindcss/typography'),
require('@tailwindcss/forms')],
}