-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
59 lines (57 loc) · 1.44 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
import type { Config } from 'tailwindcss';
const fluidType = (minFont: number, maxFont: number) => {
let XX = 768 / 100;
let YY = (100 * (maxFont - minFont)) / (1920 - 768);
let ZZ = minFont / 16;
return `calc(${ZZ}rem + ((1vw - ${XX}px) * ${YY}))`;
};
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
brightness: {
25: '.25',
30: '.3',
},
screens: {
'3xl': '1800px',
'4xl': '2100px',
},
fontSize: {
display: fluidType(80, 100),
display2: fluidType(36, 48),
display3: fluidType(24, 36),
display4: fluidType(16, 24),
},
scale: {
'102': '1.02',
},
keyframes: {
disco: {
'0%': { transform: 'translateY(-50%) rotate(0deg)' },
'100%': { transform: 'translateY(-50%) rotate(360deg)' },
},
},
animation: {
disco: 'disco 1.5s linear infinite',
},
colors: {
royal: '#2E57E8',
gold: '#F8DD49',
},
fontFamily: {
avenir: ['AvenirMedium', 'sans-serif'],
}
},
},
};
export default config;