-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtailwind.config.ts
104 lines (101 loc) · 2.66 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
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 = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/containers/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
screens: {
mobile: '360px',
tablet: '768px',
pc: '1200px',
},
zIndex: {
base: '1',
nav: '2',
popup: '999',
floating: '1000',
},
colors: {
transparent: 'transparent',
primary: {
DEFAULT: 'rgb(var(--primary) / <alpha-value>)',
light: 'rgb(var(--primary-light) / <alpha-value>)',
},
red: 'rgb(var(--red) / <alpha-value>)',
green: {
DEFAULT: 'rgb(var(--green) / <alpha-value>)',
light: 'rgb(var(--green-light) / <alpha-value>)',
},
purple: {
DEFAULT: 'rgb(var(--purple) / <alpha-value>)',
light: 'rgb(var(--purple-light) / <alpha-value>)',
},
orange: {
DEFAULT: 'rgb(var(--orange) / <alpha-value>)',
light: 'rgb(var(--orange-light) / <alpha-value>)',
},
blue: {
DEFAULT: 'rgb(var(--blue) / <alpha-value>)',
light: 'rgb(var(--blue-light) / <alpha-value>)',
},
pink: {
DEFAULT: 'rgb(var(--pink) / <alpha-value>)',
light: 'rgb(var(--pink-light) / <alpha-value>)',
},
black: 'rgb(var(--black) / <alpha-value>)',
white: 'rgb(var(--white) / <alpha-value>)',
WHITE: 'rgb(var(--WHITE) / <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>)',
7: 'rgb(var(--gray-7) / <alpha-value>)',
},
},
fontFamily: {
sans: ['Pretendard', 'Arial'],
},
fontSize: {
10: '0.625rem',
12: '0.75rem',
14: '0.875rem',
16: '1rem',
18: '1.125rem',
20: '1.25rem',
24: '1.5rem',
},
fontWeight: {
light: '400',
normal: '500',
bold: '700',
},
borderRadius: {
sm: '0.25rem',
md: '0.375rem',
lg: '0.5rem',
full: '9999px',
},
spacing: PX_ENTRIES,
extend: {
boxShadow: {
popup: '0px 2px 8px 0px rgba(51, 50, 54, 0.10)',
},
},
},
plugins: [],
};
export default config;