-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
51 lines (51 loc) · 1.31 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
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
darkMode: 'class',
purge: {
content: ['./src/**/*.tsx'],
options: {
safelist: ['dark'],
},
},
theme: {
colors: {
...defaultTheme.colors,
primary: '#7B14D1',
secondary: '#C320D6',
muted: '#F7F6F9',
orange: '#FFB65C',
},
fontFamily: {
serif: ['Garamond', ...defaultTheme.fontFamily.serif],
sans: ['Avenir Next', 'Open Sans', ...defaultTheme.fontFamily.sans],
mono: ['Lato, sans-serif'],
},
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.800'),
// fontFamily: theme('fontFamily.sans'),
'h1, h2': {
fontSize: 44,
fontWeight: theme('fontWeight.extrabold'),
letterSpacing: theme('letterSpacing.tighter'),
// fontFamily: theme('fontFamily.heading'),
},
'h3, h4': {
fontWeight: theme('fontWeight.bold'),
lineHeight: theme('lineHeight.tight'),
},
pre: {
backgroundColor: '#011627',
},
},
},
}),
},
},
variants: {
typography: ['dark'],
},
plugins: [require('@tailwindcss/typography')],
}