forked from avo-hq/avo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
143 lines (141 loc) · 3.68 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* eslint-disable global-require */
const plugin = require('tailwindcss/plugin')
const colors = require('tailwindcss/colors')
module.exports = {
mode: 'jit',
future: {},
purge: {
content: [
'./safelist.txt',
'./app/helpers/**/*.rb',
'./app/views/**/*.erb',
'./app/packs/**/*.js',
'./app/components/avo/**/*.erb',
'./app/components/avo/**/*.rb',
'./app/controllers/avo/**/*.rb',
],
// Enable options below when @tailwindcss/jit supports PurgeCSS options
// options: {
// safelist: [
// ...ignoredButtonClasses.flat(),
// ],
// }
},
theme: {
extend: {
colors: {
'blue-gray': colors.blueGray,
'light-blue': colors.lightBlue,
teal: colors.teal,
indigo: colors.indigo,
},
fontFamily: {
// eslint-disable-next-line max-len
sans: '"Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
},
inset: {
'1/2': '50%',
full: '100%',
},
borderRadius: {
xl: '1rem',
},
boxShadow: {
row: '0 0 15px -5px rgba(0, 0, 0, 0.25)',
context: '0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 0 25px -5px rgba(0, 0, 0, 0.1)',
panel: '0 0 20px -5px rgba(0, 0, 0, 0.1)',
},
minWidth: {
'300px': '300px',
4: '1rem',
10: '2.5rem',
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'2/4': '50%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
},
maxWidth: {
168: '42rem',
},
minHeight: {
inherit: 'inherit',
16: '4rem',
24: '6rem',
48: '12rem',
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'2/4': '50%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
},
maxHeight: {
168: '42rem',
},
spacing: {
full: '100%',
72: '18rem',
80: '20rem',
88: '22rem',
96: '24rem',
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'2/4': '50%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
'1/6': '16.666667%',
'2/6': '33.333333%',
'3/6': '50%',
'4/6': '66.666667%',
'5/6': '83.333333%',
'1/12': '8.333333%',
'2/12': '16.666667%',
'3/12': '25%',
'4/12': '33.333333%',
'5/12': '41.666667%',
'6/12': '50%',
'7/12': '58.333333%',
'8/12': '66.666667%',
'9/12': '75%',
'10/12': '83.333333%',
'11/12': '91.666667%',
},
},
},
variants: {
display: ['responsive', 'hover', 'focus', 'group-hover', 'checked'],
padding: ['responsive', 'group-hover'],
borderColor: ['responsive', 'hover', 'focus', 'disabled'],
backgroundColor: ['responsive', 'hover', 'focus', 'disabled'],
textColor: ['responsive', 'hover', 'focus', 'disabled'],
translate: ['responsive', 'hover', 'focus', 'active'],
cursor: ['responsive', 'disabled'],
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
plugin(({ addUtilities }) => {
const newUtilities = {
'.backface-hidden': {
backfaceVisibility: 'hidden',
},
}
addUtilities(newUtilities, ['group-hover'])
}),
],
}