@@ -3,76 +3,21 @@ import { colors, semanticColors } from "./colors.ts";
3
3
4
4
# Colors
5
5
6
- ## ์๋ฉํฑ ์์
7
-
8
- ๋ฌ๋ UI์ ๊ฐ์ฑ์ ๋ํ๋ด๋ ์์์
๋๋ค
6
+ ๋ฌ๋ UI์ ๊ทผ๊ฐ์ด ๋๋ ์์ ํ๋ ํธ์
๋๋ค.
9
7
10
8
<ColorPalette >
11
9
<ColorItem
12
- title = " ์ฃผ์์"
13
- subtitle = " semanticColors.primary"
14
- colors = { {
15
- primary: semanticColors .primary .value ,
16
- }}
17
- />
18
- <ColorItem
19
- title = " ๋ณด์กฐ์"
20
- subtitle = " semanticColors.secondary"
21
- colors = { {
22
- secondary: semanticColors .secondary .value ,
23
- }}
24
- />
25
- <ColorItem
26
- title = " ๋ฐฐ๊ฒฝ์"
27
- subtitle = " semanticColors.bg"
28
- colors = { Object .fromEntries (
29
- Object .entries (semanticColors .bg ).map (([name , { value }]) => [
30
- name ,
31
- value ,
32
- ])
33
- )}
34
- />
35
- <ColorItem
36
- title = " ๊ธ์์"
37
- subtitle = " semanticColors.text"
38
- colors = { {
39
- light: semanticColors .text .value .base ,
40
- dark: semanticColors .text .value ._dark ,
41
- }}
42
- />
43
- </ColorPalette >
44
-
45
- ## ์์ ํ๋ ํธ
46
-
47
- TailwindCSS์ ์์ ํ๋ ํธ๋ฅผ ๊ทธ๋๋ก ์ฐจ์ฉํฉ๋๋ค.
48
-
49
- <ColorPalette >
50
- <ColorItem
51
- title = " ๋ก์ฆ"
52
- subtitle = " colors.rose"
53
- colors = { Object .fromEntries (
54
- Object .entries (colors .rose ).map (([name , { value }]) => [name , value ])
55
- )}
56
- />
57
- <ColorItem
58
- title = " ํํฌ"
59
- subtitle = " colors.pink"
60
- colors = { Object .fromEntries (
61
- Object .entries (colors .pink ).map (([name , { value }]) => [name , value ])
62
- )}
63
- />
64
- <ColorItem
65
- title = " ํธํฌ์์"
66
- subtitle = " colors.fuchsia"
10
+ title = " ์ด๋ก"
11
+ subtitle = " colors.teal"
67
12
colors = { Object .fromEntries (
68
- Object .entries (colors .fuchsia ).map (([name , { value }]) => [name , value ])
13
+ Object .entries (colors .teal ).map (([name , { value }]) => [name , value ])
69
14
)}
70
15
/>
71
16
<ColorItem
72
- title = " ํผํ "
73
- subtitle = " colors.purple "
17
+ title = " ์ด๋ก (dark) "
18
+ subtitle = " colors.tealDark "
74
19
colors = { Object .fromEntries (
75
- Object .entries (colors .purple ).map (([name , { value }]) => [name , value ])
20
+ Object .entries (colors .tealDark ).map (([name , { value }]) => [name , value ])
76
21
)}
77
22
/>
78
23
<ColorItem
@@ -83,122 +28,73 @@ TailwindCSS์ ์์ ํ๋ ํธ๋ฅผ ๊ทธ๋๋ก ์ฐจ์ฉํฉ๋๋ค.
83
28
)}
84
29
/>
85
30
<ColorItem
86
- title = " ์ธ๋๊ณ "
87
- subtitle = " colors.indigo "
31
+ title = " ๋ณด๋ผ (dark) "
32
+ subtitle = " colors.violetDark "
88
33
colors = { Object .fromEntries (
89
- Object .entries (colors .indigo ).map (([name , { value }]) => [name , value ])
90
- )}
91
- />
92
- <ColorItem
93
- title = " ๋ธ๋ฃจ"
94
- subtitle = " colors.blue"
95
- colors = { Object .fromEntries (
96
- Object .entries (colors .blue ).map (([name , { value }]) => [name , value ])
97
- )}
98
- />
99
- <ColorItem
100
- title = " ์ค์นด์ด"
101
- subtitle = " colors.sky"
102
- colors = { Object .fromEntries (
103
- Object .entries (colors .sky ).map (([name , { value }]) => [name , value ])
104
- )}
105
- />
106
- <ColorItem
107
- title = " ์ธ์ด์ธ"
108
- subtitle = " colors.cyan"
109
- colors = { Object .fromEntries (
110
- Object .entries (colors .cyan ).map (([name , { value }]) => [name , value ])
111
- )}
112
- />
113
- <ColorItem
114
- title = " ํธ"
115
- subtitle = " colors.teal"
116
- colors = { Object .fromEntries (
117
- Object .entries (colors .teal ).map (([name , { value }]) => [name , value ])
118
- )}
119
- />
120
- <ColorItem
121
- title = " ์๋จธ๋๋"
122
- subtitle = " colors.emerald"
123
- colors = { Object .fromEntries (
124
- Object .entries (colors .emerald ).map (([name , { value }]) => [name , value ])
125
- )}
126
- />
127
- <ColorItem
128
- title = " ๊ทธ๋ฆฐ"
129
- subtitle = " colors.green"
130
- colors = { Object .fromEntries (
131
- Object .entries (colors .green ).map (([name , { value }]) => [name , value ])
132
- )}
133
- />
134
- <ColorItem
135
- title = " ๋ผ์"
136
- subtitle = " colors.lime"
137
- colors = { Object .fromEntries (
138
- Object .entries (colors .lime ).map (([name , { value }]) => [name , value ])
139
- )}
140
- />
141
- <ColorItem
142
- title = " ์๋ก์ฐ"
143
- subtitle = " colors.yellow"
144
- colors = { Object .fromEntries (
145
- Object .entries (colors .yellow ).map (([name , { value }]) => [name , value ])
146
- )}
147
- />
148
- <ColorItem
149
- title = " ์ฐ๋ฒ"
150
- subtitle = " colors.amber"
151
- colors = { Object .fromEntries (
152
- Object .entries (colors .amber ).map (([name , { value }]) => [name , value ])
153
- )}
154
- />
155
- <ColorItem
156
- title = " ์ค๋ ์ง"
157
- subtitle = " colors.orange"
158
- colors = { Object .fromEntries (
159
- Object .entries (colors .orange ).map (([name , { value }]) => [name , value ])
34
+ Object .entries (colors .violetDark ).map (([name , { value }]) => [
35
+ name ,
36
+ value ,
37
+ ])
160
38
)}
161
39
/>
162
40
<ColorItem
163
- title = " ๋ ๋ "
41
+ title = " ๋นจ๊ฐ "
164
42
subtitle = " colors.red"
165
43
colors = { Object .fromEntries (
166
44
Object .entries (colors .red ).map (([name , { value }]) => [name , value ])
167
45
)}
168
46
/>
169
47
<ColorItem
170
- title = " ๋ค์ธ๋ด "
171
- subtitle = " colors.neutral "
48
+ title = " ๋นจ๊ฐ (dark) "
49
+ subtitle = " colors.redDark "
172
50
colors = { Object .fromEntries (
173
- Object .entries (colors .neutral ).map (([name , { value }]) => [name , value ])
51
+ Object .entries (colors .redDark ).map (([name , { value }]) => [name , value ])
174
52
)}
175
53
/>
176
54
<ColorItem
177
- title = " ์คํค "
178
- subtitle = " colors.stone "
55
+ title = " ๋
ธ๋ "
56
+ subtitle = " colors.yellow "
179
57
colors = { Object .fromEntries (
180
- Object .entries (colors .stone ).map (([name , { value }]) => [name , value ])
58
+ Object .entries (colors .yellow ).map (([name , { value }]) => [name , value ])
181
59
)}
182
60
/>
183
61
<ColorItem
184
- title = " ์งํฌ "
185
- subtitle = " colors.zinc "
62
+ title = " ๋
ธ๋ (dark) "
63
+ subtitle = " colors.yellowDark "
186
64
colors = { Object .fromEntries (
187
- Object .entries (colors .zinc ).map (([name , { value }]) => [name , value ])
65
+ Object .entries (colors .yellowDark ).map (([name , { value }]) => [
66
+ name ,
67
+ value ,
68
+ ])
188
69
)}
189
70
/>
190
71
<ColorItem
191
- title = " ๊ทธ๋ ์ด "
72
+ title = " ํ์ "
192
73
subtitle = " colors.gray"
193
74
colors = { Object .fromEntries (
194
75
Object .entries (colors .gray ).map (([name , { value }]) => [name , value ])
195
76
)}
196
77
/>
197
78
<ColorItem
198
- title = " ์ฌ๋ ์ดํธ "
199
- subtitle = " colors.slate "
79
+ title = " ํ์ (dark) "
80
+ subtitle = " colors.grayDark "
200
81
colors = { Object .fromEntries (
201
- Object .entries (colors .slate ).map (([name , { value }]) => [name , value ])
82
+ Object .entries (colors .grayDark ).map (([name , { value }]) => [name , value ])
202
83
)}
203
84
/>
204
85
</ColorPalette >
86
+
87
+ ์ฉ๋์ ๋ฐ๋ผ์ ๊ฐ ์์์ 12๊ฐ์ง ์ค์ผ์ผ๋ก ๋ถ๋ฆฌ๋ฉ๋๋ค.
88
+
89
+ - Scale 1: ํ์ด์ง ๋ฐฐ๊ฒฝ
90
+ - Scale 2: ์๋น
91
+ - Scale 3: ์ปดํฌ๋ํธ ๋ฐฐ๊ฒฝ
92
+ - Scale 4: ์ปดํฌ๋ํธ ๋ฐฐ๊ฒฝ (hover)
93
+ - Scale 5: ์ปดํฌ๋ํธ ๋ฐฐ๊ฒฝ (active)
94
+ - Scale 6: ์๋น
95
+ - Scale 7: ๊ฒฝ๊ณ
96
+ - Scale 8: ๊ฒฝ๊ณ (hover)
97
+ - Scale 9: ์๋ฆฌ๋ ๋ฐฐ๊ฒฝ
98
+ - Scale 10: ์๋ฆฌ๋ ๋ฐฐ๊ฒฝ (hover)
99
+ - Scale 11: ๊ธ์ (low contrast)
100
+ - Scale 12: ๊ธ์ (high contrast)
0 commit comments