-
-
Notifications
You must be signed in to change notification settings - Fork 383
/
Copy pathtailwind.config.js
51 lines (49 loc) · 1.13 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
// tailwind.config.js
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./src/**/*.js', './src/**/*.jsx'],
theme: {
extend: {
colors: {
coral: {
light: '#F79D53',
default: '#6F40C9',
dark: '#F79D53',
},
},
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
serif: ['Inter', ...defaultTheme.fontFamily.serif],
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1400px',
},
rotate: {
...defaultTheme.rotate,
'-30': '-30deg',
},
container: {
padding: '1rem',
},
customForms: (theme) => ({
sm: {
'input, textarea, multiselect, select': {
fontSize: theme('fontSize.sm'),
padding: `${theme('spacing.1')} ${theme('spacing.2')}`,
},
select: {
paddingRight: `${theme('spacing.4')}`,
},
'checkbox, radio': {
width: theme('spacing.3'),
height: theme('spacing.3'),
},
},
}),
},
plugins: [require('@tailwindcss/forms')],
};