-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
59 lines (57 loc) · 1.44 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
/*
** TailwindCSS Configuration File
**
** Docs: https://tailwindcss.com/docs/configuration
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
*/
const plugin = require('tailwindcss/plugin')
module.exports = {
theme: {
extend: {
colors: {
foreground: '#121212',
background: '#FAFAFA',
action: '#1C3FFD',
success: '#4FED77',
warning: '#FFD10F',
info: {
default: '#732DD9',
accessible: '#702AD6',
},
error: {
default: '#F23034',
accessible: '#E52327',
},
},
width: {
toast: '22rem',
},
fontFamily: {
sans: 'TT Hoves, Helvetica, Arial, sans-serif',
},
fontSize: {
'large-screens': '20px',
},
boxShadow: {
soft: '0px 4px 12px rgba(0, 0, 0, 0.15)',
},
zIndex: {
'neg-1': '-1',
},
},
},
variants: {},
plugins: [
plugin(function({ addBase, config }) {
addBase({
h1: { fontWeight: config('theme.fontWeight.bold') },
h2: { fontWeight: config('theme.fontWeight.semibold') },
h3: { fontWeight: config('theme.fontWeight.semibold') },
body: {
fontFamily: config('theme.fontFamily.sans'),
backgroundColor: config('theme.colors.background'),
},
})
}),
],
}