This repository has been archived by the owner on Jan 27, 2025. It is now read-only.
generated from kulla/2024-07-21-starter-repository-for-next-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
177 lines (175 loc) · 4.37 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
import colors from 'tailwindcss/colors'
import type { Config } from 'tailwindcss'
// base colors
const brand = '#007ec1'
const brandGreen = '#95bc1a'
const sunflower = '#ffbe5e'
const sunflowerColors = {
DEFAULT: sunflower,
300: sunflower,
200: '#ffdaa3',
100: '#fff1db',
50: '#fff9f0',
}
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
brand: {
DEFAULT: brand,
50: '#f4f9fc',
100: '#eff7fb',
150: '#e6f2f9',
200: '#d9ebf5',
300: '#bbdced',
400: '#8ec5e2',
500: '#51a5d1',
600: brand,
700: '#0076b9', // slighly darker brand blue for better color contrast with white (for smaller text) and light blue.
},
brandgreen: {
DEFAULT: brandGreen,
50: '#edfac5',
100: '#ddf299',
200: '#cfed6d',
300: '#b9d957',
400: '#9fc91c',
500: brandGreen,
// 600: '#81a317',
// 700: '#6d8a13',
// 800: '#5b7310',
// 900: '#45570c',
muted: '#cfe097',
},
gray: colors.neutral,
berry: '#857189',
newgreen: '#2fceb1',
'editor-primary': sunflowerColors,
'almost-black': '#404040',
yellow: sunflowerColors,
orange: {
DEFAULT: colors.orange[900],
200: colors.orange[200],
50: colors.orange[50],
},
red: {
DEFAULT: colors.red[900],
100: colors.red[100],
},
},
borderWidth: {
3: '3px',
6: '6px',
},
letterSpacing: {
'slightestly-tighter': '-0.006em',
'slightly-tighter': '-0.012em',
},
animation: {
'spin-fast': 'spin 400ms linear infinite',
'spin-slow': 'spin 2s linear infinite',
},
borderRadius: {
'4xl': '4rem',
},
lineHeight: {
browser: 'normal',
cozy: '1.33',
},
margin: {
block: '30px',
'15vh': '15vh',
},
padding: {
block: '30px',
'2/3': '66%',
'6/5': '120%',
},
spacing: {
0.25: '1px',
2.25: '9px',
side: '16px',
'side-lg': '40px',
},
minWidth: {
180: '180px',
},
outline: {
gray: '1px dotted #212121',
},
boxShadow: {
brand: `0 0 10px ${brand}, 0 0 5px ${brand}`,
menu: 'rgba(0, 0, 0, 0.2) 0px 2px 4px',
modal: '0px 0px 10px 0px rgba(0, 0, 0, 0.25)',
input: `0 0 4px 0 ${brand}`,
stickysearch: ' 0px 7px 7px 3px rgba(255,255,255,0.8)',
},
fontFamily: {
serlo: 'Karla, sans-serif',
handwritten: 'Caveat, sans-serif',
},
backgroundImage: {
'circled-and-arrow':
"url('/_assets/img/landing/circled_and_arrow.svg')",
underlined: "url('/_assets/img/landing/underlined.svg')",
'underlined-simple': "url('/_assets/img/landing/simple-underline.svg')",
wiggle: "url('/_assets/img/landing/wiggle.svg')",
orangeBow: "url('/_assets/img/landing/about-container.svg')",
blueWave: "url('/_assets/img/landing/footer-container.svg')",
topWaveFromWhite: "url('/_assets/img/landing/top-wave.svg')",
},
backgroundSize: {
'100%': '100% 100%',
'size-200': '200% 200%',
},
backgroundPosition: {
'pos-0': '0% 0%',
'pos-100': '100% 100%',
},
minHeight: {
8: '32px',
'1/2': '50vh',
'1/4': '25vh',
},
maxWidth: {
xs: '300px',
65: '260px',
'30p': '30%',
},
fontSize: {
'base-plus': ['1.1875rem', '1.22'],
'1.5xl': ['1.3125rem', '1.22'],
'2.5xl': ['1.7rem', '1.22'],
'3.5xl': ['2rem', '1.22'],
},
width: {
'1/8v': '12.5vw',
'1/4v': '25vw',
'1/3v': '33vw',
},
height: {
630: '630px',
},
cursor: {
'zoom-in': 'zoom-in',
},
},
screens: {
mobile: '500px',
mobileExt: '550px',
sm: '800px',
md: '1024px',
lg: '1216px',
xl: '1300px',
'2xl': '1436px',
print: { raw: 'print' },
},
},
plugins: [],
}
export default config