-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
109 lines (108 loc) · 3.12 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
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
theme: {
fontFamily: {
neo: ['Camingo', 'Tahoma', 'Arial'],
},
fontSize: {
base: '1.125rem',
lg: '1.25rem',
xl: '1.5rem',
'2xl': '1.75rem',
'6xl': '4.25rem',
...defaultTheme.fontSize,
},
extend: {
colors: {
'neo-black': '#695F5F',
'neo-blue': '#3D9ACC',
'neo-grey': '#969191',
'neo-red': '#E60023',
},
screens: {
print: { raw: 'print' },
// => @media print { ... }
},
},
},
variants: {},
plugins: [
function ({ addBase, config }) {
addBase({
body: {
color: config('theme.colors.neo-black'),
fontFamily: config('theme.fontFamily.neo'),
fontSize: config('theme.fontSize.base'),
lineHeight: config('theme.lineHeight.none'),
},
h1: {
color: config('theme.colors.neo-red'),
fontSize: config('theme.fontSize.6xl'),
lineHeight: config('theme.lineHeight.tight'),
},
h2: {
color: config('theme.colors.neo-red'),
fontSize: config('theme.fontSize.xl'),
},
h3: {
color: config('theme.colors.neo-red'),
fontSize: config('theme.fontSize.xl'),
},
h4: {
color: config('theme.colors.neo-red'),
fontSize: config('theme.fontSize.xl'),
},
h5: {
color: config('theme.colors.neo-red'),
fontSize: config('theme.fontSize.2xl'),
},
a: {
color: config('theme.colors.neo-blue'),
},
'a:hover': {
color: config('theme.colors.neo-red'),
},
button: {
fontSize: config('theme.fontSize.xl'),
},
select: {
fontSize: config('theme.fontSize.xl'),
},
});
},
function ({ addComponents, config }) {
addComponents({
'.neo-btn': {
padding: `${config('theme.spacing.1')} ${config('theme.spacing.3')}`,
borderRadius: config('theme.borderRadius.DEFAULT'),
height: config('theme.spacing.10'),
},
'.neo-btn--blue': {
backgroundColor: config('theme.colors.neo-blue'),
color: config('theme.colors.white'),
'&:hover': {
backgroundColor: config('theme.colors.blue.700'),
},
},
'.neo-btn--red': {
backgroundColor: config('theme.colors.neo-red'),
color: config('theme.colors.white'),
'&:hover': {
backgroundColor: config('theme.colors.red.700'),
},
},
'.neo-select': {
backgroundColor: config('theme.colors.gray.200'),
borderColor: config('theme.colors.neo-grey'),
borderRadius: config('theme.borderRadius.DEFAULT'),
borderWidth: config('theme.borderWidth.DEFAULT'),
padding: `${config('theme.spacing.1')} ${config('theme.spacing.2')}`,
height: config('theme.spacing.10'),
},
'.neo-checkbox': {
height: config('theme.spacing.10'),
},
});
},
],
};