-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
244 lines (243 loc) · 8.8 KB
/
tailwind.config.ts
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
import type { Config } from 'tailwindcss';
import plugin from "tailwindcss/plugin";
const config: Config = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./templates/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
screens: {
'sm': {'min': '640px'}, // Styles apply for screens 640px wide and above
'md': {'min': '768px'}, // Styles apply for screens 768px wide and above
'lg': {'min': '1024px'}, // Styles apply for screens 1024px wide and above
'xl': {'min': '1280px'}, // Styles apply for screens 1280px wide and above
'2xl': {'min': '1536px'} // Styles apply for screens 1536px wide and above
},
extend: {
colors: {
primary: {
50: "#972b01",
100: "#972b01",
200: "#972b01",
300: "#972b01",
400: "#972b01",
500: "#972b01",
600: "#972b01",
700: "#972b01",
800: "#972b01",
900: "#972b01",
},
secondary: {
50: "#f3edd6",
100: "#f3edd6",
200: "#f3edd6",
300: "#f3edd6",
400: "#f3edd6",
500: "#f3edd6",
600: "#f3edd6",
700: "#f3edd6",
800: "#f3edd6",
900: "#f3edd6",
},
tertiary: {
500: "#3E5D42"
},
font: {
primary: "#000000",
header: "#972B01",
},
n: {
100: "#e2e6e4",
200: "#c4cdc9",
300: "#a7b4ae",
400: "#8a9b93",
500: "#6e8177",
600: "#55645c",
700: "#3c4641",
800: "#232926",
},
},
zIndex: {
1: "1",
2: "2",
3: "3",
4: "4",
5: "5",
},
spacing: {
0.25: "0.0625rem",
0.75: "0.1875rem",
4.5: "1.125rem",
5.5: "1.375rem",
6.5: "1.75rem",
7.5: "1.875rem",
8.5: "2.125rem",
9.5: "2.375rem",
13: "3.25rem",
13.5: "3.375rem",
15: "3.75rem",
17: "4.25rem",
18: "4.5rem",
19: "4.75rem",
21: "5.25rem",
22: "5.5rem",
23: "5.75rem",
25: "6.25rem",
26: "6.5rem",
30: "7.5rem",
34: "8.5rem",
38: "9.5rem",
42: "10.5rem",
54: "13.5rem",
58: "14.5rem",
},
transitionDuration: {
DEFAULT: "200ms",
},
transitionTimingFunction: {
DEFAULT: "linear",
},
borderWidth: {
DEFAULT: "0.0625rem",
0: "0",
2: "0.125rem",
3: "0.1875rem",
4: "0.25rem",
8: "0.5rem",
},
fontFamily: {
sans: ["var(--font-dm-sans)"],
"dm-serif": ["var(--font-dm-serif)"],
"libre-bodoni": ["var(--font-libre-bodoni)"],
},
fontSize: {
0: ["0", "0"],
},
},
},
plugins: [
require('tailwind-scrollbar'),
require("@headlessui/tailwindcss")({ prefix: "ui" }),
plugin(function ({ addBase, addComponents, addUtilities }) {
addBase({
html: {
"@apply text-[1rem]": {},
},
});
addComponents({
".container": {
"@apply max-w-[93.5rem] mx-auto px-8 md:px-5":
{},
},
".container-lg": {
"@apply container max-w-[75.375rem]":
{},
},
".btn": {
"@apply inline-flex items-center justify-center h-11 px-6 space-x-2 border border-primary-500 font-sans text-button font-semibold transition-colors":
{},
},
".btn-primary": {
"@apply btn bg-primary-500 text-white hover:bg-orange-700":
{},
},
".btn-secondary": {
"@apply btn text-primary-500 hover:bg-primary-500 hover:text-white":
{},
},
".btn-lg": {
"@apply btn h-16 px-8":
{},
},
".play": {
"@apply inline-flex items-center justify-center w-28 h-28 pl-1 rounded-full bg-primary-500 transition-colors hover:bg-primary-600 xl:w-24 xl:h-24":
{},
},
".text-h1": {
"@apply font-dm-serif text-[3.75rem] leading-[4.5rem] font-normal text-primary-500":
{},
},
".text-h2": {
"@apply font-dm-serif text-[2.5rem] leading-[3rem] font-normal text-primary-500":
{},
},
".text-h3": {
"@apply font-dm-serif text-[2rem] leading-[2.4rem] font-normal text-primary-500":
{},
},
".text-h4": {
"@apply text-[1.5rem] leading-[1.8rem] font-bold text-primary-500":
{},
},
".text-h4-libre": {
"@apply font-libre-bodoni text-[1.5rem] leading-[1.8rem] font-bold":
{},
},
".text-h5": {
"@apply font-dm-serif text-[1.25rem] leading-[1.5rem] font-normal tracking-normal text-primary-500":
{},
},
".text-h6": {
"@apply font-dm-serif text-[1rem] leading-[1.2rem] font-normal text-primary-500":
{},
},
".text-h6-sans": {
"@apply text-[1rem] leading-[1.2rem] font-bold italic":
{},
},
".text-h7": {
"@apply text-[0.875rem] leading-[1.125rem] tracking-normal":
{},
},
".text-16r": {
"@apply text-[1rem] leading-[1.5rem] tracking-normal text-black":
{},
},
".text-16m": {
"@apply text-[1rem] leading-[1.5rem] font-medium tracking-normal text-black":
{},
},
".text-14r": {
"@apply text-[0.875rem] leading-[1.5rem] tracking-[.03rem] text-black":
{},
},
".text-14m": {
"@apply text-[0.875rem] leading-[1.5rem] font-medium tracking-normal text-black":
{},
},
".text-14b": {
"@apply text-[0.875rem] leading-[1.375rem] font-bold tracking-normal text-black":
{},
},
".text-subtitle": {
"@apply text-[0.75rem] leading-[1.125rem] font-medium tracking-[.24em] text-black":
{},
},
".text-button": {
"@apply text-[0.9375rem] leading-[1.3125rem] font-bold tracking-normal":
{},
},
".subtitle": {
"@apply mb-6 text-subtitle uppercase text-n-500":
{},
},
".icon-white": {
"@apply invert brightness-200":
{},
},
".stations": {
"@apply bg-primary-500 flex flex-col items-center justify-center p-4 rounded-lg shadow-lg transition-all hover:shadow-xl w-full xl:min-w-[200px] h-[200px] text-white" :
{}
}
});
addUtilities({
".tap-highlight-color": {
"-webkit-tap-highlight-color": "rgba(0, 0, 0, 0)",
},
});
}),
],
}
export default config