asharyu-design-token 1.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +85 -50
- package/dist/index.css +251 -167
- package/dist/index.js +336 -197
- package/dist/src/color/colorValue.d.ts +91 -0
- package/dist/src/color/index.d.ts +0 -0
- package/dist/src/color/semanticValue.d.ts +39 -0
- package/dist/src/color/value.d.ts +21 -0
- package/dist/src/font/index.d.ts +12 -0
- package/dist/{font → src/font}/value.d.ts +1 -6
- package/dist/src/index.d.ts +297 -0
- package/dist/src/interaction/index.d.ts +15 -0
- package/dist/src/motion/index.d.ts +16 -0
- package/dist/src/prev/value.d.ts +21 -0
- package/dist/src/stroke/index.d.ts +20 -0
- package/package.json +1 -1
- package/dist/color/index.d.ts +0 -12
- package/dist/color/semanticValue.d.ts +0 -17
- package/dist/color/value.d.ts +0 -21
- package/dist/font/index.d.ts +0 -11
- package/dist/index.d.ts +0 -16
package/dist/index.js
CHANGED
|
@@ -1,202 +1,273 @@
|
|
|
1
|
-
// src/color/
|
|
2
|
-
var colorValue =
|
|
3
|
-
|
|
4
|
-
0: "#
|
|
5
|
-
1: "#
|
|
6
|
-
2: "#
|
|
7
|
-
3: "#
|
|
8
|
-
4: "#
|
|
1
|
+
// src/color/colorValue.ts
|
|
2
|
+
var colorValue = {
|
|
3
|
+
yang: {
|
|
4
|
+
0: "#ffffff",
|
|
5
|
+
1: "#fefdfa",
|
|
6
|
+
2: "#fdfaf4",
|
|
7
|
+
3: "#f7f2e1",
|
|
8
|
+
4: "#f1ebd0"
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
0: "#
|
|
12
|
-
1: "#
|
|
13
|
-
2: "#
|
|
14
|
-
3: "#
|
|
15
|
-
4: "#
|
|
10
|
+
yin: {
|
|
11
|
+
0: "#333333",
|
|
12
|
+
1: "#1a1a1a",
|
|
13
|
+
2: "#0c0c0c",
|
|
14
|
+
3: "#060606",
|
|
15
|
+
4: "#000000"
|
|
16
16
|
},
|
|
17
|
-
|
|
18
|
-
0: "#
|
|
19
|
-
1: "#
|
|
20
|
-
2: "#
|
|
21
|
-
3: "#
|
|
22
|
-
4: "#
|
|
17
|
+
wood: {
|
|
18
|
+
0: "#ECF2F6",
|
|
19
|
+
1: "#AEC6D7",
|
|
20
|
+
2: "#7BA2BE",
|
|
21
|
+
3: "#5C83A2",
|
|
22
|
+
4: "#3E6586"
|
|
23
23
|
},
|
|
24
|
-
|
|
25
|
-
0: "#
|
|
26
|
-
1: "#
|
|
27
|
-
2: "#
|
|
28
|
-
3: "#
|
|
29
|
-
4: "#
|
|
24
|
+
fire: {
|
|
25
|
+
0: "#F4E7E7",
|
|
26
|
+
1: "#DDA8A8",
|
|
27
|
+
2: "#C96B6B",
|
|
28
|
+
3: "#A74E4E",
|
|
29
|
+
4: "#853131"
|
|
30
30
|
},
|
|
31
|
-
|
|
32
|
-
0: "#
|
|
33
|
-
1: "#
|
|
34
|
-
2: "#
|
|
35
|
-
3: "#
|
|
36
|
-
4: "#
|
|
31
|
+
earth: {
|
|
32
|
+
0: "#F6F1E3",
|
|
33
|
+
1: "#E8DDBF",
|
|
34
|
+
2: "#D9C58F",
|
|
35
|
+
3: "#B5A16B",
|
|
36
|
+
4: "#917D47"
|
|
37
37
|
},
|
|
38
|
-
|
|
39
|
-
0: "#
|
|
40
|
-
1: "#
|
|
41
|
-
2: "#
|
|
42
|
-
3: "#
|
|
43
|
-
4: "#
|
|
38
|
+
metal: {
|
|
39
|
+
0: "#FAFAFA",
|
|
40
|
+
1: "#F2F2F2",
|
|
41
|
+
2: "#E2E2E2",
|
|
42
|
+
3: "#C2C2C2",
|
|
43
|
+
4: "#A2A2A2"
|
|
44
44
|
},
|
|
45
|
-
|
|
46
|
-
0: "#
|
|
47
|
-
1: "#
|
|
48
|
-
2: "#
|
|
49
|
-
3: "#
|
|
50
|
-
4: "#
|
|
45
|
+
water: {
|
|
46
|
+
0: "#999999",
|
|
47
|
+
1: "#555555",
|
|
48
|
+
2: "#333333",
|
|
49
|
+
3: "#222222",
|
|
50
|
+
4: "#111111"
|
|
51
51
|
},
|
|
52
|
-
|
|
53
|
-
0: "#
|
|
54
|
-
1: "#
|
|
55
|
-
2: "#
|
|
56
|
-
3: "#
|
|
57
|
-
4: "#
|
|
52
|
+
hong: {
|
|
53
|
+
0: "#F2E5E5",
|
|
54
|
+
1: "#E5C7C7",
|
|
55
|
+
2: "#D6A6A6",
|
|
56
|
+
3: "#B37D7D",
|
|
57
|
+
4: "#915555"
|
|
58
58
|
},
|
|
59
|
-
|
|
60
|
-
0: "#
|
|
61
|
-
1: "#
|
|
62
|
-
2: "#
|
|
63
|
-
3: "#
|
|
64
|
-
4: "#
|
|
59
|
+
byeok: {
|
|
60
|
+
0: "#E6EEF4",
|
|
61
|
+
1: "#CEDAE3",
|
|
62
|
+
2: "#AFC2D0",
|
|
63
|
+
3: "#8AA1B2",
|
|
64
|
+
4: "#668194"
|
|
65
65
|
},
|
|
66
|
-
|
|
67
|
-
0: "#
|
|
68
|
-
1: "#
|
|
69
|
-
2: "#
|
|
70
|
-
3: "#
|
|
71
|
-
4: "#
|
|
66
|
+
nok: {
|
|
67
|
+
0: "#E7F0E6",
|
|
68
|
+
1: "#CDDAC9",
|
|
69
|
+
2: "#ACC4A6",
|
|
70
|
+
3: "#8AA885",
|
|
71
|
+
4: "#698C64"
|
|
72
|
+
},
|
|
73
|
+
yuhwang: {
|
|
74
|
+
0: "#D0CCBE",
|
|
75
|
+
1: "#AFA895",
|
|
76
|
+
2: "#867D61",
|
|
77
|
+
3: "#6D654E",
|
|
78
|
+
4: "#544D3C"
|
|
79
|
+
},
|
|
80
|
+
ja: {
|
|
81
|
+
0: "#D1BFC0",
|
|
82
|
+
1: "#A9898B",
|
|
83
|
+
2: "#7E4F53",
|
|
84
|
+
3: "#653A3D",
|
|
85
|
+
4: "#4C2628"
|
|
72
86
|
}
|
|
73
|
-
}
|
|
74
|
-
var value_default = colorValue;
|
|
87
|
+
};
|
|
75
88
|
|
|
76
89
|
// src/color/semanticValue.ts
|
|
77
90
|
var semanticValue = Object.freeze({
|
|
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
|
-
|
|
91
|
+
light: {
|
|
92
|
+
scale: {
|
|
93
|
+
subtle: colorValue.yang[0],
|
|
94
|
+
soft: colorValue.yang[1],
|
|
95
|
+
primary: colorValue.yang[2],
|
|
96
|
+
deep: colorValue.yang[3],
|
|
97
|
+
sharp: colorValue.yang[4]
|
|
98
|
+
},
|
|
99
|
+
background: colorValue.yang[2],
|
|
100
|
+
text: colorValue.yin[2],
|
|
101
|
+
stroke: colorValue.yin[4],
|
|
102
|
+
action: {
|
|
103
|
+
subtle: colorValue.wood[0],
|
|
104
|
+
soft: colorValue.wood[1],
|
|
105
|
+
primary: colorValue.wood[2],
|
|
106
|
+
deep: colorValue.wood[3],
|
|
107
|
+
sharp: colorValue.wood[4]
|
|
108
|
+
},
|
|
109
|
+
danger: {
|
|
110
|
+
subtle: colorValue.fire[0],
|
|
111
|
+
soft: colorValue.fire[1],
|
|
112
|
+
primary: colorValue.fire[2],
|
|
113
|
+
deep: colorValue.fire[3],
|
|
114
|
+
sharp: colorValue.fire[4]
|
|
115
|
+
},
|
|
116
|
+
surface: {
|
|
117
|
+
subtle: colorValue.earth[0],
|
|
118
|
+
soft: colorValue.earth[1],
|
|
119
|
+
primary: colorValue.earth[2],
|
|
120
|
+
deep: colorValue.earth[3],
|
|
121
|
+
sharp: colorValue.earth[4]
|
|
122
|
+
},
|
|
123
|
+
border: {
|
|
124
|
+
subtle: colorValue.metal[0],
|
|
125
|
+
soft: colorValue.metal[1],
|
|
126
|
+
primary: colorValue.metal[2],
|
|
127
|
+
deep: colorValue.metal[3],
|
|
128
|
+
sharp: colorValue.metal[4]
|
|
129
|
+
},
|
|
130
|
+
info: {
|
|
131
|
+
subtle: colorValue.water[0],
|
|
132
|
+
soft: colorValue.water[1],
|
|
133
|
+
primary: colorValue.water[2],
|
|
134
|
+
deep: colorValue.water[3],
|
|
135
|
+
sharp: colorValue.water[4]
|
|
136
|
+
},
|
|
137
|
+
status: {
|
|
138
|
+
success: {
|
|
139
|
+
subtle: colorValue.nok[0],
|
|
140
|
+
soft: colorValue.nok[1],
|
|
141
|
+
primary: colorValue.nok[2],
|
|
142
|
+
deep: colorValue.nok[3],
|
|
143
|
+
sharp: colorValue.nok[4]
|
|
144
|
+
},
|
|
145
|
+
alertHover: {
|
|
146
|
+
subtle: colorValue.hong[0],
|
|
147
|
+
soft: colorValue.hong[1],
|
|
148
|
+
primary: colorValue.hong[2],
|
|
149
|
+
deep: colorValue.hong[3],
|
|
150
|
+
sharp: colorValue.hong[4]
|
|
151
|
+
},
|
|
152
|
+
actionFocus: {
|
|
153
|
+
subtle: colorValue.byeok[0],
|
|
154
|
+
soft: colorValue.byeok[1],
|
|
155
|
+
primary: colorValue.byeok[2],
|
|
156
|
+
deep: colorValue.byeok[3],
|
|
157
|
+
sharp: colorValue.byeok[4]
|
|
158
|
+
},
|
|
159
|
+
subSurface: {
|
|
160
|
+
subtle: colorValue.yuhwang[0],
|
|
161
|
+
soft: colorValue.yuhwang[1],
|
|
162
|
+
primary: colorValue.yuhwang[2],
|
|
163
|
+
deep: colorValue.yuhwang[3],
|
|
164
|
+
sharp: colorValue.yuhwang[4]
|
|
165
|
+
},
|
|
166
|
+
infoActive: {
|
|
167
|
+
subtle: colorValue.ja[0],
|
|
168
|
+
soft: colorValue.ja[1],
|
|
169
|
+
primary: colorValue.ja[2],
|
|
170
|
+
deep: colorValue.ja[3],
|
|
171
|
+
sharp: colorValue.ja[4]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
bleed: {
|
|
175
|
+
primary: "rgba(12, 12, 12, 0.08)",
|
|
176
|
+
soft: "rgba(217, 197, 143, 0.15)"
|
|
177
|
+
}
|
|
126
178
|
},
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
dark: {
|
|
180
|
+
scale: {
|
|
181
|
+
subtle: colorValue.yin[4],
|
|
182
|
+
soft: colorValue.yin[3],
|
|
183
|
+
primary: colorValue.yin[2],
|
|
184
|
+
deep: colorValue.yin[1],
|
|
185
|
+
sharp: colorValue.yin[0]
|
|
186
|
+
},
|
|
187
|
+
background: colorValue.yin[2],
|
|
188
|
+
text: colorValue.yang[2],
|
|
189
|
+
stroke: colorValue.yang[0],
|
|
190
|
+
action: {
|
|
191
|
+
subtle: colorValue.wood[4],
|
|
192
|
+
soft: colorValue.wood[3],
|
|
193
|
+
primary: colorValue.wood[1],
|
|
194
|
+
deep: colorValue.wood[2],
|
|
195
|
+
sharp: colorValue.wood[0]
|
|
196
|
+
},
|
|
197
|
+
danger: {
|
|
198
|
+
subtle: colorValue.fire[4],
|
|
199
|
+
soft: colorValue.fire[3],
|
|
200
|
+
primary: colorValue.fire[1],
|
|
201
|
+
deep: colorValue.fire[2],
|
|
202
|
+
sharp: colorValue.fire[0]
|
|
203
|
+
},
|
|
204
|
+
surface: {
|
|
205
|
+
subtle: colorValue.earth[4],
|
|
206
|
+
soft: colorValue.earth[3],
|
|
207
|
+
primary: colorValue.earth[1],
|
|
208
|
+
deep: colorValue.earth[2],
|
|
209
|
+
sharp: colorValue.earth[0]
|
|
210
|
+
},
|
|
211
|
+
border: {
|
|
212
|
+
subtle: colorValue.metal[4],
|
|
213
|
+
soft: colorValue.metal[3],
|
|
214
|
+
primary: colorValue.metal[1],
|
|
215
|
+
deep: colorValue.metal[2],
|
|
216
|
+
sharp: colorValue.metal[0]
|
|
217
|
+
},
|
|
218
|
+
info: {
|
|
219
|
+
subtle: colorValue.water[4],
|
|
220
|
+
soft: colorValue.water[3],
|
|
221
|
+
primary: colorValue.water[1],
|
|
222
|
+
deep: colorValue.water[2],
|
|
223
|
+
sharp: colorValue.water[0]
|
|
224
|
+
},
|
|
225
|
+
status: {
|
|
226
|
+
success: {
|
|
227
|
+
subtle: colorValue.nok[4],
|
|
228
|
+
soft: colorValue.nok[3],
|
|
229
|
+
primary: colorValue.nok[1],
|
|
230
|
+
deep: colorValue.nok[2],
|
|
231
|
+
sharp: colorValue.nok[0]
|
|
232
|
+
},
|
|
233
|
+
alertHover: {
|
|
234
|
+
subtle: colorValue.hong[4],
|
|
235
|
+
soft: colorValue.hong[3],
|
|
236
|
+
primary: colorValue.hong[1],
|
|
237
|
+
deep: colorValue.hong[2],
|
|
238
|
+
sharp: colorValue.hong[0]
|
|
239
|
+
},
|
|
240
|
+
actionFocus: {
|
|
241
|
+
subtle: colorValue.byeok[4],
|
|
242
|
+
soft: colorValue.byeok[3],
|
|
243
|
+
primary: colorValue.byeok[1],
|
|
244
|
+
deep: colorValue.byeok[2],
|
|
245
|
+
sharp: colorValue.byeok[0]
|
|
246
|
+
},
|
|
247
|
+
subSurface: {
|
|
248
|
+
subtle: colorValue.yuhwang[4],
|
|
249
|
+
soft: colorValue.yuhwang[3],
|
|
250
|
+
primary: colorValue.yuhwang[1],
|
|
251
|
+
deep: colorValue.yuhwang[2],
|
|
252
|
+
sharp: colorValue.yuhwang[0]
|
|
253
|
+
},
|
|
254
|
+
infoActive: {
|
|
255
|
+
subtle: colorValue.ja[4],
|
|
256
|
+
soft: colorValue.ja[3],
|
|
257
|
+
primary: colorValue.ja[1],
|
|
258
|
+
deep: colorValue.ja[2],
|
|
259
|
+
sharp: colorValue.ja[0]
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
bleed: {
|
|
263
|
+
primary: "rgba(253, 250, 244, 0.12)",
|
|
264
|
+
soft: "rgba(123, 162, 190, 0.2)"
|
|
265
|
+
}
|
|
184
266
|
}
|
|
185
267
|
});
|
|
186
|
-
var colorSchema = value_default;
|
|
187
|
-
function getSchema(key, model) {
|
|
188
|
-
return Object.values(model).reduce((result, current, idx) => {
|
|
189
|
-
idx > 0 ? result[`$${key}$${idx}`] = current : result[`$${key}`] = current;
|
|
190
|
-
return result;
|
|
191
|
-
}, {});
|
|
192
|
-
}
|
|
193
268
|
|
|
194
269
|
// src/font/value.ts
|
|
195
270
|
var fontSizeValue = Object.freeze({
|
|
196
|
-
$basic: "16px",
|
|
197
|
-
$1x: "1rem",
|
|
198
|
-
$2x: "2rem",
|
|
199
|
-
$3x: "3rem",
|
|
200
271
|
$rem: {
|
|
201
272
|
$8: "0.5rem",
|
|
202
273
|
$10: "0.625rem",
|
|
@@ -233,7 +304,7 @@ var fontSizeValue = Object.freeze({
|
|
|
233
304
|
});
|
|
234
305
|
|
|
235
306
|
// src/font/index.ts
|
|
236
|
-
var
|
|
307
|
+
var rawFontSizeRem = fontSizeValue.$rem;
|
|
237
308
|
var fontSize = Object.freeze({
|
|
238
309
|
schema: {
|
|
239
310
|
$h1: fontSizeValue.$rem.$68,
|
|
@@ -242,32 +313,100 @@ var fontSize = Object.freeze({
|
|
|
242
313
|
$h4: fontSizeValue.$rem.$28,
|
|
243
314
|
$h5: fontSizeValue.$rem.$22,
|
|
244
315
|
$h6: fontSizeValue.$rem.$18,
|
|
245
|
-
$
|
|
246
|
-
$
|
|
247
|
-
$
|
|
248
|
-
$
|
|
249
|
-
$
|
|
250
|
-
$
|
|
316
|
+
$subtitle1: fontSizeValue.$rem.$16,
|
|
317
|
+
$subtitle2: fontSizeValue.$rem.$14,
|
|
318
|
+
$subtitle3: fontSizeValue.$rem.$12,
|
|
319
|
+
$body1: fontSizeValue.$rem.$16,
|
|
320
|
+
$body2: fontSizeValue.$rem.$14,
|
|
321
|
+
$body3: fontSizeValue.$rem.$12,
|
|
251
322
|
$button: fontSizeValue.$rem.$12,
|
|
252
323
|
$caption: fontSizeValue.$rem.$10,
|
|
253
324
|
$overline: fontSizeValue.$rem.$8
|
|
254
325
|
}
|
|
255
326
|
});
|
|
327
|
+
var semanticFontSize = fontSize.schema;
|
|
328
|
+
|
|
329
|
+
// src/motion/index.ts
|
|
330
|
+
var motion = Object.freeze({
|
|
331
|
+
kiUn: {
|
|
332
|
+
gentle: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
333
|
+
sharp: "cubic-bezier(0.19, 1, 0.22, 1)",
|
|
334
|
+
spread: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
335
|
+
},
|
|
336
|
+
duration: {
|
|
337
|
+
decisive: "0.15s",
|
|
338
|
+
flow: "0.3s",
|
|
339
|
+
bleed: "0.8s"
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
// src/stroke/index.ts
|
|
344
|
+
var stroke = Object.freeze({
|
|
345
|
+
weight: {
|
|
346
|
+
sharp: "0.5px",
|
|
347
|
+
fine: "1px",
|
|
348
|
+
medium: "1.5px",
|
|
349
|
+
bold: "2px",
|
|
350
|
+
heavy: "3px"
|
|
351
|
+
},
|
|
352
|
+
ink: {
|
|
353
|
+
pressureLight: "var(--asharyu-stroke-weight-sharp)",
|
|
354
|
+
pressureHeavy: "var(--asharyu-stroke-weight-heavy)",
|
|
355
|
+
bleed: "blur(1.2px)"
|
|
356
|
+
},
|
|
357
|
+
sharp: `var(--asharyu-stroke-weight-fine) solid var(--asharyu-color-semantic-stroke)`,
|
|
358
|
+
rough: "url(#ink-bleed-filter)"
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
// src/interaction/index.ts
|
|
362
|
+
var interaction = Object.freeze({
|
|
363
|
+
flow: {
|
|
364
|
+
sangSaeng: "all var(--asharyu-motion-duration-flow) var(--asharyu-motion-ki-un-gentle)"
|
|
365
|
+
},
|
|
366
|
+
feedback: {
|
|
367
|
+
sangGeukDecisive: "all var(--asharyu-motion-duration-decisive) var(--asharyu-motion-ki-un-sharp)",
|
|
368
|
+
sangGeukSpread: "all var(--asharyu-motion-duration-bleed) var(--asharyu-motion-ki-un-spread)"
|
|
369
|
+
},
|
|
370
|
+
theme: {
|
|
371
|
+
bleed: "background-color var(--asharyu-motion-duration-bleed) var(--asharyu-motion-ki-un-spread), color var(--asharyu-motion-duration-flow) var(--asharyu-motion-ki-un-gentle)"
|
|
372
|
+
}
|
|
373
|
+
});
|
|
256
374
|
|
|
257
375
|
// src/index.ts
|
|
258
376
|
var color = Object.freeze({
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
colorSchema
|
|
377
|
+
raw: colorValue,
|
|
378
|
+
semantic: semanticValue
|
|
262
379
|
});
|
|
263
|
-
var font = Object.freeze({
|
|
264
|
-
|
|
380
|
+
var font = Object.freeze({
|
|
381
|
+
rawRem: rawFontSizeRem,
|
|
382
|
+
semantic: semanticFontSize
|
|
383
|
+
});
|
|
384
|
+
var AsharyuDesignToken = { color, font, motion, stroke, interaction };
|
|
385
|
+
var normalizeKey = (key) => key.replace(/^\$/, "").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
386
|
+
var createBridge = (obj, path = ["asharyu"]) => {
|
|
387
|
+
const bridge = {};
|
|
388
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
389
|
+
const normalizedKey = normalizeKey(key);
|
|
390
|
+
if (typeof value === "object" && value !== null) {
|
|
391
|
+
bridge[key] = createBridge(value, [...path, normalizedKey]);
|
|
392
|
+
} else {
|
|
393
|
+
bridge[key] = `var(--${[...path, normalizedKey].join("-")})`;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return bridge;
|
|
397
|
+
};
|
|
398
|
+
var tokens = createBridge(AsharyuDesignToken);
|
|
399
|
+
var css = (strings, ...values) => {
|
|
400
|
+
return strings.reduce((acc, str, i) => acc + str + (values[i] ?? ""), "");
|
|
401
|
+
};
|
|
265
402
|
var src_default = AsharyuDesignToken;
|
|
266
403
|
export {
|
|
267
|
-
|
|
404
|
+
colorValue,
|
|
405
|
+
css,
|
|
268
406
|
src_default as default,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
407
|
+
normalizeKey,
|
|
408
|
+
rawFontSizeRem,
|
|
409
|
+
semanticFontSize,
|
|
410
|
+
semanticValue,
|
|
411
|
+
tokens
|
|
273
412
|
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asharyu Design System - Raw Color Values
|
|
3
|
+
* 음양오행(陰陽五行)과 담채(Modern Damchae)의 미학을 담은 원천 색상 정의입니다.
|
|
4
|
+
* 0: 가장 은은한(Subtle), 1: 부드러운(Soft), 2: 기준(Primary), 3: 깊은(Deep), 4: 예리한(Sharp)
|
|
5
|
+
*/
|
|
6
|
+
export declare const colorValue: {
|
|
7
|
+
yang: {
|
|
8
|
+
0: string;
|
|
9
|
+
1: string;
|
|
10
|
+
2: string;
|
|
11
|
+
3: string;
|
|
12
|
+
4: string;
|
|
13
|
+
};
|
|
14
|
+
yin: {
|
|
15
|
+
0: string;
|
|
16
|
+
1: string;
|
|
17
|
+
2: string;
|
|
18
|
+
3: string;
|
|
19
|
+
4: string;
|
|
20
|
+
};
|
|
21
|
+
wood: {
|
|
22
|
+
0: string;
|
|
23
|
+
1: string;
|
|
24
|
+
2: string;
|
|
25
|
+
3: string;
|
|
26
|
+
4: string;
|
|
27
|
+
};
|
|
28
|
+
fire: {
|
|
29
|
+
0: string;
|
|
30
|
+
1: string;
|
|
31
|
+
2: string;
|
|
32
|
+
3: string;
|
|
33
|
+
4: string;
|
|
34
|
+
};
|
|
35
|
+
earth: {
|
|
36
|
+
0: string;
|
|
37
|
+
1: string;
|
|
38
|
+
2: string;
|
|
39
|
+
3: string;
|
|
40
|
+
4: string;
|
|
41
|
+
};
|
|
42
|
+
metal: {
|
|
43
|
+
0: string;
|
|
44
|
+
1: string;
|
|
45
|
+
2: string;
|
|
46
|
+
3: string;
|
|
47
|
+
4: string;
|
|
48
|
+
};
|
|
49
|
+
water: {
|
|
50
|
+
0: string;
|
|
51
|
+
1: string;
|
|
52
|
+
2: string;
|
|
53
|
+
3: string;
|
|
54
|
+
4: string;
|
|
55
|
+
};
|
|
56
|
+
hong: {
|
|
57
|
+
0: string;
|
|
58
|
+
1: string;
|
|
59
|
+
2: string;
|
|
60
|
+
3: string;
|
|
61
|
+
4: string;
|
|
62
|
+
};
|
|
63
|
+
byeok: {
|
|
64
|
+
0: string;
|
|
65
|
+
1: string;
|
|
66
|
+
2: string;
|
|
67
|
+
3: string;
|
|
68
|
+
4: string;
|
|
69
|
+
};
|
|
70
|
+
nok: {
|
|
71
|
+
0: string;
|
|
72
|
+
1: string;
|
|
73
|
+
2: string;
|
|
74
|
+
3: string;
|
|
75
|
+
4: string;
|
|
76
|
+
};
|
|
77
|
+
yuhwang: {
|
|
78
|
+
0: string;
|
|
79
|
+
1: string;
|
|
80
|
+
2: string;
|
|
81
|
+
3: string;
|
|
82
|
+
4: string;
|
|
83
|
+
};
|
|
84
|
+
ja: {
|
|
85
|
+
0: string;
|
|
86
|
+
1: string;
|
|
87
|
+
2: string;
|
|
88
|
+
3: string;
|
|
89
|
+
4: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
File without changes
|