asharyu-design-token 2.0.4 → 2.1.0

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/dist/index.js CHANGED
@@ -325,6 +325,30 @@ var fontSize = Object.freeze({
325
325
  }
326
326
  });
327
327
  var semanticFontSize = fontSize.schema;
328
+ var fontFamily = Object.freeze({
329
+ serif: "'Gowun Batang', 'Noto Serif KR', serif",
330
+ sans: "'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', sans-serif",
331
+ mono: "'JetBrains Mono', 'Fira Code', Menlo, monospace"
332
+ });
333
+ var fontWeight = Object.freeze({
334
+ light: "300",
335
+ regular: "400",
336
+ medium: "500",
337
+ semibold: "600",
338
+ bold: "700"
339
+ });
340
+ var lineHeight = Object.freeze({
341
+ tight: "1.25",
342
+ normal: "1.5",
343
+ relaxed: "1.75",
344
+ loose: "2.0"
345
+ });
346
+ var letterSpacing = Object.freeze({
347
+ tight: "-0.02em",
348
+ normal: "0em",
349
+ wide: "0.04em",
350
+ loose: "0.08em"
351
+ });
328
352
 
329
353
  // src/motion/index.ts
330
354
  var motion = Object.freeze({
@@ -372,16 +396,81 @@ var interaction = Object.freeze({
372
396
  }
373
397
  });
374
398
 
399
+ // src/spacing/index.ts
400
+ var spacing = Object.freeze({
401
+ compact: "0.25rem",
402
+ fine: "0.5rem",
403
+ moderate: "0.75rem",
404
+ base: "1rem",
405
+ void: "1.5rem",
406
+ wide: "2rem",
407
+ spacious: "3rem",
408
+ vast: "4rem"
409
+ });
410
+
411
+ // src/radius/index.ts
412
+ var radius = Object.freeze({
413
+ sharp: "0px",
414
+ delicate: "0.25rem",
415
+ gentle: "0.5rem",
416
+ smooth: "0.75rem",
417
+ prominent: "1rem",
418
+ full: "9999px"
419
+ });
420
+
421
+ // src/elevation/index.ts
422
+ var elevation = Object.freeze({
423
+ none: "none",
424
+ damMuk: "0 1px 3px var(--asharyu-color-semantic-bleed-soft), 0 2px 8px var(--asharyu-color-semantic-bleed-primary)",
425
+ jungMuk: "0 4px 16px var(--asharyu-color-semantic-bleed-primary), 0 2px 4px var(--asharyu-color-semantic-bleed-soft)",
426
+ nongMuk: "0 12px 32px var(--asharyu-color-semantic-bleed-primary), 0 4px 12px var(--asharyu-color-semantic-bleed-soft)",
427
+ gukMuk: "0 20px 48px var(--asharyu-color-semantic-bleed-primary), 0 8px 16px var(--asharyu-color-semantic-bleed-soft)"
428
+ });
429
+
430
+ // src/zIndex/index.ts
431
+ var zIndex = Object.freeze({
432
+ base: "0",
433
+ raised: "1",
434
+ docked: "10",
435
+ sticky: "100",
436
+ dropdown: "200",
437
+ backdrop: "500",
438
+ modal: "600",
439
+ popover: "700",
440
+ toast: "800",
441
+ tooltip: "900",
442
+ max: "9999"
443
+ });
444
+
375
445
  // src/index.ts
446
+ var semanticActiveAndThemes = Object.freeze({
447
+ ...semanticValue.light,
448
+ light: semanticValue.light,
449
+ dark: semanticValue.dark
450
+ });
376
451
  var color = Object.freeze({
377
452
  raw: colorValue,
378
- semantic: semanticValue
453
+ semantic: semanticActiveAndThemes
379
454
  });
380
455
  var font = Object.freeze({
381
456
  rawRem: rawFontSizeRem,
382
- semantic: semanticFontSize
457
+ semantic: semanticFontSize,
458
+ family: fontFamily,
459
+ weight: fontWeight,
460
+ lineHeight,
461
+ letterSpacing
383
462
  });
384
- var AsharyuDesignToken = { color, font, motion, stroke, interaction };
463
+ var AsharyuDesignToken = {
464
+ color,
465
+ font,
466
+ spacing,
467
+ radius,
468
+ elevation,
469
+ zIndex,
470
+ motion,
471
+ stroke,
472
+ interaction
473
+ };
385
474
  var normalizeKey = (key) => key.replace(/^\$/, "").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
386
475
  var createBridge = (obj, path = ["asharyu"]) => {
387
476
  const bridge = {};
@@ -404,9 +493,20 @@ export {
404
493
  colorValue,
405
494
  css,
406
495
  src_default as default,
496
+ elevation,
497
+ fontFamily,
498
+ fontWeight,
499
+ interaction,
500
+ letterSpacing,
501
+ lineHeight,
502
+ motion,
407
503
  normalizeKey,
504
+ radius,
408
505
  rawFontSizeRem,
409
506
  semanticFontSize,
410
507
  semanticValue,
411
- tokens
508
+ spacing,
509
+ stroke,
510
+ tokens,
511
+ zIndex
412
512
  };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Asharyu Design System - Radius Tokens
3
+ * 곡률의 미학: 검의 예리한 직선부터 태극의 완만한 곡선까지 모서리의 성격을 규정합니다.
4
+ */
5
+ export declare const radius: Readonly<{
6
+ /** 예리함: 검으로 벤 듯한 각진 모서리 (0px) */
7
+ sharp: "0px";
8
+ /** 정갈함: 절제된 최소 곡선 (4px) */
9
+ delicate: "0.25rem";
10
+ /** 온화함: 부드러운 상생의 곡률 (8px) */
11
+ gentle: "0.5rem";
12
+ /** 유려함: 담채의 번짐처럼 유연한 곡률 (12px) */
13
+ smooth: "0.75rem";
14
+ /** 원만함: 카드 및 컨테이너를 위한 넉넉한 둥글림 (16px) */
15
+ prominent: "1rem";
16
+ /** 태극: 뱃지, 필, 아바타, 원형 버튼을 위한 완전한 둥글림 */
17
+ full: "9999px";
18
+ }>;
19
+ export type RadiusType = typeof radius;
20
+ export default radius;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Asharyu Design System - Spacing & Void Tokens
3
+ * 여백(餘白, Void)의 미학: 수묵과 한지의 숨구멍을 형성하는 공간 정의입니다.
4
+ */
5
+ export declare const spacing: Readonly<{
6
+ /** 찰나: 아이콘 간격, 태그 내부 등 초미세 간격 (4px) */
7
+ compact: "0.25rem";
8
+ /** 세목: 인라인 요소, 작은 패딩 등 정갈한 간격 (8px) */
9
+ fine: "0.5rem";
10
+ /** 근거리: 폼 컨트롤 내부, 리스트 아이템 간격 (12px) */
11
+ moderate: "0.75rem";
12
+ /** 평상: 기본 패딩, 카드 내부 간격 (16px) */
13
+ base: "1rem";
14
+ /** 여백: 컴포넌트 간 여백, 한지의 숨구멍 (24px) */
15
+ void: "1.5rem";
16
+ /** 심원: 섹션 내부 그룹핑 여백 (32px) */
17
+ wide: "2rem";
18
+ /** 대여백: 주요 컴포넌트 및 섹션 간 여백 (48px) */
19
+ spacious: "3rem";
20
+ /** 광막: 페이지 레벨의 시원한 여백 (64px) */
21
+ vast: "4rem";
22
+ }>;
23
+ export type SpacingType = typeof spacing;
24
+ export default spacing;