@iyulab/components 2.28.1 → 2.30.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -1
  3. package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -1
  4. package/dist/components/UFormControlElement.d.ts +6 -0
  5. package/dist/components/UFormControlElement.js +4 -0
  6. package/dist/components/badge/UBadge.d.ts +2 -2
  7. package/dist/components/badge/UBadge.styles.js +4 -0
  8. package/dist/components/button/UButton.d.ts +2 -2
  9. package/dist/components/button/UButton.styles.js +7 -0
  10. package/dist/components/checkbox/UCheckbox.d.ts +1 -1
  11. package/dist/components/checkbox/UCheckbox.styles.js +5 -0
  12. package/dist/components/date-picker/UDatePicker.js +1 -0
  13. package/dist/components/date-range-picker/UDateRangePicker.js +1 -0
  14. package/dist/components/field/UField.d.ts +7 -3
  15. package/dist/components/field/UField.js +24 -3
  16. package/dist/components/field/UField.styles.js +2 -0
  17. package/dist/components/file-input/UFileInput.js +1 -0
  18. package/dist/components/input/UInput.js +1 -0
  19. package/dist/components/radio/URadio.js +1 -0
  20. package/dist/components/rating/URating.js +1 -0
  21. package/dist/components/select/USelect.js +1 -0
  22. package/dist/components/slider/USlider.js +1 -0
  23. package/dist/components/spinner/USpinner.d.ts +1 -1
  24. package/dist/components/spinner/USpinner.styles.js +1 -0
  25. package/dist/components/tab/UTab.d.ts +12 -0
  26. package/dist/components/tab/UTab.js +14 -2
  27. package/dist/components/tab/UTab.styles.js +10 -0
  28. package/dist/components/tag/UTag.d.ts +2 -2
  29. package/dist/components/tag/UTag.styles.js +8 -0
  30. package/dist/components/textarea/UTextarea.js +1 -0
  31. package/dist/styles/dark.css +10 -1
  32. package/dist/styles/light.css +12 -1
  33. package/package.json +1 -1
  34. package/skills/iyulab-components/references/components/badge.md +1 -1
  35. package/skills/iyulab-components/references/components/button.md +2 -2
  36. package/skills/iyulab-components/references/components/checkbox.md +1 -1
  37. package/skills/iyulab-components/references/components/chip.md +1 -1
  38. package/skills/iyulab-components/references/components/date-picker.md +1 -0
  39. package/skills/iyulab-components/references/components/date-range-picker.md +1 -0
  40. package/skills/iyulab-components/references/components/field.md +8 -4
  41. package/skills/iyulab-components/references/components/file-input.md +1 -0
  42. package/skills/iyulab-components/references/components/input.md +1 -0
  43. package/skills/iyulab-components/references/components/select.md +1 -0
  44. package/skills/iyulab-components/references/components/spinner.md +1 -1
  45. package/skills/iyulab-components/references/components/tab-panel.md +1 -0
  46. package/skills/iyulab-components/references/components/tag.md +2 -2
  47. package/skills/iyulab-components/references/components/textarea.md +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.30.0] - 2026-10-17
4
+
5
+ ### Added
6
+
7
+ - Form controls (`u-input`, `u-select`, `u-textarea`, `u-date-picker`, `u-date-range-picker`, `u-file-input`,
8
+ `u-radio`, `u-rating`, `u-slider`) take `description-display` (`inline` · `hint`) for the field they render — empty
9
+ follows the app-wide `UField.descriptionDisplay`. Fold help text into hints app-wide and keep a note about the
10
+ current state (why a field is locked, an input limit) under its control.
11
+ - `u-tab` `count-appearance` — `badge` (the pill, default) or `plain` (no pill: a smaller, weaker number beside the
12
+ label, for a detail page with many tabs where seven pills read before the labels). `UTab.countAppearance` sets the app
13
+ default; a tab's own attribute wins.
14
+
15
+ ### Fixed
16
+
17
+ - `description-display="hint"`: a programmatic `focus()` no longer opens the hint — a drawer or dialog focusing its first
18
+ field on open showed that field's tooltip over the control and blocked clicks on it. The hint opens on Tab (and on
19
+ hover and tap, as before). The open tooltip also lets clicks through to what is under it.
20
+
21
+ ## [2.29.0] - 2026-10-17
22
+
23
+ ### Added
24
+
25
+ - Role colour `secondary` — a second brand colour next to `primary`, with no status meaning. The token sheets define
26
+ `--u-secondary-color-weakest` · `-weaker` · `-weak` · `--u-secondary-color` · `-strong`, `--u-secondary-txt-color` and
27
+ `--u-secondary-bg-color` (default: the purple ramp, distinct from the blue of `primary`/`info` and from the status hues),
28
+ under the same contrast contract as the other roles in light and dark. `u-button`, `u-tag`, `u-chip`, `u-badge`,
29
+ `u-checkbox` and `u-spinner` accept `color="secondary"`. Status-only surfaces (`u-alert`, `u-progress-bar` and
30
+ `u-progress-ring` statuses) do not, as they do not accept `primary`.
31
+
3
32
  ## [2.28.1] - 2026-10-16
4
33
 
5
34
  ### Fixed
@@ -1,4 +1,4 @@
1
1
  //#region \0glob-assets_raw/dark.css.e8ac080d
2
- var dark_css_default = "/*\n * 🔴Cascade layers — `@layer iyu.base, iyu.house;`\n *\n * iyu.base this sheet (neutral defaults every component can render with)\n * iyu.house a house theme such as `@iyulab/house-style`\n * (none) the application's own CSS — unlayered, so it always wins\n *\n * Unlayered styles beat every layer regardless of specificity or source order, so an\n * application overrides a token with a plain `:root { --u-… }` — no `:root:root` or\n * `:not([theme])` tricks, and no dependence on when `Theme.init()` injects this sheet.\n * ⚠That includes dark mode: an unlayered `:root` override applies in both themes. Scope it\n * with `:root[theme=\"dark\"]` (or `:root:not([theme=\"dark\"])`) when the value is mode-specific.\n *\n * The order statement is repeated by every sheet that joins a layer, so whichever loads\n * first fixes the same order.\n */\n@layer iyu.base, iyu.house;\n\n@layer iyu.base {\n:root[theme=\"dark\"] {\n color-scheme: dark;\n\n /* Neutral Colors */\n --u-neutral-0: #000000;\n --u-neutral-50: #0A0A0A;\n --u-neutral-100: #121212;\n --u-neutral-200: #1E1E1E;\n --u-neutral-300: #2A2A2A;\n --u-neutral-400: #3D3D3D;\n --u-neutral-500: #525252;\n --u-neutral-600: #6E6E6E;\n --u-neutral-700: #8A8A8A;\n --u-neutral-800: #B0B0B0;\n --u-neutral-900: #D4D4D4;\n --u-neutral-1000: #FFFFFF;\n\n /* Blue Colors */\n --u-blue-0: #030D1A;\n --u-blue-100: #061629;\n --u-blue-200: #0A223B;\n --u-blue-300: #103150;\n --u-blue-400: #174167;\n --u-blue-500: #205281;\n --u-blue-600: #2A659D;\n --u-blue-700: #3678B8;\n --u-blue-800: #478DCE;\n --u-blue-900: #5DA2DF;\n --u-blue-1000: #79BBEA;\n\n /* Green Colors */\n --u-green-0: #06140C;\n --u-green-100: #0A2114;\n --u-green-200: #10301D;\n --u-green-300: #164228;\n --u-green-400: #1F5535;\n --u-green-500: #2A6942;\n --u-green-600: #367E50;\n --u-green-700: #4A9563;\n --u-green-800: #63AB7A;\n --u-green-900: #80BE97;\n --u-green-1000: #9BCFB1;\n\n /* Yellow Colors */\n --u-yellow-0: #1C1300;\n --u-yellow-100: #2D1E00;\n --u-yellow-200: #402B00;\n --u-yellow-300: #553900;\n --u-yellow-400: #6B4900;\n --u-yellow-500: #825A00;\n --u-yellow-600: #9A6C00;\n --u-yellow-700: #B08012;\n --u-yellow-800: #C69635;\n --u-yellow-900: #D9AD5A;\n --u-yellow-1000: #E8C57F;\n\n /* Red Colors */\n --u-red-0: #1C0707;\n --u-red-100: #2C0B0B;\n --u-red-200: #3E1111;\n --u-red-300: #541818;\n --u-red-400: #6C2020;\n --u-red-500: #852A2A;\n --u-red-600: #A13535;\n --u-red-700: #B94949;\n --u-red-800: #CB6262;\n --u-red-900: #D98383;\n --u-red-1000: #E7A2A2;\n\n /* Orange Colors */\n --u-orange-0: #1D0E00;\n --u-orange-100: #2F1700;\n --u-orange-200: #421F00;\n --u-orange-300: #582A00;\n --u-orange-400: #703600;\n --u-orange-500: #8A4500;\n --u-orange-600: #A55600;\n --u-orange-700: #BD6A18;\n --u-orange-800: #D1823C;\n --u-orange-900: #E19D67;\n --u-orange-1000: #EDB992;\n\n /* Teal Colors */\n --u-teal-0: #041411;\n --u-teal-100: #07201B;\n --u-teal-200: #0B2E28;\n --u-teal-300: #10403A;\n --u-teal-400: #16544D;\n --u-teal-500: #1E6860;\n --u-teal-600: #297D74;\n --u-teal-700: #3A9389;\n --u-teal-800: #54A89F;\n --u-teal-900: #73BBB3;\n --u-teal-1000: #93CBC5;\n\n /* Cyan Colors */\n --u-cyan-0: #041318;\n --u-cyan-100: #071F29;\n --u-cyan-200: #0B2D3A;\n --u-cyan-300: #104050;\n --u-cyan-400: #165469;\n --u-cyan-500: #1E6A82;\n --u-cyan-600: #287F9C;\n --u-cyan-700: #3995B5;\n --u-cyan-800: #53AACC;\n --u-cyan-900: #73BEDD;\n --u-cyan-1000: #95CFE8;\n\n /* Purple Colors */\n --u-purple-0: #150A22;\n --u-purple-100: #220F36;\n --u-purple-200: #31164B;\n --u-purple-300: #432064;\n --u-purple-400: #572B80;\n --u-purple-500: #6C379C;\n --u-purple-600: #8245B7;\n --u-purple-700: #975BCB;\n --u-purple-800: #AB79D9;\n --u-purple-900: #BD99E2;\n --u-purple-1000: #CEB8EA;\n\n /* Pink Colors */\n --u-pink-0: #1F0A14;\n --u-pink-100: #310F20;\n --u-pink-200: #451532;\n --u-pink-300: #5C1D45;\n --u-pink-400: #74285A;\n --u-pink-500: #8F336F;\n --u-pink-600: #AB4187;\n --u-pink-700: #C0569D;\n --u-pink-800: #D174B3;\n --u-pink-900: #E095C7;\n --u-pink-1000: #EBB5D9;\n\n /* ==========================================================================\n Role Colors — 의미 역할 층\n 컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.\n 브랜드 색 교체는 아래 25개만 재정의하면 시맨틱 층까지 따라온다.\n\n 단은 '강도' 축이다 (weakest -> strong). 용도(배경/테두리/텍스트)는\n 소비처가 정한다 -- 단을 속성에 묶으면 primary 버튼의 배경이 어느\n 단인지 같은 모순이 생긴다.\n\n ★**다만 두 단은 용도가 확정돼 있다** — 대비 요구가 서로 다르기 때문이다.\n `-color` = **면**. `--u-*-txt-color` 가 그 위에 얹히므로 on-color 기준 4.5.\n `-strong` = **글자·아이콘**. `--u-bg-color` 위에 놓이므로 바탕 기준 4.5.\n 라이트에서는 바탕도 on-color 도 흰색이라 두 요구가 한 조건으로 합쳐지지만,\n **다크에서는 정반대 방향**이다(바탕 #121212 · on-color #FFFFFF). 바탕에서 읽히는\n 밝은 단은 흰 글자를 못 받고, 흰 글자를 받는 어두운 단은 바탕에서 안 읽힌다.\n ⇒ 다크에서 `-color` 와 `-strong` 이 두 단 벌어지는 것이 그 결과다.\n `tests/build/token-contrast.test.ts` 가 값을 지킨다.\n ========================================================================== */\n\n /* primary — 브랜드 · 강조 · 포커스 · 링크 */\n --u-primary-color-weakest: var(--u-blue-200);\n --u-primary-color-weaker: var(--u-blue-300);\n --u-primary-color-weak: var(--u-blue-500);\n --u-primary-color: var(--u-blue-600); /* 면: 흰 글자 6.09 ✓ */\n --u-primary-color-strong: var(--u-blue-800); /* 글자: 바탕 5.32 ✓ (700 은 4.05 ✗) */\n\n /* info — 정보 안내 (primary 와 기본값은 같으나 역할이 다르다 — 브랜딩은 primary 만 바꾼다) */\n --u-info-color-weakest: var(--u-blue-200);\n --u-info-color-weaker: var(--u-blue-300);\n --u-info-color-weak: var(--u-blue-500);\n --u-info-color: var(--u-blue-600);\n --u-info-color-strong: var(--u-blue-800);\n\n /* success — 성공 · 완료 */\n --u-success-color-weakest: var(--u-green-200);\n --u-success-color-weaker: var(--u-green-300);\n --u-success-color-weak: var(--u-green-500);\n --u-success-color: var(--u-green-600);\n --u-success-color-strong: var(--u-green-700);\n\n /* warning — 주의 */\n --u-warning-color-weakest: var(--u-yellow-200);\n --u-warning-color-weaker: var(--u-yellow-300);\n --u-warning-color-weak: var(--u-yellow-500);\n --u-warning-color: var(--u-yellow-600);\n --u-warning-color-strong: var(--u-yellow-700);\n\n /* danger — 오류 · 위험 · 유효성 실패 */\n --u-danger-color-weakest: var(--u-red-200);\n --u-danger-color-weaker: var(--u-red-300);\n --u-danger-color-weak: var(--u-red-500);\n --u-danger-color: var(--u-red-600); /* 면: 흰 글자 6.83 ✓ */\n --u-danger-color-strong: var(--u-red-800); /* 글자: 바탕 4.87 ✓ (700 은 3.67 ✗) */\n /* Text Colors */\n --u-txt-color: var(--u-neutral-900);\n --u-txt-color-inverse: var(--u-neutral-100);\n\n /* 유채색 배경 위의 글자 — warning 만 다르다(light.css 참조). */\n --u-primary-txt-color: #FFFFFF;\n --u-info-txt-color: #FFFFFF;\n --u-success-txt-color: #FFFFFF;\n --u-danger-txt-color: #FFFFFF;\n /* ★라이트 시트와 같은 이유로 중립 최상단을 쓴다 — 다크에서는 그 값이 #FFFFFF 라\n 결과가 종전과 같다(4.65 ✓). 리터럴 대신 토큰을 쓰는 이유는 라이트에서 뒤집히기\n 때문이다(#000000). 두 시트가 같은 선언이 되어 어긋날 자리가 없어진다. */\n --u-warning-txt-color: var(--u-neutral-1000);\n --u-txt-color-hover: var(--u-primary-color-strong);\n --u-txt-color-active: var(--u-primary-color-strong);\n --u-txt-color-disabled: var(--u-neutral-500);\n /* 라이트와 같은 기준 — 놓이는 모든 면에서 AA. neutral-700(#8A8A8A)은 바탕 5.43 ·\n 올림면(neutral-300) 4.16 · active 면(neutral-400) 3.15 로 미달이었다.\n neutral-800(#B0B0B0) = 8.64 · 6.62 · 5.01. 본문(neutral-900)과의 대비비 1.46. */\n --u-txt-color-weak: var(--u-neutral-800);\n /* ★Third text step — metadata, units, secondary columns, an empty value's dash: text that\n must stay readable (5.0 on the surface) but should recede behind -weak. Not a placeholder or a\n disabled colour (those are -disabled). */\n --u-txt-color-weaker: var(--u-neutral-700);\n --u-txt-color-strong: var(--u-neutral-1000);\n\n --u-link-txt-color: var(--u-primary-color-strong);\n --u-tooltip-txt-color: var(--u-neutral-100);\n\n /* Icon Colors */\n --u-icon-color: var(--u-neutral-800);\n --u-icon-color-inverse: var(--u-neutral-100);\n --u-icon-color-hover: var(--u-primary-color-strong);\n --u-icon-color-active: var(--u-primary-color-strong);\n --u-icon-color-disabled: var(--u-neutral-500);\n\n /* Border Colors\n ★`-weak` 는 `neutral-300` 일 수 없다 — `--u-bg-color-raised` 가 같은 단이라, 올림면(사이드바·\n 표 머리/행·마스터-디테일 구분선) 위에 그리는 약한 선이 **면과 같은 색**(대비 1.00)이 되어\n 화면에서 사라진다. 라이트는 200 단이 올림면(50)과 떨어져 있어 보인다. 램프에서 올림면(300)\n 위로 올릴 수 있는 다음 단이 400 뿐이라 `-weak` 는 이 테마에서 `--u-border-color` 와 같은\n 단이다 — 다크에서는 «약함/보통» 두 단이 하나로 합쳐지지만, 종전 `-weak` 는 그것이 쓰이는\n 면 위에서 애초에 구별되지 않았다. */\n --u-border-color: var(--u-neutral-400);\n --u-border-color-weak: var(--u-neutral-400);\n --u-border-color-strong: var(--u-neutral-500);\n --u-border-color-hover: var(--u-neutral-500);\n\n /* ★상태 테두리는 `-strong` 단이다 — light.css 의 같은 자리 주석 참조.\n 이 테마가 실제로 미달이었다: focus 2.74 · invalid 2.44 → 4.74 / 4.34. */\n --u-input-border-color: var(--u-neutral-400);\n --u-input-border-color-hover: var(--u-neutral-500);\n --u-input-border-color-focus: var(--u-primary-color-strong);\n --u-input-border-color-invalid: var(--u-danger-color-strong);\n\n /* Focus ring — a graphic drawn over the background, so it must clear 3:1 against it\n (WCAG 1.4.11). Defaults to the primary text step; a theme whose primary is a neutral\n ink can point it at an interaction hue instead. */\n --u-focus-ring-color: var(--u-primary-color-strong);\n\n /* Selection — the mark of a chosen option (a checked checkbox, a selected radio, a switch that is on, a\n selected row's checkbox) and the check drawn on it. Defaults to the primary pair; a theme whose primary\n is a neutral ink can point the selection at an interaction hue, the way it does the focus ring. */\n --u-selection-color: var(--u-primary-color);\n --u-selection-txt-color: var(--u-primary-txt-color);\n\n /* Background Colors */\n --u-bg-color: var(--u-neutral-100);\n --u-bg-color-inverse: var(--u-neutral-0);\n --u-bg-color-hover: var(--u-neutral-300);\n --u-bg-color-active: var(--u-neutral-400);\n --u-bg-color-disabled: var(--u-neutral-100);\n\n /* ★Canvas — the application background **behind** surfaces (page body, shell side\n panels). `--u-bg-color` is the surface: components paint their own face with it\n (buttons, menu items, options, tags, table bodies, sheets), so tinting it to make a\n page background greys every control inside a white card. Paint the page with this\n token instead and keep `--u-bg-color` as the surface. */\n --u-canvas-bg-color: var(--u-neutral-50);\n\n /* 면 높이 — 상세는 light.css 참조. 다크는 **바탕보다 밝은 쪽**이 위다.\n neutral-300(#2A2A2A)은 바탕(#121212) 대비 1.42 로, 소비 측이 오버라이드로 쓰던\n neutral-200(1.15)보다 실제로 더 잘 구분된다 — 그 오버라이드가 해결하려던 증상이\n *\"툴바·헤더가 배경에 묻힌다\"* 였다. */\n --u-bg-color-raised: var(--u-neutral-300);\n\n /* ★올림면 위의 hover — `--u-bg-color-hover`(전역, 바탕면 전용)와 값이 같아서\n («둘 다 neutral-300») 카드·표 머리 위에 마우스를 올려도 아무 일도 안 일어났다\n (소비자 실측). 전역 토큰 하나로는 \"지금 위에 있는 면\"을\n 알 방법이 없어(참조 지점마다 계산 기준이 다를 수 없다) **전용 토큰**을 신설한다.\n\n ⚠**A안**(`raised`를 neutral-200으로) — 과거에 거부된 값(위 주석). **B안**(전역\n `hover`를 neutral-400으로) — `--u-bg-color-active` 와 충돌해 결함이 다른 쌍으로\n 옮겨간다. ⇒ hover 는 본래 \"현재 면보다 한 단 위\"이지 절대 단이 아니므로\n `color-mix()` 로 raised 자신을 기준 삼아 상대 계산한다.\n\n N=6% 는 raised(L≈0.023)와 active(L≈0.047, neutral-400) 사이 대비 계산으로 골랐다 —\n 결과 L≈0.038, raised 대비 ≈1.21(라이트의 기존 \"약한\" 1.04보다 뚜렷하고, `bg→raised`\n 의 기존 1.31 과 비슷한 체감), active 와는 값이 달라 겹치지 않는다(≈#373737 vs\n active #3D3D3D). N 을 더 올리면(≈10%+) active 를 넘어서 순서가 뒤집힌다 — 확인함. */\n --u-bg-color-raised-hover: color-mix(in srgb, var(--u-bg-color-raised), white 6%);\n\n /* 유채색 표면 — 라이트와 **같은 단이 아니라 같은 세기**로 짝지었다(light.css 참조).\n 팔레트 유채색 틴트가 다크에서 짓눌리므로 한 단 위를 쓴다. green 은 대칭이라 그대로. */\n --u-primary-bg-color: var(--u-blue-100);\n --u-info-bg-color: var(--u-blue-100);\n --u-success-bg-color: var(--u-green-0);\n --u-danger-bg-color: var(--u-red-100);\n /* warning 합류 — 라이트는 yellow-200 이다(단 이름이 다른 이유는 light.css 참조). */\n --u-warning-bg-color: var(--u-yellow-100);\n\n --u-input-bg-color: var(--u-neutral-200);\n --u-panel-bg-color: var(--u-neutral-200);\n --u-overlay-bg-color: rgba(0, 0, 0, 0.7);\n --u-tooltip-bg-color: rgba(255, 255, 255, 0.85);\n\n /* Shadow Colors */\n --u-shadow-color-weaker: rgba(0, 0, 0, 0.15);\n --u-shadow-color-weak: rgba(0, 0, 0, 0.25);\n --u-shadow-color-normal: rgba(0, 0, 0, 0.35);\n --u-shadow-color-strong: rgba(0, 0, 0, 0.45);\n --u-shadow-color-stronger: rgba(0, 0, 0, 0.60);\n\n /* Elevation Scale — 근거는 light.css 의 같은 자리 주석 참조.\n ★다크는 알파가 3배 가까이 진하다 — 리터럴로 흩어져 있던 종전에는 이 차이가\n 적용되지 않아 다크에서 그림자가 사실상 보이지 않았다. */\n --u-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 1px rgba(0, 0, 0, 0.14); /* = shadow-color-weak */\n --u-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.18); /* = shadow-color-normal */\n --u-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.22); /* = shadow-color-strong */\n --u-shadow-xl: 0 6px 18px rgba(0, 0, 0, 0.60), 0 2px 6px rgba(0, 0, 0, 0.30); /* = shadow-color-stronger */\n\n\n /* ==========================================================================\n Chart categorical palette — 다크 면(#121212 · 올림면 #2A2A2A)에 대해 **따로 고른** 여덟 칸\n ★램프를 참조하지 않는 이유: 다크 장식 램프는 채도가 낮아(면 위 배지·태그용) 차트 계열로는\n 회색처럼 읽힌다 — 램프의 단 조합 39만 가지 중 검증을 통과한 것이 없었다. 그래서 라이트\n 여덟 칸과 **같은 색상·순서**를 OKLCH 밝기만 다크 대역으로 옮겨 잡았다.\n 검증: 밝기 0.48–0.67 · 채도 ≥ 0.1 · 색각 이상 이웃 ΔE ≥ 9.5 · 정상 시각 이웃 ΔE ≥ 25.1 ·\n 두 면 모두 대비 ≥ 3:1. 순서는 light.css 와 같다.\n ========================================================================== */\n --u-chart-color-1: #247EDB;\n --u-chart-color-2: #D03E73;\n --u-chart-color-3: #0DA1B2;\n --u-chart-color-4: #ED5711;\n --u-chart-color-5: #059183;\n --u-chart-color-6: #D96D04;\n --u-chart-color-7: #AE48CB;\n --u-chart-color-8: #4AA74D;\n\n /* Scrollbar Colors */\n --u-scrollbar-color: var(--u-neutral-500);\n --u-scrollbar-color-hover: var(--u-neutral-600);\n --u-scrollbar-track-color: transparent;\n}\n\n/* ==========================================================================\n ★모드와 무관한 스케일 — 반경·여백·글자 스케일·모션·글꼴.\n 값이 light.css 와 **같다.** 그런데 위 블록(`:root[theme=\"dark\"]`, 특이도 0,1,1)에 두면\n `:root`(0,1,0)로 이 토큰을 덮는 **모든 층**(하우스 프리셋·소비자 브랜드 시트)이 다크\n 모드에서만 **로드 순서와 무관하게** 진다 — 에러도 경고도 없이, 색은 정상으로 바뀌므로\n «다크가 잘 된다» 로 보인다. `:where()` 로 특이도를 `:root` 와 같게 두면 층 모델이 라이트와\n 똑같이 로드 순서로 선다.\n ⚠이 블록을 지우지 말 것 — 이 시트만 쓰는 «고정 다크 디자인» 소비자(docs/theming.md)는\n 이 토큰들을 여기서 받는다. 두 시트를 함께 쓸 때는 값이 같으므로 어느 쪽이 이겨도 같다.\n ========================================================================== */\n:root:where([theme=\"dark\"]) {\n /* Field box — mode-independent (same as light.css). */\n --u-field-padding-block: 0.3em;\n --u-field-padding-inline: 0.6em;\n --u-field-radius: 0.25em;\n\n /* ==========================================================================\n Radius Scale — 모서리 반경\n 리터럴을 흩뿌리면 값이 갈린다(실제로 pill 이 999px/9999px 두 표기로 나뉘어 있었다).\n ========================================================================== */\n --u-radius-none: 0;\n --u-radius-sm: 3px;\n --u-radius-md: 4px;\n --u-radius-lg: 6px;\n --u-radius-xl: 8px;\n /* ★상단 2단은 **면(surface)용**이다 — 카드·패널·대화상자처럼 큰 사각형은 컨트롤과\n 같은 반경을 쓰면 각져 보인다. 기존 5단은 **컨트롤용**이고 값을 바꾸지 않는다\n (바꾸면 모든 소비자의 버튼·입력이 동시에 움직인다). */\n --u-radius-2xl: 12px;\n --u-radius-3xl: 16px;\n --u-radius-pill: 9999px;\n --u-radius-circle: 50%;\n\n /* ==========================================================================\n Layer Scale — 페이지 전역에서 겹치는 표면의 쌓임 순서\n 컴포넌트 «안» 의 국소 순서(1~100)는 그 컴포넌트의 쌓임 맥락 안에서만 뜻이 있어 여기 두지 않는다.\n 여기는 서로 다른 패키지의 표면이 페이지에서 다투는 층이다 — 값을 흩뿌리면 층이 갈린다\n (셸 1000 · 플로팅 1000 · 오버레이 9999 · 라이트박스 9999 가 각자 숫자였다).\n 오버레이 띠의 실제 값은 OverlayManager 가 «동시에 열린 깊이» 로 인라인에 쓴다 — 이 토큰은\n 그 띠의 시작값(열리기 전 기본값)이고 OverlayManager.OVERLAY_BASE 와 같아야 한다.\n ========================================================================== */\n --u-layer-shell: 1000; /* 앱 셸의 사이드바·모바일 머리 */\n --u-layer-floating: 1000; /* 팝오버·목록·메뉴 — 앵커를 따라 뜨는 표면 */\n --u-layer-overlay: 9999; /* 대화상자·서랍·라이트박스 — 화면을 덮는 표면 */\n\n /* ==========================================================================\n Space Scale — 컨테이너·오버레이의 절대 여백\n ⚠**여백은 하나의 축이 아니다.** 이 스케일은 컨테이너/오버레이의 **레이아웃 여백**만\n 담당한다. 폼·인라인 요소의 `em` 여백은 상속된 `font-size` 에 비례하는 것이 의도이므로\n **여기로 흡수하지 않는다.** 반경과 마찬가지로 테마와 무관하므로 두 시트가 같다.\n 축 구분과 근거는 docs/design-tokens.md 참조.\n ========================================================================== */\n --u-space-3xs: 2px;\n --u-space-2xs: 4px;\n --u-space-xs: 6px;\n --u-space-sm: 8px;\n --u-space-md: 12px;\n --u-space-lg: 16px;\n /* ★상단 4단은 **화면 리듬**이다 — 카드 안쪽 여백(20~24)·섹션 간격(24~32)·페이지 여백\n (32~40). 종전에는 이 구간이 통째로 비어 있어 소비자가 전부 리터럴로 적었고,\n 그래서 앱마다 화면 밀도가 달라졌다. `lg`(16px) 이하는 **요소 사이**, `xl` 이상은\n **영역 사이**로 나눠 쓴다.\n ⚠`xs: 6px` 는 4px 격자에서 벗어나 있으나 **바꾸지 않는다** — 이미 배선된 컨트롤\n 여백이 전부 움직인다. 신규 단은 전부 4의 배수로 둔다. */\n --u-space-xl: 20px;\n --u-space-2xl: 24px;\n --u-space-3xl: 32px;\n --u-space-4xl: 40px;\n\n /* ==========================================================================\n Type Scale — 글자 크기·굵기·행간·자간의 **한 벌**\n ★**크기만 주면 스케일이 되지 않는다.** 소비자가 크기만 받고 굵기·행간을 각자 정하면\n 결국 화면마다 다른 위계가 생긴다 — 그래서 네 값을 **단 단위로 묶어** 낸다.\n\n 단 이름은 크기가 아니라 **역할**이다(`lg`/`xl` 이 아니라 `title`/`label`). 역할로 두면\n 소비자가 *\"어느 크기를 쓸까\"* 가 아니라 *\"이 글자는 무엇인가\"* 를 묻게 된다.\n\n ★**한글 기준으로 값을 골랐다**:\n ⑴ 행간은 **1.4 이상**. 라틴 관례(1.2)는 한글에서 답답하다 — 받침 때문에 글자 상자가\n 세로로 꽉 차 있어 라틴과 같은 행간이면 줄이 붙어 보인다.\n ⑵ 자간은 **0 이 기본**이고 큰 제목만 **음수**. 한글에 양수 자간(letter-spacing)을 주면\n 가독성이 떨어진다 — 라틴 소문자 조판 관례를 그대로 옮기면 안 되는 자리다.\n ⑶ `overline` 에만 양수 자간을 둔다. 그 단은 **영문·숫자 라벨**을 전제한 자리이고,\n 한글을 넣을 소비자는 자간을 0 으로 덮어야 한다(문서에 명시).\n\n ⚠**`text-transform` 은 토큰으로 내지 않는다.** 한글에는 대문자가 없어 `uppercase` 가\n 아무 효과가 없고, 영문이 섞이면 그것만 커져 오히려 어수선해진다.\n ========================================================================== */\n --u-text-display-size: 26px;\n --u-text-display-weight: 700;\n --u-text-display-leading: 1.4;\n --u-text-display-tracking: -0.02em;\n\n --u-text-title-size: 20px;\n --u-text-title-weight: 700;\n --u-text-title-leading: 1.45;\n --u-text-title-tracking: -0.01em;\n\n --u-text-subtitle-size: 16px;\n --u-text-subtitle-weight: 600;\n --u-text-subtitle-leading: 1.5;\n --u-text-subtitle-tracking: 0;\n\n --u-text-body-size: 14px;\n --u-text-body-weight: 400;\n --u-text-body-leading: 1.6;\n --u-text-body-tracking: 0;\n\n --u-text-label-size: 13px;\n --u-text-label-weight: 600;\n --u-text-label-leading: 1.5;\n --u-text-label-tracking: 0;\n\n --u-text-caption-size: 12px;\n --u-text-caption-weight: 400;\n --u-text-caption-leading: 1.5;\n --u-text-caption-tracking: 0;\n\n --u-text-overline-size: 11px;\n --u-text-overline-weight: 700;\n --u-text-overline-leading: 1.45;\n --u-text-overline-tracking: 0.06em;\n\n /* ==========================================================================\n Motion — 지속시간·이징\n ★값이 없으면 앱마다 다른 속도가 생기고, `prefers-reduced-motion` 은 **반드시**\n 빠뜨리는 앱이 나온다. 축을 여기 두고 존중 규칙은 아래 미디어 쿼리가 진다.\n ========================================================================== */\n --u-duration-instant: 80ms;\n --u-duration-fast: 140ms;\n --u-duration-normal: 220ms;\n --u-duration-slow: 320ms;\n --u-ease-standard: cubic-bezier(0.2, 0, 0, 1);\n --u-ease-decelerate: cubic-bezier(0, 0, 0, 1);\n --u-ease-accelerate: cubic-bezier(0.3, 0, 1, 1);\n\n /* ==========================================================================\n Font Styles\n ★**CJK 폴백을 스택에 포함한다 — 국제화이지 취향이 아니다.**\n 종전 스택(`-apple-system, Segoe UI, Noto Sans, Helvetica, Arial`)에는 **한중일 글립을\n 가진 폰트가 하나도 없었다.** Windows 에서 한글은 `Segoe UI` 에 없으므로 UA 가 임의로\n 맑은 고딕을 고르고, macOS 는 `-apple-system` 이 Apple SD Gothic Neo 를 준다 ⇒ **같은 앱이\n OS 마다 다른 글꼴로 렌더**됐다. 폴백을 명시하면 그 선택이 결정적이 된다.\n ⚠**웹폰트를 로드하지 않는다.** 라이브러리가 네트워크 요청을 만들면 소비자의 CSP·\n 오프라인 환경을 깬다. 스택 맨 앞의 `Pretendard` 는 **소비자가 로드했을 때만** 잡히는\n 선택적 이름이다(없으면 조용히 다음으로 넘어간다).\n ========================================================================== */\n --u-font-base: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Hiragino Sans', 'Yu Gothic UI', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\n --u-font-mono: ui-monospace, 'Cascadia Code', Consolas, 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;\n --u-font-serif: 'Georgia', 'Times New Roman', Times, serif;\n --u-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;\n --u-font-modern: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --u-font-rounded: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n}\n\n/* ★`prefers-reduced-motion` — light.css 와 같은 규칙을 이 시트도 진다. 이 시트만 쓰는\n 소비자가 있고, 두 시트를 함께 쓸 때는 어느 시트가 뒤에 오든 **마지막 선언이 이 0ms**\n 가 되도록 각 시트가 자기 블록 뒤에 둔다. 종전에는 지속시간이 위 (0,1,1) 블록에 있어\n 다크 모드에서 «동작 줄이기» 설정이 **무시됐다.** */\n@media (prefers-reduced-motion: reduce) {\n :root:where([theme=\"dark\"]) {\n --u-duration-instant: 0ms;\n --u-duration-fast: 0ms;\n --u-duration-normal: 0ms;\n --u-duration-slow: 0ms;\n }\n}\n\n} /* @layer iyu.base */\n";
2
+ var dark_css_default = "/*\n * 🔴Cascade layers — `@layer iyu.base, iyu.house;`\n *\n * iyu.base this sheet (neutral defaults every component can render with)\n * iyu.house a house theme such as `@iyulab/house-style`\n * (none) the application's own CSS — unlayered, so it always wins\n *\n * Unlayered styles beat every layer regardless of specificity or source order, so an\n * application overrides a token with a plain `:root { --u-… }` — no `:root:root` or\n * `:not([theme])` tricks, and no dependence on when `Theme.init()` injects this sheet.\n * ⚠That includes dark mode: an unlayered `:root` override applies in both themes. Scope it\n * with `:root[theme=\"dark\"]` (or `:root:not([theme=\"dark\"])`) when the value is mode-specific.\n *\n * The order statement is repeated by every sheet that joins a layer, so whichever loads\n * first fixes the same order.\n */\n@layer iyu.base, iyu.house;\n\n@layer iyu.base {\n:root[theme=\"dark\"] {\n color-scheme: dark;\n\n /* Neutral Colors */\n --u-neutral-0: #000000;\n --u-neutral-50: #0A0A0A;\n --u-neutral-100: #121212;\n --u-neutral-200: #1E1E1E;\n --u-neutral-300: #2A2A2A;\n --u-neutral-400: #3D3D3D;\n --u-neutral-500: #525252;\n --u-neutral-600: #6E6E6E;\n --u-neutral-700: #8A8A8A;\n --u-neutral-800: #B0B0B0;\n --u-neutral-900: #D4D4D4;\n --u-neutral-1000: #FFFFFF;\n\n /* Blue Colors */\n --u-blue-0: #030D1A;\n --u-blue-100: #061629;\n --u-blue-200: #0A223B;\n --u-blue-300: #103150;\n --u-blue-400: #174167;\n --u-blue-500: #205281;\n --u-blue-600: #2A659D;\n --u-blue-700: #3678B8;\n --u-blue-800: #478DCE;\n --u-blue-900: #5DA2DF;\n --u-blue-1000: #79BBEA;\n\n /* Green Colors */\n --u-green-0: #06140C;\n --u-green-100: #0A2114;\n --u-green-200: #10301D;\n --u-green-300: #164228;\n --u-green-400: #1F5535;\n --u-green-500: #2A6942;\n --u-green-600: #367E50;\n --u-green-700: #4A9563;\n --u-green-800: #63AB7A;\n --u-green-900: #80BE97;\n --u-green-1000: #9BCFB1;\n\n /* Yellow Colors */\n --u-yellow-0: #1C1300;\n --u-yellow-100: #2D1E00;\n --u-yellow-200: #402B00;\n --u-yellow-300: #553900;\n --u-yellow-400: #6B4900;\n --u-yellow-500: #825A00;\n --u-yellow-600: #9A6C00;\n --u-yellow-700: #B08012;\n --u-yellow-800: #C69635;\n --u-yellow-900: #D9AD5A;\n --u-yellow-1000: #E8C57F;\n\n /* Red Colors */\n --u-red-0: #1C0707;\n --u-red-100: #2C0B0B;\n --u-red-200: #3E1111;\n --u-red-300: #541818;\n --u-red-400: #6C2020;\n --u-red-500: #852A2A;\n --u-red-600: #A13535;\n --u-red-700: #B94949;\n --u-red-800: #CB6262;\n --u-red-900: #D98383;\n --u-red-1000: #E7A2A2;\n\n /* Orange Colors */\n --u-orange-0: #1D0E00;\n --u-orange-100: #2F1700;\n --u-orange-200: #421F00;\n --u-orange-300: #582A00;\n --u-orange-400: #703600;\n --u-orange-500: #8A4500;\n --u-orange-600: #A55600;\n --u-orange-700: #BD6A18;\n --u-orange-800: #D1823C;\n --u-orange-900: #E19D67;\n --u-orange-1000: #EDB992;\n\n /* Teal Colors */\n --u-teal-0: #041411;\n --u-teal-100: #07201B;\n --u-teal-200: #0B2E28;\n --u-teal-300: #10403A;\n --u-teal-400: #16544D;\n --u-teal-500: #1E6860;\n --u-teal-600: #297D74;\n --u-teal-700: #3A9389;\n --u-teal-800: #54A89F;\n --u-teal-900: #73BBB3;\n --u-teal-1000: #93CBC5;\n\n /* Cyan Colors */\n --u-cyan-0: #041318;\n --u-cyan-100: #071F29;\n --u-cyan-200: #0B2D3A;\n --u-cyan-300: #104050;\n --u-cyan-400: #165469;\n --u-cyan-500: #1E6A82;\n --u-cyan-600: #287F9C;\n --u-cyan-700: #3995B5;\n --u-cyan-800: #53AACC;\n --u-cyan-900: #73BEDD;\n --u-cyan-1000: #95CFE8;\n\n /* Purple Colors */\n --u-purple-0: #150A22;\n --u-purple-100: #220F36;\n --u-purple-200: #31164B;\n --u-purple-300: #432064;\n --u-purple-400: #572B80;\n --u-purple-500: #6C379C;\n --u-purple-600: #8245B7;\n --u-purple-700: #975BCB;\n --u-purple-800: #AB79D9;\n --u-purple-900: #BD99E2;\n --u-purple-1000: #CEB8EA;\n\n /* Pink Colors */\n --u-pink-0: #1F0A14;\n --u-pink-100: #310F20;\n --u-pink-200: #451532;\n --u-pink-300: #5C1D45;\n --u-pink-400: #74285A;\n --u-pink-500: #8F336F;\n --u-pink-600: #AB4187;\n --u-pink-700: #C0569D;\n --u-pink-800: #D174B3;\n --u-pink-900: #E095C7;\n --u-pink-1000: #EBB5D9;\n\n /* ==========================================================================\n Role Colors — 의미 역할 층\n 컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.\n 브랜드 색 교체는 아래 30개만 재정의하면 시맨틱 층까지 따라온다.\n\n 단은 '강도' 축이다 (weakest -> strong). 용도(배경/테두리/텍스트)는\n 소비처가 정한다 -- 단을 속성에 묶으면 primary 버튼의 배경이 어느\n 단인지 같은 모순이 생긴다.\n\n ★**다만 두 단은 용도가 확정돼 있다** — 대비 요구가 서로 다르기 때문이다.\n `-color` = **면**. `--u-*-txt-color` 가 그 위에 얹히므로 on-color 기준 4.5.\n `-strong` = **글자·아이콘**. `--u-bg-color` 위에 놓이므로 바탕 기준 4.5.\n 라이트에서는 바탕도 on-color 도 흰색이라 두 요구가 한 조건으로 합쳐지지만,\n **다크에서는 정반대 방향**이다(바탕 #121212 · on-color #FFFFFF). 바탕에서 읽히는\n 밝은 단은 흰 글자를 못 받고, 흰 글자를 받는 어두운 단은 바탕에서 안 읽힌다.\n ⇒ 다크에서 `-color` 와 `-strong` 이 두 단 벌어지는 것이 그 결과다.\n `tests/build/token-contrast.test.ts` 가 값을 지킨다.\n ========================================================================== */\n\n /* primary — 브랜드 · 강조 · 포커스 · 링크 */\n --u-primary-color-weakest: var(--u-blue-200);\n --u-primary-color-weaker: var(--u-blue-300);\n --u-primary-color-weak: var(--u-blue-500);\n --u-primary-color: var(--u-blue-600); /* 면: 흰 글자 6.09 ✓ */\n --u-primary-color-strong: var(--u-blue-800); /* 글자: 바탕 5.32 ✓ (700 은 4.05 ✗) */\n\n /* info — 정보 안내 (primary 와 기본값은 같으나 역할이 다르다 — 브랜딩은 primary 만 바꾼다) */\n --u-info-color-weakest: var(--u-blue-200);\n --u-info-color-weaker: var(--u-blue-300);\n --u-info-color-weak: var(--u-blue-500);\n --u-info-color: var(--u-blue-600);\n --u-info-color-strong: var(--u-blue-800);\n\n /* secondary — 보조 브랜드 색(light.css 참조). primary 와 같은 단 구성이다. */\n --u-secondary-color-weakest: var(--u-purple-200);\n --u-secondary-color-weaker: var(--u-purple-300);\n --u-secondary-color-weak: var(--u-purple-500);\n --u-secondary-color: var(--u-purple-600); /* 면: 흰 글자 6.03 ✓ */\n --u-secondary-color-strong: var(--u-purple-800); /* 글자: 바탕 5.77 ✓ (700 은 4.17 ✗) */\n\n /* success — 성공 · 완료 */\n --u-success-color-weakest: var(--u-green-200);\n --u-success-color-weaker: var(--u-green-300);\n --u-success-color-weak: var(--u-green-500);\n --u-success-color: var(--u-green-600);\n --u-success-color-strong: var(--u-green-700);\n\n /* warning — 주의 */\n --u-warning-color-weakest: var(--u-yellow-200);\n --u-warning-color-weaker: var(--u-yellow-300);\n --u-warning-color-weak: var(--u-yellow-500);\n --u-warning-color: var(--u-yellow-600);\n --u-warning-color-strong: var(--u-yellow-700);\n\n /* danger — 오류 · 위험 · 유효성 실패 */\n --u-danger-color-weakest: var(--u-red-200);\n --u-danger-color-weaker: var(--u-red-300);\n --u-danger-color-weak: var(--u-red-500);\n --u-danger-color: var(--u-red-600); /* 면: 흰 글자 6.83 ✓ */\n --u-danger-color-strong: var(--u-red-800); /* 글자: 바탕 4.87 ✓ (700 은 3.67 ✗) */\n /* Text Colors */\n --u-txt-color: var(--u-neutral-900);\n --u-txt-color-inverse: var(--u-neutral-100);\n\n /* 유채색 배경 위의 글자 — warning 만 다르다(light.css 참조). */\n --u-primary-txt-color: #FFFFFF;\n --u-info-txt-color: #FFFFFF;\n --u-secondary-txt-color: #FFFFFF;\n --u-success-txt-color: #FFFFFF;\n --u-danger-txt-color: #FFFFFF;\n /* ★라이트 시트와 같은 이유로 중립 최상단을 쓴다 — 다크에서는 그 값이 #FFFFFF 라\n 결과가 종전과 같다(4.65 ✓). 리터럴 대신 토큰을 쓰는 이유는 라이트에서 뒤집히기\n 때문이다(#000000). 두 시트가 같은 선언이 되어 어긋날 자리가 없어진다. */\n --u-warning-txt-color: var(--u-neutral-1000);\n --u-txt-color-hover: var(--u-primary-color-strong);\n --u-txt-color-active: var(--u-primary-color-strong);\n --u-txt-color-disabled: var(--u-neutral-500);\n /* 라이트와 같은 기준 — 놓이는 모든 면에서 AA. neutral-700(#8A8A8A)은 바탕 5.43 ·\n 올림면(neutral-300) 4.16 · active 면(neutral-400) 3.15 로 미달이었다.\n neutral-800(#B0B0B0) = 8.64 · 6.62 · 5.01. 본문(neutral-900)과의 대비비 1.46. */\n --u-txt-color-weak: var(--u-neutral-800);\n /* ★Third text step — metadata, units, secondary columns, an empty value's dash: text that\n must stay readable (5.0 on the surface) but should recede behind -weak. Not a placeholder or a\n disabled colour (those are -disabled). */\n --u-txt-color-weaker: var(--u-neutral-700);\n --u-txt-color-strong: var(--u-neutral-1000);\n\n --u-link-txt-color: var(--u-primary-color-strong);\n --u-tooltip-txt-color: var(--u-neutral-100);\n\n /* Icon Colors */\n --u-icon-color: var(--u-neutral-800);\n --u-icon-color-inverse: var(--u-neutral-100);\n --u-icon-color-hover: var(--u-primary-color-strong);\n --u-icon-color-active: var(--u-primary-color-strong);\n --u-icon-color-disabled: var(--u-neutral-500);\n\n /* Border Colors\n ★`-weak` 는 `neutral-300` 일 수 없다 — `--u-bg-color-raised` 가 같은 단이라, 올림면(사이드바·\n 표 머리/행·마스터-디테일 구분선) 위에 그리는 약한 선이 **면과 같은 색**(대비 1.00)이 되어\n 화면에서 사라진다. 라이트는 200 단이 올림면(50)과 떨어져 있어 보인다. 램프에서 올림면(300)\n 위로 올릴 수 있는 다음 단이 400 뿐이라 `-weak` 는 이 테마에서 `--u-border-color` 와 같은\n 단이다 — 다크에서는 «약함/보통» 두 단이 하나로 합쳐지지만, 종전 `-weak` 는 그것이 쓰이는\n 면 위에서 애초에 구별되지 않았다. */\n --u-border-color: var(--u-neutral-400);\n --u-border-color-weak: var(--u-neutral-400);\n --u-border-color-strong: var(--u-neutral-500);\n --u-border-color-hover: var(--u-neutral-500);\n\n /* ★상태 테두리는 `-strong` 단이다 — light.css 의 같은 자리 주석 참조.\n 이 테마가 실제로 미달이었다: focus 2.74 · invalid 2.44 → 4.74 / 4.34. */\n --u-input-border-color: var(--u-neutral-400);\n --u-input-border-color-hover: var(--u-neutral-500);\n --u-input-border-color-focus: var(--u-primary-color-strong);\n --u-input-border-color-invalid: var(--u-danger-color-strong);\n\n /* Focus ring — a graphic drawn over the background, so it must clear 3:1 against it\n (WCAG 1.4.11). Defaults to the primary text step; a theme whose primary is a neutral\n ink can point it at an interaction hue instead. */\n --u-focus-ring-color: var(--u-primary-color-strong);\n\n /* Selection — the mark of a chosen option (a checked checkbox, a selected radio, a switch that is on, a\n selected row's checkbox) and the check drawn on it. Defaults to the primary pair; a theme whose primary\n is a neutral ink can point the selection at an interaction hue, the way it does the focus ring. */\n --u-selection-color: var(--u-primary-color);\n --u-selection-txt-color: var(--u-primary-txt-color);\n\n /* Background Colors */\n --u-bg-color: var(--u-neutral-100);\n --u-bg-color-inverse: var(--u-neutral-0);\n --u-bg-color-hover: var(--u-neutral-300);\n --u-bg-color-active: var(--u-neutral-400);\n --u-bg-color-disabled: var(--u-neutral-100);\n\n /* ★Canvas — the application background **behind** surfaces (page body, shell side\n panels). `--u-bg-color` is the surface: components paint their own face with it\n (buttons, menu items, options, tags, table bodies, sheets), so tinting it to make a\n page background greys every control inside a white card. Paint the page with this\n token instead and keep `--u-bg-color` as the surface. */\n --u-canvas-bg-color: var(--u-neutral-50);\n\n /* 면 높이 — 상세는 light.css 참조. 다크는 **바탕보다 밝은 쪽**이 위다.\n neutral-300(#2A2A2A)은 바탕(#121212) 대비 1.42 로, 소비 측이 오버라이드로 쓰던\n neutral-200(1.15)보다 실제로 더 잘 구분된다 — 그 오버라이드가 해결하려던 증상이\n *\"툴바·헤더가 배경에 묻힌다\"* 였다. */\n --u-bg-color-raised: var(--u-neutral-300);\n\n /* ★올림면 위의 hover — `--u-bg-color-hover`(전역, 바탕면 전용)와 값이 같아서\n («둘 다 neutral-300») 카드·표 머리 위에 마우스를 올려도 아무 일도 안 일어났다\n (소비자 실측). 전역 토큰 하나로는 \"지금 위에 있는 면\"을\n 알 방법이 없어(참조 지점마다 계산 기준이 다를 수 없다) **전용 토큰**을 신설한다.\n\n ⚠**A안**(`raised`를 neutral-200으로) — 과거에 거부된 값(위 주석). **B안**(전역\n `hover`를 neutral-400으로) — `--u-bg-color-active` 와 충돌해 결함이 다른 쌍으로\n 옮겨간다. ⇒ hover 는 본래 \"현재 면보다 한 단 위\"이지 절대 단이 아니므로\n `color-mix()` 로 raised 자신을 기준 삼아 상대 계산한다.\n\n N=6% 는 raised(L≈0.023)와 active(L≈0.047, neutral-400) 사이 대비 계산으로 골랐다 —\n 결과 L≈0.038, raised 대비 ≈1.21(라이트의 기존 \"약한\" 1.04보다 뚜렷하고, `bg→raised`\n 의 기존 1.31 과 비슷한 체감), active 와는 값이 달라 겹치지 않는다(≈#373737 vs\n active #3D3D3D). N 을 더 올리면(≈10%+) active 를 넘어서 순서가 뒤집힌다 — 확인함. */\n --u-bg-color-raised-hover: color-mix(in srgb, var(--u-bg-color-raised), white 6%);\n\n /* 유채색 표면 — 라이트와 **같은 단이 아니라 같은 세기**로 짝지었다(light.css 참조).\n 팔레트 유채색 틴트가 다크에서 짓눌리므로 한 단 위를 쓴다. green 은 대칭이라 그대로. */\n --u-primary-bg-color: var(--u-blue-100);\n --u-info-bg-color: var(--u-blue-100);\n --u-secondary-bg-color: var(--u-purple-100);\n --u-success-bg-color: var(--u-green-0);\n --u-danger-bg-color: var(--u-red-100);\n /* warning 합류 — 라이트는 yellow-200 이다(단 이름이 다른 이유는 light.css 참조). */\n --u-warning-bg-color: var(--u-yellow-100);\n\n --u-input-bg-color: var(--u-neutral-200);\n --u-panel-bg-color: var(--u-neutral-200);\n --u-overlay-bg-color: rgba(0, 0, 0, 0.7);\n --u-tooltip-bg-color: rgba(255, 255, 255, 0.85);\n\n /* Shadow Colors */\n --u-shadow-color-weaker: rgba(0, 0, 0, 0.15);\n --u-shadow-color-weak: rgba(0, 0, 0, 0.25);\n --u-shadow-color-normal: rgba(0, 0, 0, 0.35);\n --u-shadow-color-strong: rgba(0, 0, 0, 0.45);\n --u-shadow-color-stronger: rgba(0, 0, 0, 0.60);\n\n /* Elevation Scale — 근거는 light.css 의 같은 자리 주석 참조.\n ★다크는 알파가 3배 가까이 진하다 — 리터럴로 흩어져 있던 종전에는 이 차이가\n 적용되지 않아 다크에서 그림자가 사실상 보이지 않았다. */\n --u-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 1px rgba(0, 0, 0, 0.14); /* = shadow-color-weak */\n --u-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.18); /* = shadow-color-normal */\n --u-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.22); /* = shadow-color-strong */\n --u-shadow-xl: 0 6px 18px rgba(0, 0, 0, 0.60), 0 2px 6px rgba(0, 0, 0, 0.30); /* = shadow-color-stronger */\n\n\n /* ==========================================================================\n Chart categorical palette — 다크 면(#121212 · 올림면 #2A2A2A)에 대해 **따로 고른** 여덟 칸\n ★램프를 참조하지 않는 이유: 다크 장식 램프는 채도가 낮아(면 위 배지·태그용) 차트 계열로는\n 회색처럼 읽힌다 — 램프의 단 조합 39만 가지 중 검증을 통과한 것이 없었다. 그래서 라이트\n 여덟 칸과 **같은 색상·순서**를 OKLCH 밝기만 다크 대역으로 옮겨 잡았다.\n 검증: 밝기 0.48–0.67 · 채도 ≥ 0.1 · 색각 이상 이웃 ΔE ≥ 9.5 · 정상 시각 이웃 ΔE ≥ 25.1 ·\n 두 면 모두 대비 ≥ 3:1. 순서는 light.css 와 같다.\n ========================================================================== */\n --u-chart-color-1: #247EDB;\n --u-chart-color-2: #D03E73;\n --u-chart-color-3: #0DA1B2;\n --u-chart-color-4: #ED5711;\n --u-chart-color-5: #059183;\n --u-chart-color-6: #D96D04;\n --u-chart-color-7: #AE48CB;\n --u-chart-color-8: #4AA74D;\n\n /* Scrollbar Colors */\n --u-scrollbar-color: var(--u-neutral-500);\n --u-scrollbar-color-hover: var(--u-neutral-600);\n --u-scrollbar-track-color: transparent;\n}\n\n/* ==========================================================================\n ★모드와 무관한 스케일 — 반경·여백·글자 스케일·모션·글꼴.\n 값이 light.css 와 **같다.** 그런데 위 블록(`:root[theme=\"dark\"]`, 특이도 0,1,1)에 두면\n `:root`(0,1,0)로 이 토큰을 덮는 **모든 층**(하우스 프리셋·소비자 브랜드 시트)이 다크\n 모드에서만 **로드 순서와 무관하게** 진다 — 에러도 경고도 없이, 색은 정상으로 바뀌므로\n «다크가 잘 된다» 로 보인다. `:where()` 로 특이도를 `:root` 와 같게 두면 층 모델이 라이트와\n 똑같이 로드 순서로 선다.\n ⚠이 블록을 지우지 말 것 — 이 시트만 쓰는 «고정 다크 디자인» 소비자(docs/theming.md)는\n 이 토큰들을 여기서 받는다. 두 시트를 함께 쓸 때는 값이 같으므로 어느 쪽이 이겨도 같다.\n ========================================================================== */\n:root:where([theme=\"dark\"]) {\n /* Field box — mode-independent (same as light.css). */\n --u-field-padding-block: 0.3em;\n --u-field-padding-inline: 0.6em;\n --u-field-radius: 0.25em;\n\n /* ==========================================================================\n Radius Scale — 모서리 반경\n 리터럴을 흩뿌리면 값이 갈린다(실제로 pill 이 999px/9999px 두 표기로 나뉘어 있었다).\n ========================================================================== */\n --u-radius-none: 0;\n --u-radius-sm: 3px;\n --u-radius-md: 4px;\n --u-radius-lg: 6px;\n --u-radius-xl: 8px;\n /* ★상단 2단은 **면(surface)용**이다 — 카드·패널·대화상자처럼 큰 사각형은 컨트롤과\n 같은 반경을 쓰면 각져 보인다. 기존 5단은 **컨트롤용**이고 값을 바꾸지 않는다\n (바꾸면 모든 소비자의 버튼·입력이 동시에 움직인다). */\n --u-radius-2xl: 12px;\n --u-radius-3xl: 16px;\n --u-radius-pill: 9999px;\n --u-radius-circle: 50%;\n\n /* ==========================================================================\n Layer Scale — 페이지 전역에서 겹치는 표면의 쌓임 순서\n 컴포넌트 «안» 의 국소 순서(1~100)는 그 컴포넌트의 쌓임 맥락 안에서만 뜻이 있어 여기 두지 않는다.\n 여기는 서로 다른 패키지의 표면이 페이지에서 다투는 층이다 — 값을 흩뿌리면 층이 갈린다\n (셸 1000 · 플로팅 1000 · 오버레이 9999 · 라이트박스 9999 가 각자 숫자였다).\n 오버레이 띠의 실제 값은 OverlayManager 가 «동시에 열린 깊이» 로 인라인에 쓴다 — 이 토큰은\n 그 띠의 시작값(열리기 전 기본값)이고 OverlayManager.OVERLAY_BASE 와 같아야 한다.\n ========================================================================== */\n --u-layer-shell: 1000; /* 앱 셸의 사이드바·모바일 머리 */\n --u-layer-floating: 1000; /* 팝오버·목록·메뉴 — 앵커를 따라 뜨는 표면 */\n --u-layer-overlay: 9999; /* 대화상자·서랍·라이트박스 — 화면을 덮는 표면 */\n\n /* ==========================================================================\n Space Scale — 컨테이너·오버레이의 절대 여백\n ⚠**여백은 하나의 축이 아니다.** 이 스케일은 컨테이너/오버레이의 **레이아웃 여백**만\n 담당한다. 폼·인라인 요소의 `em` 여백은 상속된 `font-size` 에 비례하는 것이 의도이므로\n **여기로 흡수하지 않는다.** 반경과 마찬가지로 테마와 무관하므로 두 시트가 같다.\n 축 구분과 근거는 docs/design-tokens.md 참조.\n ========================================================================== */\n --u-space-3xs: 2px;\n --u-space-2xs: 4px;\n --u-space-xs: 6px;\n --u-space-sm: 8px;\n --u-space-md: 12px;\n --u-space-lg: 16px;\n /* ★상단 4단은 **화면 리듬**이다 — 카드 안쪽 여백(20~24)·섹션 간격(24~32)·페이지 여백\n (32~40). 종전에는 이 구간이 통째로 비어 있어 소비자가 전부 리터럴로 적었고,\n 그래서 앱마다 화면 밀도가 달라졌다. `lg`(16px) 이하는 **요소 사이**, `xl` 이상은\n **영역 사이**로 나눠 쓴다.\n ⚠`xs: 6px` 는 4px 격자에서 벗어나 있으나 **바꾸지 않는다** — 이미 배선된 컨트롤\n 여백이 전부 움직인다. 신규 단은 전부 4의 배수로 둔다. */\n --u-space-xl: 20px;\n --u-space-2xl: 24px;\n --u-space-3xl: 32px;\n --u-space-4xl: 40px;\n\n /* ==========================================================================\n Type Scale — 글자 크기·굵기·행간·자간의 **한 벌**\n ★**크기만 주면 스케일이 되지 않는다.** 소비자가 크기만 받고 굵기·행간을 각자 정하면\n 결국 화면마다 다른 위계가 생긴다 — 그래서 네 값을 **단 단위로 묶어** 낸다.\n\n 단 이름은 크기가 아니라 **역할**이다(`lg`/`xl` 이 아니라 `title`/`label`). 역할로 두면\n 소비자가 *\"어느 크기를 쓸까\"* 가 아니라 *\"이 글자는 무엇인가\"* 를 묻게 된다.\n\n ★**한글 기준으로 값을 골랐다**:\n ⑴ 행간은 **1.4 이상**. 라틴 관례(1.2)는 한글에서 답답하다 — 받침 때문에 글자 상자가\n 세로로 꽉 차 있어 라틴과 같은 행간이면 줄이 붙어 보인다.\n ⑵ 자간은 **0 이 기본**이고 큰 제목만 **음수**. 한글에 양수 자간(letter-spacing)을 주면\n 가독성이 떨어진다 — 라틴 소문자 조판 관례를 그대로 옮기면 안 되는 자리다.\n ⑶ `overline` 에만 양수 자간을 둔다. 그 단은 **영문·숫자 라벨**을 전제한 자리이고,\n 한글을 넣을 소비자는 자간을 0 으로 덮어야 한다(문서에 명시).\n\n ⚠**`text-transform` 은 토큰으로 내지 않는다.** 한글에는 대문자가 없어 `uppercase` 가\n 아무 효과가 없고, 영문이 섞이면 그것만 커져 오히려 어수선해진다.\n ========================================================================== */\n --u-text-display-size: 26px;\n --u-text-display-weight: 700;\n --u-text-display-leading: 1.4;\n --u-text-display-tracking: -0.02em;\n\n --u-text-title-size: 20px;\n --u-text-title-weight: 700;\n --u-text-title-leading: 1.45;\n --u-text-title-tracking: -0.01em;\n\n --u-text-subtitle-size: 16px;\n --u-text-subtitle-weight: 600;\n --u-text-subtitle-leading: 1.5;\n --u-text-subtitle-tracking: 0;\n\n --u-text-body-size: 14px;\n --u-text-body-weight: 400;\n --u-text-body-leading: 1.6;\n --u-text-body-tracking: 0;\n\n --u-text-label-size: 13px;\n --u-text-label-weight: 600;\n --u-text-label-leading: 1.5;\n --u-text-label-tracking: 0;\n\n --u-text-caption-size: 12px;\n --u-text-caption-weight: 400;\n --u-text-caption-leading: 1.5;\n --u-text-caption-tracking: 0;\n\n --u-text-overline-size: 11px;\n --u-text-overline-weight: 700;\n --u-text-overline-leading: 1.45;\n --u-text-overline-tracking: 0.06em;\n\n /* ==========================================================================\n Motion — 지속시간·이징\n ★값이 없으면 앱마다 다른 속도가 생기고, `prefers-reduced-motion` 은 **반드시**\n 빠뜨리는 앱이 나온다. 축을 여기 두고 존중 규칙은 아래 미디어 쿼리가 진다.\n ========================================================================== */\n --u-duration-instant: 80ms;\n --u-duration-fast: 140ms;\n --u-duration-normal: 220ms;\n --u-duration-slow: 320ms;\n --u-ease-standard: cubic-bezier(0.2, 0, 0, 1);\n --u-ease-decelerate: cubic-bezier(0, 0, 0, 1);\n --u-ease-accelerate: cubic-bezier(0.3, 0, 1, 1);\n\n /* ==========================================================================\n Font Styles\n ★**CJK 폴백을 스택에 포함한다 — 국제화이지 취향이 아니다.**\n 종전 스택(`-apple-system, Segoe UI, Noto Sans, Helvetica, Arial`)에는 **한중일 글립을\n 가진 폰트가 하나도 없었다.** Windows 에서 한글은 `Segoe UI` 에 없으므로 UA 가 임의로\n 맑은 고딕을 고르고, macOS 는 `-apple-system` 이 Apple SD Gothic Neo 를 준다 ⇒ **같은 앱이\n OS 마다 다른 글꼴로 렌더**됐다. 폴백을 명시하면 그 선택이 결정적이 된다.\n ⚠**웹폰트를 로드하지 않는다.** 라이브러리가 네트워크 요청을 만들면 소비자의 CSP·\n 오프라인 환경을 깬다. 스택 맨 앞의 `Pretendard` 는 **소비자가 로드했을 때만** 잡히는\n 선택적 이름이다(없으면 조용히 다음으로 넘어간다).\n ========================================================================== */\n --u-font-base: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Hiragino Sans', 'Yu Gothic UI', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\n --u-font-mono: ui-monospace, 'Cascadia Code', Consolas, 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;\n --u-font-serif: 'Georgia', 'Times New Roman', Times, serif;\n --u-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;\n --u-font-modern: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --u-font-rounded: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n}\n\n/* ★`prefers-reduced-motion` — light.css 와 같은 규칙을 이 시트도 진다. 이 시트만 쓰는\n 소비자가 있고, 두 시트를 함께 쓸 때는 어느 시트가 뒤에 오든 **마지막 선언이 이 0ms**\n 가 되도록 각 시트가 자기 블록 뒤에 둔다. 종전에는 지속시간이 위 (0,1,1) 블록에 있어\n 다크 모드에서 «동작 줄이기» 설정이 **무시됐다.** */\n@media (prefers-reduced-motion: reduce) {\n :root:where([theme=\"dark\"]) {\n --u-duration-instant: 0ms;\n --u-duration-fast: 0ms;\n --u-duration-normal: 0ms;\n --u-duration-slow: 0ms;\n }\n}\n\n} /* @layer iyu.base */\n";
3
3
  //#endregion
4
4
  export { dark_css_default as default };
@@ -1,4 +1,4 @@
1
1
  //#region \0glob-assets_raw/light.css.637cb2f8
2
- var light_css_default = "/*\n * 🔴Cascade layers — `@layer iyu.base, iyu.house;`\n *\n * iyu.base this sheet (neutral defaults every component can render with)\n * iyu.house a house theme such as `@iyulab/house-style`\n * (none) the application's own CSS — unlayered, so it always wins\n *\n * Unlayered styles beat every layer regardless of specificity or source order, so an\n * application overrides a token with a plain `:root { --u-… }` — no `:root:root` or\n * `:not([theme])` tricks, and no dependence on when `Theme.init()` injects this sheet.\n * ⚠That includes dark mode: an unlayered `:root` override applies in both themes. Scope it\n * with `:root[theme=\"dark\"]` (or `:root:not([theme=\"dark\"])`) when the value is mode-specific.\n *\n * The order statement is repeated by every sheet that joins a layer, so whichever loads\n * first fixes the same order.\n */\n@layer iyu.base, iyu.house;\n\n@layer iyu.base {\n:root {\n color-scheme: light;\n\n /* Neutral Colors */\n --u-neutral-0: #FFFFFF;\n --u-neutral-50: #FAFAFA;\n --u-neutral-100: #F5F5F5;\n --u-neutral-200: #EEEEEE;\n --u-neutral-300: #E0E0E0;\n --u-neutral-400: #BDBDBD;\n --u-neutral-500: #9E9E9E;\n --u-neutral-600: #757575;\n --u-neutral-700: #616161;\n --u-neutral-800: #424242;\n --u-neutral-900: #212121;\n --u-neutral-1000: #000000;\n\n /* Blue Colors */\n --u-blue-0: #E3F2FD;\n --u-blue-100: #BBDEFB;\n --u-blue-200: #90CAF9;\n --u-blue-300: #64B5F6;\n --u-blue-400: #42A5F5;\n --u-blue-500: #2196F3;\n --u-blue-600: #1E88E5;\n --u-blue-700: #1976D2;\n --u-blue-800: #1565C0;\n --u-blue-900: #0D47A1;\n --u-blue-1000: #062A5E;\n\n /* Green Colors */\n --u-green-0: #E8F5E9;\n --u-green-100: #C8E6C9;\n --u-green-200: #A5D6A7;\n --u-green-300: #81C784;\n --u-green-400: #66BB6A;\n --u-green-500: #4CAF50;\n --u-green-600: #43A047;\n --u-green-700: #388E3C;\n --u-green-800: #2E7D32;\n --u-green-900: #1B5E20;\n --u-green-1000: #0F3A12;\n\n /* Yellow Colors */\n --u-yellow-0: #FFFDE7;\n --u-yellow-100: #FFF9C4;\n --u-yellow-200: #FFF59D;\n --u-yellow-300: #FFF176;\n --u-yellow-400: #FFEE58;\n --u-yellow-500: #FFEB3B;\n --u-yellow-600: #FDD835;\n --u-yellow-700: #FBC02D;\n --u-yellow-800: #F9A825;\n --u-yellow-900: #F57F17;\n --u-yellow-1000: #8A4A00;\n\n /* Red Colors */\n --u-red-0: #FFEBEE;\n --u-red-100: #FFCDD2;\n --u-red-200: #EF9A9A;\n --u-red-300: #E57373;\n --u-red-400: #EF5350;\n --u-red-500: #F44336;\n --u-red-600: #E53935;\n --u-red-700: #D32F2F;\n --u-red-800: #C62828;\n --u-red-900: #B71C1C;\n --u-red-1000: #6B0F0F;\n\n /* Orange Colors */\n --u-orange-0: #FFF3E0;\n --u-orange-100: #FFE0B2;\n --u-orange-200: #FFCC80;\n --u-orange-300: #FFB74D;\n --u-orange-400: #FFA726;\n --u-orange-500: #FF9800;\n --u-orange-600: #FB8C00;\n --u-orange-700: #F57C00;\n --u-orange-800: #EF6C00;\n --u-orange-900: #E65100;\n --u-orange-1000: #8C3100;\n\n /* Teal Colors */\n --u-teal-0: #E0F2F1;\n --u-teal-100: #B2DFDB;\n --u-teal-200: #80CBC4;\n --u-teal-300: #4DB6AC;\n --u-teal-400: #26A69A;\n --u-teal-500: #009688;\n --u-teal-600: #00897B;\n --u-teal-700: #00796B;\n --u-teal-800: #00695C;\n --u-teal-900: #004D40;\n --u-teal-1000: #002E26;\n\n /* Cyan Colors */\n --u-cyan-0: #E0F7FA;\n --u-cyan-100: #B2EBF2;\n --u-cyan-200: #80DEEA;\n --u-cyan-300: #4DD0E1;\n --u-cyan-400: #26C6DA;\n --u-cyan-500: #00BCD4;\n --u-cyan-600: #00ACC1;\n --u-cyan-700: #0097A7;\n --u-cyan-800: #00838F;\n --u-cyan-900: #006064;\n --u-cyan-1000: #003A3D;\n\n /* Purple Colors */\n --u-purple-0: #F3E5F5;\n --u-purple-100: #E1BEE7;\n --u-purple-200: #CE93D8;\n --u-purple-300: #BA68C8;\n --u-purple-400: #AB47BC;\n --u-purple-500: #9C27B0;\n --u-purple-600: #8E24AA;\n --u-purple-700: #7B1FA2;\n --u-purple-800: #6A1B9A;\n --u-purple-900: #4A148C;\n --u-purple-1000: #2C0B54;\n\n /* Pink Colors */\n --u-pink-0: #FCE4EC;\n --u-pink-100: #F8BBD0;\n --u-pink-200: #F48FB1;\n --u-pink-300: #F06292;\n --u-pink-400: #EC407A;\n --u-pink-500: #E91E63;\n --u-pink-600: #D81B60;\n --u-pink-700: #C2185B;\n --u-pink-800: #AD1457;\n --u-pink-900: #880E4F;\n --u-pink-1000: #520830;\n\n /* ==========================================================================\n Role Colors — 의미 역할 층\n 컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.\n 브랜드 색 교체는 아래 25개만 재정의하면 시맨틱 층까지 따라온다.\n\n 단은 '강도' 축이다 (weakest -> strong). 용도(배경/테두리/텍스트)는\n 소비처가 정한다 -- 단을 속성에 묶으면 primary 버튼의 배경이 어느\n 단인지 같은 모순이 생긴다.\n ========================================================================== */\n\n /* ★단이 팔레트 shade 와 1:1 이 아니다 — **대비로 고른다.**\n `-color` 는 `--u-*-txt-color` 를 받는 면이고 `-strong` 은 바탕 위의 글자다.\n 라이트에서는 바탕도 on-color 도 흰색이라 두 요구가 `contrast(shade, #FFF) ≥ 4.5`\n 하나로 합쳐지고, 그 단이 계열마다 다르다(blue 700 · red 700 · green 800).\n Material 램프는 휘도가 아니라 색상 기준으로 만들어져 있어서 단 번호가 세기를\n 보장하지 않는다 — 값은 `tests/build/token-contrast.test.ts` 가 지킨다. */\n\n /* primary — 브랜드 · 강조 · 포커스 · 링크 */\n --u-primary-color-weakest: var(--u-blue-200);\n --u-primary-color-weaker: var(--u-blue-300);\n --u-primary-color-weak: var(--u-blue-500);\n --u-primary-color: var(--u-blue-700); /* 4.60 ✓ (600 은 3.68 ✗) */\n --u-primary-color-strong: var(--u-blue-800); /* 5.75 ✓ */\n\n /* info — 정보 안내 (primary 와 기본값은 같으나 역할이 다르다 — 브랜딩은 primary 만 바꾼다) */\n --u-info-color-weakest: var(--u-blue-200);\n --u-info-color-weaker: var(--u-blue-300);\n --u-info-color-weak: var(--u-blue-500);\n --u-info-color: var(--u-blue-700);\n --u-info-color-strong: var(--u-blue-800);\n\n /* success — 성공 · 완료\n ⚠green 은 700 도 4.12 로 미달이라 두 단을 건너뛴다. 계열마다 통과 단이 다른 것이\n 이 층의 정상 상태다(단 번호를 맞추면 대비가 어긋난다). */\n --u-success-color-weakest: var(--u-green-200);\n --u-success-color-weaker: var(--u-green-300);\n --u-success-color-weak: var(--u-green-500);\n --u-success-color: var(--u-green-800); /* 5.13 ✓ (600=3.30 · 700=4.12 ✗) */\n --u-success-color-strong: var(--u-green-900); /* 7.87 ✓ */\n\n /* warning — 주의 */\n --u-warning-color-weakest: var(--u-yellow-200);\n --u-warning-color-weaker: var(--u-yellow-300);\n --u-warning-color-weak: var(--u-yellow-500);\n --u-warning-color: var(--u-yellow-600);\n /* ★다른 계열은 -strong 이 shade-800~900 인데 warning 만 1000 이다 — 노랑 램프는\n 900 까지도 흰 바탕 2.65 로 미달이고, 1000(#8A4A00)에서 처음 6.86 이 된다.\n 그 값은 갈색에 가깝지만, 이 단의 용도는 **면이 아니라 글자·아이콘**이므로 색상보다\n 가독성이 먼저다(경고 문구를 어두운 호박색으로 쓰는 것은 보편 관행이다). */\n --u-warning-color-strong: var(--u-yellow-1000);\n\n /* danger — 오류 · 위험 · 유효성 실패 */\n --u-danger-color-weakest: var(--u-red-200);\n --u-danger-color-weaker: var(--u-red-300);\n --u-danger-color-weak: var(--u-red-500);\n --u-danger-color: var(--u-red-700); /* 4.98 ✓ (600 은 4.23 ✗ — 오류 문구가 이 단이었다) */\n --u-danger-color-strong: var(--u-red-800); /* 5.62 ✓ */\n /* ==========================================================================\n Radius Scale — 모서리 반경\n 리터럴을 흩뿌리면 값이 갈린다(실제로 pill 이 999px/9999px 두 표기로 나뉘어 있었다).\n ========================================================================== */\n --u-radius-none: 0;\n --u-radius-sm: 3px;\n --u-radius-md: 4px;\n --u-radius-lg: 6px;\n --u-radius-xl: 8px;\n /* ★상단 2단은 **면(surface)용**이다 — 카드·패널·대화상자처럼 큰 사각형은 컨트롤과\n 같은 반경을 쓰면 각져 보인다. 기존 5단은 **컨트롤용**이고 값을 바꾸지 않는다\n (바꾸면 모든 소비자의 버튼·입력이 동시에 움직인다). */\n --u-radius-2xl: 12px;\n --u-radius-3xl: 16px;\n --u-radius-pill: 9999px;\n --u-radius-circle: 50%;\n\n /* ==========================================================================\n Layer Scale — 페이지 전역에서 겹치는 표면의 쌓임 순서\n 컴포넌트 «안» 의 국소 순서(1~100)는 그 컴포넌트의 쌓임 맥락 안에서만 뜻이 있어 여기 두지 않는다.\n 여기는 서로 다른 패키지의 표면이 페이지에서 다투는 층이다 — 값을 흩뿌리면 층이 갈린다\n (셸 1000 · 플로팅 1000 · 오버레이 9999 · 라이트박스 9999 가 각자 숫자였다).\n 오버레이 띠의 실제 값은 OverlayManager 가 «동시에 열린 깊이» 로 인라인에 쓴다 — 이 토큰은\n 그 띠의 시작값(열리기 전 기본값)이고 OverlayManager.OVERLAY_BASE 와 같아야 한다.\n ========================================================================== */\n --u-layer-shell: 1000; /* 앱 셸의 사이드바·모바일 머리 */\n --u-layer-floating: 1000; /* 팝오버·목록·메뉴 — 앵커를 따라 뜨는 표면 */\n --u-layer-overlay: 9999; /* 대화상자·서랍·라이트박스 — 화면을 덮는 표면 */\n\n /* ==========================================================================\n Space Scale — 컨테이너·오버레이의 절대 여백\n ⚠**여백은 하나의 축이 아니다.** 이 스케일은 컨테이너/오버레이(카드·대화상자·드로어·\n 알림·메뉴·툴팁 등)의 **레이아웃 여백**만 담당한다. 폼·인라인 요소의 `em` 여백은\n 상속된 `font-size` 에 비례하는 것이 의도이므로 **여기로 흡수하지 않는다** —\n 흡수하면 타이포를 키운 소비자의 여백이 따라 커지지 않는다.\n 축 구분과 근거는 docs/design-tokens.md 참조.\n ========================================================================== */\n --u-space-3xs: 2px;\n --u-space-2xs: 4px;\n --u-space-xs: 6px;\n --u-space-sm: 8px;\n --u-space-md: 12px;\n --u-space-lg: 16px;\n /* ★상단 4단은 **화면 리듬**이다 — 카드 안쪽 여백(20~24)·섹션 간격(24~32)·페이지 여백\n (32~40). 종전에는 이 구간이 통째로 비어 있어 소비자가 전부 리터럴로 적었고,\n 그래서 앱마다 화면 밀도가 달라졌다. `lg`(16px) 이하는 **요소 사이**, `xl` 이상은\n **영역 사이**로 나눠 쓴다.\n ⚠`xs: 6px` 는 4px 격자에서 벗어나 있으나 **바꾸지 않는다** — 이미 배선된 컨트롤\n 여백이 전부 움직인다. 신규 단은 전부 4의 배수로 둔다. */\n --u-space-xl: 20px;\n --u-space-2xl: 24px;\n --u-space-3xl: 32px;\n --u-space-4xl: 40px;\n\n /* Text Colors */\n --u-txt-color: var(--u-neutral-900);\n --u-txt-color-inverse: var(--u-neutral-0);\n /* 유채색 배경 위의 글자. --u-txt-color-inverse 는 다크에서 neutral-100(#121212)이라\n 유채색 버튼 위에서 읽히지 않는다. 브랜드 색을 바꾸는 소비자가 전경색도 함께\n 조절할 수 있도록 별도 이름을 준다.\n ⚠이 토큰이 흰색이라는 것과 그 위의 배경이 AA 를 받친다는 것은 별개다 —\n 라이트 팔레트의 shade-600 은 8색 중 6색이 흰 글자로 AA 에 미달한다(미해결). */\n --u-primary-txt-color: #FFFFFF;\n --u-info-txt-color: #FFFFFF;\n --u-success-txt-color: #FFFFFF;\n --u-danger-txt-color: #FFFFFF;\n /* ★warning 만 어둡다 — 취향이 아니라 측정이다. 노랑은 **어떤 단도** 흰 글자로 AA 를\n 받치지 못한다(라이트 최대 2.65 @900, 그마저 갈색). 다른 넷처럼 단을 옮기는 수단이\n 없으므로 전경을 뒤집는다. `--u-neutral-1000` 은 라이트 #000000 / 다크 #FFFFFF 이라\n 한 줄로 양 테마를 만족한다(라이트 15.05 · 다크 4.65). */\n --u-warning-txt-color: var(--u-neutral-1000);\n\n --u-txt-color-hover: var(--u-primary-color-strong);\n --u-txt-color-active: var(--u-primary-color-strong);\n --u-txt-color-disabled: var(--u-neutral-400);\n /* 보조 텍스트는 «놓이는 모든 면»에서 AA(4.5)를 받쳐야 한다 — 바탕만이 아니다.\n neutral-600(#757575)은 바탕 4.61 에서만 통과하고 올림면(neutral-50) 4.41 ·\n active 면(neutral-200) 3.97 로 미달이었다(표 머리·카드 위 보조 텍스트).\n neutral-700(#616161) = 바탕 6.19 · 올림면 5.93 · active 5.34.\n 본문(neutral-900)과의 대비비는 2.60 으로, 보조 텍스트를 모든 표면 위에서\n 읽히게 보장하는 흔한 디자인 시스템 기준(본문 대비 약 1.3~1.8)보다 위계가 넓다. */\n --u-txt-color-weak: var(--u-neutral-700);\n /* ★Third text step — metadata, units, secondary columns, an empty value's dash: text that\n must stay readable (4.6 on the surface) but should recede behind -weak. Not a placeholder or a\n disabled colour (those are -disabled). */\n --u-txt-color-weaker: var(--u-neutral-600);\n --u-txt-color-strong: var(--u-neutral-1000);\n\n --u-link-txt-color: var(--u-primary-color-strong);\n --u-tooltip-txt-color: var(--u-neutral-0);\n\n /* Icon Colors */\n --u-icon-color: var(--u-neutral-700);\n --u-icon-color-inverse: var(--u-neutral-0);\n --u-icon-color-hover: var(--u-primary-color-strong);\n --u-icon-color-active: var(--u-primary-color-strong);\n --u-icon-color-disabled: var(--u-neutral-400);\n\n /* Border Colors */\n --u-border-color: var(--u-neutral-300);\n --u-border-color-weak: var(--u-neutral-200);\n --u-border-color-strong: var(--u-neutral-400);\n --u-border-color-hover: var(--u-neutral-400);\n\n /* ★상태 테두리는 `-strong` 단이다 — 면이 아니라 **면 위에 그리는 선**이기 때문이다.\n 1.16.0 이 가른 용도(`-color` = 면 / `-strong` = 면·바탕 위)에 이 자리가 맞춰지지\n 않아 다크에서 미달이었다: focus 2.74 · invalid 2.44 (WCAG 1.4.11 기준 3.0).\n `-strong` 으로 옮기면 다크 4.74 / 4.34, 라이트 5.75 / 5.62 — 두 테마 모두 단조 상승. */\n --u-input-border-color: var(--u-neutral-300);\n --u-input-border-color-hover: var(--u-neutral-400);\n --u-input-border-color-focus: var(--u-primary-color-strong);\n --u-input-border-color-invalid: var(--u-danger-color-strong);\n\n /* ★Field box — the text-entry controls (input, select, textarea, date pickers)\n share one box so a theme sets form density in one place. Defaults are em-relative: the\n box scales with the control's font size. Height = 1.5em line + 2 × block padding + 2px. */\n --u-field-padding-block: 0.3em;\n --u-field-padding-inline: 0.6em;\n --u-field-radius: 0.25em;\n\n /* Focus ring — a graphic drawn over the background, so it must clear 3:1 against it\n (WCAG 1.4.11). Defaults to the primary text step; a theme whose primary is a neutral\n ink can point it at an interaction hue instead. */\n --u-focus-ring-color: var(--u-primary-color-strong);\n\n /* Selection — the mark of a chosen option (a checked checkbox, a selected radio, a switch that is on, a\n selected row's checkbox) and the check drawn on it. Defaults to the primary pair; a theme whose primary\n is a neutral ink can point the selection at an interaction hue, the way it does the focus ring. */\n --u-selection-color: var(--u-primary-color);\n --u-selection-txt-color: var(--u-primary-txt-color);\n\n /* Background Colors */\n --u-bg-color: var(--u-neutral-0);\n --u-bg-color-inverse: var(--u-neutral-900);\n --u-bg-color-hover: var(--u-neutral-100);\n --u-bg-color-active: var(--u-neutral-200);\n --u-bg-color-disabled: var(--u-neutral-50);\n\n /* ★Canvas — the application background **behind** surfaces (page body, shell side\n panels). `--u-bg-color` is the surface: components paint their own face with it\n (buttons, menu items, options, tags, table bodies, sheets), so tinting it to make a\n page background greys every control inside a white card. Paint the page with this\n token instead and keep `--u-bg-color` as the surface. */\n --u-canvas-bg-color: var(--u-neutral-100); /* one step below raised chrome (50) and surfaces (0) */\n\n /* ★면 높이 — 바탕에 인접해 있으면서 한 단 구분되는 크롬 면(툴바·표 헤더·푸터).\n 상호작용 상태(-hover/-active/-disabled)와 **다른 축**이다. 상태 이름에 높이를\n 얹으면 의미가 어긋난다.\n `--u-panel-bg-color` 와도 다르다 — 그쪽은 **떠 있는 패널**(카드·대화상자·메뉴)이라\n 라이트에서 페이지와 같은 흰색이고 그림자가 높이를 나른다. 크롬 면은 그림자가 없어\n 라이트에서도 틴트가 필요하다.\n ⚠한 단만 정의한다. 두 단째의 실측 수요는 라이트 한쪽뿐이었다(다크에서는 소비 측\n 오버라이드가 두 값을 같은 단으로 합치고 있었다). */\n --u-bg-color-raised: var(--u-neutral-50);\n\n /* ⚠**라이트는 전역 hover 에 그대로 별칭한다 — 결손이 아니라 실측 결론이다**\n (dark.css 의 같은 자리 참조). 두 시트는 각각 완결적이어야 한다는\n 불변식(`token-fallbacks.test.ts` 「키 패리티」)이 있어 다크에만 선언할 수 없다.\n 라이트 팔레트는 raised(250)·hover(245)·active(238) 가 12단 안에 몰려 있어\n (L≈0.956/0.913/0.855) 셋과 겹치지 않는 네 번째 단을 넣을 여유가 없다 — 대비를\n 조금만 올려도(≈1.10) active 와 거의 붙고(≈1단 차), 더 올리면 순서가 뒤집힌다.\n 다크와 달리 raised(250)≠hover(245) 라 «완전히 안 움직이는» 결함이 아니었으므로\n (약한 대비 1.04 로 이미 알려진 채로 남는다 — 같은 초안이 지적한 곁가지),\n 새 단을 억지로 만들지 않고 기존 hover 를 그대로 쓴다. */\n --u-bg-color-raised-hover: var(--u-bg-color-hover);\n \n /* 유채색 표면 — 정보/성공/위험 상태의 '면'.\n 역할 층의 유채색은 전경 5단뿐이라, 상태 배경이 필요한 컴포넌트는 팔레트를 직접\n 읽고 다크를 손으로 보정해야 했다. 팔레트의 유채색 틴트는 다크에서 짓눌리므로\n (바탕 대비 델타의 다크/라이트 비 — 청색 0.38~0.54) 두 테마가 **같은 단이 아니라\n 같은 세기**가 되도록 짝지었다. 실측 비: blue 1.09 · red 1.12 · green 0.91.\n\n ★**warning 이 합류했다(1.16.0 → 1.17.0).** 종전에는 *\"세기를 맞출 단 짝이 없다\"* 며\n 빠져 있었는데, 그 판정은 **shade-0 짝만** 재고 있었다. 노랑만 한 단 내려 잡으면\n 라이트 쪽 세기가 맞는다 — 바탕 대비 휘도 델타 실측:\n blue-0 0.131 · red-0 0.132 · green-0 0.117 · **yellow-200 0.110** (yellow-0 은 0.027)\n ⚠단 이름이 계열마다 다른 것(yellow 만 200)은 이 층의 정상 상태다. 라이트 팔레트는\n 휘도 순이 아니므로 같은 단 번호가 같은 세기를 뜻하지 않는다. */\n --u-primary-bg-color: var(--u-blue-0);\n --u-info-bg-color: var(--u-blue-0);\n --u-success-bg-color: var(--u-green-0);\n --u-danger-bg-color: var(--u-red-0);\n --u-warning-bg-color: var(--u-yellow-200);\n\n --u-input-bg-color: var(--u-neutral-0);\n --u-panel-bg-color: var(--u-neutral-0);\n --u-overlay-bg-color: rgba(0, 0, 0, 0.5);\n --u-tooltip-bg-color: rgba(0, 0, 0, 0.75);\n\n /* Shadow Colors */\n --u-shadow-color-weaker: rgba(0, 0, 0, 0.04);\n --u-shadow-color-weak: rgba(0, 0, 0, 0.08);\n --u-shadow-color-normal: rgba(0, 0, 0, 0.12);\n --u-shadow-color-strong: rgba(0, 0, 0, 0.16);\n --u-shadow-color-stronger: rgba(0, 0, 0, 0.24);\n\n /* ==========================================================================\n Elevation Scale — 높이(그림자)\n\n ★색 축은 있었지만 **높이 축이 없었다.** 그 결과 컴포넌트가 그림자를 리터럴로\n 썼고, 같은 리듬을 의도한 자리에 서로 다른 값 11가지가 생겼다(카드 .1 vs 캐러셀\n .15 — 둘 다 \"표면에 얹힌 카드\"인데 알파가 다르다).\n\n ⚠**그리고 그 리터럴들은 테마를 몰랐다** — `rgba(0,0,0,.1)` 은 다크 바탕에서\n 거의 보이지 않는다. 이 축을 경유하면 다크의 진한 알파(.25~.60)를 자동으로 받는다.\n\n ⚠**알파를 `--u-shadow-color-*` 로 중첩하지 않고 인라인한다.** use-site 폴백\n 생성기는 합성 값을 리터럴로 다루므로, 중첩하면 `var(--u-shadow-md, 0 2px 8px\n var(--u-shadow-color-normal))` 처럼 **폴백 안에 또 토큰이 들어간다** — 시트가\n 없을 때 그 폴백도 함께 무효가 되어 그림자가 통째로 사라진다.\n 두 축의 알파가 어긋나지 않는지는 `tests/build/elevation-scale.test.ts` 가 지킨다.\n ========================================================================== */\n --u-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04); /* = shadow-color-weak — 표면에 얹힌 작은 컨트롤(탭·손잡이) */\n --u-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05); /* = shadow-color-normal — 카드·표면 */\n --u-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.06); /* = shadow-color-strong — 떠 있는 레이어(드롭다운·알림) */\n --u-shadow-xl: 0 6px 18px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.08); /* = shadow-color-stronger — 모달·최상위(대화상자·툴팁) */\n\n\n /* ==========================================================================\n Type Scale — 글자 크기·굵기·행간·자간의 **한 벌**\n ★**크기만 주면 스케일이 되지 않는다.** 소비자가 크기만 받고 굵기·행간을 각자 정하면\n 결국 화면마다 다른 위계가 생긴다 — 그래서 네 값을 **단 단위로 묶어** 낸다.\n\n 단 이름은 크기가 아니라 **역할**이다(`lg`/`xl` 이 아니라 `title`/`label`). 역할로 두면\n 소비자가 *\"어느 크기를 쓸까\"* 가 아니라 *\"이 글자는 무엇인가\"* 를 묻게 된다.\n\n ★**한글 기준으로 값을 골랐다**:\n ⑴ 행간은 **1.4 이상**. 라틴 관례(1.2)는 한글에서 답답하다 — 받침 때문에 글자 상자가\n 세로로 꽉 차 있어 라틴과 같은 행간이면 줄이 붙어 보인다.\n ⑵ 자간은 **0 이 기본**이고 큰 제목만 **음수**. 한글에 양수 자간(letter-spacing)을 주면\n 가독성이 떨어진다 — 라틴 소문자 조판 관례를 그대로 옮기면 안 되는 자리다.\n ⑶ `overline` 에만 양수 자간을 둔다. 그 단은 **영문·숫자 라벨**을 전제한 자리이고,\n 한글을 넣을 소비자는 자간을 0 으로 덮어야 한다(문서에 명시).\n\n ⚠**`text-transform` 은 토큰으로 내지 않는다.** 한글에는 대문자가 없어 `uppercase` 가\n 아무 효과가 없고, 영문이 섞이면 그것만 커져 오히려 어수선해진다.\n ========================================================================== */\n --u-text-display-size: 26px;\n --u-text-display-weight: 700;\n --u-text-display-leading: 1.4;\n --u-text-display-tracking: -0.02em;\n\n --u-text-title-size: 20px;\n --u-text-title-weight: 700;\n --u-text-title-leading: 1.45;\n --u-text-title-tracking: -0.01em;\n\n --u-text-subtitle-size: 16px;\n --u-text-subtitle-weight: 600;\n --u-text-subtitle-leading: 1.5;\n --u-text-subtitle-tracking: 0;\n\n --u-text-body-size: 14px;\n --u-text-body-weight: 400;\n --u-text-body-leading: 1.6;\n --u-text-body-tracking: 0;\n\n --u-text-label-size: 13px;\n --u-text-label-weight: 600;\n --u-text-label-leading: 1.5;\n --u-text-label-tracking: 0;\n\n --u-text-caption-size: 12px;\n --u-text-caption-weight: 400;\n --u-text-caption-leading: 1.5;\n --u-text-caption-tracking: 0;\n\n --u-text-overline-size: 11px;\n --u-text-overline-weight: 700;\n --u-text-overline-leading: 1.45;\n --u-text-overline-tracking: 0.06em;\n\n /* ==========================================================================\n Motion — 지속시간·이징\n ★값이 없으면 앱마다 다른 속도가 생기고, `prefers-reduced-motion` 은 **반드시**\n 빠뜨리는 앱이 나온다. 축을 여기 두고 존중 규칙은 아래 미디어 쿼리가 진다.\n ========================================================================== */\n --u-duration-instant: 80ms;\n --u-duration-fast: 140ms;\n --u-duration-normal: 220ms;\n --u-duration-slow: 320ms;\n --u-ease-standard: cubic-bezier(0.2, 0, 0, 1);\n --u-ease-decelerate: cubic-bezier(0, 0, 0, 1);\n --u-ease-accelerate: cubic-bezier(0.3, 0, 1, 1);\n\n /* Scrollbar Colors */\n --u-scrollbar-color: var(--u-neutral-400);\n --u-scrollbar-color-hover: var(--u-neutral-500);\n --u-scrollbar-track-color: transparent;\n\n /* ==========================================================================\n Chart categorical palette — 차트 «계열» 색(범주형), 순서가 곧 계약이다\n ★여덟 칸이 **한 벌로** 검증됐다(dataviz 검증기, 흰 면 · 올림면): OKLCH 밝기 대역 0.43–0.77 ·\n 채도 하한 0.1 · 색각 이상(적·녹) 이웃 ΔE ≥ 12.7 · 정상 시각 이웃 ΔE ≥ 28.1. 순서를 바꾸거나\n 한 칸만 갈아 끼우면 그 검증이 깨진다 — 리브랜딩은 여덟 칸을 함께 다시 고른다.\n ★1번이 브랜드 파랑과 같은 단(blue-700)이라 계열 하나짜리 차트는 제품 색으로 그려진다.\n 그러나 역할 토큰(--u-primary-color)을 참조하지 **않는다** — 브랜드를 바꿨을 때 1번만 움직이면\n 나머지 일곱과의 구별이 검증 밖으로 나간다(장식 축과 같은 면역).\n ⚠상태색(success·danger 등)과 겹치지 않는 단을 골랐다(green-600 ≠ success green-800 · 빨강 없음).\n ⚠6번(yellow-900)은 흰 면 대비 2.65:1 — 범례·직접 레이블·표 보기가 함께 있어야 한다.\n ========================================================================== */\n --u-chart-color-1: var(--u-blue-700);\n --u-chart-color-2: var(--u-pink-800);\n --u-chart-color-3: var(--u-cyan-700);\n --u-chart-color-4: var(--u-orange-900);\n --u-chart-color-5: var(--u-teal-500);\n --u-chart-color-6: var(--u-yellow-900);\n --u-chart-color-7: var(--u-purple-600);\n --u-chart-color-8: var(--u-green-600);\n\n /* ==========================================================================\n Font Styles\n ★**CJK 폴백을 스택에 포함한다 — 국제화이지 취향이 아니다.**\n 종전 스택(`-apple-system, Segoe UI, Noto Sans, Helvetica, Arial`)에는 **한중일 글립을\n 가진 폰트가 하나도 없었다.** Windows 에서 한글은 `Segoe UI` 에 없으므로 UA 가 임의로\n 맑은 고딕을 고르고, macOS 는 `-apple-system` 이 Apple SD Gothic Neo 를 준다 ⇒ **같은 앱이\n OS 마다 다른 글꼴로 렌더**됐다. 폴백을 명시하면 그 선택이 결정적이 된다.\n ⚠**웹폰트를 로드하지 않는다.** 라이브러리가 네트워크 요청을 만들면 소비자의 CSP·\n 오프라인 환경을 깬다. 스택 맨 앞의 `Pretendard` 는 **소비자가 로드했을 때만** 잡히는\n 선택적 이름이다(없으면 조용히 다음으로 넘어간다).\n ========================================================================== */\n --u-font-base: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Hiragino Sans', 'Yu Gothic UI', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\n --u-font-mono: ui-monospace, 'Cascadia Code', Consolas, 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;\n --u-font-serif: 'Georgia', 'Times New Roman', Times, serif;\n --u-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;\n --u-font-modern: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --u-font-rounded: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n}\n\n/* ==========================================================================\n ★`prefers-reduced-motion` 존중 — **라이브러리가 진다.**\n 소비자마다 각자 처리하게 두면 반드시 빠뜨리는 앱이 나온다(그리고 그 앱은\n 접근성 감사 전까지 아무도 모른다). 지속시간 축을 0 으로 눌러 두면 이 축을\n 경유하는 모든 애니메이션이 함께 멈춘다.\n ⚠`animation: none` 으로 강제하지 않는다 — 로딩 스피너처럼 **의미를 나르는**\n 움직임까지 죽이면 사용자가 진행 중인지 알 수 없게 된다.\n ========================================================================== */\n@media (prefers-reduced-motion: reduce) {\n :root {\n --u-duration-instant: 0ms;\n --u-duration-fast: 0ms;\n --u-duration-normal: 0ms;\n --u-duration-slow: 0ms;\n }\n}\n\n} /* @layer iyu.base */\n";
2
+ var light_css_default = "/*\n * 🔴Cascade layers — `@layer iyu.base, iyu.house;`\n *\n * iyu.base this sheet (neutral defaults every component can render with)\n * iyu.house a house theme such as `@iyulab/house-style`\n * (none) the application's own CSS — unlayered, so it always wins\n *\n * Unlayered styles beat every layer regardless of specificity or source order, so an\n * application overrides a token with a plain `:root { --u-… }` — no `:root:root` or\n * `:not([theme])` tricks, and no dependence on when `Theme.init()` injects this sheet.\n * ⚠That includes dark mode: an unlayered `:root` override applies in both themes. Scope it\n * with `:root[theme=\"dark\"]` (or `:root:not([theme=\"dark\"])`) when the value is mode-specific.\n *\n * The order statement is repeated by every sheet that joins a layer, so whichever loads\n * first fixes the same order.\n */\n@layer iyu.base, iyu.house;\n\n@layer iyu.base {\n:root {\n color-scheme: light;\n\n /* Neutral Colors */\n --u-neutral-0: #FFFFFF;\n --u-neutral-50: #FAFAFA;\n --u-neutral-100: #F5F5F5;\n --u-neutral-200: #EEEEEE;\n --u-neutral-300: #E0E0E0;\n --u-neutral-400: #BDBDBD;\n --u-neutral-500: #9E9E9E;\n --u-neutral-600: #757575;\n --u-neutral-700: #616161;\n --u-neutral-800: #424242;\n --u-neutral-900: #212121;\n --u-neutral-1000: #000000;\n\n /* Blue Colors */\n --u-blue-0: #E3F2FD;\n --u-blue-100: #BBDEFB;\n --u-blue-200: #90CAF9;\n --u-blue-300: #64B5F6;\n --u-blue-400: #42A5F5;\n --u-blue-500: #2196F3;\n --u-blue-600: #1E88E5;\n --u-blue-700: #1976D2;\n --u-blue-800: #1565C0;\n --u-blue-900: #0D47A1;\n --u-blue-1000: #062A5E;\n\n /* Green Colors */\n --u-green-0: #E8F5E9;\n --u-green-100: #C8E6C9;\n --u-green-200: #A5D6A7;\n --u-green-300: #81C784;\n --u-green-400: #66BB6A;\n --u-green-500: #4CAF50;\n --u-green-600: #43A047;\n --u-green-700: #388E3C;\n --u-green-800: #2E7D32;\n --u-green-900: #1B5E20;\n --u-green-1000: #0F3A12;\n\n /* Yellow Colors */\n --u-yellow-0: #FFFDE7;\n --u-yellow-100: #FFF9C4;\n --u-yellow-200: #FFF59D;\n --u-yellow-300: #FFF176;\n --u-yellow-400: #FFEE58;\n --u-yellow-500: #FFEB3B;\n --u-yellow-600: #FDD835;\n --u-yellow-700: #FBC02D;\n --u-yellow-800: #F9A825;\n --u-yellow-900: #F57F17;\n --u-yellow-1000: #8A4A00;\n\n /* Red Colors */\n --u-red-0: #FFEBEE;\n --u-red-100: #FFCDD2;\n --u-red-200: #EF9A9A;\n --u-red-300: #E57373;\n --u-red-400: #EF5350;\n --u-red-500: #F44336;\n --u-red-600: #E53935;\n --u-red-700: #D32F2F;\n --u-red-800: #C62828;\n --u-red-900: #B71C1C;\n --u-red-1000: #6B0F0F;\n\n /* Orange Colors */\n --u-orange-0: #FFF3E0;\n --u-orange-100: #FFE0B2;\n --u-orange-200: #FFCC80;\n --u-orange-300: #FFB74D;\n --u-orange-400: #FFA726;\n --u-orange-500: #FF9800;\n --u-orange-600: #FB8C00;\n --u-orange-700: #F57C00;\n --u-orange-800: #EF6C00;\n --u-orange-900: #E65100;\n --u-orange-1000: #8C3100;\n\n /* Teal Colors */\n --u-teal-0: #E0F2F1;\n --u-teal-100: #B2DFDB;\n --u-teal-200: #80CBC4;\n --u-teal-300: #4DB6AC;\n --u-teal-400: #26A69A;\n --u-teal-500: #009688;\n --u-teal-600: #00897B;\n --u-teal-700: #00796B;\n --u-teal-800: #00695C;\n --u-teal-900: #004D40;\n --u-teal-1000: #002E26;\n\n /* Cyan Colors */\n --u-cyan-0: #E0F7FA;\n --u-cyan-100: #B2EBF2;\n --u-cyan-200: #80DEEA;\n --u-cyan-300: #4DD0E1;\n --u-cyan-400: #26C6DA;\n --u-cyan-500: #00BCD4;\n --u-cyan-600: #00ACC1;\n --u-cyan-700: #0097A7;\n --u-cyan-800: #00838F;\n --u-cyan-900: #006064;\n --u-cyan-1000: #003A3D;\n\n /* Purple Colors */\n --u-purple-0: #F3E5F5;\n --u-purple-100: #E1BEE7;\n --u-purple-200: #CE93D8;\n --u-purple-300: #BA68C8;\n --u-purple-400: #AB47BC;\n --u-purple-500: #9C27B0;\n --u-purple-600: #8E24AA;\n --u-purple-700: #7B1FA2;\n --u-purple-800: #6A1B9A;\n --u-purple-900: #4A148C;\n --u-purple-1000: #2C0B54;\n\n /* Pink Colors */\n --u-pink-0: #FCE4EC;\n --u-pink-100: #F8BBD0;\n --u-pink-200: #F48FB1;\n --u-pink-300: #F06292;\n --u-pink-400: #EC407A;\n --u-pink-500: #E91E63;\n --u-pink-600: #D81B60;\n --u-pink-700: #C2185B;\n --u-pink-800: #AD1457;\n --u-pink-900: #880E4F;\n --u-pink-1000: #520830;\n\n /* ==========================================================================\n Role Colors — 의미 역할 층\n 컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.\n 브랜드 색 교체는 아래 30개만 재정의하면 시맨틱 층까지 따라온다.\n\n 단은 '강도' 축이다 (weakest -> strong). 용도(배경/테두리/텍스트)는\n 소비처가 정한다 -- 단을 속성에 묶으면 primary 버튼의 배경이 어느\n 단인지 같은 모순이 생긴다.\n ========================================================================== */\n\n /* ★단이 팔레트 shade 와 1:1 이 아니다 — **대비로 고른다.**\n `-color` 는 `--u-*-txt-color` 를 받는 면이고 `-strong` 은 바탕 위의 글자다.\n 라이트에서는 바탕도 on-color 도 흰색이라 두 요구가 `contrast(shade, #FFF) ≥ 4.5`\n 하나로 합쳐지고, 그 단이 계열마다 다르다(blue 700 · red 700 · green 800).\n Material 램프는 휘도가 아니라 색상 기준으로 만들어져 있어서 단 번호가 세기를\n 보장하지 않는다 — 값은 `tests/build/token-contrast.test.ts` 가 지킨다. */\n\n /* primary — 브랜드 · 강조 · 포커스 · 링크 */\n --u-primary-color-weakest: var(--u-blue-200);\n --u-primary-color-weaker: var(--u-blue-300);\n --u-primary-color-weak: var(--u-blue-500);\n --u-primary-color: var(--u-blue-700); /* 4.60 ✓ (600 은 3.68 ✗) */\n --u-primary-color-strong: var(--u-blue-800); /* 5.75 ✓ */\n\n /* info — 정보 안내 (primary 와 기본값은 같으나 역할이 다르다 — 브랜딩은 primary 만 바꾼다) */\n --u-info-color-weakest: var(--u-blue-200);\n --u-info-color-weaker: var(--u-blue-300);\n --u-info-color-weak: var(--u-blue-500);\n --u-info-color: var(--u-blue-700);\n --u-info-color-strong: var(--u-blue-800);\n\n /* secondary — 보조 브랜드 색 (primary 와 나란한 두 번째 시드 · 상태 의미 없음).\n 기본값은 primary·info 의 파랑과도 상태 색(green·yellow·red)과도 갈리는 purple 이다.\n purple 램프는 라이트에서 이미 진해 600 이 흰 글자 7.04 를 받는다. */\n --u-secondary-color-weakest: var(--u-purple-200);\n --u-secondary-color-weaker: var(--u-purple-300);\n --u-secondary-color-weak: var(--u-purple-500);\n --u-secondary-color: var(--u-purple-600); /* 7.04 ✓ */\n --u-secondary-color-strong: var(--u-purple-700); /* 8.20 ✓ */\n\n /* success — 성공 · 완료\n ⚠green 은 700 도 4.12 로 미달이라 두 단을 건너뛴다. 계열마다 통과 단이 다른 것이\n 이 층의 정상 상태다(단 번호를 맞추면 대비가 어긋난다). */\n --u-success-color-weakest: var(--u-green-200);\n --u-success-color-weaker: var(--u-green-300);\n --u-success-color-weak: var(--u-green-500);\n --u-success-color: var(--u-green-800); /* 5.13 ✓ (600=3.30 · 700=4.12 ✗) */\n --u-success-color-strong: var(--u-green-900); /* 7.87 ✓ */\n\n /* warning — 주의 */\n --u-warning-color-weakest: var(--u-yellow-200);\n --u-warning-color-weaker: var(--u-yellow-300);\n --u-warning-color-weak: var(--u-yellow-500);\n --u-warning-color: var(--u-yellow-600);\n /* ★다른 계열은 -strong 이 shade-800~900 인데 warning 만 1000 이다 — 노랑 램프는\n 900 까지도 흰 바탕 2.65 로 미달이고, 1000(#8A4A00)에서 처음 6.86 이 된다.\n 그 값은 갈색에 가깝지만, 이 단의 용도는 **면이 아니라 글자·아이콘**이므로 색상보다\n 가독성이 먼저다(경고 문구를 어두운 호박색으로 쓰는 것은 보편 관행이다). */\n --u-warning-color-strong: var(--u-yellow-1000);\n\n /* danger — 오류 · 위험 · 유효성 실패 */\n --u-danger-color-weakest: var(--u-red-200);\n --u-danger-color-weaker: var(--u-red-300);\n --u-danger-color-weak: var(--u-red-500);\n --u-danger-color: var(--u-red-700); /* 4.98 ✓ (600 은 4.23 ✗ — 오류 문구가 이 단이었다) */\n --u-danger-color-strong: var(--u-red-800); /* 5.62 ✓ */\n /* ==========================================================================\n Radius Scale — 모서리 반경\n 리터럴을 흩뿌리면 값이 갈린다(실제로 pill 이 999px/9999px 두 표기로 나뉘어 있었다).\n ========================================================================== */\n --u-radius-none: 0;\n --u-radius-sm: 3px;\n --u-radius-md: 4px;\n --u-radius-lg: 6px;\n --u-radius-xl: 8px;\n /* ★상단 2단은 **면(surface)용**이다 — 카드·패널·대화상자처럼 큰 사각형은 컨트롤과\n 같은 반경을 쓰면 각져 보인다. 기존 5단은 **컨트롤용**이고 값을 바꾸지 않는다\n (바꾸면 모든 소비자의 버튼·입력이 동시에 움직인다). */\n --u-radius-2xl: 12px;\n --u-radius-3xl: 16px;\n --u-radius-pill: 9999px;\n --u-radius-circle: 50%;\n\n /* ==========================================================================\n Layer Scale — 페이지 전역에서 겹치는 표면의 쌓임 순서\n 컴포넌트 «안» 의 국소 순서(1~100)는 그 컴포넌트의 쌓임 맥락 안에서만 뜻이 있어 여기 두지 않는다.\n 여기는 서로 다른 패키지의 표면이 페이지에서 다투는 층이다 — 값을 흩뿌리면 층이 갈린다\n (셸 1000 · 플로팅 1000 · 오버레이 9999 · 라이트박스 9999 가 각자 숫자였다).\n 오버레이 띠의 실제 값은 OverlayManager 가 «동시에 열린 깊이» 로 인라인에 쓴다 — 이 토큰은\n 그 띠의 시작값(열리기 전 기본값)이고 OverlayManager.OVERLAY_BASE 와 같아야 한다.\n ========================================================================== */\n --u-layer-shell: 1000; /* 앱 셸의 사이드바·모바일 머리 */\n --u-layer-floating: 1000; /* 팝오버·목록·메뉴 — 앵커를 따라 뜨는 표면 */\n --u-layer-overlay: 9999; /* 대화상자·서랍·라이트박스 — 화면을 덮는 표면 */\n\n /* ==========================================================================\n Space Scale — 컨테이너·오버레이의 절대 여백\n ⚠**여백은 하나의 축이 아니다.** 이 스케일은 컨테이너/오버레이(카드·대화상자·드로어·\n 알림·메뉴·툴팁 등)의 **레이아웃 여백**만 담당한다. 폼·인라인 요소의 `em` 여백은\n 상속된 `font-size` 에 비례하는 것이 의도이므로 **여기로 흡수하지 않는다** —\n 흡수하면 타이포를 키운 소비자의 여백이 따라 커지지 않는다.\n 축 구분과 근거는 docs/design-tokens.md 참조.\n ========================================================================== */\n --u-space-3xs: 2px;\n --u-space-2xs: 4px;\n --u-space-xs: 6px;\n --u-space-sm: 8px;\n --u-space-md: 12px;\n --u-space-lg: 16px;\n /* ★상단 4단은 **화면 리듬**이다 — 카드 안쪽 여백(20~24)·섹션 간격(24~32)·페이지 여백\n (32~40). 종전에는 이 구간이 통째로 비어 있어 소비자가 전부 리터럴로 적었고,\n 그래서 앱마다 화면 밀도가 달라졌다. `lg`(16px) 이하는 **요소 사이**, `xl` 이상은\n **영역 사이**로 나눠 쓴다.\n ⚠`xs: 6px` 는 4px 격자에서 벗어나 있으나 **바꾸지 않는다** — 이미 배선된 컨트롤\n 여백이 전부 움직인다. 신규 단은 전부 4의 배수로 둔다. */\n --u-space-xl: 20px;\n --u-space-2xl: 24px;\n --u-space-3xl: 32px;\n --u-space-4xl: 40px;\n\n /* Text Colors */\n --u-txt-color: var(--u-neutral-900);\n --u-txt-color-inverse: var(--u-neutral-0);\n /* 유채색 배경 위의 글자. --u-txt-color-inverse 는 다크에서 neutral-100(#121212)이라\n 유채색 버튼 위에서 읽히지 않는다. 브랜드 색을 바꾸는 소비자가 전경색도 함께\n 조절할 수 있도록 별도 이름을 준다.\n ⚠이 토큰이 흰색이라는 것과 그 위의 배경이 AA 를 받친다는 것은 별개다 —\n 라이트 팔레트의 shade-600 은 8색 중 6색이 흰 글자로 AA 에 미달한다(미해결). */\n --u-primary-txt-color: #FFFFFF;\n --u-info-txt-color: #FFFFFF;\n --u-secondary-txt-color: #FFFFFF;\n --u-success-txt-color: #FFFFFF;\n --u-danger-txt-color: #FFFFFF;\n /* ★warning 만 어둡다 — 취향이 아니라 측정이다. 노랑은 **어떤 단도** 흰 글자로 AA 를\n 받치지 못한다(라이트 최대 2.65 @900, 그마저 갈색). 다른 넷처럼 단을 옮기는 수단이\n 없으므로 전경을 뒤집는다. `--u-neutral-1000` 은 라이트 #000000 / 다크 #FFFFFF 이라\n 한 줄로 양 테마를 만족한다(라이트 15.05 · 다크 4.65). */\n --u-warning-txt-color: var(--u-neutral-1000);\n\n --u-txt-color-hover: var(--u-primary-color-strong);\n --u-txt-color-active: var(--u-primary-color-strong);\n --u-txt-color-disabled: var(--u-neutral-400);\n /* 보조 텍스트는 «놓이는 모든 면»에서 AA(4.5)를 받쳐야 한다 — 바탕만이 아니다.\n neutral-600(#757575)은 바탕 4.61 에서만 통과하고 올림면(neutral-50) 4.41 ·\n active 면(neutral-200) 3.97 로 미달이었다(표 머리·카드 위 보조 텍스트).\n neutral-700(#616161) = 바탕 6.19 · 올림면 5.93 · active 5.34.\n 본문(neutral-900)과의 대비비는 2.60 으로, 보조 텍스트를 모든 표면 위에서\n 읽히게 보장하는 흔한 디자인 시스템 기준(본문 대비 약 1.3~1.8)보다 위계가 넓다. */\n --u-txt-color-weak: var(--u-neutral-700);\n /* ★Third text step — metadata, units, secondary columns, an empty value's dash: text that\n must stay readable (4.6 on the surface) but should recede behind -weak. Not a placeholder or a\n disabled colour (those are -disabled). */\n --u-txt-color-weaker: var(--u-neutral-600);\n --u-txt-color-strong: var(--u-neutral-1000);\n\n --u-link-txt-color: var(--u-primary-color-strong);\n --u-tooltip-txt-color: var(--u-neutral-0);\n\n /* Icon Colors */\n --u-icon-color: var(--u-neutral-700);\n --u-icon-color-inverse: var(--u-neutral-0);\n --u-icon-color-hover: var(--u-primary-color-strong);\n --u-icon-color-active: var(--u-primary-color-strong);\n --u-icon-color-disabled: var(--u-neutral-400);\n\n /* Border Colors */\n --u-border-color: var(--u-neutral-300);\n --u-border-color-weak: var(--u-neutral-200);\n --u-border-color-strong: var(--u-neutral-400);\n --u-border-color-hover: var(--u-neutral-400);\n\n /* ★상태 테두리는 `-strong` 단이다 — 면이 아니라 **면 위에 그리는 선**이기 때문이다.\n 1.16.0 이 가른 용도(`-color` = 면 / `-strong` = 면·바탕 위)에 이 자리가 맞춰지지\n 않아 다크에서 미달이었다: focus 2.74 · invalid 2.44 (WCAG 1.4.11 기준 3.0).\n `-strong` 으로 옮기면 다크 4.74 / 4.34, 라이트 5.75 / 5.62 — 두 테마 모두 단조 상승. */\n --u-input-border-color: var(--u-neutral-300);\n --u-input-border-color-hover: var(--u-neutral-400);\n --u-input-border-color-focus: var(--u-primary-color-strong);\n --u-input-border-color-invalid: var(--u-danger-color-strong);\n\n /* ★Field box — the text-entry controls (input, select, textarea, date pickers)\n share one box so a theme sets form density in one place. Defaults are em-relative: the\n box scales with the control's font size. Height = 1.5em line + 2 × block padding + 2px. */\n --u-field-padding-block: 0.3em;\n --u-field-padding-inline: 0.6em;\n --u-field-radius: 0.25em;\n\n /* Focus ring — a graphic drawn over the background, so it must clear 3:1 against it\n (WCAG 1.4.11). Defaults to the primary text step; a theme whose primary is a neutral\n ink can point it at an interaction hue instead. */\n --u-focus-ring-color: var(--u-primary-color-strong);\n\n /* Selection — the mark of a chosen option (a checked checkbox, a selected radio, a switch that is on, a\n selected row's checkbox) and the check drawn on it. Defaults to the primary pair; a theme whose primary\n is a neutral ink can point the selection at an interaction hue, the way it does the focus ring. */\n --u-selection-color: var(--u-primary-color);\n --u-selection-txt-color: var(--u-primary-txt-color);\n\n /* Background Colors */\n --u-bg-color: var(--u-neutral-0);\n --u-bg-color-inverse: var(--u-neutral-900);\n --u-bg-color-hover: var(--u-neutral-100);\n --u-bg-color-active: var(--u-neutral-200);\n --u-bg-color-disabled: var(--u-neutral-50);\n\n /* ★Canvas — the application background **behind** surfaces (page body, shell side\n panels). `--u-bg-color` is the surface: components paint their own face with it\n (buttons, menu items, options, tags, table bodies, sheets), so tinting it to make a\n page background greys every control inside a white card. Paint the page with this\n token instead and keep `--u-bg-color` as the surface. */\n --u-canvas-bg-color: var(--u-neutral-100); /* one step below raised chrome (50) and surfaces (0) */\n\n /* ★면 높이 — 바탕에 인접해 있으면서 한 단 구분되는 크롬 면(툴바·표 헤더·푸터).\n 상호작용 상태(-hover/-active/-disabled)와 **다른 축**이다. 상태 이름에 높이를\n 얹으면 의미가 어긋난다.\n `--u-panel-bg-color` 와도 다르다 — 그쪽은 **떠 있는 패널**(카드·대화상자·메뉴)이라\n 라이트에서 페이지와 같은 흰색이고 그림자가 높이를 나른다. 크롬 면은 그림자가 없어\n 라이트에서도 틴트가 필요하다.\n ⚠한 단만 정의한다. 두 단째의 실측 수요는 라이트 한쪽뿐이었다(다크에서는 소비 측\n 오버라이드가 두 값을 같은 단으로 합치고 있었다). */\n --u-bg-color-raised: var(--u-neutral-50);\n\n /* ⚠**라이트는 전역 hover 에 그대로 별칭한다 — 결손이 아니라 실측 결론이다**\n (dark.css 의 같은 자리 참조). 두 시트는 각각 완결적이어야 한다는\n 불변식(`token-fallbacks.test.ts` 「키 패리티」)이 있어 다크에만 선언할 수 없다.\n 라이트 팔레트는 raised(250)·hover(245)·active(238) 가 12단 안에 몰려 있어\n (L≈0.956/0.913/0.855) 셋과 겹치지 않는 네 번째 단을 넣을 여유가 없다 — 대비를\n 조금만 올려도(≈1.10) active 와 거의 붙고(≈1단 차), 더 올리면 순서가 뒤집힌다.\n 다크와 달리 raised(250)≠hover(245) 라 «완전히 안 움직이는» 결함이 아니었으므로\n (약한 대비 1.04 로 이미 알려진 채로 남는다 — 같은 초안이 지적한 곁가지),\n 새 단을 억지로 만들지 않고 기존 hover 를 그대로 쓴다. */\n --u-bg-color-raised-hover: var(--u-bg-color-hover);\n \n /* 유채색 표면 — 정보/성공/위험 상태의 '면'.\n 역할 층의 유채색은 전경 5단뿐이라, 상태 배경이 필요한 컴포넌트는 팔레트를 직접\n 읽고 다크를 손으로 보정해야 했다. 팔레트의 유채색 틴트는 다크에서 짓눌리므로\n (바탕 대비 델타의 다크/라이트 비 — 청색 0.38~0.54) 두 테마가 **같은 단이 아니라\n 같은 세기**가 되도록 짝지었다. 실측 비: blue 1.09 · red 1.12 · green 0.91.\n\n ★**warning 이 합류했다(1.16.0 → 1.17.0).** 종전에는 *\"세기를 맞출 단 짝이 없다\"* 며\n 빠져 있었는데, 그 판정은 **shade-0 짝만** 재고 있었다. 노랑만 한 단 내려 잡으면\n 라이트 쪽 세기가 맞는다 — 바탕 대비 휘도 델타 실측:\n blue-0 0.131 · red-0 0.132 · green-0 0.117 · **yellow-200 0.110** (yellow-0 은 0.027)\n ⚠단 이름이 계열마다 다른 것(yellow 만 200)은 이 층의 정상 상태다. 라이트 팔레트는\n 휘도 순이 아니므로 같은 단 번호가 같은 세기를 뜻하지 않는다. */\n --u-primary-bg-color: var(--u-blue-0);\n --u-info-bg-color: var(--u-blue-0);\n --u-secondary-bg-color: var(--u-purple-0);\n --u-success-bg-color: var(--u-green-0);\n --u-danger-bg-color: var(--u-red-0);\n --u-warning-bg-color: var(--u-yellow-200);\n\n --u-input-bg-color: var(--u-neutral-0);\n --u-panel-bg-color: var(--u-neutral-0);\n --u-overlay-bg-color: rgba(0, 0, 0, 0.5);\n --u-tooltip-bg-color: rgba(0, 0, 0, 0.75);\n\n /* Shadow Colors */\n --u-shadow-color-weaker: rgba(0, 0, 0, 0.04);\n --u-shadow-color-weak: rgba(0, 0, 0, 0.08);\n --u-shadow-color-normal: rgba(0, 0, 0, 0.12);\n --u-shadow-color-strong: rgba(0, 0, 0, 0.16);\n --u-shadow-color-stronger: rgba(0, 0, 0, 0.24);\n\n /* ==========================================================================\n Elevation Scale — 높이(그림자)\n\n ★색 축은 있었지만 **높이 축이 없었다.** 그 결과 컴포넌트가 그림자를 리터럴로\n 썼고, 같은 리듬을 의도한 자리에 서로 다른 값 11가지가 생겼다(카드 .1 vs 캐러셀\n .15 — 둘 다 \"표면에 얹힌 카드\"인데 알파가 다르다).\n\n ⚠**그리고 그 리터럴들은 테마를 몰랐다** — `rgba(0,0,0,.1)` 은 다크 바탕에서\n 거의 보이지 않는다. 이 축을 경유하면 다크의 진한 알파(.25~.60)를 자동으로 받는다.\n\n ⚠**알파를 `--u-shadow-color-*` 로 중첩하지 않고 인라인한다.** use-site 폴백\n 생성기는 합성 값을 리터럴로 다루므로, 중첩하면 `var(--u-shadow-md, 0 2px 8px\n var(--u-shadow-color-normal))` 처럼 **폴백 안에 또 토큰이 들어간다** — 시트가\n 없을 때 그 폴백도 함께 무효가 되어 그림자가 통째로 사라진다.\n 두 축의 알파가 어긋나지 않는지는 `tests/build/elevation-scale.test.ts` 가 지킨다.\n ========================================================================== */\n --u-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04); /* = shadow-color-weak — 표면에 얹힌 작은 컨트롤(탭·손잡이) */\n --u-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05); /* = shadow-color-normal — 카드·표면 */\n --u-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.06); /* = shadow-color-strong — 떠 있는 레이어(드롭다운·알림) */\n --u-shadow-xl: 0 6px 18px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.08); /* = shadow-color-stronger — 모달·최상위(대화상자·툴팁) */\n\n\n /* ==========================================================================\n Type Scale — 글자 크기·굵기·행간·자간의 **한 벌**\n ★**크기만 주면 스케일이 되지 않는다.** 소비자가 크기만 받고 굵기·행간을 각자 정하면\n 결국 화면마다 다른 위계가 생긴다 — 그래서 네 값을 **단 단위로 묶어** 낸다.\n\n 단 이름은 크기가 아니라 **역할**이다(`lg`/`xl` 이 아니라 `title`/`label`). 역할로 두면\n 소비자가 *\"어느 크기를 쓸까\"* 가 아니라 *\"이 글자는 무엇인가\"* 를 묻게 된다.\n\n ★**한글 기준으로 값을 골랐다**:\n ⑴ 행간은 **1.4 이상**. 라틴 관례(1.2)는 한글에서 답답하다 — 받침 때문에 글자 상자가\n 세로로 꽉 차 있어 라틴과 같은 행간이면 줄이 붙어 보인다.\n ⑵ 자간은 **0 이 기본**이고 큰 제목만 **음수**. 한글에 양수 자간(letter-spacing)을 주면\n 가독성이 떨어진다 — 라틴 소문자 조판 관례를 그대로 옮기면 안 되는 자리다.\n ⑶ `overline` 에만 양수 자간을 둔다. 그 단은 **영문·숫자 라벨**을 전제한 자리이고,\n 한글을 넣을 소비자는 자간을 0 으로 덮어야 한다(문서에 명시).\n\n ⚠**`text-transform` 은 토큰으로 내지 않는다.** 한글에는 대문자가 없어 `uppercase` 가\n 아무 효과가 없고, 영문이 섞이면 그것만 커져 오히려 어수선해진다.\n ========================================================================== */\n --u-text-display-size: 26px;\n --u-text-display-weight: 700;\n --u-text-display-leading: 1.4;\n --u-text-display-tracking: -0.02em;\n\n --u-text-title-size: 20px;\n --u-text-title-weight: 700;\n --u-text-title-leading: 1.45;\n --u-text-title-tracking: -0.01em;\n\n --u-text-subtitle-size: 16px;\n --u-text-subtitle-weight: 600;\n --u-text-subtitle-leading: 1.5;\n --u-text-subtitle-tracking: 0;\n\n --u-text-body-size: 14px;\n --u-text-body-weight: 400;\n --u-text-body-leading: 1.6;\n --u-text-body-tracking: 0;\n\n --u-text-label-size: 13px;\n --u-text-label-weight: 600;\n --u-text-label-leading: 1.5;\n --u-text-label-tracking: 0;\n\n --u-text-caption-size: 12px;\n --u-text-caption-weight: 400;\n --u-text-caption-leading: 1.5;\n --u-text-caption-tracking: 0;\n\n --u-text-overline-size: 11px;\n --u-text-overline-weight: 700;\n --u-text-overline-leading: 1.45;\n --u-text-overline-tracking: 0.06em;\n\n /* ==========================================================================\n Motion — 지속시간·이징\n ★값이 없으면 앱마다 다른 속도가 생기고, `prefers-reduced-motion` 은 **반드시**\n 빠뜨리는 앱이 나온다. 축을 여기 두고 존중 규칙은 아래 미디어 쿼리가 진다.\n ========================================================================== */\n --u-duration-instant: 80ms;\n --u-duration-fast: 140ms;\n --u-duration-normal: 220ms;\n --u-duration-slow: 320ms;\n --u-ease-standard: cubic-bezier(0.2, 0, 0, 1);\n --u-ease-decelerate: cubic-bezier(0, 0, 0, 1);\n --u-ease-accelerate: cubic-bezier(0.3, 0, 1, 1);\n\n /* Scrollbar Colors */\n --u-scrollbar-color: var(--u-neutral-400);\n --u-scrollbar-color-hover: var(--u-neutral-500);\n --u-scrollbar-track-color: transparent;\n\n /* ==========================================================================\n Chart categorical palette — 차트 «계열» 색(범주형), 순서가 곧 계약이다\n ★여덟 칸이 **한 벌로** 검증됐다(dataviz 검증기, 흰 면 · 올림면): OKLCH 밝기 대역 0.43–0.77 ·\n 채도 하한 0.1 · 색각 이상(적·녹) 이웃 ΔE ≥ 12.7 · 정상 시각 이웃 ΔE ≥ 28.1. 순서를 바꾸거나\n 한 칸만 갈아 끼우면 그 검증이 깨진다 — 리브랜딩은 여덟 칸을 함께 다시 고른다.\n ★1번이 브랜드 파랑과 같은 단(blue-700)이라 계열 하나짜리 차트는 제품 색으로 그려진다.\n 그러나 역할 토큰(--u-primary-color)을 참조하지 **않는다** — 브랜드를 바꿨을 때 1번만 움직이면\n 나머지 일곱과의 구별이 검증 밖으로 나간다(장식 축과 같은 면역).\n ⚠상태색(success·danger 등)과 겹치지 않는 단을 골랐다(green-600 ≠ success green-800 · 빨강 없음).\n ⚠6번(yellow-900)은 흰 면 대비 2.65:1 — 범례·직접 레이블·표 보기가 함께 있어야 한다.\n ========================================================================== */\n --u-chart-color-1: var(--u-blue-700);\n --u-chart-color-2: var(--u-pink-800);\n --u-chart-color-3: var(--u-cyan-700);\n --u-chart-color-4: var(--u-orange-900);\n --u-chart-color-5: var(--u-teal-500);\n --u-chart-color-6: var(--u-yellow-900);\n --u-chart-color-7: var(--u-purple-600);\n --u-chart-color-8: var(--u-green-600);\n\n /* ==========================================================================\n Font Styles\n ★**CJK 폴백을 스택에 포함한다 — 국제화이지 취향이 아니다.**\n 종전 스택(`-apple-system, Segoe UI, Noto Sans, Helvetica, Arial`)에는 **한중일 글립을\n 가진 폰트가 하나도 없었다.** Windows 에서 한글은 `Segoe UI` 에 없으므로 UA 가 임의로\n 맑은 고딕을 고르고, macOS 는 `-apple-system` 이 Apple SD Gothic Neo 를 준다 ⇒ **같은 앱이\n OS 마다 다른 글꼴로 렌더**됐다. 폴백을 명시하면 그 선택이 결정적이 된다.\n ⚠**웹폰트를 로드하지 않는다.** 라이브러리가 네트워크 요청을 만들면 소비자의 CSP·\n 오프라인 환경을 깬다. 스택 맨 앞의 `Pretendard` 는 **소비자가 로드했을 때만** 잡히는\n 선택적 이름이다(없으면 조용히 다음으로 넘어간다).\n ========================================================================== */\n --u-font-base: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Hiragino Sans', 'Yu Gothic UI', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\n --u-font-mono: ui-monospace, 'Cascadia Code', Consolas, 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;\n --u-font-serif: 'Georgia', 'Times New Roman', Times, serif;\n --u-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;\n --u-font-modern: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --u-font-rounded: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n}\n\n/* ==========================================================================\n ★`prefers-reduced-motion` 존중 — **라이브러리가 진다.**\n 소비자마다 각자 처리하게 두면 반드시 빠뜨리는 앱이 나온다(그리고 그 앱은\n 접근성 감사 전까지 아무도 모른다). 지속시간 축을 0 으로 눌러 두면 이 축을\n 경유하는 모든 애니메이션이 함께 멈춘다.\n ⚠`animation: none` 으로 강제하지 않는다 — 로딩 스피너처럼 **의미를 나르는**\n 움직임까지 죽이면 사용자가 진행 중인지 알 수 없게 된다.\n ========================================================================== */\n@media (prefers-reduced-motion: reduce) {\n :root {\n --u-duration-instant: 0ms;\n --u-duration-fast: 0ms;\n --u-duration-normal: 0ms;\n --u-duration-slow: 0ms;\n }\n}\n\n} /* @layer iyu.base */\n";
3
3
  //#endregion
4
4
  export { light_css_default as default };
@@ -1,5 +1,6 @@
1
1
  import { CSSResultGroup, PropertyValues } from 'lit';
2
2
  import { UElement } from './UElement.js';
3
+ import { FieldDescriptionDisplay } from './field/UField.js';
3
4
  /**
4
5
  * 폼 컨트롤 컴포넌트의 공통 기반 클래스입니다.
5
6
  * 사용자 입력을 받는 모든 컴포넌트가 이 클래스를 확장합니다.
@@ -32,6 +33,11 @@ export declare abstract class UFormControlElement<T> extends UElement {
32
33
  label?: string;
33
34
  /** 보조 설명 텍스트 */
34
35
  description?: string;
36
+ /**
37
+ * 설명을 보이는 방식(`inline` · `hint`) — 비우면 앱 전역 기본값(`UField.descriptionDisplay`).
38
+ * 칸마다 가를 때 쓴다: 도움말은 `hint` 로 접고, 지금 상태를 말하는 안내(잠긴 이유 · 입력 상한)는 `inline` 으로 늘 보인다.
39
+ */
40
+ descriptionDisplay?: FieldDescriptionDisplay;
35
41
  /** 폼 제출 시 사용되는 이름 */
36
42
  name?: string;
37
43
  /** 폼 제출 시 사용되는 값. attribute 선언 시 기본은 raw 문자열로 해석한다 —
@@ -235,6 +235,10 @@ __decorate([property({
235
235
  __decorate([property({ type: Boolean }), __decorateMetadata("design:type", Boolean)], UFormControlElement.prototype, "novalidate", void 0);
236
236
  __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UFormControlElement.prototype, "label", void 0);
237
237
  __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UFormControlElement.prototype, "description", void 0);
238
+ __decorate([property({
239
+ type: String,
240
+ attribute: "description-display"
241
+ }), __decorateMetadata("design:type", Object)], UFormControlElement.prototype, "descriptionDisplay", void 0);
238
242
  __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UFormControlElement.prototype, "name", void 0);
239
243
  __decorate([property(), __decorateMetadata("design:type", Object)], UFormControlElement.prototype, "value", void 0);
240
244
  __decorate([state(), __decorateMetadata("design:type", Object)], UFormControlElement.prototype, "hasSlottedLabel", void 0);
@@ -2,7 +2,7 @@ import { nothing } from 'lit';
2
2
  import { UElement } from '../UElement.js';
3
3
  export type BadgeShape = "pill" | "dot" | "square";
4
4
  /** 역할 축(`primary`…`danger`, 의미 · 리브랜딩을 따라옴)과 장식 축(`blue`…, 색 자체 · 면역)이 병존한다. */
5
- export type BadgeColor = "neutral" | "primary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
5
+ export type BadgeColor = "neutral" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
6
6
  export type BadgeAnchor = "top-right" | "top-left" | "bottom-right" | "bottom-left";
7
7
  /**
8
8
  * 상태, 숫자, 알림 등의 정보를 배지로 표시하는 컴포넌트입니다.
@@ -27,7 +27,7 @@ export declare class UBadge extends UElement {
27
27
  * 의미가 없는 색(`neutral`·`primary`·장식 축)과 `shape="dot"` 에서는 그리지 않습니다.
28
28
  */
29
29
  icon: boolean;
30
- render(): import('lit-html').TemplateResult<1> | typeof nothing;
30
+ render(): typeof nothing | import('lit-html').TemplateResult<1>;
31
31
  }
32
32
  declare global {
33
33
  interface HTMLElementTagNameMap {
@@ -55,6 +55,10 @@ var styles = css`
55
55
  color: var(--u-info-txt-color, #FFFFFF);
56
56
  background-color: var(--u-info-color, #1976D2);
57
57
  }
58
+ :host([color="secondary"]) {
59
+ color: var(--u-secondary-txt-color, #FFFFFF);
60
+ background-color: var(--u-secondary-color, #8E24AA);
61
+ }
58
62
  :host([color="success"]) {
59
63
  color: var(--u-success-txt-color, #FFFFFF);
60
64
  background-color: var(--u-success-color, #2E7D32);
@@ -9,7 +9,7 @@ export type ButtonType = "button" | "submit" | "reset";
9
9
  /**
10
10
  * 두 축이 한 속성에 병존한다.
11
11
  *
12
- * - **역할 축**(`primary`·`info`·`success`·`warning`·`danger`) — *의미*를 말한다.
12
+ * - **역할 축**(`primary`·`secondary`·`info`·`success`·`warning`·`danger`) — *의미*를 말한다.
13
13
  * 색은 소비자의 역할 토큰이 정하므로 **리브랜딩을 따라오고**, 대비 계약을 물려받는다.
14
14
  * - **장식 축**(`blue`·`purple` …) — *색 자체*를 말한다. 소비자가 고른 색이므로
15
15
  * 리브랜딩에 **의도적으로 면역**이다.
@@ -17,7 +17,7 @@ export type ButtonType = "button" | "submit" | "reset";
17
17
  * ★브랜드가 빨강인 제품에서 `color="red"` 는 브랜드와 위험을 같은 이름으로 만든다 —
18
18
  * 그래서 위험은 `color="danger"` 로 쓴다.
19
19
  */
20
- export type ButtonColor = "neutral" | "primary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
20
+ export type ButtonColor = "neutral" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
21
21
  export type ButtonSize = "sm" | "md" | "lg";
22
22
  /**
23
23
  * 클릭 가능한 버튼 컴포넌트입니다. href가 설정되면 앵커 태그로 렌더링됩니다.
@@ -86,6 +86,12 @@ var styles = css`
86
86
  --btn-txt-color: var(--u-info-txt-color, #FFFFFF);
87
87
  --btn-color-surface: var(--u-info-bg-color, #E3F2FD);
88
88
  }
89
+ :host([color="secondary"]) {
90
+ --btn-color: var(--u-secondary-color, #8E24AA);
91
+ --btn-color-strong: var(--u-secondary-color-strong, #7B1FA2);
92
+ --btn-txt-color: var(--u-secondary-txt-color, #FFFFFF);
93
+ --btn-color-surface: var(--u-secondary-bg-color, #F3E5F5);
94
+ }
89
95
  :host([color="success"]) {
90
96
  --btn-color: var(--u-success-color, #2E7D32);
91
97
  --btn-color-strong: var(--u-success-color-strong, #1B5E20);
@@ -115,6 +121,7 @@ var styles = css`
115
121
 
116
122
  :host(:not([color])),
117
123
  :host([color="primary"]),
124
+ :host([color="secondary"]),
118
125
  :host([color="info"]),
119
126
  :host([color="success"]),
120
127
  :host([color="warning"]),
@@ -3,7 +3,7 @@ import { UFormControlElement } from '../UFormControlElement.js';
3
3
  /** 외형 정도 — `solid` 체크 칸을 색으로 채움(기본) · `outlined` 테두리와 체크 표시만 색. */
4
4
  export type CheckboxAppearance = "solid" | "outlined";
5
5
  /** 역할 축(`primary`…`danger`, 의미 · 리브랜딩을 따라옴)과 장식 축(`blue`…, 색 자체 · 면역)이 병존한다. */
6
- export type CheckboxColor = "primary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink" | "neutral";
6
+ export type CheckboxColor = "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink" | "neutral";
7
7
  /**
8
8
  * 선택/해제 상태를 토글하는 체크박스 컴포넌트입니다.
9
9
  * indeterminate 상태도 지원합니다.
@@ -82,6 +82,11 @@ var styles = css`
82
82
  --checkbox-hue-on-fill: var(--u-info-txt-color, #FFFFFF);
83
83
  --checkbox-hue-strong: var(--u-info-color-strong, #1565C0);
84
84
  }
85
+ :host([color="secondary"]) {
86
+ --checkbox-hue: var(--u-secondary-color, #8E24AA);
87
+ --checkbox-hue-on-fill: var(--u-secondary-txt-color, #FFFFFF);
88
+ --checkbox-hue-strong: var(--u-secondary-color-strong, #7B1FA2);
89
+ }
85
90
  :host([color="success"]) {
86
91
  --checkbox-hue: var(--u-success-color, #2E7D32);
87
92
  --checkbox-hue-on-fill: var(--u-success-txt-color, #FFFFFF);
@@ -186,6 +186,7 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
186
186
  ?invalid=${this.invalid}
187
187
  .label=${this.label}
188
188
  .description=${this.description}
189
+ .descriptionDisplay=${this.descriptionDisplay}
189
190
  .validationMessage=${this.validationMessage}
190
191
  >
191
192
  <div class="container" part="container" @click=${this.textEntry.handleContainerClick}
@@ -225,6 +225,7 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
225
225
  ?invalid=${this.invalid}
226
226
  .label=${this.label}
227
227
  .description=${this.description}
228
+ .descriptionDisplay=${this.descriptionDisplay}
228
229
  .validationMessage=${this.validationMessage}
229
230
  >
230
231
  <div class="container" part="container" @click=${this.textEntry.handleContainerClick}
@@ -60,8 +60,8 @@ export declare class UField extends UElement {
60
60
  * `hint` — 라벨 옆 정보 아이콘 + 툴팁. 설명은 컨트롤의 `aria-description` 으로 이미 전달되므로 아이콘은 보조기기에서 숨긴다.
61
61
  * 툴팁은 라벨 «위»(입력 칸을 가리지 않는다) · 아이콘 왼쪽 끝에 맞추고 화면 밖으로 나가면 밀어 넣는다.
62
62
  *
63
- * 여는 길은 셋이다 — 아이콘에 마우스를 올린다 · 필드의 컨트롤에 **키보드로** 들어온다(Tab · 프로그램 `focus()` — 눈으로 보는 키보드
64
- * 사용자는 마우스가 없다) · 아이콘을 **탭**한다(터치에는 오버가 없다). 아이콘을 포커스 가능한 버튼으로 만들지 않는
63
+ * 여는 길은 셋이다 — 아이콘에 마우스를 올린다 · 필드의 컨트롤에 **Tab 으로** 들어온다(눈으로 보는 키보드 사용자는 마우스가
64
+ * 없다 — 프로그램 `focus()` 는 사람이 옮긴 것이 아니라 열지 않는다) · 아이콘을 **탭**한다(터치에는 오버가 없다). 아이콘을 포커스 가능한 버튼으로 만들지 않는
65
65
  * 이유: 칸이 수십 개인 폼에서 탭 정지가 칸마다 하나씩 늘어난다. 닫는 길은 Escape(툴팁이 층이다) · 포커스가 필드를
66
66
  * 떠남 · 바깥 탭.
67
67
  */
@@ -82,7 +82,11 @@ export declare class UField extends UElement {
82
82
  */
83
83
  private focusByPointer;
84
84
  private handleHostPointerDown;
85
- /** 컨트롤에 키보드로 들어오면 설명을 보인다 — 포인터로 누른 포커스에는 열지 않는다(마우스에는 오버가 있다). */
85
+ /**
86
+ * 사람이 Tab 으로 컨트롤에 들어오면 설명을 보인다. 포인터로 누른 포커스(마우스에는 오버가 있다)와 **프로그램 `focus()`**
87
+ * (서랍·대화상자가 연 직후 첫 칸에 주는 초기 포커스 · `autofocus`)에는 열지 않는다 — 사람이 시작하지 않은 포커스에 열면
88
+ * 필요하지 않은 때 화면을 덮고, 덮는 대상이 바로 사람이 다음에 누를 그 칸이다.
89
+ */
86
90
  private handleFocusIn;
87
91
  private handleFocusOut;
88
92
  connectedCallback(): void;
@@ -38,6 +38,26 @@ function isNamedByContent(el) {
38
38
  const role = el.getAttribute("role");
39
39
  return (CONTENT_NAMED.test(el.localName) || !!role && CONTENT_NAMED_ROLES.test(role)) && (el.textContent ?? "").trim() !== "";
40
40
  }
41
+ /**
42
+ * 지금 일어나는 포커스 이동이 사람의 Tab 키인가 — 문서 하나에 감시자 하나. Tab 의 기본 동작(포커스 이동)은 keydown 과
43
+ * 같은 작업 안에서 일어나므로, keydown 에서 켜고 그 작업이 끝나면 끈다. 그 사이의 focusin 만 «Tab 으로 들어옴» 이다.
44
+ * Enter 로 연 서랍이 첫 칸에 `focus()` 하는 것은 Tab 이 아니므로 해당하지 않는다.
45
+ */
46
+ var tabNavigation = {
47
+ active: false,
48
+ installed: false,
49
+ install() {
50
+ if (this.installed || typeof document === "undefined") return;
51
+ this.installed = true;
52
+ document.addEventListener("keydown", (e) => {
53
+ if (e.key !== "Tab") return;
54
+ this.active = true;
55
+ setTimeout(() => {
56
+ this.active = false;
57
+ });
58
+ }, true);
59
+ }
60
+ };
41
61
  var UField = class UField extends UElement {
42
62
  static {
43
63
  _UField = this;
@@ -82,7 +102,7 @@ var UField = class UField extends UElement {
82
102
  const byPointer = this.focusByPointer;
83
103
  this.focusByPointer = false;
84
104
  const hint = this.hintEl;
85
- if (!hint || byPointer) return;
105
+ if (!hint || byPointer || !tabNavigation.active) return;
86
106
  this.hintTooltip?.show(hint);
87
107
  };
88
108
  this.handleFocusOut = (e) => {
@@ -126,8 +146,8 @@ var UField = class UField extends UElement {
126
146
  * `hint` — 라벨 옆 정보 아이콘 + 툴팁. 설명은 컨트롤의 `aria-description` 으로 이미 전달되므로 아이콘은 보조기기에서 숨긴다.
127
147
  * 툴팁은 라벨 «위»(입력 칸을 가리지 않는다) · 아이콘 왼쪽 끝에 맞추고 화면 밖으로 나가면 밀어 넣는다.
128
148
  *
129
- * 여는 길은 셋이다 — 아이콘에 마우스를 올린다 · 필드의 컨트롤에 **키보드로** 들어온다(Tab · 프로그램 `focus()` — 눈으로 보는 키보드
130
- * 사용자는 마우스가 없다) · 아이콘을 **탭**한다(터치에는 오버가 없다). 아이콘을 포커스 가능한 버튼으로 만들지 않는
149
+ * 여는 길은 셋이다 — 아이콘에 마우스를 올린다 · 필드의 컨트롤에 **Tab 으로** 들어온다(눈으로 보는 키보드 사용자는 마우스가
150
+ * 없다 — 프로그램 `focus()` 는 사람이 옮긴 것이 아니라 열지 않는다) · 아이콘을 **탭**한다(터치에는 오버가 없다). 아이콘을 포커스 가능한 버튼으로 만들지 않는
131
151
  * 이유: 칸이 수십 개인 폼에서 탭 정지가 칸마다 하나씩 늘어난다. 닫는 길은 Escape(툴팁이 층이다) · 포커스가 필드를
132
152
  * 떠남 · 바깥 탭.
133
153
  */
@@ -154,6 +174,7 @@ var UField = class UField extends UElement {
154
174
  }
155
175
  connectedCallback() {
156
176
  super.connectedCallback();
177
+ tabNavigation.install();
157
178
  this.addEventListener("pointerdown", this.handleHostPointerDown, true);
158
179
  this.addEventListener("focusin", this.handleFocusIn);
159
180
  this.addEventListener("focusout", this.handleFocusOut);
@@ -58,6 +58,8 @@ var styles = css`
58
58
  white-space: normal;
59
59
  font-weight: 400;
60
60
  line-height: 1.45;
61
+
62
+ pointer-events: none;
61
63
  }
62
64
 
63
65
  .label {
@@ -93,6 +93,7 @@ var UFileInput = class UFileInput extends UFormControlElement {
93
93
  ?invalid=${this.invalid}
94
94
  .label=${this.label}
95
95
  .description=${this.description}
96
+ .descriptionDisplay=${this.descriptionDisplay}
96
97
  .validationMessage=${this.validationMessage}
97
98
  >
98
99
  <div class="container" part="container">
@@ -199,6 +199,7 @@ var UInput = class UInput extends UFormControlElement {
199
199
  ?invalid=${this.invalid}
200
200
  .label=${this.label}
201
201
  .description=${this.description}
202
+ .descriptionDisplay=${this.descriptionDisplay}
202
203
  .validationMessage=${this.validationMessage}
203
204
  >
204
205
  <div class="container" part="container"
@@ -103,6 +103,7 @@ var URadio = class URadio extends UFormControlElement {
103
103
  ?invalid=${this.invalid}
104
104
  .label=${this.label}
105
105
  .description=${this.description}
106
+ .descriptionDisplay=${this.descriptionDisplay}
106
107
  .validationMessage=${this.validationMessage}
107
108
  >
108
109
  <div class="container" part="container"
@@ -114,6 +114,7 @@ var URating = class URating extends UFormControlElement {
114
114
  ?invalid=${this.invalid}
115
115
  .label=${this.label}
116
116
  .description=${this.description}
117
+ .descriptionDisplay=${this.descriptionDisplay}
117
118
  .validationMessage=${this.validationMessage}
118
119
  >
119
120
  <div class="symbols" part="container" role="radiogroup"
@@ -192,6 +192,7 @@ var USelect = class USelect extends UFormControlElement {
192
192
  ?invalid=${this.invalid}
193
193
  .label=${this.label}
194
194
  .description=${this.description}
195
+ .descriptionDisplay=${this.descriptionDisplay}
195
196
  .validationMessage=${this.validationMessage}
196
197
  >
197
198
  <span slot="label-aside" class="count" ?hidden=${!this.multiple || !this.maxCount}>
@@ -143,6 +143,7 @@ var USlider = class USlider extends UFormControlElement {
143
143
  ?invalid=${this.invalid}
144
144
  .label=${this.label}
145
145
  .description=${this.description}
146
+ .descriptionDisplay=${this.descriptionDisplay}
146
147
  .validationMessage=${this.validationMessage}
147
148
  >
148
149
  <span slot="label-aside" ?hidden=${!this.showValue}>
@@ -1,6 +1,6 @@
1
1
  import { UElement } from '../UElement.js';
2
2
  /** 역할 축(`primary`…`danger`, 의미 · 리브랜딩을 따라옴)과 장식 축(`blue`…, 색 자체 · 면역)이 병존한다. */
3
- export type SpinnerColor = "neutral" | "primary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
3
+ export type SpinnerColor = "neutral" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
4
4
  /**
5
5
  * 로딩 상태를 나타내는 회전 스피너 컴포넌트입니다.
6
6
  *
@@ -13,6 +13,7 @@ var styles = css`
13
13
 
14
14
  :host([color="primary"]) { --spinner-indicator-color: var(--u-primary-color-strong, #1565C0); }
15
15
  :host([color="info"]) { --spinner-indicator-color: var(--u-info-color-strong, #1565C0); }
16
+ :host([color="secondary"]) { --spinner-indicator-color: var(--u-secondary-color-strong, #7B1FA2); }
16
17
  :host([color="success"]) { --spinner-indicator-color: var(--u-success-color-strong, #1B5E20); }
17
18
  :host([color="warning"]) { --spinner-indicator-color: var(--u-warning-color-strong, #8A4A00); }
18
19
  :host([color="danger"]) { --spinner-indicator-color: var(--u-danger-color-strong, #C62828); }
@@ -1,5 +1,7 @@
1
1
  import { PropertyValues, TemplateResult } from 'lit';
2
2
  import { UElement } from '../UElement.js';
3
+ /** `u-tab` 개수의 모양 — `badge` 는 알약 면(눈을 끈다), `plain` 은 면 없는 보조 숫자(정보). */
4
+ export type TabCountAppearance = 'badge' | 'plain';
3
5
  /**
4
6
  * 탭 아이템 — `u-tab-panel` 안에서는 패널을 고르는 탭(`role="tab"`), `href` 를 주면 `u-tab-nav` 안의
5
7
  * 이동 링크(저장된 보기 = URL)다. 링크 탭은 탭 역할을 갖지 않는다 — 다른 쪽으로 이동하는 것은 탭이 아니라
@@ -40,6 +42,16 @@ export declare class UTab extends UElement {
40
42
  rel?: string;
41
43
  /** 레이블 뒤의 조용한 개수(그 보기의 항목 수) — 현재 로캘의 숫자 표기로 그린다. 없으면 그리지 않는다. */
42
44
  count?: number;
45
+ /**
46
+ * 개수의 모양 — `badge`(알약 면, 기본) · `plain`(면 없는 보조 숫자 — 탭이 많아 배지가 레이블보다 먼저 읽힐 때).
47
+ * 비우면 앱 전역 기본값(`UTab.countAppearance`).
48
+ */
49
+ countAppearance?: TabCountAppearance;
50
+ /**
51
+ * 앱 전역 기본값 — 앱 시작 때 한 번 정한다(예: `UTab.countAppearance = 'plain'`). 이미 그려진 탭은 다음 렌더부터 따른다.
52
+ * @default 'badge'
53
+ */
54
+ static countAppearance: TabCountAppearance;
43
55
  connectedCallback(): void;
44
56
  protected willUpdate(changedProperties: PropertyValues): void;
45
57
  protected updated(changedProperties: PropertyValues): void;
@@ -10,7 +10,11 @@ import { html, nothing } from "lit";
10
10
  import { customElement, property } from "lit/decorators.js";
11
11
  import { ifDefined } from "lit/directives/if-defined.js";
12
12
  //#region src/components/tab/UTab.ts
13
+ var _UTab;
13
14
  var UTab = class UTab extends UElement {
15
+ static {
16
+ _UTab = this;
17
+ }
14
18
  constructor(..._args) {
15
19
  super(..._args);
16
20
  this.disabled = false;
@@ -30,6 +34,9 @@ var UTab = class UTab extends UElement {
30
34
  static {
31
35
  this.styles = [super.styles, styles];
32
36
  }
37
+ static {
38
+ this.countAppearance = "badge";
39
+ }
33
40
  connectedCallback() {
34
41
  super.connectedCallback();
35
42
  this.applyRole();
@@ -86,7 +93,8 @@ var UTab = class UTab extends UElement {
86
93
  return html`
87
94
  <slot name="prefix"></slot>
88
95
  <slot></slot>
89
- ${this.count == null || Number.isNaN(this.count) ? nothing : html`<span class="count" part="count">${formatNumber(this.count)}</span>`}
96
+ ${this.count == null || Number.isNaN(this.count) ? nothing : html`<span class="count ${(this.countAppearance ?? _UTab.countAppearance) === "plain" ? "plain" : "badge"}"
97
+ part="count">${formatNumber(this.count)}</span>`}
90
98
  <slot name="suffix"></slot>
91
99
  `;
92
100
  }
@@ -118,6 +126,10 @@ __decorate([property({
118
126
  __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UTab.prototype, "target", void 0);
119
127
  __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UTab.prototype, "rel", void 0);
120
128
  __decorate([property({ type: Number }), __decorateMetadata("design:type", Number)], UTab.prototype, "count", void 0);
121
- UTab = __decorate([customElement("u-tab")], UTab);
129
+ __decorate([property({
130
+ type: String,
131
+ attribute: "count-appearance"
132
+ }), __decorateMetadata("design:type", Object)], UTab.prototype, "countAppearance", void 0);
133
+ UTab = _UTab = __decorate([customElement("u-tab")], UTab);
122
134
  //#endregion
123
135
  export { UTab };
@@ -73,6 +73,16 @@ var styles = css`
73
73
  font-variant-numeric: tabular-nums;
74
74
  text-align: center;
75
75
  }
76
+
77
+ .count.plain {
78
+ margin-left: 0.35em;
79
+ min-width: 0;
80
+ padding: 0;
81
+ background-color: transparent;
82
+ font-size: 0.9em;
83
+ line-height: inherit;
84
+ font-weight: 400;
85
+ }
76
86
 
77
87
  .remove-btn {
78
88
  flex-shrink: 0;
@@ -2,11 +2,11 @@ import { UElement } from '../UElement.js';
2
2
  /** 외형 정도 — `solid` 꽉 찬 면 · `soft` 옅은 틴트(기본) · `outlined` 테두리 · `plain` 글자만. */
3
3
  export type TagAppearance = "solid" | "soft" | "outlined" | "plain";
4
4
  /**
5
- * 두 축이 병존한다 — **역할 축**(`primary`·`info`·`success`·`warning`·`danger`)은 *의미*를
5
+ * 두 축이 병존한다 — **역할 축**(`primary`·`secondary`·`info`·`success`·`warning`·`danger`)은 *의미*를
6
6
  * 말하고 리브랜딩을 따라오며 대비 계약을 물려받는다. **장식 축**(`blue`·`purple` …)은
7
7
  * *색 자체*를 말하고 리브랜딩에 의도적으로 면역이다. `neutral`(기본)은 **무채색**이다.
8
8
  */
9
- export type TagColor = "neutral" | "primary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
9
+ export type TagColor = "neutral" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
10
10
  /** 크기 — `md`(기본: 캡션 글자) · `sm`(오버라인 글자 · 세로 여백 없음 — 표 칸의 식별자 옆 속성처럼 글줄 안에 앉는 작은 표식). */
11
11
  export type TagSize = "sm" | "md";
12
12
  /**
@@ -33,6 +33,14 @@ var styles = css`
33
33
  --tag-hue-text: var(--u-info-color-strong, #1565C0);
34
34
  --tag-hue-text-outlined: var(--u-info-color-strong, #1565C0);
35
35
  }
36
+ :host([color="secondary"]) {
37
+ --tag-hue-solid: var(--u-secondary-color, #8E24AA);
38
+ --tag-hue-on-solid: var(--u-secondary-txt-color, #FFFFFF);
39
+ --tag-hue-line: var(--u-secondary-color-weak, #9C27B0);
40
+ --tag-hue-surface: var(--u-secondary-bg-color, #F3E5F5);
41
+ --tag-hue-text: var(--u-secondary-color-strong, #7B1FA2);
42
+ --tag-hue-text-outlined: var(--u-secondary-color-strong, #7B1FA2);
43
+ }
36
44
  :host([color="success"]) {
37
45
  --tag-hue-solid: var(--u-success-color, #2E7D32);
38
46
  --tag-hue-on-solid: var(--u-success-txt-color, #FFFFFF);
@@ -52,6 +52,7 @@ var UTextarea = class UTextarea extends UFormControlElement {
52
52
  ?invalid=${this.invalid}
53
53
  .label=${this.label}
54
54
  .description=${this.description}
55
+ .descriptionDisplay=${this.descriptionDisplay}
55
56
  .validationMessage=${this.validationMessage}
56
57
  >
57
58
  <div class="container" part="container">
@@ -154,7 +154,7 @@
154
154
  /* ==========================================================================
155
155
  Role Colors — 의미 역할 층
156
156
  컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.
157
- 브랜드 색 교체는 아래 25개만 재정의하면 시맨틱 층까지 따라온다.
157
+ 브랜드 색 교체는 아래 30개만 재정의하면 시맨틱 층까지 따라온다.
158
158
 
159
159
  단은 '강도' 축이다 (weakest -> strong). 용도(배경/테두리/텍스트)는
160
160
  소비처가 정한다 -- 단을 속성에 묶으면 primary 버튼의 배경이 어느
@@ -184,6 +184,13 @@
184
184
  --u-info-color: var(--u-blue-600);
185
185
  --u-info-color-strong: var(--u-blue-800);
186
186
 
187
+ /* secondary — 보조 브랜드 색(light.css 참조). primary 와 같은 단 구성이다. */
188
+ --u-secondary-color-weakest: var(--u-purple-200);
189
+ --u-secondary-color-weaker: var(--u-purple-300);
190
+ --u-secondary-color-weak: var(--u-purple-500);
191
+ --u-secondary-color: var(--u-purple-600); /* 면: 흰 글자 6.03 ✓ */
192
+ --u-secondary-color-strong: var(--u-purple-800); /* 글자: 바탕 5.77 ✓ (700 은 4.17 ✗) */
193
+
187
194
  /* success — 성공 · 완료 */
188
195
  --u-success-color-weakest: var(--u-green-200);
189
196
  --u-success-color-weaker: var(--u-green-300);
@@ -211,6 +218,7 @@
211
218
  /* 유채색 배경 위의 글자 — warning 만 다르다(light.css 참조). */
212
219
  --u-primary-txt-color: #FFFFFF;
213
220
  --u-info-txt-color: #FFFFFF;
221
+ --u-secondary-txt-color: #FFFFFF;
214
222
  --u-success-txt-color: #FFFFFF;
215
223
  --u-danger-txt-color: #FFFFFF;
216
224
  /* ★라이트 시트와 같은 이유로 중립 최상단을 쓴다 — 다크에서는 그 값이 #FFFFFF 라
@@ -310,6 +318,7 @@
310
318
  팔레트 유채색 틴트가 다크에서 짓눌리므로 한 단 위를 쓴다. green 은 대칭이라 그대로. */
311
319
  --u-primary-bg-color: var(--u-blue-100);
312
320
  --u-info-bg-color: var(--u-blue-100);
321
+ --u-secondary-bg-color: var(--u-purple-100);
313
322
  --u-success-bg-color: var(--u-green-0);
314
323
  --u-danger-bg-color: var(--u-red-100);
315
324
  /* warning 합류 — 라이트는 yellow-200 이다(단 이름이 다른 이유는 light.css 참조). */
@@ -154,7 +154,7 @@
154
154
  /* ==========================================================================
155
155
  Role Colors — 의미 역할 층
156
156
  컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.
157
- 브랜드 색 교체는 아래 25개만 재정의하면 시맨틱 층까지 따라온다.
157
+ 브랜드 색 교체는 아래 30개만 재정의하면 시맨틱 층까지 따라온다.
158
158
 
159
159
  단은 '강도' 축이다 (weakest -> strong). 용도(배경/테두리/텍스트)는
160
160
  소비처가 정한다 -- 단을 속성에 묶으면 primary 버튼의 배경이 어느
@@ -182,6 +182,15 @@
182
182
  --u-info-color: var(--u-blue-700);
183
183
  --u-info-color-strong: var(--u-blue-800);
184
184
 
185
+ /* secondary — 보조 브랜드 색 (primary 와 나란한 두 번째 시드 · 상태 의미 없음).
186
+ 기본값은 primary·info 의 파랑과도 상태 색(green·yellow·red)과도 갈리는 purple 이다.
187
+ purple 램프는 라이트에서 이미 진해 600 이 흰 글자 7.04 를 받는다. */
188
+ --u-secondary-color-weakest: var(--u-purple-200);
189
+ --u-secondary-color-weaker: var(--u-purple-300);
190
+ --u-secondary-color-weak: var(--u-purple-500);
191
+ --u-secondary-color: var(--u-purple-600); /* 7.04 ✓ */
192
+ --u-secondary-color-strong: var(--u-purple-700); /* 8.20 ✓ */
193
+
185
194
  /* success — 성공 · 완료
186
195
  ⚠green 은 700 도 4.12 로 미달이라 두 단을 건너뛴다. 계열마다 통과 단이 다른 것이
187
196
  이 층의 정상 상태다(단 번호를 맞추면 대비가 어긋난다). */
@@ -272,6 +281,7 @@
272
281
  라이트 팔레트의 shade-600 은 8색 중 6색이 흰 글자로 AA 에 미달한다(미해결). */
273
282
  --u-primary-txt-color: #FFFFFF;
274
283
  --u-info-txt-color: #FFFFFF;
284
+ --u-secondary-txt-color: #FFFFFF;
275
285
  --u-success-txt-color: #FFFFFF;
276
286
  --u-danger-txt-color: #FFFFFF;
277
287
  /* ★warning 만 어둡다 — 취향이 아니라 측정이다. 노랑은 **어떤 단도** 흰 글자로 AA 를
@@ -388,6 +398,7 @@
388
398
  휘도 순이 아니므로 같은 단 번호가 같은 세기를 뜻하지 않는다. */
389
399
  --u-primary-bg-color: var(--u-blue-0);
390
400
  --u-info-bg-color: var(--u-blue-0);
401
+ --u-secondary-bg-color: var(--u-purple-0);
391
402
  --u-success-bg-color: var(--u-green-0);
392
403
  --u-danger-bg-color: var(--u-red-0);
393
404
  --u-warning-bg-color: var(--u-yellow-200);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/components",
3
3
  "description": "web-components library based on lit-element made by iyulab",
4
- "version": "2.28.1",
4
+ "version": "2.30.0",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",
@@ -41,6 +41,6 @@ Status badge for numbers, labels, or dot indicators. Use `anchor` to position it
41
41
  | Property | Type | Default | Reflect | Description |
42
42
  |----------|------|---------|---------|-------------|
43
43
  | `shape` | `'pill'\|'dot'\|'square'` | `'pill'` | ✓ | Shape; `dot` renders no content |
44
- | `color` | `'neutral'\|'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | `'blue'` | ✓ | Badge color (role axis = semantics, decorative axis = the color itself) |
44
+ | `color` | `'neutral'\|'primary'\|'secondary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | `'blue'` | ✓ | Badge color (role axis = semantics, decorative axis = the color itself) |
45
45
  | `anchor` | `'top-right'\|'top-left'\|'bottom-right'\|'bottom-left'` | — | ✓ | Absolute anchor position relative to parent |
46
46
  | `icon` | `boolean` | `false` | ✓ | Adds a status icon so the meaning survives without color (`info`/`success`/`warning`/`danger`; not drawn for `shape="dot"`) |
@@ -46,7 +46,7 @@ Versatile button with multiple appearances. Renders as an `<a>` element when `hr
46
46
  | Property | Type | Default | Reflect | Description |
47
47
  |----------|------|---------|---------|-------------|
48
48
  | `appearance` | `'solid'\|'soft'\|'outlined'\|'plain'\|'link'` | `'solid'` | ✓ | How much chrome: `solid` filled with the colour · `soft` tint, no outline · `outlined` · `plain` no chrome · `link` |
49
- | `color` | `'neutral'\|'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | — | ✓ | Color, independent of `appearance`. Unset paints like `primary` (the brand colour) without adding the attribute; `neutral` is an achromatic (grey) button (see notes below). |
49
+ | `color` | `'neutral'\|'primary'\|'secondary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | — | ✓ | Color, independent of `appearance`. Unset paints like `primary` (the brand colour) without adding the attribute; `neutral` is an achromatic (grey) button (see notes below). |
50
50
  | `size` | `'sm'\|'md'\|'lg'` | `'md'` | ✓ | Button size (font-size `--u-density` × 6/7 · × 1 · × 8/7 — 12/14/16px at the default density; padding, spinner, and icon slots scale proportionally). |
51
51
  | `rounded` | `boolean` | `false` | ✓ | Pill-shaped border radius |
52
52
  | `disabled` | `boolean` | `false` | ✓ | Disable the button |
@@ -99,7 +99,7 @@ as an empty attribute (`<UButton aria-expanded={open}>`), and an empty value is
99
99
  | `--btn-txt-color` | Text color on the fill, read by `appearance="solid"` (default `#fff`, or `--u-{role}-txt-color` when a semantic `color` is set) |
100
100
  | `--btn-color-strong` | Text color on the surrounding page background, read by `appearance="link"` and `"plain"` — opposite contrast need from the fill, so it's a separate token (default: same as `--btn-color`, or `--u-{role}-color-strong` for a semantic `color`) |
101
101
  | `--btn-color-hover` / `--btn-color-active` | `solid` background hover/active (default: `--btn-color` at 85%/70% mixed with black — or with white when `--btn-color` is dark, OKLab lightness below 0.4, so a near-black brand still shows its states) |
102
- | `--btn-color-surface` / `-hover` / `-active` | `soft` background states — role colors (`primary`·`info`·`success`·`warning`·`danger`) use `--u-{role}-bg-color` and deepen it with 18%/30% of `--btn-color`; other colors mix `--btn-color` at 12%/22%/32%. A colored `plain` button hovers onto the same surface |
102
+ | `--btn-color-surface` / `-hover` / `-active` | `soft` background states — role colors (`primary`·`secondary`·`info`·`success`·`warning`·`danger`) use `--u-{role}-bg-color` and deepen it with 18%/30% of `--btn-color`; other colors mix `--btn-color` at 12%/22%/32%. A colored `plain` button hovers onto the same surface |
103
103
  | `--btn-color-border` / `-hover` / `-active` | Border states (default: `--btn-color` at 45%/60%/75%) |
104
104
  | `--btn-color-outline-hover` / `-active` | `outlined`/`plain` background hover/active (default: 6%/12%) |
105
105
  | `--btn-color-strong-hover` / `-active` | `link` text hover/active — the role value itself doesn't move; hover adds an underline instead (default: `--btn-color-strong` at 85%/70% mixed with black, or white when it is dark) |
@@ -34,7 +34,7 @@ Checkbox with `indeterminate` state support. Form-associated (`formAssociated =
34
34
  | `checked` | `boolean` | `false` | ✓ | Checked state |
35
35
  | `indeterminate` | `boolean` | `false` | ✓ | Partial / indeterminate state |
36
36
  | `appearance` | `'solid'\|'outlined'` | `'solid'` | ✓ | `solid` fills the checked box with the colour · `outlined` colours the border and checkmark |
37
- | `color` | `'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'\|'neutral'` | `'primary'` | ✓ | Accent color — role axis (`primary`…`danger`, follows rebranding) and decorative axis (`blue`…, the palette colour itself, immune to it). `neutral` is grey. `primary` fills with the selection colour `--u-selection-color` (the primary colour unless the theme sets it) |
37
+ | `color` | `'primary'\|'secondary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'\|'neutral'` | `'primary'` | ✓ | Accent color — role axis (`primary`…`danger`, follows rebranding) and decorative axis (`blue`…, the palette colour itself, immune to it). `neutral` is grey. `primary` fills with the selection colour `--u-selection-color` (the primary colour unless the theme sets it) |
38
38
  | `disabled` | `boolean` | `false` | ✓ | Disable the control |
39
39
  | `readonly` | `boolean` | `false` | ✓ | Read-only |
40
40
  | `required` | `boolean` | `false` | ✓ | Required field |
@@ -40,7 +40,7 @@ Interactive chip tag. Supports selectable toggle, removable button, and tooltip.
40
40
  | Property | Type | Default | Reflect | Description |
41
41
  |----------|------|---------|---------|-------------|
42
42
  | `appearance` | `'solid'\|'soft'\|'outlined'\|'plain'` | `'soft'` | ✓ | How much chrome (same as [`u-tag`](./tag.md)) |
43
- | `color` | `'neutral'\|'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | `'neutral'` | ✓ | Color — `neutral` (the default) is grey; `primary` is the brand colour |
43
+ | `color` | `'neutral'\|'primary'\|'secondary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | `'neutral'` | ✓ | Color — `neutral` (the default) is grey; `primary` is the brand colour |
44
44
  | `rounded` | `boolean` | `false` | ✓ | Pill-shaped |
45
45
  | `removable` | `boolean` | `false` | ✓ | Show remove button |
46
46
  | `selectable` | `boolean` | `false` | ✓ | Can be toggled selected |
@@ -100,6 +100,7 @@ starts from the value. Typing in the text box still commits on Enter or leaving
100
100
  | `name` | `string` | — | — | Form field name |
101
101
  | `label` | `string` | — | — | Field label |
102
102
  | `description` | `string` | — | — | Helper text |
103
+ | `descriptionDisplay` | `'inline' \| 'hint'` | — | — | Attribute `description-display`. This field only — `hint` puts the description in a tooltip beside the label, `inline` under the control. Empty: the app-wide `UField.descriptionDisplay` |
103
104
  | `validationMessage` | `string` | — | — | Custom validation message |
104
105
 
105
106
  ## Events
@@ -155,6 +155,7 @@ picker.addEventListener('change', () => {
155
155
  | `name` | `string` | — | — | Form field name |
156
156
  | `label` | `string` | — | — | Field label |
157
157
  | `description` | `string` | — | — | Helper text |
158
+ | `descriptionDisplay` | `'inline' \| 'hint'` | — | — | Attribute `description-display`. This field only — `hint` puts the description in a tooltip beside the label, `inline` under the control. Empty: the app-wide `UField.descriptionDisplay` |
158
159
  | `validationMessage` | `string` | — | — | Custom validation message |
159
160
 
160
161
  Validation: `required` with no value → `valueMissing`; a value that is not two ISO days joined by `/`
@@ -99,14 +99,18 @@ UField.descriptionDisplay = 'hint'; // once, before the first render — defau
99
99
  ```
100
100
 
101
101
  Sets where every field shows its description, including the fields that `u-input`, `u-select` and the other controls
102
- render inside their own shadow roots. A field's own `description-display` wins. In `hint` mode a validation message
102
+ render inside their own shadow roots. A field's own `description-display` wins — and so does a control's
103
+ (`<u-input description-display="inline">`), for the field it renders: fold help text into hints app-wide and keep a
104
+ note about the current state (why a field is locked, an input limit) always visible. In `hint` mode a validation message
103
105
  still shows under the control, the control keeps the text as `aria-description`, and a field without a label shows the
104
106
  description inline (there is no label to put the icon beside).
105
107
 
106
- The hint opens three ways — hovering the icon, entering the field's control from the keyboard (Tab, or a programmatic
107
- `focus()`; a click into the control does not, the mouse has hover), and tapping the icon (touch has no hover; the tap
108
+ The hint opens three ways — hovering the icon, entering the field's control from the keyboard (Tab; a click into the control
109
+ does not — the mouse has hover — and neither does a programmatic `focus()`, such as a drawer or dialog focusing its first
110
+ field on open), and tapping the icon (touch has no hover; the tap
108
111
  pins it until a tap elsewhere or a second tap). Escape closes it, and so does focus leaving the field. The icon itself
109
- is not a Tab stop — a form of dozens of fields would otherwise double its Tabs.
112
+ is not a Tab stop — a form of dozens of fields would otherwise double its Tabs. The open tooltip lets clicks through: when there is no
113
+ room above and it flips over the control, a click still reaches the control.
110
114
 
111
115
  ## CSS Parts
112
116
 
@@ -45,6 +45,7 @@ No drag-and-drop in this version — it is a minimal wrapper (trigger + status +
45
45
  | `name` | `string` | — | — | Form field name |
46
46
  | `label` | `string` | — | — | Label text |
47
47
  | `description` | `string` | — | — | Helper text below the control |
48
+ | `descriptionDisplay` | `'inline' \| 'hint'` | — | — | Attribute `description-display`. This field only — `hint` puts the description in a tooltip beside the label, `inline` under the control. Empty: the app-wide `UField.descriptionDisplay` |
48
49
  | `validationMessage` | `string` | — | — | Custom validation message |
49
50
 
50
51
  ## Methods
@@ -83,6 +83,7 @@ the library does not infer one from field meaning.
83
83
  | `value` | `string` | — | — | Current value |
84
84
  | `label` | `string` | — | — | Field label |
85
85
  | `description` | `string` | — | — | Helper text |
86
+ | `descriptionDisplay` | `'inline' \| 'hint'` | — | — | Attribute `description-display`. This field only — `hint` puts the description in a tooltip beside the label, `inline` under the control. Empty: the app-wide `UField.descriptionDisplay` |
86
87
  | `validationMessage` | `string` | — | — | Custom validation message |
87
88
 
88
89
  ## Events
@@ -57,6 +57,7 @@ Options of different kinds can be grouped under headings with [`u-option-group`]
57
57
  | `name` | `string` | — | — | Form field name |
58
58
  | `label` | `string` | — | — | Field label |
59
59
  | `description` | `string` | — | — | Helper text |
60
+ | `descriptionDisplay` | `'inline' \| 'hint'` | — | — | Attribute `description-display`. This field only — `hint` puts the description in a tooltip beside the label, `inline` under the control. Empty: the app-wide `UField.descriptionDisplay` |
60
61
  | `validationMessage` | `string` | — | — | Custom validation message |
61
62
 
62
63
  ## Events
@@ -32,7 +32,7 @@ Exposed as a **`progressbar`** with no value (in progress, amount unknown). Its
32
32
 
33
33
  | Property | Type | Default | Reflect | Description |
34
34
  |----------|------|---------|---------|-------------|
35
- | `color` | `'neutral'\|'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | — | ✓ | Spinner color preset — role axis (`primary`…`danger`, follows rebranding) and decorative axis (`blue`…, immune to it) |
35
+ | `color` | `'neutral'\|'primary'\|'secondary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | — | ✓ | Spinner color preset — role axis (`primary`…`danger`, follows rebranding) and decorative axis (`blue`…, immune to it) |
36
36
 
37
37
  ## CSS Parts
38
38
 
@@ -124,6 +124,7 @@ panel tab or a link tab. It is part of the tab's name.
124
124
  | `target` | `string` | — | | Link target (with `href`) |
125
125
  | `rel` | `string` | — | | Link relationship (with `href`) |
126
126
  | `count` | `number` | — | | Quiet count after the label, in the active locale's digits |
127
+ | `countAppearance` | `'badge' \| 'plain'` | — | | Attribute `count-appearance`. `badge` (a pill) or `plain` (no pill — a smaller, weaker number, for a row of many tabs where pills would read before the labels). Empty: the app-wide `UTab.countAppearance` (default `badge`) |
127
128
 
128
129
  ### Events
129
130
 
@@ -45,7 +45,7 @@ overline tracking assumes Latin labels).
45
45
  | Property | Type | Default | Reflect | Description |
46
46
  |----------|------|---------|---------|-------------|
47
47
  | `appearance` | `'solid'\|'soft'\|'outlined'\|'plain'` | `'soft'` | ✓ | How much chrome: `solid` filled · `soft` tint · `outlined` · `plain` coloured text only |
48
- | `color` | `'neutral'\|'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | `'neutral'` | ✓ | Color — `neutral` (the default) is grey |
48
+ | `color` | `'neutral'\|'primary'\|'secondary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | `'neutral'` | ✓ | Color — `neutral` (the default) is grey |
49
49
  | `rounded` | `boolean` | `false` | ✓ | Pill shape |
50
50
  | `icon` | `boolean` | `false` | ✓ | Adds a status icon so the meaning survives without color (`info`/`success`/`warning`/`danger` only) |
51
51
  | `dot` | `boolean` | `false` | ✓ | Adds a small leading mark in the text colour — for status labels repeated down a table column. `icon` wins when both are set |
@@ -62,7 +62,7 @@ overline tracking assumes Latin labels).
62
62
 
63
63
  ## Color axes
64
64
 
65
- `color` carries **two** axes. The **role** axis (`primary`·`info`·`success`·`warning`·`danger`)
65
+ `color` carries **two** axes. The **role** axis (`primary`·`secondary`·`info`·`success`·`warning`·`danger`)
66
66
  means *semantics* — it follows re-branding and inherits the contrast contract. The **decorative**
67
67
  axis (`blue`·`purple` …) means *the color itself* and is deliberately immune to re-branding.
68
68
 
@@ -47,6 +47,7 @@ Multi-line text input with auto-resize and optional character counter. Form-asso
47
47
  | `name` | `string` | — | — | Form field name |
48
48
  | `label` | `string` | — | — | Field label |
49
49
  | `description` | `string` | — | — | Helper text |
50
+ | `descriptionDisplay` | `'inline' \| 'hint'` | — | — | Attribute `description-display`. This field only — `hint` puts the description in a tooltip beside the label, `inline` under the control. Empty: the app-wide `UField.descriptionDisplay` |
50
51
  | `validationMessage` | `string` | — | — | Custom validation message |
51
52
 
52
53
  ## Events