-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
157 lines (155 loc) · 4.63 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
147
148
149
150
151
152
153
154
155
156
157
const { fontFamily } = require('tailwindcss/defaultTheme');
const typography = require('@tailwindcss/typography');
module.exports = {
content: ['./src/**/*.js', './src/styles/*.scss'],
theme: {
fontFamily: {
mono: ['DM Mono', fontFamily.mono],
},
extend: {
colors: {
'twitter-blue': '#1da1f2',
muted: 'var(--color-muted)',
'muted-hover': 'var(--color-muted-hover)',
primary: 'var(--color-primary)',
'primary-hover': 'var(--color-primary-hover)',
secondary: 'var(--color-secondary)',
'secondary-hover': 'var(--color-secondary-hover)',
info: 'var(--color-info)',
'info-hover': 'var(--color-info-hover)',
success: 'var(--color-success)',
'success-hover': 'var(--color-success-hover)',
'success-background': 'var(--color-success-background)',
warning: 'var(--color-warning)',
'warning-hover': 'var(--color-warning-hover)',
'warning-background': 'var(--color-warning-background)',
danger: 'var(--color-danger)',
'danger-hover': 'var(--color-danger-hover)',
'danger-background': 'var(--color-danger-background)',
background: 'var(--color-background)',
'background-a': 'var(--color-background-a)',
'background-b': 'var(--color-background-b)',
'background-c': 'var(--color-background-c)',
'background-d': 'var(--color-background-d)',
heading: 'var(--color-heading)',
'heading-muted': 'var(--color-heading-muted)',
body: 'var(--color-body)',
'body-muted': 'var(--color-body-muted)',
link: 'var(--color-link)',
'link-hover': 'var(--color-link-hover)',
},
width: {
'max-content': 'max-content',
},
typography: (theme) => ({
DEFAULT: {
css: {
h1: {
fontWeight: theme('fontWeight.normal'),
marginTop: '1.5em',
marginBottom: '0.5em',
color: 'var(--color-heading)',
},
h2: {
fontWeight: theme('fontWeight.normal'),
marginTop: '1.2em',
marginBottom: '0.5em',
color: 'var(--color-heading)',
},
h3: {
fontWeight: theme('fontWeight.normal'),
marginTop: '1em',
marginBottom: '0.5em',
color: 'var(--color-secondary)',
},
a: {
color: 'var(--color-link)',
'&:hover': {
color: 'var(--color-link-hover)',
},
},
img: {
margin: '0 auto',
boxShadow: theme('boxShadow.md'),
borderRadius: theme('borderRadius.DEFAULT'),
},
video: {
margin: '0 auto',
boxShadow: theme('boxShadow.md'),
borderRadius: theme('borderRadius.DEFAULT'),
},
pre: {
fontFamily: '"DM Mono", monospace',
},
code: {
backgroundColor: theme('colors.purple.100'),
color: theme('colors.purple.900'),
fontFamily: '"DM Mono", monospace',
fontWeight: theme('fontWeight.normal'),
paddingLeft: theme('padding.2'),
paddingRight: theme('padding.2'),
},
p: {
color: 'var(--color-body)',
},
ul: {
color: 'var(--color-secondary)',
},
ol: {
color: 'var(--color-secondary)',
},
strong: {
color: 'var(--color-heading)',
},
},
},
lg: {
css: {
h1: {
marginTop: '1.5em',
marginBottom: '0.5em',
},
h2: {
marginTop: '1.2em',
marginBottom: '0.5em',
},
h3: {
marginTop: '1em',
marginBottom: '0.5em',
},
img: {
margin: '0 auto',
},
},
},
xl: {
css: {
h1: {
marginTop: '1.5em',
marginBottom: '0.5em',
},
h2: {
marginTop: '1.2em',
marginBottom: '0.5em',
},
h3: {
marginTop: '1em',
marginBottom: '0.5em',
},
img: {
margin: '0 auto',
},
},
},
}),
},
minWidth: {
'1/3': '33%',
},
},
plugins: [
typography({
modifiers: ['lg', 'xl'],
}),
],
};