-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
68 lines (67 loc) · 1.99 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
module.exports = {
purge: false,
prefix: 'c-',
theme: {
customForms: theme => ({
default: {
radio: {
icon: '<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 5c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" fill="#006ED4"/></svg>',
color: theme('colors.white'),
height: '20px',
width: '20px',
borderWidth: '2px',
borderColor: '#737373'
},
checkbox: {
icon: '<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 0H2a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V2a2 2 0 00-2-2zM7 14L2 9l1.41-1.41L7 11.17l7.59-7.59L16 5l-9 9z" fill="#006ED4"/></svg>',
color: theme('colors.white'),
height: '18px',
width: '18px',
borderWidth: '2px',
borderColor: '#737373'
}
},
}),
rotate: {
'1/2': '180deg',
},
extend: {
maxWidth: {
'7xl': '90rem'
},
colors: {
c: {
'gray-100': '#F5F5F5',
'gray-200': '#ECECEC',
'gray-300': '#DCDCDC',
'gray-400': '#CCCCCC',
'gray-500': '#AFAFAF',
'gray-600': '#737373',
'gray-700': '#202020',
blue: '#006ED4'
},
},
opacity: {
'40': '0.4'
}
},
},
variants: {},
plugins: [
function ({addUtilities, config, e}) {
const rotateUtilities = Object.keys(config('theme.rotate')).map((key) => {
const value = config('theme.rotate')[key]
return {
[`.${e(`rotate-${key}`)}`]: {
transform: `rotate(${value})`
},
[`.${e(`-rotate-${key}`)}`]: {
transform: `rotate(-${value})`
},
}
})
addUtilities(rotateUtilities)
},
require('@tailwindcss/custom-forms')
],
}