@iyulab/components 2.28.0 → 2.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -1
- package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -1
- package/dist/components/UFloatingElement.d.ts +11 -0
- package/dist/components/UFloatingElement.js +33 -1
- package/dist/components/UFloatingElement.styles.js +5 -0
- package/dist/components/badge/UBadge.d.ts +1 -1
- package/dist/components/badge/UBadge.styles.js +4 -0
- package/dist/components/button/UButton.d.ts +2 -2
- package/dist/components/button/UButton.js +6 -6
- package/dist/components/button/UButton.styles.js +7 -0
- package/dist/components/button/forwarded-aria.d.ts +6 -0
- package/dist/components/button/forwarded-aria.js +18 -1
- package/dist/components/checkbox/UCheckbox.d.ts +1 -1
- package/dist/components/checkbox/UCheckbox.styles.js +5 -0
- package/dist/components/copy-button/UCopyButton.js +1 -1
- package/dist/components/icon-button/UIconButton.js +6 -6
- package/dist/components/menu-item/UMenuItem.d.ts +12 -0
- package/dist/components/menu-item/UMenuItem.js +38 -2
- package/dist/components/spinner/USpinner.d.ts +1 -1
- package/dist/components/spinner/USpinner.styles.js +1 -0
- package/dist/components/tag/UTag.d.ts +2 -2
- package/dist/components/tag/UTag.styles.js +8 -0
- package/dist/styles/dark.css +10 -1
- package/dist/styles/light.css +12 -1
- package/dist/utilities/BrowserStorage.js +3 -3
- package/dist/utilities/Dialog.js +1 -1
- package/dist/utilities/Theme.js +1 -1
- package/dist/utilities/converters.js +3 -3
- package/dist/utilities/icons.js +1 -1
- package/package.json +1 -1
- package/skills/iyulab-components/references/components/badge.md +1 -1
- package/skills/iyulab-components/references/components/button.md +4 -2
- package/skills/iyulab-components/references/components/checkbox.md +1 -1
- package/skills/iyulab-components/references/components/chip.md +1 -1
- package/skills/iyulab-components/references/components/menu.md +6 -0
- package/skills/iyulab-components/references/components/spinner.md +1 -1
- package/skills/iyulab-components/references/components/tag.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.29.0] - 2026-10-17
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Role colour `secondary` — a second brand colour next to `primary`, with no status meaning. The token sheets define
|
|
8
|
+
`--u-secondary-color-weakest` · `-weaker` · `-weak` · `--u-secondary-color` · `-strong`, `--u-secondary-txt-color` and
|
|
9
|
+
`--u-secondary-bg-color` (default: the purple ramp, distinct from the blue of `primary`/`info` and from the status hues),
|
|
10
|
+
under the same contrast contract as the other roles in light and dark. `u-button`, `u-tag`, `u-chip`, `u-badge`,
|
|
11
|
+
`u-checkbox` and `u-spinner` accept `color="secondary"`. Status-only surfaces (`u-alert`, `u-progress-bar` and
|
|
12
|
+
`u-progress-ring` statuses) do not, as they do not accept `primary`.
|
|
13
|
+
|
|
14
|
+
## [2.28.1] - 2026-10-16
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- `u-button` · `u-icon-button`: an empty state attribute on the host (`aria-pressed` · `aria-expanded` · `aria-haspopup` ·
|
|
19
|
+
`aria-current`) reaches the inner button as `"true"`. React 19 writes a boolean `true` on a custom element as an empty
|
|
20
|
+
attribute, so `<UButton aria-expanded={open}>` gave the focused button `aria-expanded=""` — not valid ARIA, read as
|
|
21
|
+
«not expandable» once opened.
|
|
22
|
+
- `u-tooltip` · `u-popover`: a closed floating element takes no part in layout once its closing fade ends. A hidden
|
|
23
|
+
absolutely positioned box still counted toward its scroll container’s overflow, so a never-opened wide tooltip next
|
|
24
|
+
to an anchor near the right edge gave a vertical list a horizontal scrollbar. It is laid out again before it is
|
|
25
|
+
measured for opening.
|
|
26
|
+
- `u-menu-item` with a submenu is named by its own label only — the children's labels were part of its name
|
|
27
|
+
(«Theme Light Dark»). It now carries `aria-haspopup="menu"` and `aria-expanded`, and the submenu is `role="menu"`.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- Console diagnostics begin with `[@iyulab/components]`, so a message in a console shared by several packages says which one wrote it (several also say what to do next).
|
|
32
|
+
|
|
3
33
|
## [2.28.0] - 2026-10-15
|
|
4
34
|
|
|
5
35
|
### Added
|
|
@@ -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 };
|
|
@@ -111,10 +111,21 @@ export declare class UFloatingElement extends UElement {
|
|
|
111
111
|
private trackSeq;
|
|
112
112
|
private showTimer?;
|
|
113
113
|
private hideTimer?;
|
|
114
|
+
/** `:state(parked)` 를 싣는다 — 닫힌 동안 레이아웃에서 빠진다(아래 `park()`). */
|
|
115
|
+
private readonly floatingInternals;
|
|
116
|
+
private parkSeq;
|
|
114
117
|
connectedCallback(): void;
|
|
115
118
|
disconnectedCallback(): void;
|
|
116
119
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
117
120
|
protected updated(changedProperties: PropertyValues): void;
|
|
121
|
+
/**
|
|
122
|
+
* 닫힌 떠 있는 요소는 레이아웃에서 빠진다(`:state(parked)` → `display: none`). `visibility: hidden` 인 절대 위치 상자도
|
|
123
|
+
* 스크롤 컨테이너의 넘침에 들어가, 한 번도 열리지 않은 툴팁(폭 수백 px)이 앵커 옆에 남아 세로 목록에 가로 스크롤바를
|
|
124
|
+
* 만들었다. 닫힘 전환이 끝난 뒤에 빼고(페이드는 그대로), 열거나 재기 전에 꺼낸다.
|
|
125
|
+
*/
|
|
126
|
+
private setParked;
|
|
127
|
+
private unpark;
|
|
128
|
+
private parkWhenSettled;
|
|
118
129
|
/** 자동 위치 추적을 끊고, 계산 중인 track() 이 뒤늦게 추적을 걸지 못하게 한다. */
|
|
119
130
|
private untrack;
|
|
120
131
|
/** 타겟 기준으로 위치를 계산하고, 스크롤·리사이즈를 따라 재배치하도록 추적을 건다. */
|
|
@@ -31,12 +31,15 @@ var UFloatingElement = class extends UElement {
|
|
|
31
31
|
this.hideDelay = 0;
|
|
32
32
|
this.cleanup = null;
|
|
33
33
|
this.trackSeq = 0;
|
|
34
|
+
this.floatingInternals = typeof this.attachInternals === "function" ? this.attachInternals() : void 0;
|
|
35
|
+
this.parkSeq = 0;
|
|
34
36
|
}
|
|
35
37
|
static {
|
|
36
38
|
this.styles = [super.styles, styles];
|
|
37
39
|
}
|
|
38
40
|
connectedCallback() {
|
|
39
41
|
super.connectedCallback();
|
|
42
|
+
if (!this.open) this.setParked(true);
|
|
40
43
|
if (!this.anchors || this.anchors.length === 0) {
|
|
41
44
|
const parent = getParentElement(this);
|
|
42
45
|
this.anchors = parent ? [parent] : [];
|
|
@@ -58,6 +61,8 @@ var UFloatingElement = class extends UElement {
|
|
|
58
61
|
updated(changedProperties) {
|
|
59
62
|
super.updated(changedProperties);
|
|
60
63
|
if (!changedProperties.has("open")) return;
|
|
64
|
+
if (this.open) this.unpark();
|
|
65
|
+
else this.parkWhenSettled();
|
|
61
66
|
if (this.open && this.cleanup === null) {
|
|
62
67
|
const target = this.targetEl ?? this.anchors?.[0];
|
|
63
68
|
if (target) this.track(target);
|
|
@@ -66,6 +71,29 @@ var UFloatingElement = class extends UElement {
|
|
|
66
71
|
this.targetEl = void 0;
|
|
67
72
|
}
|
|
68
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* 닫힌 떠 있는 요소는 레이아웃에서 빠진다(`:state(parked)` → `display: none`). `visibility: hidden` 인 절대 위치 상자도
|
|
76
|
+
* 스크롤 컨테이너의 넘침에 들어가, 한 번도 열리지 않은 툴팁(폭 수백 px)이 앵커 옆에 남아 세로 목록에 가로 스크롤바를
|
|
77
|
+
* 만들었다. 닫힘 전환이 끝난 뒤에 빼고(페이드는 그대로), 열거나 재기 전에 꺼낸다.
|
|
78
|
+
*/
|
|
79
|
+
setParked(parked) {
|
|
80
|
+
const states = this.floatingInternals?.states;
|
|
81
|
+
if (!states) return;
|
|
82
|
+
try {
|
|
83
|
+
if (parked) states.add("parked");
|
|
84
|
+
else states.delete("parked");
|
|
85
|
+
} catch {}
|
|
86
|
+
}
|
|
87
|
+
unpark() {
|
|
88
|
+
this.parkSeq++;
|
|
89
|
+
this.setParked(false);
|
|
90
|
+
}
|
|
91
|
+
async parkWhenSettled() {
|
|
92
|
+
const seq = ++this.parkSeq;
|
|
93
|
+
await Promise.all(this.getAnimations().map((a) => a.finished.catch(() => void 0)));
|
|
94
|
+
if (seq !== this.parkSeq || this.open || this.cleanup !== null || this.showTimer) return;
|
|
95
|
+
this.setParked(true);
|
|
96
|
+
}
|
|
69
97
|
/** 자동 위치 추적을 끊고, 계산 중인 track() 이 뒤늦게 추적을 걸지 못하게 한다. */
|
|
70
98
|
untrack() {
|
|
71
99
|
this.trackSeq++;
|
|
@@ -128,7 +156,10 @@ var UFloatingElement = class extends UElement {
|
|
|
128
156
|
this.untrack();
|
|
129
157
|
await this.updateComplete;
|
|
130
158
|
this.targetEl = void 0;
|
|
131
|
-
if (!this.open)
|
|
159
|
+
if (!this.open) {
|
|
160
|
+
this.parkWhenSettled();
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
132
163
|
if (this.fire("hide", {
|
|
133
164
|
bubbles: false,
|
|
134
165
|
composed: false
|
|
@@ -148,6 +179,7 @@ var UFloatingElement = class extends UElement {
|
|
|
148
179
|
* @param target - 위치 계산에 사용할 타겟 엘리먼트입니다.
|
|
149
180
|
*/
|
|
150
181
|
async reposition(target) {
|
|
182
|
+
this.unpark();
|
|
151
183
|
const targetRect = target.getBoundingClientRect();
|
|
152
184
|
this.style.setProperty("--anchor-width", `${targetRect.width}px`);
|
|
153
185
|
this.style.setProperty("--anchor-height", `${targetRect.height}px`);
|
|
@@ -21,6 +21,11 @@ var styles = css`
|
|
|
21
21
|
pointer-events: none;
|
|
22
22
|
transition: opacity var(--u-duration-normal, 220ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1)), visibility 0s var(--u-duration-normal, 220ms);
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
:host(:state(parked)) {
|
|
27
|
+
display: none !important;
|
|
28
|
+
}
|
|
24
29
|
:host([open]) {
|
|
25
30
|
opacity: 1;
|
|
26
31
|
visibility: visible;
|
|
@@ -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
|
* 상태, 숫자, 알림 등의 정보를 배지로 표시하는 컴포넌트입니다.
|
|
@@ -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가 설정되면 앵커 태그로 렌더링됩니다.
|
|
@@ -3,7 +3,7 @@ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/hel
|
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../spinner/USpinner.js";
|
|
5
5
|
import { styles } from "./UButton.styles.js";
|
|
6
|
-
import { FORWARDED_ARIA } from "./forwarded-aria.js";
|
|
6
|
+
import { FORWARDED_ARIA, readForwardedAria } from "./forwarded-aria.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -114,11 +114,11 @@ var UButton = class UButton extends UElement {
|
|
|
114
114
|
inner.ariaControlsElements = targets.length ? targets : null;
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
const ariaLabel = this
|
|
118
|
-
const pressed = this
|
|
119
|
-
const expanded = this
|
|
120
|
-
const haspopup = this
|
|
121
|
-
const current = this
|
|
117
|
+
const ariaLabel = readForwardedAria(this, "aria-label");
|
|
118
|
+
const pressed = readForwardedAria(this, "aria-pressed");
|
|
119
|
+
const expanded = readForwardedAria(this, "aria-expanded");
|
|
120
|
+
const haspopup = readForwardedAria(this, "aria-haspopup");
|
|
121
|
+
const current = readForwardedAria(this, "aria-current");
|
|
122
122
|
if (this.href) return html`
|
|
123
123
|
<a part="link"
|
|
124
124
|
aria-label=${ifDefined(ariaLabel)}
|
|
@@ -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"]),
|
|
@@ -4,3 +4,9 @@
|
|
|
4
4
|
* 허용되지 않아 `<button>` 에만 싣는다. `aria-controls` 는 id 참조라 `forwardControls()` 가 따로 옮긴다.
|
|
5
5
|
*/
|
|
6
6
|
export declare const FORWARDED_ARIA: readonly ["aria-label", "aria-pressed", "aria-expanded", "aria-haspopup", "aria-controls", "aria-current"];
|
|
7
|
+
/**
|
|
8
|
+
* 옮길 값을 호스트에서 읽는다. 상태 속성의 빈 값은 `"true"` 로 읽는다 — React 19 는 커스텀 요소의
|
|
9
|
+
* 불리언 `true` 를 빈 속성으로 쓰고(내장 요소에는 `"true"`), 빈 값은 ARIA 에서 유효하지 않아
|
|
10
|
+
* 안쪽 요소에 그대로 옮기면 보조기기가 «설정 안 됨» 으로 읽는다. 이름(`aria-label`)의 빈 값은 그대로다.
|
|
11
|
+
*/
|
|
12
|
+
export declare function readForwardedAria(host: Element, name: (typeof FORWARDED_ARIA)[number]): string | undefined;
|
|
@@ -12,5 +12,22 @@ var FORWARDED_ARIA = [
|
|
|
12
12
|
"aria-controls",
|
|
13
13
|
"aria-current"
|
|
14
14
|
];
|
|
15
|
+
/** 값이 «있다/없다» 로도 쓰이는 상태 속성 — 빈 값은 속성 존재, 곧 `true` 다. */
|
|
16
|
+
var PRESENCE_STATES = /* @__PURE__ */ new Set([
|
|
17
|
+
"aria-pressed",
|
|
18
|
+
"aria-expanded",
|
|
19
|
+
"aria-haspopup",
|
|
20
|
+
"aria-current"
|
|
21
|
+
]);
|
|
22
|
+
/**
|
|
23
|
+
* 옮길 값을 호스트에서 읽는다. 상태 속성의 빈 값은 `"true"` 로 읽는다 — React 19 는 커스텀 요소의
|
|
24
|
+
* 불리언 `true` 를 빈 속성으로 쓰고(내장 요소에는 `"true"`), 빈 값은 ARIA 에서 유효하지 않아
|
|
25
|
+
* 안쪽 요소에 그대로 옮기면 보조기기가 «설정 안 됨» 으로 읽는다. 이름(`aria-label`)의 빈 값은 그대로다.
|
|
26
|
+
*/
|
|
27
|
+
function readForwardedAria(host, name) {
|
|
28
|
+
const value = host.getAttribute(name);
|
|
29
|
+
if (value === null) return void 0;
|
|
30
|
+
return value === "" && PRESENCE_STATES.has(name) ? "true" : value;
|
|
31
|
+
}
|
|
15
32
|
//#endregion
|
|
16
|
-
export { FORWARDED_ARIA };
|
|
33
|
+
export { FORWARDED_ARIA, readForwardedAria };
|
|
@@ -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);
|
|
@@ -40,7 +40,7 @@ var UCopyButton = class UCopyButton extends UElement {
|
|
|
40
40
|
this.copied = false;
|
|
41
41
|
}, this.delay);
|
|
42
42
|
} catch (error) {
|
|
43
|
-
console.error("
|
|
43
|
+
console.error("[@iyulab/components] u-copy-button: failed to copy text to the clipboard:", error);
|
|
44
44
|
this.copied = false;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
|
|
4
|
-
import { FORWARDED_ARIA } from "../button/forwarded-aria.js";
|
|
4
|
+
import { FORWARDED_ARIA, readForwardedAria } from "../button/forwarded-aria.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import "../tooltip/UTooltip.js";
|
|
@@ -49,11 +49,11 @@ var UIconButton = class UIconButton extends UElement {
|
|
|
49
49
|
if (FORWARDED_ARIA.includes(name)) this.requestUpdate();
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
const ariaLabel = this
|
|
53
|
-
const pressed = this
|
|
54
|
-
const expanded = this
|
|
55
|
-
const haspopup = this
|
|
56
|
-
const controls = this
|
|
52
|
+
const ariaLabel = readForwardedAria(this, "aria-label") ?? (this.slotText || void 0);
|
|
53
|
+
const pressed = readForwardedAria(this, "aria-pressed");
|
|
54
|
+
const expanded = readForwardedAria(this, "aria-expanded");
|
|
55
|
+
const haspopup = readForwardedAria(this, "aria-haspopup");
|
|
56
|
+
const controls = readForwardedAria(this, "aria-controls");
|
|
57
57
|
return html`
|
|
58
58
|
<u-button part="button"
|
|
59
59
|
aria-label=${ifDefined(ariaLabel)}
|
|
@@ -38,11 +38,23 @@ export declare class UMenuItem extends UElement {
|
|
|
38
38
|
depth: number;
|
|
39
39
|
private _parentItem;
|
|
40
40
|
get parentItem(): UMenuItem | null;
|
|
41
|
+
private readonly aria;
|
|
42
|
+
/** 하위 메뉴를 가진 동안 라벨 글자가 바뀌는 것을 본다 — 이름을 라벨에서 다시 옮긴다. */
|
|
43
|
+
private labelObserver?;
|
|
41
44
|
private _childItems;
|
|
42
45
|
get childItems(): readonly UMenuItem[];
|
|
43
46
|
connectedCallback(): void;
|
|
47
|
+
disconnectedCallback(): void;
|
|
44
48
|
protected updated(changedProperties: PropertyValues): void;
|
|
45
49
|
render(): import('lit-html').TemplateResult<1>;
|
|
50
|
+
/**
|
|
51
|
+
* 하위 메뉴를 가진 항목의 이름은 자기 라벨뿐이다. 역할이 호스트에 있고 하위 항목은 호스트의 자식이라, 내용에서 짓는
|
|
52
|
+
* 이름이 하위 항목의 글자까지 모은다(«테마 라이트 다크 …»). 라벨(기본 슬롯)의 글자를 이름으로 옮기고, 하위 메뉴가 있음과
|
|
53
|
+
* 열림을 알린다(WAI-ARIA 메뉴 패턴). 작성자가 단 `aria-*` 는 건드리지 않는다(`HostAria`). 잎 항목은 내용이 곧 이름이다.
|
|
54
|
+
*/
|
|
55
|
+
private syncSubmenuAria;
|
|
56
|
+
/** 기본 슬롯(라벨)에 든 글자 — 하위 항목(`slot="children"`)과 앞뒤 슬롯은 빠진다. */
|
|
57
|
+
private labelText;
|
|
46
58
|
private propagate;
|
|
47
59
|
private handleHeaderClick;
|
|
48
60
|
private handleSlotChange;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
|
|
4
|
+
import { HostAria } from "../../utilities/hostAria.js";
|
|
4
5
|
import "../icon/UIcon.js";
|
|
5
6
|
import "../popover/UPopover.js";
|
|
6
7
|
import { UDivider } from "../divider/UDivider.js";
|
|
@@ -27,6 +28,7 @@ var UMenuItem = class UMenuItem extends UElement {
|
|
|
27
28
|
this.leaf = true;
|
|
28
29
|
this.depth = 0;
|
|
29
30
|
this._parentItem = null;
|
|
31
|
+
this.aria = new HostAria(this);
|
|
30
32
|
this._childItems = [];
|
|
31
33
|
this.handleHeaderClick = (e) => {
|
|
32
34
|
if (isFromNestedControl(e, this)) return;
|
|
@@ -47,6 +49,7 @@ var UMenuItem = class UMenuItem extends UElement {
|
|
|
47
49
|
this.handleSlotChange = (e) => {
|
|
48
50
|
const elements = e.target.assignedElements({ flatten: true });
|
|
49
51
|
for (const el of elements) if ((el instanceof _UMenuItem || el instanceof UDivider) && !el.hasAttribute("slot")) el.setAttribute("slot", "children");
|
|
52
|
+
if (!this.leaf) this.syncSubmenuAria();
|
|
50
53
|
};
|
|
51
54
|
this.handleChildrenSlotChange = (e) => {
|
|
52
55
|
const slot = e.target;
|
|
@@ -74,8 +77,14 @@ var UMenuItem = class UMenuItem extends UElement {
|
|
|
74
77
|
if (!this.hasAttribute("slot")) this.setAttribute("slot", "children");
|
|
75
78
|
}
|
|
76
79
|
}
|
|
80
|
+
disconnectedCallback() {
|
|
81
|
+
this.labelObserver?.disconnect();
|
|
82
|
+
this.labelObserver = void 0;
|
|
83
|
+
super.disconnectedCallback();
|
|
84
|
+
}
|
|
77
85
|
updated(changedProperties) {
|
|
78
86
|
super.updated(changedProperties);
|
|
87
|
+
if (changedProperties.has("leaf") || changedProperties.has("expanded")) this.syncSubmenuAria();
|
|
79
88
|
if (changedProperties.has("disabled")) {
|
|
80
89
|
this.setAttribute("tabindex", this.disabled ? "-1" : "0");
|
|
81
90
|
if (this.disabled) this.setAttribute("aria-disabled", "true");
|
|
@@ -114,13 +123,13 @@ var UMenuItem = class UMenuItem extends UElement {
|
|
|
114
123
|
</div>
|
|
115
124
|
|
|
116
125
|
${this.inline ? html`
|
|
117
|
-
<div class="submenu" part="submenu"
|
|
126
|
+
<div class="submenu" part="submenu" role="menu"
|
|
118
127
|
?hidden=${this.leaf}
|
|
119
128
|
?open=${this.expanded}
|
|
120
129
|
>
|
|
121
130
|
<slot name="children" @slotchange=${this.handleChildrenSlotChange}></slot>
|
|
122
131
|
</div>` : html`
|
|
123
|
-
<u-popover class="popover" part="popover"
|
|
132
|
+
<u-popover class="popover" part="popover" role="menu"
|
|
124
133
|
?hidden=${this.leaf}
|
|
125
134
|
?open=${live(this.expanded)}
|
|
126
135
|
for=".header"
|
|
@@ -133,6 +142,33 @@ var UMenuItem = class UMenuItem extends UElement {
|
|
|
133
142
|
</u-popover>`}
|
|
134
143
|
`;
|
|
135
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* 하위 메뉴를 가진 항목의 이름은 자기 라벨뿐이다. 역할이 호스트에 있고 하위 항목은 호스트의 자식이라, 내용에서 짓는
|
|
147
|
+
* 이름이 하위 항목의 글자까지 모은다(«테마 라이트 다크 …»). 라벨(기본 슬롯)의 글자를 이름으로 옮기고, 하위 메뉴가 있음과
|
|
148
|
+
* 열림을 알린다(WAI-ARIA 메뉴 패턴). 작성자가 단 `aria-*` 는 건드리지 않는다(`HostAria`). 잎 항목은 내용이 곧 이름이다.
|
|
149
|
+
*/
|
|
150
|
+
syncSubmenuAria() {
|
|
151
|
+
const parent = !this.leaf;
|
|
152
|
+
this.aria.set("aria-label", parent ? this.labelText() || null : null);
|
|
153
|
+
this.aria.set("aria-haspopup", parent ? "menu" : null);
|
|
154
|
+
this.aria.set("aria-expanded", parent ? String(this.expanded) : null);
|
|
155
|
+
if (parent && !this.labelObserver) {
|
|
156
|
+
this.labelObserver = new MutationObserver(() => this.aria.set("aria-label", this.labelText() || null));
|
|
157
|
+
this.labelObserver.observe(this, {
|
|
158
|
+
childList: true,
|
|
159
|
+
characterData: true,
|
|
160
|
+
subtree: true
|
|
161
|
+
});
|
|
162
|
+
} else if (!parent && this.labelObserver) {
|
|
163
|
+
this.labelObserver.disconnect();
|
|
164
|
+
this.labelObserver = void 0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/** 기본 슬롯(라벨)에 든 글자 — 하위 항목(`slot="children"`)과 앞뒤 슬롯은 빠진다. */
|
|
168
|
+
labelText() {
|
|
169
|
+
const slot = this.shadowRoot?.querySelector(".content slot");
|
|
170
|
+
return (slot ? slot.assignedNodes({ flatten: true }) : []).map((n) => n.textContent ?? "").join("").replace(/s+/g, " ").trim();
|
|
171
|
+
}
|
|
136
172
|
propagate() {
|
|
137
173
|
this._childItems.forEach((child) => {
|
|
138
174
|
child.inline = this.inline;
|
|
@@ -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); }
|
|
@@ -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);
|
package/dist/styles/dark.css
CHANGED
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
/* ==========================================================================
|
|
155
155
|
Role Colors — 의미 역할 층
|
|
156
156
|
컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.
|
|
157
|
-
브랜드 색 교체는 아래
|
|
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 참조). */
|
package/dist/styles/light.css
CHANGED
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
/* ==========================================================================
|
|
155
155
|
Role Colors — 의미 역할 층
|
|
156
156
|
컴포넌트는 팔레트 프리미티브가 아니라 이 층을 참조한다.
|
|
157
|
-
브랜드 색 교체는 아래
|
|
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);
|
|
@@ -32,7 +32,7 @@ var BrowserStorage = class {
|
|
|
32
32
|
});
|
|
33
33
|
else throw new Error(`Unsupported storage type: "${this.options.type}" (expected "localStorage" or "cookie")`);
|
|
34
34
|
} catch (e) {
|
|
35
|
-
console.error("[BrowserStorage
|
|
35
|
+
console.error("[@iyulab/components] BrowserStorage: set failed:", e);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -47,7 +47,7 @@ var BrowserStorage = class {
|
|
|
47
47
|
else if (this.options.type === "cookie") return (await window.cookieStore.get({ name: key }))?.value || null;
|
|
48
48
|
else throw new Error(`Unsupported storage type: "${this.options.type}" (expected "localStorage" or "cookie")`);
|
|
49
49
|
} catch (e) {
|
|
50
|
-
console.error("[BrowserStorage
|
|
50
|
+
console.error("[@iyulab/components] BrowserStorage: get failed:", e);
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -62,7 +62,7 @@ var BrowserStorage = class {
|
|
|
62
62
|
else if (this.options.type === "cookie") await window.cookieStore.delete({ name: key });
|
|
63
63
|
else throw new Error(`Unsupported storage type: "${this.options.type}" (expected "localStorage" or "cookie")`);
|
|
64
64
|
} catch (e) {
|
|
65
|
-
console.error("[BrowserStorage
|
|
65
|
+
console.error("[@iyulab/components] BrowserStorage: remove failed:", e);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
};
|
package/dist/utilities/Dialog.js
CHANGED
|
@@ -157,7 +157,7 @@ var Dialog = class {
|
|
|
157
157
|
try {
|
|
158
158
|
await dialog.updateComplete;
|
|
159
159
|
} catch (error) {
|
|
160
|
-
console.error("[
|
|
160
|
+
console.error("[@iyulab/components] Dialog: failed to show the dialog.", error);
|
|
161
161
|
dialog.remove();
|
|
162
162
|
return null;
|
|
163
163
|
}
|
package/dist/utilities/Theme.js
CHANGED
|
@@ -243,7 +243,7 @@ var Theme = class {
|
|
|
243
243
|
}
|
|
244
244
|
/** 디버그 모드시 로그 출력 함수 (인스턴스 스코프) */
|
|
245
245
|
static log(...args) {
|
|
246
|
-
if (this._isDebugMode) console.log("[
|
|
246
|
+
if (this._isDebugMode) console.log("[@iyulab/components] Theme:", ...args);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
//#endregion
|
|
@@ -33,7 +33,7 @@ function jsonAttrConverter(parser = JSON.parse) {
|
|
|
33
33
|
try {
|
|
34
34
|
return parser(value);
|
|
35
35
|
} catch {
|
|
36
|
-
console.warn(`
|
|
36
|
+
console.warn(`[@iyulab/components] failed to parse a JSON attribute — pass valid JSON, or set the property instead: ${value}`);
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -42,7 +42,7 @@ function jsonAttrConverter(parser = JSON.parse) {
|
|
|
42
42
|
try {
|
|
43
43
|
return JSON.stringify(value);
|
|
44
44
|
} catch {
|
|
45
|
-
console.warn(`
|
|
45
|
+
console.warn(`[@iyulab/components] failed to write a property back as a JSON attribute:`, value);
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -98,7 +98,7 @@ function urlAttrConverter(parser = (value) => new URL(value)) {
|
|
|
98
98
|
try {
|
|
99
99
|
return parser(value);
|
|
100
100
|
} catch {
|
|
101
|
-
console.warn(`
|
|
101
|
+
console.warn(`[@iyulab/components] failed to parse a URL attribute — pass an absolute URL or one relative to the page: ${value}`);
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
},
|
package/dist/utilities/icons.js
CHANGED
|
@@ -213,7 +213,7 @@ var IconRegistry = class {
|
|
|
213
213
|
if ((this.generation.get(lib) ?? 0) === generation) IconCache.set(lib, name, svg);
|
|
214
214
|
return svg;
|
|
215
215
|
} catch (error) {
|
|
216
|
-
console.error(`[
|
|
216
|
+
console.error(`[@iyulab/components] IconRegistry: Failed to resolve icon '${key}' (will retry):`, error);
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
})();
|
package/package.json
CHANGED
|
@@ -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 |
|
|
@@ -73,6 +73,8 @@ inner `<button>`/`<a>` that actually takes focus: `aria-label`, and the button s
|
|
|
73
73
|
(menu button) and `aria-current` (the current page, step or item). `aria-pressed` is dropped on a link (`href`), where it is not allowed.
|
|
74
74
|
`aria-controls` is an id reference, which cannot cross the shadow boundary, so it is carried as an
|
|
75
75
|
element reference (`ariaControlsElements`) resolved when the button renders.
|
|
76
|
+
An empty state attribute counts as `"true"` — React 19 writes a boolean `true` on a custom element
|
|
77
|
+
as an empty attribute (`<UButton aria-expanded={open}>`), and an empty value is not valid ARIA.
|
|
76
78
|
|
|
77
79
|
```html
|
|
78
80
|
<u-button aria-expanded="false" aria-controls="details">Details</u-button>
|
|
@@ -97,7 +99,7 @@ element reference (`ariaControlsElements`) resolved when the button renders.
|
|
|
97
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) |
|
|
98
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`) |
|
|
99
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) |
|
|
100
|
-
| `--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 |
|
|
101
103
|
| `--btn-color-border` / `-hover` / `-active` | Border states (default: `--btn-color` at 45%/60%/75%) |
|
|
102
104
|
| `--btn-color-outline-hover` / `-active` | `outlined`/`plain` background hover/active (default: 6%/12%) |
|
|
103
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 |
|
|
@@ -93,6 +93,12 @@ activate the menu item, and the menu item's arrow-key navigation applies only wh
|
|
|
93
93
|
| `indicator` | `'highlight'\|'check'` | `'highlight'` | ✓ | Selection indicator |
|
|
94
94
|
| `align` | `'left'\|'center'\|'right'` | `'left'` | ✓ | Text alignment |
|
|
95
95
|
|
|
96
|
+
### Accessibility
|
|
97
|
+
|
|
98
|
+
An item with a submenu is named by its own label (the default slot) — not by its children's labels — and
|
|
99
|
+
carries `aria-haspopup="menu"` and `aria-expanded`; the submenu is a `role="menu"`. An `aria-label` you set on
|
|
100
|
+
the item wins.
|
|
101
|
+
|
|
96
102
|
### Events
|
|
97
103
|
|
|
98
104
|
| Event | Description |
|
|
@@ -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
|
|
|
@@ -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
|
|