-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
60 lines (60 loc) · 2.06 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
module.exports = {
purge: ['./components/**/*.js', './pages/**/*.js'],
theme: {
colors: {
// https://www.happyhues.co/palettes/17
sand: '#f3d2c1',
'sand-light': '#fef6e4',
pink: '#f582ae',
navy: '#001858',
'navy-light': '#172c66',
teal: '#8bd3dd',
white: '#fff',
},
fontFamily: {
inter:
'"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
'inter-var':
'"Inter var", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
optician:
'"Optician Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
},
extend: {
boxShadow: {
outline: '0 0 0 2px #f582ae',
},
spacing: {
'80': '20rem',
'96': '24rem',
'128': '32rem',
},
},
customForms: theme => ({
default: {
'checkbox, input, multiselect, radio, select, textarea': {
backgroundColor: theme('color.sand-light'),
borderColor: theme('colors.navy'),
borderRadius: theme('borderRadius.none'),
borderWidth: theme('borderWidth.2'),
'&:focus': {
borderColor: theme('colors.navy'),
boxShadow: theme('boxShadow.outline'),
},
},
'checkbox, radio': {
'&:checked': {
backgroundColor: theme('colors.navy'),
},
},
'input, multiselect, select, textarea': {
width: theme('width.full'),
},
},
}),
},
variants: {
margin: ['responsive', 'last'],
textColor: ['responsive', 'hover', 'focus', 'group-hover'],
},
plugins: [require('@tailwindcss/custom-forms')],
}