-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.ts
93 lines (89 loc) · 2.5 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
import type { Config } from 'tailwindcss';
const createPxEntries = (size: number) => {
return {
0: '0',
...Array.from(Array(size + 1)).reduce((accumulator, _, i) => {
return { ...accumulator, [`${i}`]: `${i / 16}rem` };
}),
};
};
const PX_ENTRIES = createPxEntries(500);
const config: Config = {
zIndex: {
base: '1',
nav: '2',
popup: '999',
floating: '1000',
},
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/constants/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
screens: {
mobile: { min: '360px', max: '767px' },
tablet: { min: '768px', max: '1199px' },
pc: '1200px',
},
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
keyframes: {
rotating: {
'0%': { transform: 'rotate(0deg)' },
'25%': { transform: 'rotate(90deg)' },
'50%': { transform: 'rotate(180deg)' },
'75%': { transform: 'rotate(270deg)' },
'100%': { transform: 'rotate(360deg)' },
},
},
animation: {
rotating: 'rotating 5s infinite',
},
},
fontSize: {
10: '0.625rem',
12: '0.75rem',
14: '0.875rem',
15: '0.9375rem',
16: '1rem',
18: '1.125rem',
20: '1.25rem',
24: '1.5rem',
},
fontWeight: {
light: '400',
normal: '500',
bold: '700',
},
spacing: PX_ENTRIES,
colors: {
transparent: 'transparent',
red: 'rgb(var(--red) / <alpha-value>)',
green: {
DEFAULT: 'rgb(var(--green) / <alpha-value>)',
light: 'rgb(var(--green-light) / <alpha-value>)',
},
black: 'rgb(var(--black) / <alpha-value>)',
white: 'rgb(var(--white) / <alpha-value>)',
pink: 'rgb(var(--light-pink) / <alpha-value>)',
gray: {
1: 'rgb(var(--gray-1) / <alpha-value>)',
2: 'rgb(var(--gray-2) / <alpha-value>)',
3: 'rgb(var(--gray-3) / <alpha-value>)',
4: 'rgb(var(--gray-4) / <alpha-value>)',
5: 'rgb(var(--gray-5) / <alpha-value>)',
6: 'rgb(var(--gray-6) / <alpha-value>)',
},
primary: 'rgb(var(--primary) / <alpha-value>)',
secondary: 'rgb(var(--secondary) / <alpha-value>)',
},
},
plugins: [require('tailwind-scrollbar-hide')],
};
export default config;