asharyu-design-token 1.0.4 → 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 -168
- 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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asharyu Design System - Semantic Color Tokens
|
|
3
|
+
* 음양의 반전과 오행의 기운을 담은 테마별 시맨틱 정의입니다.
|
|
4
|
+
*/
|
|
5
|
+
interface ThemeTokens {
|
|
6
|
+
/** 5단계 색상 계층 구조 */
|
|
7
|
+
readonly scale: {
|
|
8
|
+
readonly subtle: string;
|
|
9
|
+
readonly soft: string;
|
|
10
|
+
readonly primary: string;
|
|
11
|
+
readonly deep: string;
|
|
12
|
+
readonly sharp: string;
|
|
13
|
+
};
|
|
14
|
+
readonly background: string;
|
|
15
|
+
readonly text: string;
|
|
16
|
+
readonly stroke: string;
|
|
17
|
+
readonly action: ThemeTokens['scale'];
|
|
18
|
+
readonly danger: ThemeTokens['scale'];
|
|
19
|
+
readonly surface: ThemeTokens['scale'];
|
|
20
|
+
readonly border: ThemeTokens['scale'];
|
|
21
|
+
readonly info: ThemeTokens['scale'];
|
|
22
|
+
readonly status: {
|
|
23
|
+
readonly success: ThemeTokens['scale'];
|
|
24
|
+
readonly alertHover: ThemeTokens['scale'];
|
|
25
|
+
readonly actionFocus: ThemeTokens['scale'];
|
|
26
|
+
readonly subSurface: ThemeTokens['scale'];
|
|
27
|
+
readonly infoActive: ThemeTokens['scale'];
|
|
28
|
+
};
|
|
29
|
+
readonly bleed: {
|
|
30
|
+
readonly primary: string;
|
|
31
|
+
readonly soft: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface SemanticValueProps {
|
|
35
|
+
readonly light: ThemeTokens;
|
|
36
|
+
readonly dark: ThemeTokens;
|
|
37
|
+
}
|
|
38
|
+
export declare const semanticValue: Readonly<SemanticValueProps>;
|
|
39
|
+
export default semanticValue;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ColorValueProps {
|
|
2
|
+
readonly $metal: ValueProps;
|
|
3
|
+
readonly $water: ValueProps;
|
|
4
|
+
readonly $fire: ValueProps;
|
|
5
|
+
readonly $wood: ValueProps;
|
|
6
|
+
readonly $earth: ValueProps;
|
|
7
|
+
readonly $geukFireMetal: ValueProps;
|
|
8
|
+
readonly $geukWaterFire: ValueProps;
|
|
9
|
+
readonly $geukMetalWood: ValueProps;
|
|
10
|
+
readonly $geukEarthWater: ValueProps;
|
|
11
|
+
readonly $geukWoodEarth: ValueProps;
|
|
12
|
+
}
|
|
13
|
+
export interface ValueProps {
|
|
14
|
+
0: string;
|
|
15
|
+
1: string;
|
|
16
|
+
2: string;
|
|
17
|
+
3: string;
|
|
18
|
+
4: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const colorValue: Readonly<ColorValueProps>;
|
|
21
|
+
export default colorValue;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const rawFontSizeRem: Record<"$8" | "$10" | "$12" | "$14" | "$16" | "$18" | "$20" | "$22" | "$24" | "$26" | "$28" | "$30" | "$32" | "$34" | "$36" | "$38" | "$40" | "$42" | "$44" | "$46" | "$48" | "$50" | "$52" | "$54" | "$56" | "$58" | "$60" | "$62" | "$64" | "$66" | "$68", string>;
|
|
2
|
+
export interface FontSizeProps {
|
|
3
|
+
schema: Record<'$h1' | '$h2' | '$h3' | '$h4' | '$h5' | '$h6' | '$subtitle1' | '$subtitle2' | '$subtitle3' | '$body1' | '$body2' | '$body3' | '$button' | '$caption' | '$overline', string>;
|
|
4
|
+
}
|
|
5
|
+
/** Defines semantic font sizes for various UI elements.
|
|
6
|
+
* Adjustments may be needed based on design samples.
|
|
7
|
+
*/
|
|
8
|
+
export declare const fontSize: Readonly<FontSizeProps>;
|
|
9
|
+
/**
|
|
10
|
+
* Semantic font size schema.
|
|
11
|
+
*/
|
|
12
|
+
export declare const semanticFontSize: Record<"$h1" | "$h2" | "$h3" | "$h4" | "$h5" | "$h6" | "$subtitle1" | "$subtitle2" | "$subtitle3" | "$body1" | "$body2" | "$body3" | "$button" | "$caption" | "$overline", string>;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description 16px 기준으로 자주 쓰이는 px을 모두 rem 단위로 계산한 사이즈. 반응형 대응시 용이함
|
|
3
3
|
* @todo calc
|
|
4
|
-
*
|
|
5
4
|
*/
|
|
6
|
-
declare type MakeSizeSet<T extends number[]> = `$${T[number]}`;
|
|
7
5
|
export interface FontSizeValueProps {
|
|
8
|
-
$basic: '16px';
|
|
9
|
-
$1x: '1rem';
|
|
10
|
-
$2x: '2rem';
|
|
11
|
-
$3x: '3rem';
|
|
12
6
|
$rem: Record<MakeSizeSet<[
|
|
13
7
|
8,
|
|
14
8
|
10,
|
|
@@ -44,4 +38,5 @@ export interface FontSizeValueProps {
|
|
|
44
38
|
]>, string>;
|
|
45
39
|
}
|
|
46
40
|
export declare const fontSizeValue: Readonly<FontSizeValueProps>;
|
|
41
|
+
type MakeSizeSet<T extends number[]> = `$${T[number]}`;
|
|
47
42
|
export {};
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { colorValue } from './color/colorValue';
|
|
2
|
+
import { semanticValue } from './color/semanticValue';
|
|
3
|
+
import { rawFontSizeRem, semanticFontSize } from './font';
|
|
4
|
+
export { colorValue, semanticValue };
|
|
5
|
+
export { rawFontSizeRem, semanticFontSize };
|
|
6
|
+
declare const AsharyuDesignToken: {
|
|
7
|
+
color: Readonly<{
|
|
8
|
+
raw: {
|
|
9
|
+
yang: {
|
|
10
|
+
0: string;
|
|
11
|
+
1: string;
|
|
12
|
+
2: string;
|
|
13
|
+
3: string;
|
|
14
|
+
4: string;
|
|
15
|
+
};
|
|
16
|
+
yin: {
|
|
17
|
+
0: string;
|
|
18
|
+
1: string;
|
|
19
|
+
2: string;
|
|
20
|
+
3: string;
|
|
21
|
+
4: string;
|
|
22
|
+
};
|
|
23
|
+
wood: {
|
|
24
|
+
0: string;
|
|
25
|
+
1: string;
|
|
26
|
+
2: string;
|
|
27
|
+
3: string;
|
|
28
|
+
4: string;
|
|
29
|
+
};
|
|
30
|
+
fire: {
|
|
31
|
+
0: string;
|
|
32
|
+
1: string;
|
|
33
|
+
2: string;
|
|
34
|
+
3: string;
|
|
35
|
+
4: string;
|
|
36
|
+
};
|
|
37
|
+
earth: {
|
|
38
|
+
0: string;
|
|
39
|
+
1: string;
|
|
40
|
+
2: string;
|
|
41
|
+
3: string;
|
|
42
|
+
4: string;
|
|
43
|
+
};
|
|
44
|
+
metal: {
|
|
45
|
+
0: string;
|
|
46
|
+
1: string;
|
|
47
|
+
2: string;
|
|
48
|
+
3: string;
|
|
49
|
+
4: string;
|
|
50
|
+
};
|
|
51
|
+
water: {
|
|
52
|
+
0: string;
|
|
53
|
+
1: string;
|
|
54
|
+
2: string;
|
|
55
|
+
3: string;
|
|
56
|
+
4: string;
|
|
57
|
+
};
|
|
58
|
+
hong: {
|
|
59
|
+
0: string;
|
|
60
|
+
1: string;
|
|
61
|
+
2: string;
|
|
62
|
+
3: string;
|
|
63
|
+
4: string;
|
|
64
|
+
};
|
|
65
|
+
byeok: {
|
|
66
|
+
0: string;
|
|
67
|
+
1: string;
|
|
68
|
+
2: string;
|
|
69
|
+
3: string;
|
|
70
|
+
4: string;
|
|
71
|
+
};
|
|
72
|
+
nok: {
|
|
73
|
+
0: string;
|
|
74
|
+
1: string;
|
|
75
|
+
2: string;
|
|
76
|
+
3: string;
|
|
77
|
+
4: string;
|
|
78
|
+
};
|
|
79
|
+
yuhwang: {
|
|
80
|
+
0: string;
|
|
81
|
+
1: string;
|
|
82
|
+
2: string;
|
|
83
|
+
/**
|
|
84
|
+
* 'tokens' 객체는 Asharyu 디자인 토큰의 구조를 그대로 가지지만, 값은 CSS 변수 참조 문자열입니다.
|
|
85
|
+
* 예: tokens.color.semantic.yinText -> "var(--asharyu-color-semantic-yin-text)"
|
|
86
|
+
*/
|
|
87
|
+
3: string;
|
|
88
|
+
4: string;
|
|
89
|
+
};
|
|
90
|
+
ja: {
|
|
91
|
+
0: string;
|
|
92
|
+
1: string;
|
|
93
|
+
2: string;
|
|
94
|
+
3: string;
|
|
95
|
+
4: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
semantic: Readonly<import("./color/semanticValue").SemanticValueProps>;
|
|
99
|
+
}>;
|
|
100
|
+
font: Readonly<{
|
|
101
|
+
rawRem: Record<"$8" | "$10" | "$12" | "$14" | "$16" | "$18" | "$20" | "$22" | "$24" | "$26" | "$28" | "$30" | "$32" | "$34" | "$36" | "$38" | "$40" | "$42" | "$44" | "$46" | "$48" | "$50" | "$52" | "$54" | "$56" | "$58" | "$60" | "$62" | "$64" | "$66" | "$68", string>;
|
|
102
|
+
semantic: Record<"$h1" | "$h2" | "$h3" | "$h4" | "$h5" | "$h6" | "$subtitle1" | "$subtitle2" | "$subtitle3" | "$body1" | "$body2" | "$body3" | "$button" | "$caption" | "$overline", string>;
|
|
103
|
+
}>;
|
|
104
|
+
motion: Readonly<{
|
|
105
|
+
kiUn: {
|
|
106
|
+
gentle: string;
|
|
107
|
+
sharp: string;
|
|
108
|
+
spread: string;
|
|
109
|
+
};
|
|
110
|
+
duration: {
|
|
111
|
+
decisive: string;
|
|
112
|
+
flow: string;
|
|
113
|
+
bleed: string;
|
|
114
|
+
};
|
|
115
|
+
}>;
|
|
116
|
+
stroke: Readonly<{
|
|
117
|
+
weight: {
|
|
118
|
+
sharp: string;
|
|
119
|
+
fine: string;
|
|
120
|
+
medium: string;
|
|
121
|
+
bold: string;
|
|
122
|
+
heavy: string;
|
|
123
|
+
};
|
|
124
|
+
ink: {
|
|
125
|
+
pressureLight: string;
|
|
126
|
+
pressureHeavy: string;
|
|
127
|
+
bleed: string;
|
|
128
|
+
};
|
|
129
|
+
sharp: "var(--asharyu-stroke-weight-fine) solid var(--asharyu-color-semantic-stroke)";
|
|
130
|
+
rough: "url(#ink-bleed-filter)";
|
|
131
|
+
}>;
|
|
132
|
+
interaction: Readonly<{
|
|
133
|
+
flow: {
|
|
134
|
+
sangSaeng: string;
|
|
135
|
+
};
|
|
136
|
+
feedback: {
|
|
137
|
+
sangGeukDecisive: string;
|
|
138
|
+
sangGeukSpread: string;
|
|
139
|
+
};
|
|
140
|
+
theme: {
|
|
141
|
+
bleed: string;
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* '검의 예리함'을 담아 키값을 Kebab-case로 변환합니다.
|
|
147
|
+
* $ 접두사 제거 및 Camel/PascalCase를 Kebab-case로 변환
|
|
148
|
+
*/
|
|
149
|
+
export declare const normalizeKey: (key: string) => string;
|
|
150
|
+
/**
|
|
151
|
+
* 'tokens' 객체는 Asharyu 디자인 토큰의 구조를 그대로 가지지만, 값은 CSS 변수 참조 문자열입니다.
|
|
152
|
+
* 예: tokens.color.semantic.yinText -> "var(--asharyu-color-semantic-yin-text)"
|
|
153
|
+
*/
|
|
154
|
+
export declare const tokens: {
|
|
155
|
+
color: Readonly<{
|
|
156
|
+
raw: {
|
|
157
|
+
yang: {
|
|
158
|
+
0: string;
|
|
159
|
+
1: string;
|
|
160
|
+
2: string;
|
|
161
|
+
3: string;
|
|
162
|
+
4: string;
|
|
163
|
+
};
|
|
164
|
+
yin: {
|
|
165
|
+
0: string;
|
|
166
|
+
1: string;
|
|
167
|
+
2: string;
|
|
168
|
+
3: string;
|
|
169
|
+
4: string;
|
|
170
|
+
};
|
|
171
|
+
wood: {
|
|
172
|
+
0: string;
|
|
173
|
+
1: string;
|
|
174
|
+
2: string;
|
|
175
|
+
3: string;
|
|
176
|
+
4: string;
|
|
177
|
+
};
|
|
178
|
+
fire: {
|
|
179
|
+
0: string;
|
|
180
|
+
1: string;
|
|
181
|
+
2: string;
|
|
182
|
+
3: string;
|
|
183
|
+
4: string;
|
|
184
|
+
};
|
|
185
|
+
earth: {
|
|
186
|
+
0: string;
|
|
187
|
+
1: string;
|
|
188
|
+
2: string;
|
|
189
|
+
3: string;
|
|
190
|
+
4: string;
|
|
191
|
+
};
|
|
192
|
+
metal: {
|
|
193
|
+
0: string;
|
|
194
|
+
1: string;
|
|
195
|
+
2: string;
|
|
196
|
+
3: string;
|
|
197
|
+
4: string;
|
|
198
|
+
};
|
|
199
|
+
water: {
|
|
200
|
+
0: string;
|
|
201
|
+
1: string;
|
|
202
|
+
2: string;
|
|
203
|
+
3: string;
|
|
204
|
+
4: string;
|
|
205
|
+
};
|
|
206
|
+
hong: {
|
|
207
|
+
0: string;
|
|
208
|
+
1: string;
|
|
209
|
+
2: string;
|
|
210
|
+
3: string;
|
|
211
|
+
4: string;
|
|
212
|
+
};
|
|
213
|
+
byeok: {
|
|
214
|
+
0: string;
|
|
215
|
+
1: string;
|
|
216
|
+
2: string;
|
|
217
|
+
3: string;
|
|
218
|
+
4: string;
|
|
219
|
+
};
|
|
220
|
+
nok: {
|
|
221
|
+
0: string;
|
|
222
|
+
1: string;
|
|
223
|
+
2: string;
|
|
224
|
+
3: string;
|
|
225
|
+
4: string;
|
|
226
|
+
};
|
|
227
|
+
yuhwang: {
|
|
228
|
+
0: string;
|
|
229
|
+
1: string;
|
|
230
|
+
2: string;
|
|
231
|
+
/**
|
|
232
|
+
* 'tokens' 객체는 Asharyu 디자인 토큰의 구조를 그대로 가지지만, 값은 CSS 변수 참조 문자열입니다.
|
|
233
|
+
* 예: tokens.color.semantic.yinText -> "var(--asharyu-color-semantic-yin-text)"
|
|
234
|
+
*/
|
|
235
|
+
3: string;
|
|
236
|
+
4: string;
|
|
237
|
+
};
|
|
238
|
+
ja: {
|
|
239
|
+
0: string;
|
|
240
|
+
1: string;
|
|
241
|
+
2: string;
|
|
242
|
+
3: string;
|
|
243
|
+
4: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
semantic: Readonly<import("./color/semanticValue").SemanticValueProps>;
|
|
247
|
+
}>;
|
|
248
|
+
font: Readonly<{
|
|
249
|
+
rawRem: Record<"$8" | "$10" | "$12" | "$14" | "$16" | "$18" | "$20" | "$22" | "$24" | "$26" | "$28" | "$30" | "$32" | "$34" | "$36" | "$38" | "$40" | "$42" | "$44" | "$46" | "$48" | "$50" | "$52" | "$54" | "$56" | "$58" | "$60" | "$62" | "$64" | "$66" | "$68", string>;
|
|
250
|
+
semantic: Record<"$h1" | "$h2" | "$h3" | "$h4" | "$h5" | "$h6" | "$subtitle1" | "$subtitle2" | "$subtitle3" | "$body1" | "$body2" | "$body3" | "$button" | "$caption" | "$overline", string>;
|
|
251
|
+
}>;
|
|
252
|
+
motion: Readonly<{
|
|
253
|
+
kiUn: {
|
|
254
|
+
gentle: string;
|
|
255
|
+
sharp: string;
|
|
256
|
+
spread: string;
|
|
257
|
+
};
|
|
258
|
+
duration: {
|
|
259
|
+
decisive: string;
|
|
260
|
+
flow: string;
|
|
261
|
+
bleed: string;
|
|
262
|
+
};
|
|
263
|
+
}>;
|
|
264
|
+
stroke: Readonly<{
|
|
265
|
+
weight: {
|
|
266
|
+
sharp: string;
|
|
267
|
+
fine: string;
|
|
268
|
+
medium: string;
|
|
269
|
+
bold: string;
|
|
270
|
+
heavy: string;
|
|
271
|
+
};
|
|
272
|
+
ink: {
|
|
273
|
+
pressureLight: string;
|
|
274
|
+
pressureHeavy: string;
|
|
275
|
+
bleed: string;
|
|
276
|
+
};
|
|
277
|
+
sharp: "var(--asharyu-stroke-weight-fine) solid var(--asharyu-color-semantic-stroke)";
|
|
278
|
+
rough: "url(#ink-bleed-filter)";
|
|
279
|
+
}>;
|
|
280
|
+
interaction: Readonly<{
|
|
281
|
+
flow: {
|
|
282
|
+
sangSaeng: string;
|
|
283
|
+
};
|
|
284
|
+
feedback: {
|
|
285
|
+
sangGeukDecisive: string;
|
|
286
|
+
sangGeukSpread: string;
|
|
287
|
+
};
|
|
288
|
+
theme: {
|
|
289
|
+
bleed: string;
|
|
290
|
+
};
|
|
291
|
+
}>;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* 기운생동(氣韻生動)한 스타일 작성을 돕는 Tagged Template Literal입니다.
|
|
295
|
+
*/
|
|
296
|
+
export declare const css: (strings: TemplateStringsArray, ...values: any[]) => string;
|
|
297
|
+
export default AsharyuDesignToken;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asharyu Design System - Motion Tokens
|
|
3
|
+
* 기운생동(氣韻生動)의 원리를 담은 베지어 곡선과 시간 정의입니다.
|
|
4
|
+
*/
|
|
5
|
+
export declare const motion: Readonly<{
|
|
6
|
+
kiUn: {
|
|
7
|
+
gentle: string;
|
|
8
|
+
sharp: string;
|
|
9
|
+
spread: string;
|
|
10
|
+
};
|
|
11
|
+
duration: {
|
|
12
|
+
decisive: string;
|
|
13
|
+
flow: string;
|
|
14
|
+
bleed: string;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ColorValueProps {
|
|
2
|
+
readonly $metal: ValueProps;
|
|
3
|
+
readonly $water: ValueProps;
|
|
4
|
+
readonly $fire: ValueProps;
|
|
5
|
+
readonly $wood: ValueProps;
|
|
6
|
+
readonly $earth: ValueProps;
|
|
7
|
+
readonly $geukFireMetal: ValueProps;
|
|
8
|
+
readonly $geukWaterFire: ValueProps;
|
|
9
|
+
readonly $geukMetalWood: ValueProps;
|
|
10
|
+
readonly $geukEarthWater: ValueProps;
|
|
11
|
+
readonly $geukWoodEarth: ValueProps;
|
|
12
|
+
}
|
|
13
|
+
export interface ValueProps {
|
|
14
|
+
0: string;
|
|
15
|
+
1: string;
|
|
16
|
+
2: string;
|
|
17
|
+
3: string;
|
|
18
|
+
4: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const colorValue: Readonly<ColorValueProps>;
|
|
21
|
+
export default colorValue;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 수묵의 필치와 필압을 조절하는 스트로크 토큰
|
|
3
|
+
*/
|
|
4
|
+
export declare const stroke: Readonly<{
|
|
5
|
+
weight: {
|
|
6
|
+
sharp: string;
|
|
7
|
+
fine: string;
|
|
8
|
+
medium: string;
|
|
9
|
+
bold: string;
|
|
10
|
+
heavy: string;
|
|
11
|
+
};
|
|
12
|
+
ink: {
|
|
13
|
+
pressureLight: string;
|
|
14
|
+
pressureHeavy: string;
|
|
15
|
+
bleed: string;
|
|
16
|
+
};
|
|
17
|
+
sharp: "var(--asharyu-stroke-weight-fine) solid var(--asharyu-color-semantic-stroke)";
|
|
18
|
+
rough: "url(#ink-bleed-filter)";
|
|
19
|
+
}>;
|
|
20
|
+
export type StrokeType = typeof stroke;
|
package/package.json
CHANGED
package/dist/color/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare type MakeTokenSet<Value extends string, Scale extends number[]> = `$${Value}$${Scale[number]}`;
|
|
2
|
-
declare type ColorSchemaSet<T extends string> = `$${T}` | MakeTokenSet<T, [1, 2, 3, 4]>;
|
|
3
|
-
export interface YinYangProps {
|
|
4
|
-
schema: Record<ColorSchemaSet<'yin'> | ColorSchemaSet<'yang'>, string>;
|
|
5
|
-
}
|
|
6
|
-
export declare const yinYang: Readonly<YinYangProps>;
|
|
7
|
-
export interface FiveElementsProps {
|
|
8
|
-
schema: Record<ColorSchemaSet<'wood'> | ColorSchemaSet<'fire'> | ColorSchemaSet<'earth'> | ColorSchemaSet<'metal'> | ColorSchemaSet<'water'> | ColorSchemaSet<'firemetal'> | ColorSchemaSet<'metalwood'> | ColorSchemaSet<'woodearth'> | ColorSchemaSet<'earthwater'> | ColorSchemaSet<'waterfire'>, string>;
|
|
9
|
-
}
|
|
10
|
-
export declare const fiveElements: Readonly<FiveElementsProps>;
|
|
11
|
-
export declare const colorSchema: Readonly<import("./value").ColorValueProps>;
|
|
12
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ValueProps } from './value';
|
|
2
|
-
export interface SemanticValueProps {
|
|
3
|
-
$yin: ValueProps;
|
|
4
|
-
$yang: ValueProps;
|
|
5
|
-
$wood: ValueProps;
|
|
6
|
-
$fire: ValueProps;
|
|
7
|
-
$earth: ValueProps;
|
|
8
|
-
$metal: ValueProps;
|
|
9
|
-
$water: ValueProps;
|
|
10
|
-
$firebwmetal: ValueProps;
|
|
11
|
-
$metalbwwood: ValueProps;
|
|
12
|
-
$woodbwearth: ValueProps;
|
|
13
|
-
$earthbwwater: ValueProps;
|
|
14
|
-
$waterbwfire: ValueProps;
|
|
15
|
-
}
|
|
16
|
-
declare const semanticValue: Readonly<SemanticValueProps>;
|
|
17
|
-
export default semanticValue;
|
package/dist/color/value.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface ColorValueProps {
|
|
2
|
-
$white: ValueProps;
|
|
3
|
-
$black: ValueProps;
|
|
4
|
-
$red: ValueProps;
|
|
5
|
-
$blue: ValueProps;
|
|
6
|
-
$yellow: ValueProps;
|
|
7
|
-
$orangered: ValueProps;
|
|
8
|
-
$purple: ValueProps;
|
|
9
|
-
$aqua: ValueProps;
|
|
10
|
-
$orange: ValueProps;
|
|
11
|
-
$green: ValueProps;
|
|
12
|
-
}
|
|
13
|
-
export interface ValueProps {
|
|
14
|
-
0: string;
|
|
15
|
-
1: string;
|
|
16
|
-
2: string;
|
|
17
|
-
3: string;
|
|
18
|
-
4: string;
|
|
19
|
-
}
|
|
20
|
-
declare const colorValue: Readonly<ColorValueProps>;
|
|
21
|
-
export default colorValue;
|
package/dist/font/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @todo 폰트 사이즈 & 폰트 패밀리등 정의
|
|
3
|
-
*/
|
|
4
|
-
export declare const fontSizeSchema: Record<"$8" | "$10" | "$12" | "$14" | "$16" | "$18" | "$20" | "$22" | "$24" | "$26" | "$28" | "$30" | "$32" | "$34" | "$36" | "$38" | "$40" | "$42" | "$44" | "$46" | "$48" | "$50" | "$52" | "$54" | "$56" | "$58" | "$60" | "$62" | "$64" | "$66" | "$68", string>;
|
|
5
|
-
export interface FontSizeProps {
|
|
6
|
-
schema: Record<'$h1' | '$h2' | '$h3' | '$h4' | '$h5' | '$h6' | '$subtitle$1' | '$subtitle$2' | '$subTitle$3' | '$body$1' | '$body$2' | '$body$3' | '$button' | '$caption' | '$overline', string>;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @todo 해드 태그들 사이즈 조정이 필요함. 디자인 샘플을 보면서 조정해야할듯
|
|
10
|
-
*/
|
|
11
|
-
export declare const fontSize: Readonly<FontSizeProps>;
|
package/dist/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { yinYang, fiveElements, colorSchema } from './color';
|
|
2
|
-
import { fontSizeSchema, fontSize } from './font';
|
|
3
|
-
export { yinYang, fiveElements, colorSchema };
|
|
4
|
-
export { fontSize, fontSizeSchema };
|
|
5
|
-
declare const AsharyuDesignToken: {
|
|
6
|
-
color: Readonly<{
|
|
7
|
-
yinYang: Record<("$yin" | "$yin$1" | "$yin$2" | "$yin$3" | "$yin$4") | ("$yang" | "$yang$1" | "$yang$2" | "$yang$3" | "$yang$4"), string>;
|
|
8
|
-
fiveElements: Record<("$wood" | "$wood$1" | "$wood$2" | "$wood$3" | "$wood$4") | ("$fire" | "$fire$1" | "$fire$2" | "$fire$3" | "$fire$4") | ("$earth" | "$earth$1" | "$earth$2" | "$earth$3" | "$earth$4") | ("$metal" | "$metal$1" | "$metal$2" | "$metal$3" | "$metal$4") | ("$water" | "$water$1" | "$water$2" | "$water$3" | "$water$4") | ("$firemetal" | "$firemetal$1" | "$firemetal$2" | "$firemetal$3" | "$firemetal$4") | ("$metalwood" | "$metalwood$1" | "$metalwood$2" | "$metalwood$3" | "$metalwood$4") | ("$woodearth" | "$woodearth$1" | "$woodearth$2" | "$woodearth$3" | "$woodearth$4") | ("$earthwater" | "$earthwater$1" | "$earthwater$2" | "$earthwater$3" | "$earthwater$4") | ("$waterfire" | "$waterfire$1" | "$waterfire$2" | "$waterfire$3" | "$waterfire$4"), string>;
|
|
9
|
-
colorSchema: Readonly<import("./color/value").ColorValueProps>;
|
|
10
|
-
}>;
|
|
11
|
-
font: Readonly<{
|
|
12
|
-
fontSize: Record<"$h1" | "$h2" | "$h3" | "$h4" | "$h5" | "$h6" | "$subtitle$1" | "$subtitle$2" | "$subTitle$3" | "$body$1" | "$body$2" | "$body$3" | "$button" | "$caption" | "$overline", string>;
|
|
13
|
-
fontSizeSchema: Record<"$8" | "$10" | "$12" | "$14" | "$16" | "$18" | "$20" | "$22" | "$24" | "$26" | "$28" | "$30" | "$32" | "$34" | "$36" | "$38" | "$40" | "$42" | "$44" | "$46" | "$48" | "$50" | "$52" | "$54" | "$56" | "$58" | "$60" | "$62" | "$64" | "$66" | "$68", string>;
|
|
14
|
-
}>;
|
|
15
|
-
};
|
|
16
|
-
export default AsharyuDesignToken;
|