-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.js
67 lines (65 loc) · 1.67 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
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
content: ['./src/**/*.tsx'],
theme: {
extend: {
lineHeight: {
tighter: 1.1,
},
colors: {
gray: colors.neutral,
},
fontFamily: {
sans: ['Articulat', ...defaultTheme.fontFamily.sans],
display: ['Lexend', ...defaultTheme.fontFamily.sans],
},
fontSize: {
xxs: '0.65rem',
},
maxWidth: {
'8xl': '88rem',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
},
typography: (theme) => ({
DEFAULT: {
css: {
'*, code, strong, blockquote': {
color: theme('colors.gray.200'),
},
'h1, h2, h3, h4, h5': {
color: theme('colors.white'),
},
a: {
color: theme('colors.amber.300'),
},
'* > a': {
color: theme('colors.amber.300'),
},
'* > a:hover': {
textDecoration: 'underline',
},
code: {
background: theme('colors.gray.800'),
padding: '1px 3px',
borderRadius: 3,
fontSize: '85%',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
pre: {
background: theme('colors.gray.900'),
},
},
},
}),
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
}