This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
77 lines (76 loc) · 1.66 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
const plugin = require('tailwindcss/plugin')
module.exports = {
theme: {
extend: {
colors: {
primary: {
'100': '#DBEAFE',
'500': '#3B82F6',
'600': '#2563EB'
},
secondary: {
'100': '#E0E7FF',
'500': '#6366F1',
'600': '#4F46E5'
},
success: {
'100': '#D1FAE5',
'500': '#10B981',
'600': '#059669'
},
danger: {
'100': '#FEE2E2',
'500': '#EF4444',
'600': '#DC2626'
},
warning: {
'100': '#FEF3C7',
'500': '#F59E0B',
'600': '#D97706'
},
info: {
'100': '#DBEAFE',
'500': '#3B82F6',
'600': '#2563EB'
},
light: {
'100': '#F9FAFB',
'500': '#E5E7EB',
'600': '#6B7280'
},
dark: {
'100': '#F3F4F6',
'500': '#374151',
'600': '#1F2937'
}
}
},
fontFamily: {
sans: ['Graphik', 'sans-serif'],
serif: ['Merriweather', 'serif'],
},
},
plugins: [
require('@tailwindcss/typography'),
plugin(function({ addBase, theme }) {
addBase({
'h1': {
fontSize: theme('fontSize.4xl'),
paddingBottom: '1rem'
},
'h2': {
fontSize: theme('fontSize.2xl'),
paddingBottom: '1rem',
borderBottom: '1px solid gray',
marginBottom: '1rem',
paddingTop: '1rem',
},
'h3': {
fontSize: theme('fontSize.lg'),
paddingBottom: '1rem',
paddingTop: '1rem',
},
})
})
]
}