forked from covid19-group/dinecph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
59 lines (59 loc) · 2.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
52
53
54
55
56
57
58
59
module.exports = {
theme: {
colors: {
// https://www.happyhues.co/palettes/2
sand: '#fceaed',
'sand-light': '#ffffff', // elements background
pink: '#ff5470', // elements button
navy: '#00214d', // elements button text
'navy-light': '#1b2d45', // elements paragraph
teal: '#00ebc7', // illustration secondary
white: '#ffffff', // white
},
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')],
}