forked from braydoncoyer/braydoncoyer.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
114 lines (113 loc) · 3.6 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
const colors = require('tailwindcss/colors');
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./layouts/**/*.tsx',
'./lib/**/*.tsx'
],
darkMode: 'class',
important: true,
theme: {
extend: {
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
mono: [...defaultTheme.fontFamily.mono],
headings: ['Manrope', ...defaultTheme.fontFamily.sans],
fancy: ['Sriracha']
},
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: {
table: false,
tbody: false,
thead: false,
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.slate.100'),
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') },
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/typography'), require('@tailwindcss/forms')]
};