-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
110 lines (109 loc) · 4.32 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
// const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
mode: 'jit',
purge: [
'./layouts/**/*.{js,ts,jsx,tsx,mdx}',
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./tools/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: true, // or 'media' or 'class'
theme: {
extend: {
container: {
center: true,
padding: '1rem',
},
colors: {
transparent: "rgba(0, 0, 0, 0)",
main: "var(--color-main)",
primary: "var(--color-primary)",
secondary: "var(--color-secondary)",
background: "var(--color-background)",
copy: "var(--color-copy)",
heading: "var(--color-heading)",
faint: "var(--color-faint)"
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme("colors.copy"),
lineHeight: '1.66 !important',
a: {
color: theme("colors.copy")
},
strong: {
color: theme("colors.copy")
},
i: {
color: theme("colors.copy")
},
u: {
color: theme("colors.copy")
},
b: {
color: theme("colors.copy")
},
h1: {
color: theme("colors.heading"),
},
h2: {
color: theme("colors.heading"),
},
h3: {
color: theme("colors.heading"),
},
h4: {
color: theme("colors.heading"),
},
h5: {
color: theme("colors.heading"),
},
h6: {
color: theme("colors.heading"),
},
'ol > li::before': {
color: theme("colors.secondary"),
},
'ul > li::before': {
backgroundColor: theme("colors.secondary"),
},
blockquote: {
fontWeight: '400',
fontStyle: 'normal',
color: theme('colors.copy'),
borderLeftWidth: '0.25rem',
borderLeftColor: theme('colors.primary'),
quotes: '',
},
'blockquote p:first-of-type::before': {
content: '',
},
'blockquote p:last-of-type::after': {
content: '',
},
}
}
}),
boxShadow: {
sm: '0 1px 2px 0 rgba(var(--shadow-rgb-raw), 0.05)',
DEFAULT: '0 1px 3px 0 rgba(var(--shadow-rgb-raw), 0.2), 0 1px 2px 0 rgba(var(--shadow-rgb-raw), 0.06)',
md: '0 4px 6px -1px rgba(var(--shadow-rgb-raw), 0.2), 0 2px 4px -1px rgba(var(--shadow-rgb-raw), 0.06)',
lg: '0 10px 15px -3px rgba(var(--shadow-rgb-raw), 0.2), 0 4px 6px -2px rgba(var(--shadow-rgb-raw), 0.05)',
xl: '0 20px 25px -5px rgba(var(--shadow-rgb-raw), 0.2), 0 10px 10px -5px rgba(var(--shadow-rgb-raw), 0.04)',
'2xl': '0 25px 50px -12px rgba(var(--shadow-rgb-raw), 0.25)',
'3xl': '0 35px 60px -15px rgba(var(--shadow-rgb-raw), 0.3)',
inner: 'inset 0 2px 4px 0 rgba(var(--shadow-rgb-raw), 0.06)',
none: 'none',
}
},
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
require('@tailwindcss/line-clamp'),
],
}