-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.plugin.js
45 lines (42 loc) · 1.17 KB
/
tailwind.plugin.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
module.exports = function({ addComponents, theme }) {
const buttons = {
'.btn': {
padding: `${theme('spacing.2')} ${theme('spacing.4')}`,
borderRadius: theme('borderRadius.md'),
fontSize: theme('fontSize.sm'),
fontWeight: theme('fontWeight.bold'),
cursor: 'pointer',
'&:hover': {
opacity: 0.8
}
},
'.btn-outline': {
backgroundColor: 'transparent',
border: `1px solid ${theme('colors.gray.300')}`,
color: theme('colors.gray.800'),
'&:hover': {
backgroundColor: theme('colors.gray.100')
}
},
'.btn-xl': {
padding: `${theme('spacing.3')} ${theme('spacing.6')}`,
fontSize: theme('fontSize.lg')
},
'.btn-2xl': {
padding: `${theme('spacing.4')} ${theme('spacing.8')}`,
fontSize: theme('fontSize.2xl')
},
'.btn-lg': {
padding: `${theme('spacing.3')} ${theme('spacing.6')}`,
fontSize: theme('fontSize.lg')
},
'.btn-dark': {
backgroundColor: theme('colors.gray.800'),
color: theme('colors.white'),
'&:hover': {
backgroundColor: theme('colors.gray.900')
}
}
}
addComponents(buttons);
}