-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
152 lines (150 loc) · 4.39 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
colors: {
black: 'rgb(var(--color-black) / <alpha-value>)',
white: 'rgb(var(--color-white) / <alpha-value>)',
// grey
grey10: 'rgb(var(--color-grey10) / <alpha-value>)',
grey20: 'rgb(var(--color-grey20) / <alpha-value>)',
grey30: 'rgb(var(--color-grey30) / <alpha-value>)',
grey40: 'rgb(var(--color-grey40) / <alpha-value>)',
grey50: 'rgb(var(--color-grey50) / <alpha-value>)',
grey60: 'rgb(var(--color-grey60) / <alpha-value>)',
grey70: 'rgb(var(--color-grey70) / <alpha-value>)',
grey80: 'rgb(var(--color-grey80) / <alpha-value>)',
grey90: 'rgb(var(--color-grey90) / <alpha-value>)',
// bg
evaluated: 'rgb(var(--color-evaluated) / <alpha-value>)',
// main
primary: 'rgb(var(--color-primary) / <alpha-value>)',
'primary-var': 'rgb(var(--color-primary-var) / <alpha-value>)',
secondary: 'rgb(var(--color-secondary) / <alpha-value>)',
'secondary-var': 'rgb(var(--color-secondary-var) / <alpha-value>)',
danger: 'rgb(var(--color-danger) / <alpha-value>)',
'danger-var': 'rgb(var(--color-danger-var) / <alpha-value>)',
// text
subColor: 'rgb(var(--color-subColor) / <alpha-value>)',
},
extend: {
// colors: {
// black: '#202124',
// white: '#F7F8F8',
// // Light Theme Color
// // grey
// grey10: '#ECECEC',
// grey20: '#DDDDDD',
// grey30: '#C3C5C6',
// grey40: '#9DA3AA',
// grey50: '#7F878F',
// grey60: '#626971',
// grey70: '#484E55',
// grey80: '#32373D',
// grey90: '#252B30',
// // bg
// evaluated: '#ECECEC',
// // main
// primary: '#3FE5EF',
// 'primary-var': '#6DF5F1',
// secondary: '#34E87C',
// 'secondary-var': '#75EEA5',
// // sub color
// danger: '#FF7B5E',
// 'danger-var': '#FFA693',
// // text
// subColor: '#9DA3AA',
// // Dark Theme Color
// dark: {
// // grey
// grey10: '#252B30',
// grey20: '#32373D',
// grey30: '#484E55',
// grey40: '#636971',
// grey50: '#7F878F',
// grey60: '#9DA3AA',
// grey70: '#C3C5C7',
// grey80: '#DDDDDD',
// grey90: '#ECECEC',
// // bg
// evaluated: '#252B30',
// // main
// primary: '#3FE5EF',
// 'primary-var': '#2FB0CF',
// secondary: '#34E87C',
// 'secondary-var': '#1AA76E',
// // sub
// danger: '#FF7B5E',
// 'danger-var': '#EC6447',
// // text
// subColor: '#636971',
// },
// },
fontFamily: {
sans: ['Pretendard', 'sans-serif'],
},
fontSize: {
// headings
h1: ['32px', { fontWeight: '800' }],
h2: ['24px', { fontWeight: '800' }],
h3: ['20px', { fontWeight: '800' }],
h4: ['16px', { fontWeight: '800' }],
h5: ['14px', { fontWeight: '800' }],
h6: ['12px', { fontWeight: '800' }],
// content text
main: ['16px', { fontWeight: '400' }],
'main-bold': ['16px', { fontWeight: '500' }],
sub: ['14px', { fontWeight: '400' }],
'sub-bold': ['14px', { fontWeight: '500' }],
tiny: ['12px', { fontWeight: '200' }],
'tiny-bold': ['12px', { fontWeight: '500' }],
},
spacing: {
1: '4px',
2: '8px',
3: '12px',
4: '16px',
5: '20px',
6: '24px',
7: '28px',
8: '32px',
9: '36px',
10: '40px',
11: '44px',
12: '48px',
13: '52px',
14: '56px',
15: '60px',
16: '64px',
17: '68px',
18: '72px',
19: '76px',
20: '80px',
},
borderRadius: {
0: '0px',
2: '2px',
4: '4px',
8: '8px',
10: '10px',
12: '12px',
14: '14px',
16: '16px',
18: '18px',
20: '20px',
},
},
},
variants: {
extend: {
backgroundColor: ['dark'],
borderColor: ['dark'],
textColor: ['dark'],
},
},
corePlugins: {
aspectRatio: false,
},
plugins: [require('@tailwindcss/aspect-ratio')],
};