-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
130 lines (123 loc) · 3.35 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
const headerHeight = '96px'
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true
},
purge: {
layers: [
'utilities'
],
content: [
'./src/components/**/*.html',
'./src/components/**/*.hbs',
'./src/components/**/*.js'
]
},
theme: {
fontFamily: {
display: ['FreightNeo Pro Bold', 'FreightNeoProBold-Regular', 'serif'],
body: ['Sofia Pro Medium', 'SofiaPro-Medium', 'sans-serif'],
quote: ['FreightNeo Pro Semi Italic', 'FreightNeo Pro Semi-Italic', 'FreightNeoProSemi-Italic', 'serif'],
'body-italic': ['Sofia Pro Medium Italic', 'Sofia Pro MediumItalic', 'SofiaPro-Mediumitalic', 'sans-serif'],
'body-semi-bold': ['Sofia Pro Semi-Bold', 'Sofia Pro SemiBold', 'SofiaPro-SemiBold', 'sans-serif'],
'body-bold': ['Sofia Pro Bold', 'SofiaPro-Bold', 'sans-serif'],
'body-bold-italic': ['Sofia Pro Bold Italic', 'Sofia Pro BoldItalic', 'SofiaPro-Bolditalic', 'sans-serif'],
'body-black': ['Sofia Pro Black', 'SofiaPro-Black', 'sans-serif']
},
colors: {
transparent: 'transparent',
current: 'currentColor',
white: '#fff',
black: '#000',
background: {
default: '#fff'
},
text: {
default: '#414141'
},
gray: {
default: '#e5e7e8',
dark: '#414141',
light: '#f0f0ef',
text: '#333',
form: '#505050',
divider: '#c9cacb'
},
map: {
default: '#b9cfb9',
hover: '#92a892',
selected: '#5f755f',
disabled: '#f0f0ef'
},
'brand-red': {
default: '#c30028',
dark: '#982c2c'
},
'brand-green': {
default: '#02532f',
dark: '#0b3824',
light: '#007a43',
divider: '#42725d'
},
'brand-yellow': {
default: '#f2eadc',
dark: '#f4d196',
light: '#faf5ed'
}
},
textIndent: (theme, { negative }) => ({
...theme('spacing'),
full: '100%',
...negative({
...theme('spacing'),
full: '100%'
})
}),
extend: {
gridTemplateColumns: {
'2/3': 'auto minmax(25%, 30%)',
'3/2': 'minmax(30%, 35%) auto'
},
lineHeight: {
snug: '1.333'
},
fontSize: {
'4xl': '2.125rem',
hero: '2.5rem'
},
height: {
map: '60vh',
header: headerHeight,
screen: `calc(100vh - ${headerHeight})`, // Compensate for the fixed header.
'screen-teaser': `calc(100vh - ${headerHeight} - 4rem)` // Compensate for the fixed header and leave room for scrolling passed.
},
maxHeight: {
map: '60vh',
hero: '66vh',
screen: `calc(100vh - ${headerHeight})`, // Compensate for the fixed header.
'screen-teaser': `calc(100vh - ${headerHeight} - 4rem)` // Compensate for the fixed header and leave room for scrolling passed.
},
screens: {
xs: '420px',
nav: '1024px',
md: '800px',
'2xl': '2000px',
dark: { raw: '(prefers-color-scheme: dark)' }
},
padding: {
header: headerHeight
},
cursor: {
zoom: 'zoom-in'
}
}
},
variants: {
opacity: ['responsive', 'hover']
},
plugins: [
require('@tailwindcss/custom-forms'),
require('tailwindcss-text-indent')()
]
}