diff --git a/r/cipher-base.json b/r/cipher-base.json index de4d17fb..dee17cd9 100644 --- a/r/cipher-base.json +++ b/r/cipher-base.json @@ -88,7 +88,7 @@ "path": "src/components/cipher/lib/initial-focus.ts", "type": "registry:file", "target": "src/components/cipher/lib/initial-focus.ts", - "content": "export const formControlSelector =\n \":is(input:not([type=hidden]), textarea, select, [role=combobox], button[role=radio], button[role=checkbox], button[role=switch]):not(:disabled, [aria-disabled=true])\";\n\nconst tabbableSelector =\n \":is(a[href], button, input:not([type=hidden]), textarea, select, [tabindex], [contenteditable=true]):not(:disabled, [tabindex='-1'])\";\n\n/** Marks a control, such as a help button, that an opening overlay never picks as its first focus. */\nexport const skipAutoFocus = { \"data-skip-autofocus\": \"\" } as const;\n\nconst candidate = (element: HTMLElement) =>\n element.tabIndex >= 0 &&\n !element.closest(\"[data-skip-autofocus], [inert]\") &&\n element.getClientRects().length > 0;\n\n/**\n * An onOpenAutoFocus handler for overlays: focus lands on the first form control, else the first\n * tabbable element that is not marked with skipAutoFocus, so a help button beside the first label\n * never takes focus and opens its tooltip.\n */\nexport function focusFirstControl(event: Event) {\n if (event.defaultPrevented || !(event.target instanceof HTMLElement)) return;\n const container = event.target;\n const find = (selector: string) =>\n Array.from(container.querySelectorAll(selector)).find(candidate);\n const target = find(formControlSelector) ?? find(tabbableSelector);\n if (!target) return;\n event.preventDefault();\n target.focus({ preventScroll: true });\n}\n" + "content": "export const formControlSelector =\n \":is(input:not([type=hidden]), textarea, select, [role=combobox], button[role=radio], button[role=checkbox], button[role=switch]):not(:disabled, [aria-disabled=true])\";\n\nconst tabbableSelector =\n \":is(a[href], button, input:not([type=hidden]), textarea, select, [tabindex], [contenteditable=true]):not(:disabled, [tabindex='-1'])\";\n\n/** Marks a control, such as a help button, that an opening overlay never picks as its first focus. */\nexport const skipAutoFocus = { \"data-skip-autofocus\": \"\" } as const;\n\nconst candidate = (element: HTMLElement) =>\n element.tabIndex >= 0 &&\n !element.closest(\"[data-skip-autofocus], [inert]\") &&\n element.getClientRects().length > 0;\n\n/**\n * An onOpenAutoFocus handler for overlays: focus lands on the first form control, else the first\n * tabbable element that is not marked with skipAutoFocus, so a help button beside the first label\n * never takes focus and opens its tooltip. With prefer, the first control inside that element wins,\n * such as a two-pane sheet's main pane over its aside.\n */\nexport function focusFirstControl(event: Event, prefer?: string) {\n if (event.defaultPrevented || !(event.target instanceof HTMLElement)) return;\n const root = event.target;\n const preferred = prefer ? root.querySelector(prefer) : null;\n const find = (container: HTMLElement, selector: string) =>\n Array.from(container.querySelectorAll(selector)).find(candidate);\n const first = (container: HTMLElement) =>\n find(container, formControlSelector) ?? find(container, tabbableSelector);\n const target = (preferred && first(preferred)) ?? first(root);\n if (!target) return;\n event.preventDefault();\n target.focus({ preventScroll: true });\n}\n" }, { "path": "src/components/cipher/lib/input-modality.ts", @@ -244,13 +244,13 @@ "path": "src/components/cipher/tokens.generated.css", "type": "registry:file", "target": "src/components/cipher/tokens.generated.css", - "content": "/* Generated from tokens.json by npm run tokens. */\n.cipher {\n --cipher-space-2: 2px;\n --cipher-space-3: 3px;\n --cipher-space-4: 4px;\n --cipher-space-6: 6px;\n --cipher-space-8: 8px;\n --cipher-space-10: 10px;\n --cipher-space-12: 12px;\n --cipher-space-14: 14px;\n --cipher-space-16: 16px;\n --cipher-space-20: 20px;\n --cipher-space-24: 24px;\n --cipher-space-32: 32px;\n --cipher-space-40: 40px;\n --cipher-space-44: 44px;\n --cipher-space-48: 48px;\n --cipher-space-control-inline-sm: var(--cipher-space-10);\n --cipher-space-control-inline-md: var(--cipher-space-12);\n --cipher-space-control-inline: var(--cipher-space-14);\n --cipher-space-control-gap: var(--cipher-space-6);\n --cipher-space-field-label: var(--cipher-space-6);\n --cipher-space-field-group: var(--cipher-space-16);\n --cipher-space-field-legend: var(--cipher-space-20);\n --cipher-space-content-group: var(--cipher-space-16);\n --cipher-space-actions-gap: var(--cipher-space-12);\n --cipher-space-content-section: var(--cipher-space-32);\n --cipher-space-shell-gap: var(--cipher-space-8);\n --cipher-space-crumb-divider: var(--cipher-space-8);\n --cipher-size-shell-bar: var(--cipher-space-48);\n --cipher-space-sidebar-row-inset: 9px;\n --cipher-size-sidebar-icon: 18px;\n --cipher-size-shell-target: var(--cipher-size-control-sm);\n --cipher-size-shell-collapse: 800px;\n --cipher-size-shell-rail: 1280px;\n --cipher-size-sidebar: 224px;\n --cipher-size-sidebar-rail: 52px;\n --cipher-size-unread: 6px;\n --cipher-size-touch-row: var(--cipher-space-48);\n --cipher-space-surface-inset: var(--cipher-space-16);\n --cipher-space-surface-inset-sm: var(--cipher-space-12);\n --cipher-space-frame-inline: var(--cipher-space-6);\n --cipher-space-frame-title-inline: calc(var(--cipher-space-12) - var(--cipher-space-frame-inline));\n --cipher-space-overlay-inset: var(--cipher-space-20);\n --cipher-space-menu-inset: var(--cipher-space-3);\n --cipher-space-control-slot-inset: var(--cipher-space-3);\n --cipher-space-control-slot-gap: var(--cipher-space-4);\n --cipher-space-row-inline: var(--cipher-space-surface-inset-sm);\n --cipher-space-row-actions-gap: 0px;\n --cipher-space-row-actions-inset: calc((var(--cipher-size-row) - var(--cipher-size-target-row)) / 2 - var(--cipher-size-control-border));\n --cipher-space-row-indent: var(--cipher-space-24);\n --cipher-size-action-bar: var(--cipher-space-48);\n --cipher-space-action-bar-offset: var(--cipher-space-24);\n --cipher-size-badge-sm: 16px;\n --cipher-size-count: 20px;\n --cipher-size-badge: 20px;\n --cipher-size-kbd-xs: 16px;\n --cipher-size-kbd-sm: 18px;\n --cipher-size-kbd-md: 20px;\n --cipher-size-control-sm: 32px;\n --cipher-size-control-md: 36px;\n --cipher-size-control-lg: 40px;\n --cipher-size-row-stacked: 48px;\n --cipher-size-nested-sm: 24px;\n --cipher-size-nested-md: 28px;\n --cipher-size-nested-lg: 32px;\n --cipher-size-cell-min: 64px;\n --cipher-size-field-xs: 96px;\n --cipher-size-field-sm: 176px;\n --cipher-size-field-md: 256px;\n --cipher-size-text-min: 160px;\n --cipher-size-tile-min: 208px;\n --cipher-size-search-max: 720px;\n --cipher-size-tile-stacked-min: 280px;\n --cipher-size-ghost-card: 132px;\n --cipher-size-card-min: 320px;\n --cipher-size-tooltip-max: 320px;\n --cipher-size-menu-min: 160px;\n --cipher-size-menu-max: 320px;\n --cipher-size-popover: 288px;\n --cipher-size-toast: 400px;\n --cipher-size-dialog: 440px;\n --cipher-size-dialog-wide: 560px;\n --cipher-size-sheet-sm: 384px;\n --cipher-size-sheet-md: 512px;\n --cipher-size-sheet-lg: 672px;\n --cipher-size-sheet-xl: 1024px;\n --cipher-size-overlay-margin: var(--cipher-space-16);\n --cipher-size-control-xs: var(--cipher-size-nested-sm);\n --cipher-size-control-border: 1px;\n --cipher-size-crumb-divider: var(--cipher-size-icon);\n --cipher-size-crumb-divider-width: var(--cipher-size-control-border);\n --cipher-size-focus-ring: 2px;\n --cipher-size-focus-glow: 3px;\n --cipher-size-icon-sm: 14px;\n --cipher-size-icon: 16px;\n --cipher-size-icon-xs: 12px;\n --cipher-size-icon-lg: 20px;\n --cipher-size-icon-xl: 24px;\n --cipher-size-icon-2xl: 32px;\n --cipher-size-empty-media: 48px;\n --cipher-size-empty-media-sm: var(--cipher-size-control-md);\n --cipher-size-content: 1160px;\n --cipher-size-measure-page: var(--cipher-size-content);\n --cipher-size-measure-form: 640px;\n --cipher-size-measure-field: 400px;\n --cipher-size-measure-field-wide: 100%;\n --cipher-size-measure-prose: 65ch;\n --cipher-size-sidecar: 384px;\n --cipher-size-pane-aside: 320px;\n --cipher-size-pane-collapse: 720px;\n --cipher-size-sidecar-collapse: 896px;\n --cipher-size-data-list-term: 128px;\n --cipher-size-data-list-row: var(--cipher-size-control-sm);\n --cipher-size-control-default: var(--cipher-size-control-sm);\n --cipher-size-control-band: var(--cipher-size-nested-md);\n --cipher-size-nested-default: var(--cipher-size-nested-sm);\n --cipher-size-row: var(--cipher-size-control-lg);\n --cipher-size-target-row: var(--cipher-size-nested-md);\n --cipher-size-row-action-step: calc(var(--cipher-size-target-row) + var(--cipher-space-row-actions-gap));\n --cipher-size-glyph: var(--cipher-size-icon);\n --cipher-size-glyph-sm: var(--cipher-size-icon-sm);\n --cipher-size-badge-glyph: var(--cipher-size-glyph-sm);\n --cipher-size-badge-glyph-sm: var(--cipher-size-icon-xs);\n --cipher-size-scroll-fade: 16px;\n --cipher-size-skeleton-text: 12px;\n --cipher-size-halftone-cell: 8px;\n --cipher-stroke-icon: 1.7;\n --cipher-opacity-row-dim: 40%;\n --cipher-opacity-nudge: 15%;\n --cipher-opacity-nudge-dark: 28%;\n --cipher-duration-fast: 80ms;\n --cipher-duration-moderate: 160ms;\n --cipher-duration-slow: 240ms;\n --cipher-duration-exit-fast: 32ms;\n --cipher-duration-exit-moderate: 120ms;\n --cipher-duration-exit-slow: 96ms;\n --cipher-ease-standard: cubic-bezier(0.2, 0, 0, 1);\n --cipher-ease-fade: cubic-bezier(0.4, 0, 0.2, 1);\n --cipher-ease-spring: linear(0, 0.1144, 0.3208, 0.5164, 0.6711, 0.7831, 0.8601, 0.9113, 0.9445, 0.9656, 0.9789, 0.9871, 0.9922, 0.9953, 0.9972, 0.9983, 1);\n --cipher-ease-spring-soft: linear(0, 0.1045, 0.3072, 0.5116, 0.6797, 0.8032, 0.887, 0.9402, 0.9717, 0.9892, 0.9979, 1.0017, 1.0029, 1.0028, 1.0023, 1.0017, 1);\n --cipher-ease-exit: cubic-bezier(0, 0, 0.58, 1);\n --cipher-ease-press: cubic-bezier(0.23, 1, 0.32, 1);\n --cipher-black: #010101;\n --cipher-white: #ffffff;\n --cipher-neutral-100: #f1f0ea;\n --cipher-neutral-300: #c9c6b8;\n --cipher-neutral-400: #b0b0a9;\n --cipher-neutral-600: #555553;\n --cipher-neutral-700: #4a4a48;\n --cipher-neutral-800: #2f3234;\n --cipher-neutral-900: #1e2022;\n --cipher-red: #c0231b;\n --cipher-frame: var(--cipher-black);\n --cipher-frame-soft: var(--cipher-select);\n --cipher-surface: var(--cipher-white);\n --cipher-pop: var(--cipher-surface);\n --cipher-pop-line: var(--cipher-line-soft);\n --cipher-inset: var(--cipher-surface);\n --cipher-sidebar: var(--cipher-paper);\n --cipher-sidebar-current: color-mix(in srgb, var(--cipher-mix-ink) var(--cipher-current-mix), var(--cipher-sidebar));\n --cipher-sidebar-hover: var(--cipher-sidebar-current);\n --cipher-paper: #f4f3ee;\n --cipher-tint: #faf8f4;\n --cipher-row-done: var(--cipher-paper);\n --cipher-row-done-card: color-mix(in oklab, var(--cipher-tint) 50%, transparent);\n --cipher-row-done-divided: color-mix(in oklab, var(--cipher-ink) 4%, transparent);\n --cipher-select: #eeede6;\n --cipher-line-soft: #e4ded5;\n --cipher-line: #d5cdc2;\n --cipher-control: var(--cipher-neutral-400);\n --cipher-crumb-divider: var(--cipher-line);\n --cipher-faint: #85807a;\n --cipher-muted: #565654;\n --cipher-text2: var(--cipher-neutral-800);\n --cipher-ink: var(--cipher-black);\n --cipher-mix-ink: #2e271d;\n --cipher-on-ink: var(--cipher-white);\n --cipher-accent: #e3f047;\n --cipher-accent-2: #d3df29;\n --cipher-on-accent: #010101;\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 28%, white);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 55%, var(--cipher-line));\n --cipher-accent-fg: var(--cipher-ink);\n --cipher-mark: #010101;\n --cipher-ok: #2b5945;\n --cipher-ok-deep: #1f4232;\n --cipher-ok-bg: #e2eae5;\n --cipher-ok-wash: #eef3f0;\n --cipher-ok-line: #c7d6cd;\n --cipher-warn: #7a5300;\n --cipher-warn-deep: #4d3500;\n --cipher-warn-bg: #f2e6c8;\n --cipher-warn-wash: #f8f2e2;\n --cipher-warn-line: #e3d2a4;\n --cipher-bad: var(--cipher-red);\n --cipher-bad-deep: #6b1510;\n --cipher-bad-bg: #f7deda;\n --cipher-bad-wash: #faeeec;\n --cipher-bad-line: #edc3bd;\n --cipher-bad-control: #e2a09c;\n --cipher-bad-fill: var(--cipher-red);\n --cipher-on-bad: var(--cipher-white);\n --cipher-bad-hover: #9e1b14;\n --cipher-info: #1f4e79;\n --cipher-info-deep: #143556;\n --cipher-info-bg: #dfe7ef;\n --cipher-info-wash: #eef3f8;\n --cipher-info-line: #c3d1df;\n --cipher-folder: #80661f;\n --cipher-chart-1: var(--cipher-ink);\n --cipher-chart-2: var(--cipher-muted);\n --cipher-chart-3: var(--cipher-accent);\n --cipher-chart-4: var(--cipher-ok);\n --cipher-chart-5: var(--cipher-bad);\n --cipher-chart-6: #2563c9;\n --cipher-ansi-black: var(--cipher-ink);\n --cipher-ansi-red: var(--cipher-bad);\n --cipher-ansi-green: var(--cipher-ok);\n --cipher-ansi-yellow: var(--cipher-warn);\n --cipher-ansi-blue: var(--cipher-info);\n --cipher-ansi-magenta: #7b3f8c;\n --cipher-ansi-cyan: #1d6670;\n --cipher-ansi-white: var(--cipher-muted);\n --cipher-ansi-bright-black: var(--cipher-faint);\n --cipher-ansi-bright-red: var(--cipher-bad-deep);\n --cipher-ansi-bright-green: var(--cipher-ok-deep);\n --cipher-ansi-bright-yellow: var(--cipher-warn-deep);\n --cipher-ansi-bright-blue: var(--cipher-info-deep);\n --cipher-ansi-bright-magenta: #57266a;\n --cipher-ansi-bright-cyan: #134a51;\n --cipher-ansi-bright-white: var(--cipher-neutral-400);\n --cipher-map-land: var(--cipher-line-soft);\n --cipher-map-border: var(--cipher-surface);\n --cipher-map-region: var(--cipher-chart-6);\n --cipher-map-marker: var(--cipher-ink);\n --cipher-map-marker-line: var(--cipher-surface);\n --cipher-link: var(--cipher-ink);\n --cipher-sw-on: var(--cipher-ink);\n --cipher-sw-knob-on: var(--cipher-accent);\n --cipher-slider-range: var(--cipher-ink);\n --cipher-slider-track: var(--cipher-faint);\n --cipher-toast-bg: var(--cipher-surface);\n --cipher-toast-line: var(--cipher-line-soft);\n --cipher-toast-text: var(--cipher-ink);\n --cipher-toast-muted: var(--cipher-muted);\n --cipher-toast-ok: var(--cipher-ok);\n --cipher-toast-bad: var(--cipher-bad);\n --cipher-scrim: rgba(1, 1, 1, 0.38);\n --cipher-button-face-start: color-mix(in srgb, var(--cipher-accent) 82%, white);\n --cipher-button-face-end: var(--cipher-accent);\n --cipher-button-bloom: color-mix(in srgb, var(--cipher-accent) 35%, white);\n --cipher-button-hover-start: color-mix(in srgb, var(--cipher-accent) 78%, white);\n --cipher-button-hover-end: var(--cipher-accent);\n --cipher-button-hover-bloom: color-mix(in srgb, var(--cipher-accent) 25%, white);\n --cipher-button-press-start: var(--cipher-accent);\n --cipher-button-press-end: color-mix(in srgb, var(--cipher-accent) 96%, white);\n --cipher-button-glow: var(--cipher-accent);\n --cipher-button-hover-glow: var(--cipher-accent);\n --cipher-button-hover-bloom-soft: color-mix(in srgb, var(--cipher-accent) 38%, white);\n --cipher-shadow-raised: 0 1px 2px rgba(14, 16, 20, 0.05);\n --cipher-shadow-pop: 0 16px 40px rgba(1, 1, 1, 0.14), 0 2px 6px rgba(1, 1, 1, 0.08);\n --cipher-shadow-card-inset: var(--cipher-shadow-raised);\n --cipher-hover-mix: 4%;\n --cipher-press-mix: 7%;\n --cipher-current-mix: 5.5%;\n --cipher-selected-mix: 30%;\n --cipher-hover: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-hover-mix), transparent);\n --cipher-press: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-press-mix), transparent);\n --cipher-control-surface: transparent;\n --cipher-control-surface-hover: transparent;\n --cipher-control-disabled-surface: color-mix(in oklab, var(--cipher-control) 50%, transparent);\n --cipher-control-invalid-border: var(--cipher-bad);\n --cipher-focus-ring: color-mix(in oklab, var(--cipher-ink) var(--cipher-opacity-nudge), transparent);\n --cipher-focus-ring-bad: color-mix(in oklab, var(--cipher-bad) var(--cipher-opacity-nudge), transparent);\n --cipher-action-danger-surface: color-mix(in oklab, var(--cipher-bad) 10%, transparent);\n --cipher-action-danger-hover: color-mix(in oklab, var(--cipher-bad) 20%, transparent);\n --cipher-action-ghost-hover: var(--cipher-hover);\n --cipher-action-outline-border: var(--cipher-line-soft);\n --cipher-action-outline-surface: var(--cipher-surface);\n --cipher-action-outline-hover: var(--cipher-hover);\n --cipher-choice-selected-surface: color-mix(in oklab, var(--cipher-ink) 5%, transparent);\n --cipher-choice-selected-border: color-mix(in oklab, var(--cipher-ink) 30%, transparent);\n --cipher-switch-off-surface: var(--cipher-surface);\n --cipher-switch-thumb: var(--cipher-muted);\n --cipher-switch-thumb-line: transparent;\n --cipher-scroll-thumb: color-mix(in oklab, var(--cipher-ink) 16%, transparent);\n --cipher-scroll-thumb-hover: color-mix(in oklab, var(--cipher-ink) 32%, transparent);\n --cipher-avatar-blend: darken;\n --cipher-tab-label: color-mix(in oklab, var(--cipher-ink) 60%, transparent);\n --cipher-selected-surface: color-mix(in oklab, var(--cipher-neutral-300) var(--cipher-selected-mix), transparent);\n --cipher-selected-border: var(--cipher-control);\n --cipher-selected-ink: var(--cipher-ink);\n --cipher-halftone-peak: 42%;\n --cipher-halftone-peak-hover: 90%;\n --cipher-halftone-gamma: 1;\n --cipher-grain: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\");\n --cipher-hue-subtle-icon: 0.53 0.1;\n --cipher-hue-subtle-tint: 0.8 0.11;\n --cipher-hue-subtle-soft: 0.97 0.02;\n --cipher-hue-subtle-fill: 0.72 0.12;\n --cipher-hue-pop-icon: 0.53 0.14;\n --cipher-hue-pop-tint: 0.78 0.16;\n --cipher-hue-pop-soft: 0.955 0.035;\n --cipher-hue-pop-fill: 0.72 0.16;\n --cipher-font-sans: Archivo, \"Helvetica Neue\", Helvetica, sans-serif;\n --cipher-font-mono: \"Geist Mono\", ui-monospace, Menlo, monospace;\n --cipher-type-display-font-family: var(--cipher-font-sans);\n --cipher-type-display-font-size: 44px;\n --cipher-type-display-line-height: 44px;\n --cipher-type-display-font-weight: 500;\n --cipher-type-display-letter-spacing: -0.03em;\n --cipher-type-title-lg-font-family: var(--cipher-font-sans);\n --cipher-type-title-lg-font-size: 28px;\n --cipher-type-title-lg-line-height: 32px;\n --cipher-type-title-lg-font-weight: 500;\n --cipher-type-title-lg-letter-spacing: -0.025em;\n --cipher-type-title-font-family: var(--cipher-font-sans);\n --cipher-type-title-font-size: 18px;\n --cipher-type-title-line-height: 26px;\n --cipher-type-title-font-weight: 500;\n --cipher-type-title-letter-spacing: -0.02em;\n --cipher-type-title-sm-font-family: var(--cipher-font-sans);\n --cipher-type-title-sm-font-size: 16px;\n --cipher-type-title-sm-line-height: 22px;\n --cipher-type-title-sm-font-weight: 600;\n --cipher-type-title-sm-letter-spacing: 0;\n --cipher-type-body-lg-font-family: var(--cipher-font-sans);\n --cipher-type-body-lg-font-size: 16px;\n --cipher-type-body-lg-line-height: 24px;\n --cipher-type-body-lg-font-weight: 400;\n --cipher-type-body-lg-letter-spacing: 0;\n --cipher-type-body-font-family: var(--cipher-font-sans);\n --cipher-type-body-font-size: 14px;\n --cipher-type-body-line-height: 20px;\n --cipher-type-body-font-weight: 400;\n --cipher-type-body-letter-spacing: 0;\n --cipher-type-label-font-family: var(--cipher-font-sans);\n --cipher-type-label-font-size: 14px;\n --cipher-type-label-line-height: 20px;\n --cipher-type-label-font-weight: 500;\n --cipher-type-label-letter-spacing: 0;\n --cipher-type-small-font-family: var(--cipher-font-sans);\n --cipher-type-small-font-size: 13px;\n --cipher-type-small-line-height: 18px;\n --cipher-type-small-font-weight: 400;\n --cipher-type-small-letter-spacing: 0;\n --cipher-type-caption-font-family: var(--cipher-font-sans);\n --cipher-type-caption-font-size: 12px;\n --cipher-type-caption-line-height: 16px;\n --cipher-type-caption-font-weight: 500;\n --cipher-type-caption-letter-spacing: 0;\n --cipher-type-eyebrow-font-family: var(--cipher-font-sans);\n --cipher-type-eyebrow-font-size: 11px;\n --cipher-type-eyebrow-line-height: 16px;\n --cipher-type-eyebrow-font-weight: 500;\n --cipher-type-eyebrow-letter-spacing: 0.06em;\n --cipher-type-field-label-font-family: var(--cipher-font-sans);\n --cipher-type-field-label-font-size: 14px;\n --cipher-type-field-label-line-height: 20px;\n --cipher-type-field-label-font-weight: 500;\n --cipher-type-field-label-letter-spacing: 0;\n --cipher-type-row-title-font-family: var(--cipher-font-sans);\n --cipher-type-row-title-font-size: 14px;\n --cipher-type-row-title-line-height: 20px;\n --cipher-type-row-title-font-weight: 500;\n --cipher-type-row-title-letter-spacing: 0;\n --cipher-type-mono-font-family: var(--cipher-font-mono);\n --cipher-type-mono-font-size: 13px;\n --cipher-type-mono-line-height: 18px;\n --cipher-type-mono-font-weight: 400;\n --cipher-type-mono-letter-spacing: 0;\n --cipher-type-mono-sm-font-family: var(--cipher-font-mono);\n --cipher-type-mono-sm-font-size: 12px;\n --cipher-type-mono-sm-line-height: 16px;\n --cipher-type-mono-sm-font-weight: 400;\n --cipher-type-mono-sm-letter-spacing: 0;\n}\n.cipher[data-scheme=\"dark\"],\n.cipher[data-theme=\"dark\"] {\n --cipher-black: #010101;\n --cipher-white: #ffffff;\n --cipher-neutral-100: #f1f0ea;\n --cipher-neutral-300: #c9c6b8;\n --cipher-neutral-400: #b0b0a9;\n --cipher-neutral-600: #555553;\n --cipher-neutral-700: #4a4a48;\n --cipher-neutral-800: #2f3234;\n --cipher-neutral-900: #1e2022;\n --cipher-red: #c0231b;\n --cipher-frame: var(--cipher-black);\n --cipher-frame-soft: var(--cipher-black);\n --cipher-surface: #111111;\n --cipher-pop: var(--cipher-surface);\n --cipher-pop-line: var(--cipher-line-soft);\n --cipher-inset: #121213;\n --cipher-sidebar: #09090a;\n --cipher-sidebar-current: color-mix(in srgb, var(--cipher-mix-ink) var(--cipher-current-mix), var(--cipher-sidebar));\n --cipher-sidebar-hover: color-mix(in srgb, var(--cipher-mix-ink) var(--cipher-current-mix), var(--cipher-frame));\n --cipher-paper: #161616;\n --cipher-tint: #1c1c1c;\n --cipher-row-done: var(--cipher-surface);\n --cipher-row-done-card: color-mix(in oklab, var(--cipher-tint) 50%, transparent);\n --cipher-row-done-divided: color-mix(in oklab, var(--cipher-ink) 6%, transparent);\n --cipher-select: #262626;\n --cipher-line-soft: var(--cipher-neutral-900);\n --cipher-line: var(--cipher-neutral-800);\n --cipher-control: #37393c;\n --cipher-crumb-divider: var(--cipher-line);\n --cipher-faint: #8e9291;\n --cipher-muted: var(--cipher-neutral-400);\n --cipher-text2: #d8d8d4;\n --cipher-ink: var(--cipher-neutral-100);\n --cipher-mix-ink: var(--cipher-ink);\n --cipher-on-ink: var(--cipher-black);\n --cipher-accent: #e3f047;\n --cipher-accent-2: #d1de23;\n --cipher-on-accent: #010101;\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 11%, black);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 25%, black);\n --cipher-accent-fg: var(--cipher-accent);\n --cipher-mark: #e3f047;\n --cipher-ok: #8fc7a4;\n --cipher-ok-deep: #bfe3cc;\n --cipher-ok-bg: #14231b;\n --cipher-ok-wash: #101b15;\n --cipher-ok-line: #25402f;\n --cipher-warn: #e8c26a;\n --cipher-warn-deep: #f3d99a;\n --cipher-warn-bg: #2b2210;\n --cipher-warn-wash: #1c170c;\n --cipher-warn-line: #463819;\n --cipher-bad: #ff5a4f;\n --cipher-bad-deep: #ffc0b9;\n --cipher-bad-bg: #331311;\n --cipher-bad-wash: #1d0e0d;\n --cipher-bad-line: #5a221e;\n --cipher-bad-control: #712c28;\n --cipher-bad-fill: var(--cipher-red);\n --cipher-on-bad: var(--cipher-white);\n --cipher-bad-hover: #9e1b14;\n --cipher-info: #8fb4de;\n --cipher-info-deep: #c4d9ef;\n --cipher-info-bg: #121e2b;\n --cipher-info-wash: #0e1620;\n --cipher-info-line: #243a52;\n --cipher-folder: #a4873e;\n --cipher-chart-1: var(--cipher-ink);\n --cipher-chart-2: var(--cipher-muted);\n --cipher-chart-3: var(--cipher-accent);\n --cipher-chart-4: var(--cipher-ok);\n --cipher-chart-5: var(--cipher-bad);\n --cipher-chart-6: #5b9bf0;\n --cipher-ansi-black: var(--cipher-neutral-600);\n --cipher-ansi-red: var(--cipher-bad);\n --cipher-ansi-green: var(--cipher-ok);\n --cipher-ansi-yellow: var(--cipher-warn);\n --cipher-ansi-blue: var(--cipher-info);\n --cipher-ansi-magenta: #d3a6e6;\n --cipher-ansi-cyan: #8ccfd6;\n --cipher-ansi-white: var(--cipher-text2);\n --cipher-ansi-bright-black: var(--cipher-faint);\n --cipher-ansi-bright-red: var(--cipher-bad-deep);\n --cipher-ansi-bright-green: var(--cipher-ok-deep);\n --cipher-ansi-bright-yellow: var(--cipher-warn-deep);\n --cipher-ansi-bright-blue: var(--cipher-info-deep);\n --cipher-ansi-bright-magenta: #ead0f5;\n --cipher-ansi-bright-cyan: #c2e8ec;\n --cipher-ansi-bright-white: var(--cipher-ink);\n --cipher-map-land: var(--cipher-neutral-900);\n --cipher-map-border: var(--cipher-surface);\n --cipher-map-region: var(--cipher-chart-6);\n --cipher-map-marker: var(--cipher-ink);\n --cipher-map-marker-line: var(--cipher-surface);\n --cipher-link: var(--cipher-ink);\n --cipher-sw-on: var(--cipher-accent);\n --cipher-sw-knob-on: var(--cipher-on-accent);\n --cipher-slider-range: var(--cipher-accent);\n --cipher-slider-track: var(--cipher-line);\n --cipher-toast-bg: var(--cipher-neutral-900);\n --cipher-toast-line: var(--cipher-line);\n --cipher-toast-text: var(--cipher-ink);\n --cipher-toast-muted: var(--cipher-muted);\n --cipher-toast-ok: var(--cipher-ok);\n --cipher-toast-bad: #ff7a70;\n --cipher-scrim: rgba(0, 0, 0, 0.62);\n --cipher-button-face-start: color-mix(in srgb, var(--cipher-accent) 82%, white);\n --cipher-button-face-end: var(--cipher-accent);\n --cipher-button-bloom: color-mix(in srgb, var(--cipher-accent) 35%, white);\n --cipher-button-hover-start: color-mix(in srgb, var(--cipher-accent) 78%, white);\n --cipher-button-hover-end: var(--cipher-accent);\n --cipher-button-hover-bloom: color-mix(in srgb, var(--cipher-accent) 25%, white);\n --cipher-button-press-start: var(--cipher-accent);\n --cipher-button-press-end: color-mix(in srgb, var(--cipher-accent) 96%, white);\n --cipher-button-glow: var(--cipher-accent);\n --cipher-button-hover-glow: var(--cipher-accent);\n --cipher-button-hover-bloom-soft: color-mix(in srgb, var(--cipher-accent) 38%, white);\n --cipher-shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.4);\n --cipher-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);\n --cipher-shadow-card-inset: none;\n --cipher-hover-mix: 8%;\n --cipher-press-mix: 12%;\n --cipher-current-mix: 10%;\n --cipher-selected-mix: 33%;\n --cipher-hover: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-hover-mix), transparent);\n --cipher-press: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-press-mix), transparent);\n --cipher-control-surface: color-mix(in oklab, var(--cipher-control) 30%, transparent);\n --cipher-control-surface-hover: color-mix(in oklab, var(--cipher-control) 50%, transparent);\n --cipher-control-disabled-surface: color-mix(in oklab, var(--cipher-control) 80%, transparent);\n --cipher-control-invalid-border: var(--cipher-bad);\n --cipher-focus-ring: color-mix(in oklab, var(--cipher-ink) var(--cipher-opacity-nudge-dark), transparent);\n --cipher-focus-ring-bad: color-mix(in oklab, var(--cipher-bad) var(--cipher-opacity-nudge-dark), transparent);\n --cipher-action-danger-surface: color-mix(in oklab, var(--cipher-bad) 20%, transparent);\n --cipher-action-danger-hover: color-mix(in oklab, var(--cipher-bad) 30%, transparent);\n --cipher-action-ghost-hover: var(--cipher-hover);\n --cipher-action-outline-border: var(--cipher-control);\n --cipher-action-outline-surface: color-mix(in oklab, var(--cipher-control) 30%, transparent);\n --cipher-action-outline-hover: var(--cipher-hover);\n --cipher-choice-selected-surface: color-mix(in oklab, var(--cipher-ink) 10%, transparent);\n --cipher-choice-selected-border: color-mix(in oklab, var(--cipher-ink) 20%, transparent);\n --cipher-switch-off-surface: var(--cipher-surface);\n --cipher-switch-thumb: var(--cipher-muted);\n --cipher-switch-thumb-line: transparent;\n --cipher-scroll-thumb: color-mix(in oklab, var(--cipher-ink) 16%, transparent);\n --cipher-scroll-thumb-hover: color-mix(in oklab, var(--cipher-ink) 32%, transparent);\n --cipher-avatar-blend: lighten;\n --cipher-tab-label: var(--cipher-muted);\n --cipher-selected-surface: color-mix(in oklab, var(--cipher-neutral-600) var(--cipher-selected-mix), transparent);\n --cipher-selected-border: var(--cipher-neutral-700);\n --cipher-selected-ink: var(--cipher-ink);\n --cipher-halftone-peak: 20%;\n --cipher-halftone-peak-hover: 90%;\n --cipher-halftone-gamma: 1.3;\n --cipher-grain: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncG type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncB type='linear' slope='2' intercept='-0.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\");\n --cipher-hue-subtle-icon: 0.78 0.08;\n --cipher-hue-subtle-tint: 0.7 0.09;\n --cipher-hue-subtle-soft: 0.22 0.02;\n --cipher-hue-subtle-fill: 0.7 0.1;\n --cipher-hue-pop-icon: 0.8 0.12;\n --cipher-hue-pop-tint: 0.74 0.14;\n --cipher-hue-pop-soft: 0.25 0.035;\n --cipher-hue-pop-fill: 0.74 0.14;\n}\n.cipher[data-hue],\n.cipher [data-hue] {\n --cipher-accent: oklch(var(--cipher-accent-lc, 0.917 0.183) var(--cipher-hue));\n --cipher-accent-2: oklch(var(--cipher-accent-2-lc, 0.867 0.183) var(--cipher-hue));\n --cipher-on-accent: var(--cipher-accent-on, #010101);\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 28%, white);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 55%, var(--cipher-line));\n --cipher-accent-fg: var(--cipher-ink);\n --cipher-chart-3: var(--cipher-accent);\n --cipher-sw-on: var(--cipher-ink);\n --cipher-sw-knob-on: var(--cipher-accent);\n --cipher-slider-range: var(--cipher-ink);\n --cipher-button-face-start: color-mix(in srgb, var(--cipher-accent) 82%, white);\n --cipher-button-face-end: var(--cipher-accent);\n --cipher-button-bloom: color-mix(in srgb, var(--cipher-accent) 35%, white);\n --cipher-button-hover-start: color-mix(in srgb, var(--cipher-accent) 78%, white);\n --cipher-button-hover-end: var(--cipher-accent);\n --cipher-button-hover-bloom: color-mix(in srgb, var(--cipher-accent) 25%, white);\n --cipher-button-press-start: var(--cipher-accent);\n --cipher-button-press-end: color-mix(in srgb, var(--cipher-accent) 96%, white);\n --cipher-button-glow: var(--cipher-accent);\n --cipher-button-hover-glow: var(--cipher-accent);\n --cipher-button-hover-bloom-soft: color-mix(in srgb, var(--cipher-accent) 38%, white);\n}\n.cipher[data-scheme=\"dark\"][data-hue],\n.cipher[data-scheme=\"dark\"] [data-hue] {\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 11%, black);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 25%, black);\n --cipher-accent-fg: var(--cipher-accent);\n --cipher-sw-on: var(--cipher-accent);\n --cipher-sw-knob-on: var(--cipher-on-accent);\n --cipher-slider-range: var(--cipher-accent);\n}\n" + "content": "/* Generated from tokens.json by npm run tokens. */\n.cipher {\n --cipher-space-2: 2px;\n --cipher-space-3: 3px;\n --cipher-space-4: 4px;\n --cipher-space-6: 6px;\n --cipher-space-8: 8px;\n --cipher-space-10: 10px;\n --cipher-space-12: 12px;\n --cipher-space-14: 14px;\n --cipher-space-16: 16px;\n --cipher-space-20: 20px;\n --cipher-space-24: 24px;\n --cipher-space-32: 32px;\n --cipher-space-40: 40px;\n --cipher-space-44: 44px;\n --cipher-space-48: 48px;\n --cipher-space-control-inline-sm: var(--cipher-space-10);\n --cipher-space-control-inline-md: var(--cipher-space-12);\n --cipher-space-control-inline: var(--cipher-space-14);\n --cipher-space-control-gap: var(--cipher-space-6);\n --cipher-space-field-label: var(--cipher-space-6);\n --cipher-space-field-group: var(--cipher-space-16);\n --cipher-space-field-legend: var(--cipher-space-20);\n --cipher-space-content-group: var(--cipher-space-16);\n --cipher-space-actions-gap: var(--cipher-space-12);\n --cipher-space-content-section: var(--cipher-space-32);\n --cipher-space-shell-gap: var(--cipher-space-8);\n --cipher-space-crumb-divider: var(--cipher-space-8);\n --cipher-size-shell-bar: var(--cipher-space-48);\n --cipher-space-sidebar-row-inset: 9px;\n --cipher-size-sidebar-icon: 18px;\n --cipher-size-shell-target: var(--cipher-size-control-sm);\n --cipher-size-shell-collapse: 800px;\n --cipher-size-shell-rail: 1280px;\n --cipher-size-sidebar: 224px;\n --cipher-size-sidebar-rail: 52px;\n --cipher-size-unread: 6px;\n --cipher-size-touch-row: var(--cipher-space-48);\n --cipher-space-surface-inset: var(--cipher-space-16);\n --cipher-space-surface-inset-sm: var(--cipher-space-12);\n --cipher-space-frame-inline: var(--cipher-space-6);\n --cipher-space-frame-title-inline: calc(var(--cipher-space-12) - var(--cipher-space-frame-inline));\n --cipher-space-overlay-inset: var(--cipher-space-20);\n --cipher-space-menu-inset: var(--cipher-space-3);\n --cipher-space-control-slot-inset: var(--cipher-space-3);\n --cipher-space-control-slot-gap: var(--cipher-space-4);\n --cipher-space-row-inline: var(--cipher-space-surface-inset-sm);\n --cipher-space-row-actions-gap: 0px;\n --cipher-space-row-actions-inset: calc((var(--cipher-size-row) - var(--cipher-size-target-row)) / 2 - var(--cipher-size-control-border));\n --cipher-space-row-indent: var(--cipher-space-24);\n --cipher-size-action-bar: var(--cipher-space-48);\n --cipher-space-action-bar-offset: var(--cipher-space-24);\n --cipher-size-badge-sm: 16px;\n --cipher-size-count: 20px;\n --cipher-size-badge: 20px;\n --cipher-size-kbd-xs: 16px;\n --cipher-size-kbd-sm: 18px;\n --cipher-size-kbd-md: 20px;\n --cipher-size-control-sm: 32px;\n --cipher-size-control-md: 36px;\n --cipher-size-control-lg: 40px;\n --cipher-size-row-stacked: 48px;\n --cipher-size-nested-sm: 24px;\n --cipher-size-nested-md: 28px;\n --cipher-size-nested-lg: 32px;\n --cipher-size-cell-min: 64px;\n --cipher-size-field-xs: 96px;\n --cipher-size-field-sm: 176px;\n --cipher-size-field-md: 256px;\n --cipher-size-text-min: 160px;\n --cipher-size-tile-min: 208px;\n --cipher-size-search-max: 720px;\n --cipher-size-tile-stacked-min: 280px;\n --cipher-size-ghost-card: 132px;\n --cipher-size-card-min: 320px;\n --cipher-size-tooltip-max: 320px;\n --cipher-size-menu-min: 160px;\n --cipher-size-menu-max: 320px;\n --cipher-size-popover: 288px;\n --cipher-size-toast: 400px;\n --cipher-size-dialog: 440px;\n --cipher-size-dialog-wide: 560px;\n --cipher-size-sheet-sm: 384px;\n --cipher-size-sheet-md: 512px;\n --cipher-size-sheet-lg: 672px;\n --cipher-size-sheet-xl: 1024px;\n --cipher-size-overlay-margin: var(--cipher-space-16);\n --cipher-size-control-xs: var(--cipher-size-nested-sm);\n --cipher-size-control-border: 1px;\n --cipher-size-crumb-divider: var(--cipher-size-icon);\n --cipher-size-crumb-divider-width: var(--cipher-size-control-border);\n --cipher-size-focus-ring: 2px;\n --cipher-size-focus-glow: 3px;\n --cipher-size-icon-sm: 14px;\n --cipher-size-icon: 16px;\n --cipher-size-icon-xs: 12px;\n --cipher-size-icon-lg: 20px;\n --cipher-size-icon-xl: 24px;\n --cipher-size-icon-2xl: 32px;\n --cipher-size-empty-media: 48px;\n --cipher-size-empty-media-sm: var(--cipher-size-control-md);\n --cipher-size-content: 1160px;\n --cipher-size-measure-page: var(--cipher-size-content);\n --cipher-size-measure-form: 640px;\n --cipher-size-measure-field: 400px;\n --cipher-size-measure-field-wide: 100%;\n --cipher-size-measure-prose: 65ch;\n --cipher-size-sidecar: 384px;\n --cipher-size-pane-aside: 320px;\n --cipher-size-pane-collapse: 880px;\n --cipher-size-sidecar-collapse: 896px;\n --cipher-size-data-list-term: 128px;\n --cipher-size-data-list-row: var(--cipher-size-control-sm);\n --cipher-size-control-default: var(--cipher-size-control-sm);\n --cipher-size-control-band: var(--cipher-size-nested-md);\n --cipher-size-nested-default: var(--cipher-size-nested-sm);\n --cipher-size-row: var(--cipher-size-control-lg);\n --cipher-size-target-row: var(--cipher-size-nested-md);\n --cipher-size-row-action-step: calc(var(--cipher-size-target-row) + var(--cipher-space-row-actions-gap));\n --cipher-size-glyph: var(--cipher-size-icon);\n --cipher-size-glyph-sm: var(--cipher-size-icon-sm);\n --cipher-size-badge-glyph: var(--cipher-size-glyph-sm);\n --cipher-size-badge-glyph-sm: var(--cipher-size-icon-xs);\n --cipher-size-scroll-fade: 16px;\n --cipher-size-skeleton-text: 12px;\n --cipher-size-halftone-cell: 8px;\n --cipher-stroke-icon: 1.7;\n --cipher-opacity-row-dim: 40%;\n --cipher-opacity-nudge: 15%;\n --cipher-opacity-nudge-dark: 28%;\n --cipher-duration-fast: 80ms;\n --cipher-duration-moderate: 160ms;\n --cipher-duration-slow: 240ms;\n --cipher-duration-exit-fast: 32ms;\n --cipher-duration-exit-moderate: 120ms;\n --cipher-duration-exit-slow: 96ms;\n --cipher-ease-standard: cubic-bezier(0.2, 0, 0, 1);\n --cipher-ease-fade: cubic-bezier(0.4, 0, 0.2, 1);\n --cipher-ease-spring: linear(0, 0.1144, 0.3208, 0.5164, 0.6711, 0.7831, 0.8601, 0.9113, 0.9445, 0.9656, 0.9789, 0.9871, 0.9922, 0.9953, 0.9972, 0.9983, 1);\n --cipher-ease-spring-soft: linear(0, 0.1045, 0.3072, 0.5116, 0.6797, 0.8032, 0.887, 0.9402, 0.9717, 0.9892, 0.9979, 1.0017, 1.0029, 1.0028, 1.0023, 1.0017, 1);\n --cipher-ease-exit: cubic-bezier(0, 0, 0.58, 1);\n --cipher-ease-press: cubic-bezier(0.23, 1, 0.32, 1);\n --cipher-black: #010101;\n --cipher-white: #ffffff;\n --cipher-neutral-100: #f1f0ea;\n --cipher-neutral-300: #c9c6b8;\n --cipher-neutral-400: #b0b0a9;\n --cipher-neutral-600: #555553;\n --cipher-neutral-700: #4a4a48;\n --cipher-neutral-800: #2f3234;\n --cipher-neutral-900: #1e2022;\n --cipher-red: #c0231b;\n --cipher-frame: var(--cipher-black);\n --cipher-frame-soft: var(--cipher-select);\n --cipher-surface: var(--cipher-white);\n --cipher-pop: var(--cipher-surface);\n --cipher-pop-line: var(--cipher-line-soft);\n --cipher-inset: var(--cipher-surface);\n --cipher-sidebar: var(--cipher-paper);\n --cipher-sidebar-current: color-mix(in srgb, var(--cipher-mix-ink) var(--cipher-current-mix), var(--cipher-sidebar));\n --cipher-sidebar-hover: var(--cipher-sidebar-current);\n --cipher-paper: #f4f3ee;\n --cipher-tint: #faf8f4;\n --cipher-row-done: var(--cipher-paper);\n --cipher-row-done-card: color-mix(in oklab, var(--cipher-tint) 50%, transparent);\n --cipher-row-done-divided: color-mix(in oklab, var(--cipher-ink) 4%, transparent);\n --cipher-select: #eeede6;\n --cipher-line-soft: #e4ded5;\n --cipher-line: #d5cdc2;\n --cipher-control: var(--cipher-neutral-400);\n --cipher-crumb-divider: var(--cipher-line);\n --cipher-faint: #85807a;\n --cipher-muted: #565654;\n --cipher-text2: var(--cipher-neutral-800);\n --cipher-ink: var(--cipher-black);\n --cipher-mix-ink: #2e271d;\n --cipher-on-ink: var(--cipher-white);\n --cipher-accent: #e3f047;\n --cipher-accent-2: #d3df29;\n --cipher-on-accent: #010101;\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 28%, white);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 55%, var(--cipher-line));\n --cipher-accent-fg: var(--cipher-ink);\n --cipher-mark: #010101;\n --cipher-ok: #2b5945;\n --cipher-ok-deep: #1f4232;\n --cipher-ok-bg: #e2eae5;\n --cipher-ok-wash: #eef3f0;\n --cipher-ok-line: #c7d6cd;\n --cipher-warn: #7a5300;\n --cipher-warn-deep: #4d3500;\n --cipher-warn-bg: #f2e6c8;\n --cipher-warn-wash: #f8f2e2;\n --cipher-warn-line: #e3d2a4;\n --cipher-bad: var(--cipher-red);\n --cipher-bad-deep: #6b1510;\n --cipher-bad-bg: #f7deda;\n --cipher-bad-wash: #faeeec;\n --cipher-bad-line: #edc3bd;\n --cipher-bad-control: #e2a09c;\n --cipher-bad-fill: var(--cipher-red);\n --cipher-on-bad: var(--cipher-white);\n --cipher-bad-hover: #9e1b14;\n --cipher-info: #1f4e79;\n --cipher-info-deep: #143556;\n --cipher-info-bg: #dfe7ef;\n --cipher-info-wash: #eef3f8;\n --cipher-info-line: #c3d1df;\n --cipher-folder: #80661f;\n --cipher-chart-1: var(--cipher-ink);\n --cipher-chart-2: var(--cipher-muted);\n --cipher-chart-3: var(--cipher-accent);\n --cipher-chart-4: var(--cipher-ok);\n --cipher-chart-5: var(--cipher-bad);\n --cipher-chart-6: #2563c9;\n --cipher-ansi-black: var(--cipher-ink);\n --cipher-ansi-red: var(--cipher-bad);\n --cipher-ansi-green: var(--cipher-ok);\n --cipher-ansi-yellow: var(--cipher-warn);\n --cipher-ansi-blue: var(--cipher-info);\n --cipher-ansi-magenta: #7b3f8c;\n --cipher-ansi-cyan: #1d6670;\n --cipher-ansi-white: var(--cipher-muted);\n --cipher-ansi-bright-black: var(--cipher-faint);\n --cipher-ansi-bright-red: var(--cipher-bad-deep);\n --cipher-ansi-bright-green: var(--cipher-ok-deep);\n --cipher-ansi-bright-yellow: var(--cipher-warn-deep);\n --cipher-ansi-bright-blue: var(--cipher-info-deep);\n --cipher-ansi-bright-magenta: #57266a;\n --cipher-ansi-bright-cyan: #134a51;\n --cipher-ansi-bright-white: var(--cipher-neutral-400);\n --cipher-map-land: var(--cipher-line-soft);\n --cipher-map-border: var(--cipher-surface);\n --cipher-map-region: var(--cipher-chart-6);\n --cipher-map-marker: var(--cipher-ink);\n --cipher-map-marker-line: var(--cipher-surface);\n --cipher-link: var(--cipher-ink);\n --cipher-sw-on: var(--cipher-ink);\n --cipher-sw-knob-on: var(--cipher-accent);\n --cipher-slider-range: var(--cipher-ink);\n --cipher-slider-track: var(--cipher-faint);\n --cipher-toast-bg: var(--cipher-surface);\n --cipher-toast-line: var(--cipher-line-soft);\n --cipher-toast-text: var(--cipher-ink);\n --cipher-toast-muted: var(--cipher-muted);\n --cipher-toast-ok: var(--cipher-ok);\n --cipher-toast-bad: var(--cipher-bad);\n --cipher-scrim: rgba(1, 1, 1, 0.38);\n --cipher-button-face-start: color-mix(in srgb, var(--cipher-accent) 82%, white);\n --cipher-button-face-end: var(--cipher-accent);\n --cipher-button-bloom: color-mix(in srgb, var(--cipher-accent) 35%, white);\n --cipher-button-hover-start: color-mix(in srgb, var(--cipher-accent) 78%, white);\n --cipher-button-hover-end: var(--cipher-accent);\n --cipher-button-hover-bloom: color-mix(in srgb, var(--cipher-accent) 25%, white);\n --cipher-button-press-start: var(--cipher-accent);\n --cipher-button-press-end: color-mix(in srgb, var(--cipher-accent) 96%, white);\n --cipher-button-glow: var(--cipher-accent);\n --cipher-button-hover-glow: var(--cipher-accent);\n --cipher-button-hover-bloom-soft: color-mix(in srgb, var(--cipher-accent) 38%, white);\n --cipher-shadow-raised: 0 1px 2px rgba(14, 16, 20, 0.05);\n --cipher-shadow-pop: 0 16px 40px rgba(1, 1, 1, 0.14), 0 2px 6px rgba(1, 1, 1, 0.08);\n --cipher-shadow-card-inset: var(--cipher-shadow-raised);\n --cipher-hover-mix: 4%;\n --cipher-press-mix: 7%;\n --cipher-current-mix: 5.5%;\n --cipher-selected-mix: 30%;\n --cipher-hover: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-hover-mix), transparent);\n --cipher-press: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-press-mix), transparent);\n --cipher-control-surface: transparent;\n --cipher-control-surface-hover: transparent;\n --cipher-control-disabled-surface: color-mix(in oklab, var(--cipher-control) 50%, transparent);\n --cipher-control-invalid-border: var(--cipher-bad);\n --cipher-focus-ring: color-mix(in oklab, var(--cipher-ink) var(--cipher-opacity-nudge), transparent);\n --cipher-focus-ring-bad: color-mix(in oklab, var(--cipher-bad) var(--cipher-opacity-nudge), transparent);\n --cipher-action-danger-surface: color-mix(in oklab, var(--cipher-bad) 10%, transparent);\n --cipher-action-danger-hover: color-mix(in oklab, var(--cipher-bad) 20%, transparent);\n --cipher-action-ghost-hover: var(--cipher-hover);\n --cipher-action-outline-border: var(--cipher-line-soft);\n --cipher-action-outline-surface: var(--cipher-surface);\n --cipher-action-outline-hover: var(--cipher-hover);\n --cipher-choice-selected-surface: color-mix(in oklab, var(--cipher-ink) 5%, transparent);\n --cipher-choice-selected-border: color-mix(in oklab, var(--cipher-ink) 30%, transparent);\n --cipher-switch-off-surface: var(--cipher-surface);\n --cipher-switch-thumb: var(--cipher-muted);\n --cipher-switch-thumb-line: transparent;\n --cipher-scroll-thumb: color-mix(in oklab, var(--cipher-ink) 16%, transparent);\n --cipher-scroll-thumb-hover: color-mix(in oklab, var(--cipher-ink) 32%, transparent);\n --cipher-avatar-blend: darken;\n --cipher-tab-label: color-mix(in oklab, var(--cipher-ink) 60%, transparent);\n --cipher-selected-surface: color-mix(in oklab, var(--cipher-neutral-300) var(--cipher-selected-mix), transparent);\n --cipher-selected-border: var(--cipher-control);\n --cipher-selected-ink: var(--cipher-ink);\n --cipher-halftone-peak: 42%;\n --cipher-halftone-peak-hover: 90%;\n --cipher-halftone-gamma: 1;\n --cipher-grain: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\");\n --cipher-hue-subtle-icon: 0.53 0.1;\n --cipher-hue-subtle-tint: 0.8 0.11;\n --cipher-hue-subtle-soft: 0.97 0.02;\n --cipher-hue-subtle-fill: 0.72 0.12;\n --cipher-hue-pop-icon: 0.53 0.14;\n --cipher-hue-pop-tint: 0.78 0.16;\n --cipher-hue-pop-soft: 0.955 0.035;\n --cipher-hue-pop-fill: 0.72 0.16;\n --cipher-font-sans: Archivo, \"Helvetica Neue\", Helvetica, sans-serif;\n --cipher-font-mono: \"Geist Mono\", ui-monospace, Menlo, monospace;\n --cipher-type-display-font-family: var(--cipher-font-sans);\n --cipher-type-display-font-size: 44px;\n --cipher-type-display-line-height: 44px;\n --cipher-type-display-font-weight: 500;\n --cipher-type-display-letter-spacing: -0.03em;\n --cipher-type-title-lg-font-family: var(--cipher-font-sans);\n --cipher-type-title-lg-font-size: 28px;\n --cipher-type-title-lg-line-height: 32px;\n --cipher-type-title-lg-font-weight: 500;\n --cipher-type-title-lg-letter-spacing: -0.025em;\n --cipher-type-title-font-family: var(--cipher-font-sans);\n --cipher-type-title-font-size: 18px;\n --cipher-type-title-line-height: 26px;\n --cipher-type-title-font-weight: 500;\n --cipher-type-title-letter-spacing: -0.02em;\n --cipher-type-title-sm-font-family: var(--cipher-font-sans);\n --cipher-type-title-sm-font-size: 16px;\n --cipher-type-title-sm-line-height: 22px;\n --cipher-type-title-sm-font-weight: 600;\n --cipher-type-title-sm-letter-spacing: 0;\n --cipher-type-body-lg-font-family: var(--cipher-font-sans);\n --cipher-type-body-lg-font-size: 16px;\n --cipher-type-body-lg-line-height: 24px;\n --cipher-type-body-lg-font-weight: 400;\n --cipher-type-body-lg-letter-spacing: 0;\n --cipher-type-body-font-family: var(--cipher-font-sans);\n --cipher-type-body-font-size: 14px;\n --cipher-type-body-line-height: 20px;\n --cipher-type-body-font-weight: 400;\n --cipher-type-body-letter-spacing: 0;\n --cipher-type-label-font-family: var(--cipher-font-sans);\n --cipher-type-label-font-size: 14px;\n --cipher-type-label-line-height: 20px;\n --cipher-type-label-font-weight: 500;\n --cipher-type-label-letter-spacing: 0;\n --cipher-type-small-font-family: var(--cipher-font-sans);\n --cipher-type-small-font-size: 13px;\n --cipher-type-small-line-height: 18px;\n --cipher-type-small-font-weight: 400;\n --cipher-type-small-letter-spacing: 0;\n --cipher-type-caption-font-family: var(--cipher-font-sans);\n --cipher-type-caption-font-size: 12px;\n --cipher-type-caption-line-height: 16px;\n --cipher-type-caption-font-weight: 500;\n --cipher-type-caption-letter-spacing: 0;\n --cipher-type-eyebrow-font-family: var(--cipher-font-sans);\n --cipher-type-eyebrow-font-size: 11px;\n --cipher-type-eyebrow-line-height: 16px;\n --cipher-type-eyebrow-font-weight: 500;\n --cipher-type-eyebrow-letter-spacing: 0.06em;\n --cipher-type-field-label-font-family: var(--cipher-font-sans);\n --cipher-type-field-label-font-size: 14px;\n --cipher-type-field-label-line-height: 20px;\n --cipher-type-field-label-font-weight: 500;\n --cipher-type-field-label-letter-spacing: 0;\n --cipher-type-row-title-font-family: var(--cipher-font-sans);\n --cipher-type-row-title-font-size: 14px;\n --cipher-type-row-title-line-height: 20px;\n --cipher-type-row-title-font-weight: 500;\n --cipher-type-row-title-letter-spacing: 0;\n --cipher-type-mono-font-family: var(--cipher-font-mono);\n --cipher-type-mono-font-size: 13px;\n --cipher-type-mono-line-height: 18px;\n --cipher-type-mono-font-weight: 400;\n --cipher-type-mono-letter-spacing: 0;\n --cipher-type-mono-sm-font-family: var(--cipher-font-mono);\n --cipher-type-mono-sm-font-size: 12px;\n --cipher-type-mono-sm-line-height: 16px;\n --cipher-type-mono-sm-font-weight: 400;\n --cipher-type-mono-sm-letter-spacing: 0;\n}\n.cipher[data-scheme=\"dark\"],\n.cipher[data-theme=\"dark\"] {\n --cipher-black: #010101;\n --cipher-white: #ffffff;\n --cipher-neutral-100: #f1f0ea;\n --cipher-neutral-300: #c9c6b8;\n --cipher-neutral-400: #b0b0a9;\n --cipher-neutral-600: #555553;\n --cipher-neutral-700: #4a4a48;\n --cipher-neutral-800: #2f3234;\n --cipher-neutral-900: #1e2022;\n --cipher-red: #c0231b;\n --cipher-frame: var(--cipher-black);\n --cipher-frame-soft: var(--cipher-black);\n --cipher-surface: #111111;\n --cipher-pop: var(--cipher-surface);\n --cipher-pop-line: var(--cipher-line-soft);\n --cipher-inset: #121213;\n --cipher-sidebar: #09090a;\n --cipher-sidebar-current: color-mix(in srgb, var(--cipher-mix-ink) var(--cipher-current-mix), var(--cipher-sidebar));\n --cipher-sidebar-hover: color-mix(in srgb, var(--cipher-mix-ink) var(--cipher-current-mix), var(--cipher-frame));\n --cipher-paper: #161616;\n --cipher-tint: #1c1c1c;\n --cipher-row-done: var(--cipher-surface);\n --cipher-row-done-card: color-mix(in oklab, var(--cipher-tint) 50%, transparent);\n --cipher-row-done-divided: color-mix(in oklab, var(--cipher-ink) 6%, transparent);\n --cipher-select: #262626;\n --cipher-line-soft: var(--cipher-neutral-900);\n --cipher-line: var(--cipher-neutral-800);\n --cipher-control: #37393c;\n --cipher-crumb-divider: var(--cipher-line);\n --cipher-faint: #8e9291;\n --cipher-muted: var(--cipher-neutral-400);\n --cipher-text2: #d8d8d4;\n --cipher-ink: var(--cipher-neutral-100);\n --cipher-mix-ink: var(--cipher-ink);\n --cipher-on-ink: var(--cipher-black);\n --cipher-accent: #e3f047;\n --cipher-accent-2: #d1de23;\n --cipher-on-accent: #010101;\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 11%, black);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 25%, black);\n --cipher-accent-fg: var(--cipher-accent);\n --cipher-mark: #e3f047;\n --cipher-ok: #8fc7a4;\n --cipher-ok-deep: #bfe3cc;\n --cipher-ok-bg: #14231b;\n --cipher-ok-wash: #101b15;\n --cipher-ok-line: #25402f;\n --cipher-warn: #e8c26a;\n --cipher-warn-deep: #f3d99a;\n --cipher-warn-bg: #2b2210;\n --cipher-warn-wash: #1c170c;\n --cipher-warn-line: #463819;\n --cipher-bad: #ff5a4f;\n --cipher-bad-deep: #ffc0b9;\n --cipher-bad-bg: #331311;\n --cipher-bad-wash: #1d0e0d;\n --cipher-bad-line: #5a221e;\n --cipher-bad-control: #712c28;\n --cipher-bad-fill: var(--cipher-red);\n --cipher-on-bad: var(--cipher-white);\n --cipher-bad-hover: #9e1b14;\n --cipher-info: #8fb4de;\n --cipher-info-deep: #c4d9ef;\n --cipher-info-bg: #121e2b;\n --cipher-info-wash: #0e1620;\n --cipher-info-line: #243a52;\n --cipher-folder: #a4873e;\n --cipher-chart-1: var(--cipher-ink);\n --cipher-chart-2: var(--cipher-muted);\n --cipher-chart-3: var(--cipher-accent);\n --cipher-chart-4: var(--cipher-ok);\n --cipher-chart-5: var(--cipher-bad);\n --cipher-chart-6: #5b9bf0;\n --cipher-ansi-black: var(--cipher-neutral-600);\n --cipher-ansi-red: var(--cipher-bad);\n --cipher-ansi-green: var(--cipher-ok);\n --cipher-ansi-yellow: var(--cipher-warn);\n --cipher-ansi-blue: var(--cipher-info);\n --cipher-ansi-magenta: #d3a6e6;\n --cipher-ansi-cyan: #8ccfd6;\n --cipher-ansi-white: var(--cipher-text2);\n --cipher-ansi-bright-black: var(--cipher-faint);\n --cipher-ansi-bright-red: var(--cipher-bad-deep);\n --cipher-ansi-bright-green: var(--cipher-ok-deep);\n --cipher-ansi-bright-yellow: var(--cipher-warn-deep);\n --cipher-ansi-bright-blue: var(--cipher-info-deep);\n --cipher-ansi-bright-magenta: #ead0f5;\n --cipher-ansi-bright-cyan: #c2e8ec;\n --cipher-ansi-bright-white: var(--cipher-ink);\n --cipher-map-land: var(--cipher-neutral-900);\n --cipher-map-border: var(--cipher-surface);\n --cipher-map-region: var(--cipher-chart-6);\n --cipher-map-marker: var(--cipher-ink);\n --cipher-map-marker-line: var(--cipher-surface);\n --cipher-link: var(--cipher-ink);\n --cipher-sw-on: var(--cipher-accent);\n --cipher-sw-knob-on: var(--cipher-on-accent);\n --cipher-slider-range: var(--cipher-accent);\n --cipher-slider-track: var(--cipher-line);\n --cipher-toast-bg: var(--cipher-neutral-900);\n --cipher-toast-line: var(--cipher-line);\n --cipher-toast-text: var(--cipher-ink);\n --cipher-toast-muted: var(--cipher-muted);\n --cipher-toast-ok: var(--cipher-ok);\n --cipher-toast-bad: #ff7a70;\n --cipher-scrim: rgba(0, 0, 0, 0.62);\n --cipher-button-face-start: color-mix(in srgb, var(--cipher-accent) 82%, white);\n --cipher-button-face-end: var(--cipher-accent);\n --cipher-button-bloom: color-mix(in srgb, var(--cipher-accent) 35%, white);\n --cipher-button-hover-start: color-mix(in srgb, var(--cipher-accent) 78%, white);\n --cipher-button-hover-end: var(--cipher-accent);\n --cipher-button-hover-bloom: color-mix(in srgb, var(--cipher-accent) 25%, white);\n --cipher-button-press-start: var(--cipher-accent);\n --cipher-button-press-end: color-mix(in srgb, var(--cipher-accent) 96%, white);\n --cipher-button-glow: var(--cipher-accent);\n --cipher-button-hover-glow: var(--cipher-accent);\n --cipher-button-hover-bloom-soft: color-mix(in srgb, var(--cipher-accent) 38%, white);\n --cipher-shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.4);\n --cipher-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);\n --cipher-shadow-card-inset: none;\n --cipher-hover-mix: 8%;\n --cipher-press-mix: 12%;\n --cipher-current-mix: 10%;\n --cipher-selected-mix: 33%;\n --cipher-hover: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-hover-mix), transparent);\n --cipher-press: color-mix(in oklab, var(--cipher-mix-ink) var(--cipher-press-mix), transparent);\n --cipher-control-surface: color-mix(in oklab, var(--cipher-control) 30%, transparent);\n --cipher-control-surface-hover: color-mix(in oklab, var(--cipher-control) 50%, transparent);\n --cipher-control-disabled-surface: color-mix(in oklab, var(--cipher-control) 80%, transparent);\n --cipher-control-invalid-border: var(--cipher-bad);\n --cipher-focus-ring: color-mix(in oklab, var(--cipher-ink) var(--cipher-opacity-nudge-dark), transparent);\n --cipher-focus-ring-bad: color-mix(in oklab, var(--cipher-bad) var(--cipher-opacity-nudge-dark), transparent);\n --cipher-action-danger-surface: color-mix(in oklab, var(--cipher-bad) 20%, transparent);\n --cipher-action-danger-hover: color-mix(in oklab, var(--cipher-bad) 30%, transparent);\n --cipher-action-ghost-hover: var(--cipher-hover);\n --cipher-action-outline-border: var(--cipher-control);\n --cipher-action-outline-surface: color-mix(in oklab, var(--cipher-control) 30%, transparent);\n --cipher-action-outline-hover: var(--cipher-hover);\n --cipher-choice-selected-surface: color-mix(in oklab, var(--cipher-ink) 10%, transparent);\n --cipher-choice-selected-border: color-mix(in oklab, var(--cipher-ink) 20%, transparent);\n --cipher-switch-off-surface: var(--cipher-surface);\n --cipher-switch-thumb: var(--cipher-muted);\n --cipher-switch-thumb-line: transparent;\n --cipher-scroll-thumb: color-mix(in oklab, var(--cipher-ink) 16%, transparent);\n --cipher-scroll-thumb-hover: color-mix(in oklab, var(--cipher-ink) 32%, transparent);\n --cipher-avatar-blend: lighten;\n --cipher-tab-label: var(--cipher-muted);\n --cipher-selected-surface: color-mix(in oklab, var(--cipher-neutral-600) var(--cipher-selected-mix), transparent);\n --cipher-selected-border: var(--cipher-neutral-700);\n --cipher-selected-ink: var(--cipher-ink);\n --cipher-halftone-peak: 20%;\n --cipher-halftone-peak-hover: 90%;\n --cipher-halftone-gamma: 1.3;\n --cipher-grain: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncG type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncB type='linear' slope='2' intercept='-0.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\");\n --cipher-hue-subtle-icon: 0.78 0.08;\n --cipher-hue-subtle-tint: 0.7 0.09;\n --cipher-hue-subtle-soft: 0.22 0.02;\n --cipher-hue-subtle-fill: 0.7 0.1;\n --cipher-hue-pop-icon: 0.8 0.12;\n --cipher-hue-pop-tint: 0.74 0.14;\n --cipher-hue-pop-soft: 0.25 0.035;\n --cipher-hue-pop-fill: 0.74 0.14;\n}\n.cipher[data-hue],\n.cipher [data-hue] {\n --cipher-accent: oklch(var(--cipher-accent-lc, 0.917 0.183) var(--cipher-hue));\n --cipher-accent-2: oklch(var(--cipher-accent-2-lc, 0.867 0.183) var(--cipher-hue));\n --cipher-on-accent: var(--cipher-accent-on, #010101);\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 28%, white);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 55%, var(--cipher-line));\n --cipher-accent-fg: var(--cipher-ink);\n --cipher-chart-3: var(--cipher-accent);\n --cipher-sw-on: var(--cipher-ink);\n --cipher-sw-knob-on: var(--cipher-accent);\n --cipher-slider-range: var(--cipher-ink);\n --cipher-button-face-start: color-mix(in srgb, var(--cipher-accent) 82%, white);\n --cipher-button-face-end: var(--cipher-accent);\n --cipher-button-bloom: color-mix(in srgb, var(--cipher-accent) 35%, white);\n --cipher-button-hover-start: color-mix(in srgb, var(--cipher-accent) 78%, white);\n --cipher-button-hover-end: var(--cipher-accent);\n --cipher-button-hover-bloom: color-mix(in srgb, var(--cipher-accent) 25%, white);\n --cipher-button-press-start: var(--cipher-accent);\n --cipher-button-press-end: color-mix(in srgb, var(--cipher-accent) 96%, white);\n --cipher-button-glow: var(--cipher-accent);\n --cipher-button-hover-glow: var(--cipher-accent);\n --cipher-button-hover-bloom-soft: color-mix(in srgb, var(--cipher-accent) 38%, white);\n}\n.cipher[data-scheme=\"dark\"][data-hue],\n.cipher[data-scheme=\"dark\"] [data-hue] {\n --cipher-accent-wash: color-mix(in srgb, var(--cipher-accent) 11%, black);\n --cipher-accent-line: color-mix(in srgb, var(--cipher-accent) 25%, black);\n --cipher-accent-fg: var(--cipher-accent);\n --cipher-sw-on: var(--cipher-accent);\n --cipher-sw-knob-on: var(--cipher-on-accent);\n --cipher-slider-range: var(--cipher-accent);\n}\n" }, { "path": "src/components/cipher/tokens.json", "type": "registry:file", "target": "src/components/cipher/tokens.json", - "content": "{\n \"name\": \"Cipher\",\n \"version\": 1,\n \"meta\": {\n \"source\": \"Cipher, the Infisical design system\"\n },\n \"themes\": {\n \"note\": \"A theme is a named palette with a scheme (light or dark). Every themed token keeps a light and a dark base value. A theme either sits on one of those base columns (base) or extends another theme (extends), and lists in overrides only the tokens whose values differ. A token resolves to the nearest override on the way down the extends chain, then to the base column the chain ends on. Themes of the same scheme are interchangeable: anything that branches on light or dark reads the scheme, never the theme name.\",\n \"list\": [\n {\n \"id\": \"light\",\n \"name\": \"Light\",\n \"scheme\": \"light\",\n \"base\": \"light\",\n \"overrides\": {}\n },\n {\n \"id\": \"dark\",\n \"name\": \"Dark\",\n \"scheme\": \"dark\",\n \"base\": \"dark\",\n \"overrides\": {}\n }\n ]\n },\n \"color\": {\n \"note\": \"Neutral first. Ink on warm off-white, one accent (the hue of the nearest hue scope, Infisical yellow #e3f047 outside every scope, the same in both themes), status colors that always travel with a word or icon. The app is a sidebar beside an inset, both light in light and both dark in dark. Dark mirrors light: ink becomes bone, the accent takes over the on switch and the mark, and selection stays neutral.\",\n \"tokens\": [\n {\n \"name\": \"black\",\n \"value\": {\n \"light\": \"#010101\",\n \"dark\": \"#010101\"\n },\n \"usage\": \"Near-black primitive, the darkest neutral. frame, ink in light, on-ink in dark and frame-soft in dark reference it. Components use a role token, never this.\"\n },\n {\n \"name\": \"white\",\n \"value\": {\n \"light\": \"#ffffff\",\n \"dark\": \"#ffffff\"\n },\n \"usage\": \"White primitive. surface and on-ink in light and on-bad in both themes reference it. Components use a role token, never this.\"\n },\n {\n \"name\": \"neutral-100\",\n \"value\": {\n \"light\": \"#f1f0ea\",\n \"dark\": \"#f1f0ea\"\n },\n \"usage\": \"Bone, the lightest neutral step. ink in dark references it, and toast-text follows through ink.\"\n },\n {\n \"name\": \"neutral-300\",\n \"value\": {\n \"light\": \"#c9c6b8\",\n \"dark\": \"#c9c6b8\"\n },\n \"usage\": \"Warm stone step. The base of selected-surface in light.\"\n },\n {\n \"name\": \"neutral-400\",\n \"value\": {\n \"light\": \"#b0b0a9\",\n \"dark\": \"#b0b0a9\"\n },\n \"usage\": \"Mid neutral step. control in light and muted in dark reference it.\"\n },\n {\n \"name\": \"neutral-600\",\n \"value\": {\n \"light\": \"#555553\",\n \"dark\": \"#555553\"\n },\n \"usage\": \"Dark neutral step. The base of selected-surface in dark.\"\n },\n {\n \"name\": \"neutral-700\",\n \"value\": {\n \"light\": \"#4a4a48\",\n \"dark\": \"#4a4a48\"\n },\n \"usage\": \"Dark neutral step. selected-border in dark references it.\"\n },\n {\n \"name\": \"neutral-800\",\n \"value\": {\n \"light\": \"#2f3234\",\n \"dark\": \"#2f3234\"\n },\n \"usage\": \"Graphite step. text2 in light and line in dark reference it, and toast-line follows through line.\"\n },\n {\n \"name\": \"neutral-900\",\n \"value\": {\n \"light\": \"#1e2022\",\n \"dark\": \"#1e2022\"\n },\n \"usage\": \"The deepest graphite step above black. line-soft and toast-bg in dark reference it.\"\n },\n {\n \"name\": \"red\",\n \"value\": {\n \"light\": \"#c0231b\",\n \"dark\": \"#c0231b\"\n },\n \"usage\": \"Signal red. bad in light and bad-fill in both themes reference it.\"\n },\n {\n \"name\": \"frame\",\n \"value\": {\n \"light\": \"{black}\",\n \"dark\": \"{black}\"\n },\n \"usage\": \"Near-black ground. The dark-theme sidebar sits one step above it; in light the sidebar is light and nothing in the app shell uses frame. It never wraps the inset. Never put text on it except inside the sidebar.\"\n },\n {\n \"name\": \"frame-soft\",\n \"value\": {\n \"light\": \"{select}\",\n \"dark\": \"{black}\"\n },\n \"usage\": \"Warm ground for embedded views and docs that want a frame around their content. In dark it matches frame.\"\n },\n {\n \"name\": \"surface\",\n \"value\": {\n \"light\": \"{white}\",\n \"dark\": \"#111111\"\n },\n \"usage\": \"The main panel and every inset card and input. Menus, popovers and dialogs float on pop. The default ground for text. A step above inset in both themes, so cards read on the page without a bright border.\"\n },\n {\n \"name\": \"pop\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Ground of everything that floats above the page: menus, listboxes, popovers, hover cards, dialogs, sheets. Equal to surface: a panel separates from the page through pop-line and shadow-pop, never through a brighter fill. Always with pop-line and shadow-pop.\"\n },\n {\n \"name\": \"pop-line\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{line-soft}\"\n },\n \"usage\": \"The 1px edge of a pop panel, drawn as a ring inside its shadow. Uses line-soft, the default outward-facing border, and the shadow carries the separation from the page.\"\n },\n {\n \"name\": \"inset\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"#121213\"\n },\n \"usage\": \"The app's page ground beside the sidebar, behind cards, tables and lists. Equal to surface in light, and a hair above it in dark, so a card separates from the page through its line-soft edge and frame rather than a ground step. Pads space-40 (bottom space-48).\"\n },\n {\n \"name\": \"sidebar\",\n \"value\": {\n \"light\": \"{paper}\",\n \"dark\": \"#09090a\"\n },\n \"usage\": \"Ground of the app sidebar. paper in light (1.1:1 against the inset, so it needs its line-soft edge) and a near-black step above frame in dark. Text on it uses ink, text2 and muted: muted is 6.4:1 in light and 9.6:1 in dark. The current page is sidebar-current with ink text; counts are accent Counts, and a rail dot, which has no number, is accent-fg.\"\n },\n {\n \"name\": \"sidebar-current\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {mix-ink} {current-mix}, {sidebar})\",\n \"dark\": \"color-mix(in srgb, {mix-ink} {current-mix}, {sidebar})\"\n },\n \"usage\": \"The current page in the sidebar, and a rail group that holds it: mix-ink at current-mix mixed opaquely into the sidebar (5.5% in light, 10% in dark), a small step past the shared hover overlay at hover-mix, so it follows every theme's sidebar with no per-theme value. Neutral, like every selection; in the sidebar only counts take the accent.\"\n },\n {\n \"name\": \"sidebar-hover\",\n \"value\": {\n \"light\": \"{sidebar-current}\",\n \"dark\": \"color-mix(in srgb, {mix-ink} {current-mix}, {frame})\"\n },\n \"usage\": \"The sidebar's hover highlight, the block that follows the pointer between rows. It matches sidebar-current unless a theme quiets it: Dark mixes current-mix into frame rather than its lifted sidebar, so hovering a row is a softer step than the current page.\"\n },\n {\n \"name\": \"paper\",\n \"value\": {\n \"light\": \"#f4f3ee\",\n \"dark\": \"#161616\"\n },\n \"usage\": \"Dialog and sheet footers. A step off surface so the action bar reads as a shelf.\"\n },\n {\n \"name\": \"tint\",\n \"value\": {\n \"light\": \"#faf8f4\",\n \"dark\": \"#1c1c1c\"\n },\n \"usage\": \"Borderless shells around bordered inset surfaces (cards, tables, lists), table headers, segmented tracks, disabled and read-only fields, the hover ground of striped table rows. In dark it is lifted so a borderless shell still reads against surface (1.11:1).\"\n },\n {\n \"name\": \"row-done\",\n \"value\": {\n \"light\": \"{paper}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Resolved list items that stay in place so nothing jumps. paper in light and surface in dark.\"\n },\n {\n \"name\": \"row-done-card\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {tint} 50%, transparent)\",\n \"dark\": \"color-mix(in oklab, {tint} 50%, transparent)\"\n },\n \"usage\": \"Resolved rows in a segmented List: half the tint card fill, so a resolved card stays in place and keeps its edge on the page in both themes, where row-done would vanish in dark.\"\n },\n {\n \"name\": \"row-done-divided\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 4%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 6%, transparent)\"\n },\n \"usage\": \"Resolved rows in a divided List, which sit on the page with no container: translucent ink over whatever ground is behind (1.09:1 on the light page, 1.11:1 on the dark one), a clear step where row-done would vanish in dark and still quieter than hover (1.14:1 light, 1.33:1 dark).\"\n },\n {\n \"name\": \"select\",\n \"value\": {\n \"light\": \"#eeede6\",\n \"dark\": \"#262626\"\n },\n \"usage\": \"Selection in connected rows: a list's current and checked rows, selected table and tree rows, DataGrid ranges, the pressed toggle Button. On rows it is the whole signal, with the row text one step up (text2 to ink, muted to text2); no edge bar. Neutral in both themes, never tinted: in dark it is 1.25:1 on surface and a step above tint (1.13:1), the same step as before.\"\n },\n {\n \"name\": \"line-soft\",\n \"value\": {\n \"light\": \"#e4ded5\",\n \"dark\": \"{neutral-900}\"\n },\n \"usage\": \"The default border: the outward-facing edge of inset surfaces, cards, plain lists, tables, popovers, dialogs and bordered controls that use a line token, the app shell chrome (the AppInset island border, the narrow TopBar rule, the sidebar edge, corner and section separators), and every divider that touches one of those edges, such as row hairlines, table cell dividers and dialog head and footer rules. Frames have no border; only the inset surface inside them carries line-soft. Also skeleton blocks, progress tracks and soft badges.\"\n },\n {\n \"name\": \"line\",\n \"value\": {\n \"light\": \"#d5cdc2\",\n \"dark\": \"{neutral-800}\"\n },\n \"usage\": \"Reserved for a standalone rule that touches no other border: a section rule, the band's divider marks (through crumb-divider), a lone hr, a tree guide, the tab track, chart axes and grid lines. One step stronger than line-soft, so a free-standing line still reads without an edge to lean on. Never the edge of a surface or a divider that meets one; those are line-soft.\"\n },\n {\n \"name\": \"control\",\n \"value\": {\n \"light\": \"{neutral-400}\",\n \"dark\": \"#37393c\"\n },\n \"usage\": \"Borders of inputs, selects and secondary buttons. Source pair: 2.1:1 on surface in light and 1.6:1 in dark, below the 3:1 floor for control borders. Kept exact; focus turns the border ink with a 3px nudge outline. An invalid field rests on bad-control and turns bad with the 3px bad outline while focused.\"\n },\n {\n \"name\": \"crumb-divider\",\n \"value\": {\n \"light\": \"{line}\",\n \"dark\": \"{line}\"\n },\n \"usage\": \"The vertical divider between breadcrumb crumbs, in the TopBar and in page and folder trails. line, the standalone-rule tint: each divider is a lone mark that touches no other border, one step stronger than the line-soft shell chrome around it. Decorative: it never carries meaning.\"\n },\n {\n \"name\": \"faint\",\n \"value\": {\n \"light\": \"#85807a\",\n \"dark\": \"#8e9291\"\n },\n \"usage\": \"Disabled text only; breadcrumb dividers use crumb-divider. 3.0:1 on surface in light (6.0:1 in dark): never for text people must read.\"\n },\n {\n \"name\": \"muted\",\n \"value\": {\n \"light\": \"#565654\",\n \"dark\": \"{neutral-400}\"\n },\n \"usage\": \"Secondary text, descriptions, placeholders, eyebrows and captions. 7.1:1 on surface, 6.4:1 on tint in light; 8.7:1 and 7.8:1 in dark.\"\n },\n {\n \"name\": \"text2\",\n \"value\": {\n \"light\": \"{neutral-800}\",\n \"dark\": \"#d8d8d4\"\n },\n \"usage\": \"Body copy that sits one step below ink: descriptions in alerts, table cells, ghost button labels. 12.5:1 on surface in light, 13.8:1 in dark.\"\n },\n {\n \"name\": \"ink\",\n \"value\": {\n \"light\": \"{black}\",\n \"dark\": \"{neutral-100}\"\n },\n \"usage\": \"Primary text and icons on surface, tint, paper and select (at least 17:1 in light, 13:1 in dark). Also the fill of checked controls and person avatars.\"\n },\n {\n \"name\": \"mix-ink\",\n \"value\": {\n \"light\": \"#2e271d\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"The neutral every hover, press and current mix takes in, so state grounds shift the surface underneath without leaving its family. In light, a dark warm neutral from the ground's own hue, so states blend into the warm ground instead of greying it; ink in dark.\"\n },\n {\n \"name\": \"on-ink\",\n \"value\": {\n \"light\": \"{white}\",\n \"dark\": \"{black}\"\n },\n \"usage\": \"Text and icons on an ink fill: checked checkboxes, person avatars, tooltips.\"\n },\n {\n \"name\": \"accent\",\n \"value\": {\n \"light\": \"#e3f047\",\n \"dark\": \"#e3f047\"\n },\n \"scoped\": \"oklch(var(--cipher-accent-lc, 0.917 0.183) {hue})\",\n \"usage\": \"The one accent. Outside every hue scope it is Infisical yellow #e3f047 in both themes (sign-in, and any page that sets no hue); inside a hue scope it is that hue's own accent, which hueScope places at the lightest point where the hue holds the brand chroma, so a KMS create button is KMS green and the brand hue still lands on #e3f047. The fill of the one primary create action on a page (Add new, Create key, New connection), approval and grant buttons, counts (in the sidebar and the bulk action bar), the on switch track in dark, the slider range in dark and search highlights; the current page in the sidebar stays neutral. On light grounds a yellow fill is nearly as light as the ground and carries no edge: it is a highlight, and what it says is its on-accent text, so the label, not the fill, identifies the control or the number. Never let a bare fill with no text carry meaning (a dot, a bar); use accent-fg for those. A fill, never text on light grounds. For accent-colored text and icons (the banner), use accent-fg.\"\n },\n {\n \"name\": \"accent-2\",\n \"value\": {\n \"light\": \"#d3df29\",\n \"dark\": \"#d1de23\"\n },\n \"scoped\": \"oklch(var(--cipher-accent-2-lc, 0.867 0.183) {hue})\",\n \"usage\": \"Hover and pressed fill of accent buttons. A step darker than accent on the same hue (0.05 lower oklch lightness, chroma kept where the gamut allows); on-accent on it passes AA on every hue.\"\n },\n {\n \"name\": \"on-accent\",\n \"value\": {\n \"light\": \"#010101\",\n \"dark\": \"#010101\"\n },\n \"scoped\": \"var(--cipher-accent-on, #010101)\",\n \"usage\": \"Text and icons on an accent fill. Near-black outside every hue scope, the same in both themes. Inside a scope hueScope picks near-black or white, whichever keeps the higher contrast on the worst of the accent, accent-2 and the lightest stop of the button material, so a dark accent (a deep blue) gets white text. Every product hue picks near-black.\"\n },\n {\n \"name\": \"accent-wash\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 28%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 11%, black)\"\n },\n \"usage\": \"Very light accent ground for a highlighted row, a callout and the production banner, mixed from the accent so it follows the hue scope. Text on it is ink.\"\n },\n {\n \"name\": \"accent-line\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 55%, {line})\",\n \"dark\": \"color-mix(in srgb, {accent} 25%, black)\"\n },\n \"usage\": \"Border of the production banner and other accent-wash callouts, mixed from the accent a step darker than the wash, like the status -line colors.\"\n },\n {\n \"name\": \"accent-fg\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"The accent as text or an icon. Ink in light, where the accent cannot be read; the accent in dark (13.1:1 on toast-bg, 13.8:1 on accent-wash). The banner icon and link, and marks with no text in them, like the rail dot that stands for a count.\"\n },\n {\n \"name\": \"mark\",\n \"value\": {\n \"light\": \"#010101\",\n \"dark\": \"#e3f047\"\n },\n \"usage\": \"The mark's ink when UI draws it, such as the Spinner. Ink in light, the accent in dark, the same inks as the logo files.\"\n },\n {\n \"name\": \"ok\",\n \"value\": {\n \"light\": \"#2b5945\",\n \"dark\": \"#8fc7a4\"\n },\n \"usage\": \"Success text, icons and dots. 7.7:1 on surface and 6.6:1 on ok-bg in light; 10.2:1 and 8.5:1 in dark. Always paired with a word or icon.\"\n },\n {\n \"name\": \"ok-deep\",\n \"value\": {\n \"light\": \"#1f4232\",\n \"dark\": \"#bfe3cc\"\n },\n \"usage\": \"Titles inside success alerts, on ok-wash (9.9:1 light, 12.7:1 dark).\"\n },\n {\n \"name\": \"ok-bg\",\n \"value\": {\n \"light\": \"#e2eae5\",\n \"dark\": \"#14231b\"\n },\n \"usage\": \"Fill of success badges.\"\n },\n {\n \"name\": \"ok-wash\",\n \"value\": {\n \"light\": \"#eef3f0\",\n \"dark\": \"#101b15\"\n },\n \"usage\": \"Ground of success alerts.\"\n },\n {\n \"name\": \"ok-line\",\n \"value\": {\n \"light\": \"#c7d6cd\",\n \"dark\": \"#25402f\"\n },\n \"usage\": \"Border of success badges and alerts.\"\n },\n {\n \"name\": \"warn\",\n \"value\": {\n \"light\": \"#7a5300\",\n \"dark\": \"#e8c26a\"\n },\n \"usage\": \"Warning text, icons and near-limit progress. 6.6:1 on surface and 5.5:1 on warn-bg in light; 11.6:1 and 9.2:1 in dark.\"\n },\n {\n \"name\": \"warn-deep\",\n \"value\": {\n \"light\": \"#4d3500\",\n \"dark\": \"#f3d99a\"\n },\n \"usage\": \"Titles inside warning alerts, on warn-wash.\"\n },\n {\n \"name\": \"warn-bg\",\n \"value\": {\n \"light\": \"#f2e6c8\",\n \"dark\": \"#2b2210\"\n },\n \"usage\": \"Fill of warning badges.\"\n },\n {\n \"name\": \"warn-wash\",\n \"value\": {\n \"light\": \"#f8f2e2\",\n \"dark\": \"#1c170c\"\n },\n \"usage\": \"Ground of warning alerts.\"\n },\n {\n \"name\": \"warn-line\",\n \"value\": {\n \"light\": \"#e3d2a4\",\n \"dark\": \"#463819\"\n },\n \"usage\": \"Border of warning badges and alerts.\"\n },\n {\n \"name\": \"bad\",\n \"value\": {\n \"light\": \"{red}\",\n \"dark\": \"#ff5a4f\"\n },\n \"usage\": \"Errors, destructive buttons, over-limit progress. 5.8:1 on surface and 4.7:1 on bad-bg in light; 6.4:1 and 5.5:1 in dark. Told apart from ok by lightness and by its word or icon.\"\n },\n {\n \"name\": \"bad-deep\",\n \"value\": {\n \"light\": \"#6b1510\",\n \"dark\": \"#ffc0b9\"\n },\n \"usage\": \"Titles inside error alerts, on bad-wash.\"\n },\n {\n \"name\": \"bad-bg\",\n \"value\": {\n \"light\": \"#f7deda\",\n \"dark\": \"#331311\"\n },\n \"usage\": \"Fill of error badges and the icon tile in alert dialogs.\"\n },\n {\n \"name\": \"bad-wash\",\n \"value\": {\n \"light\": \"#faeeec\",\n \"dark\": \"#1d0e0d\"\n },\n \"usage\": \"Ground of error alerts; hover of danger ghost buttons.\"\n },\n {\n \"name\": \"bad-line\",\n \"value\": {\n \"light\": \"#edc3bd\",\n \"dark\": \"#5a221e\"\n },\n \"usage\": \"Border of error badges and alerts.\"\n },\n {\n \"name\": \"bad-control\",\n \"value\": {\n \"light\": \"#e2a09c\",\n \"dark\": \"#712c28\"\n },\n \"usage\": \"Border of an invalid field at rest: bad at the control step (2.1:1 on surface in light, 2.0:1 in dark, like control), so an invalid field rests as quietly as any other. Focus or open turns it bad with the 3px bad nudge outline. The error text under it carries the message.\"\n },\n {\n \"name\": \"bad-fill\",\n \"value\": {\n \"light\": \"{red}\",\n \"dark\": \"{red}\"\n },\n \"usage\": \"Fill and border of the destructive Button. One red in both themes, so its on-bad label stays white (6.0:1); on the dark surface the fill is 3.1:1, enough for a control boundary. Text and icons in red still use bad, which lightens in dark.\"\n },\n {\n \"name\": \"on-bad\",\n \"value\": {\n \"light\": \"{white}\",\n \"dark\": \"{white}\"\n },\n \"usage\": \"Label on the destructive fill. White in both themes, because bad-fill does not change with theme: 6.0:1 on bad-fill and 8.0:1 on bad-hover.\"\n },\n {\n \"name\": \"bad-hover\",\n \"value\": {\n \"light\": \"#9e1b14\",\n \"dark\": \"#9e1b14\"\n },\n \"usage\": \"Hover and pressed fill of destructive buttons, the same in both themes so the white on-bad label holds (8.0:1).\"\n },\n {\n \"name\": \"info\",\n \"value\": {\n \"light\": \"#1f4e79\",\n \"dark\": \"#8fb4de\"\n },\n \"usage\": \"Informational text and icons. 8.4:1 on surface, 6.9:1 on info-bg in light; 9.1:1 and 7.8:1 in dark.\"\n },\n {\n \"name\": \"info-deep\",\n \"value\": {\n \"light\": \"#143556\",\n \"dark\": \"#c4d9ef\"\n },\n \"usage\": \"Titles inside info alerts, on info-wash.\"\n },\n {\n \"name\": \"info-bg\",\n \"value\": {\n \"light\": \"#dfe7ef\",\n \"dark\": \"#121e2b\"\n },\n \"usage\": \"Fill of info badges.\"\n },\n {\n \"name\": \"info-wash\",\n \"value\": {\n \"light\": \"#eef3f8\",\n \"dark\": \"#0e1620\"\n },\n \"usage\": \"Ground of info alerts.\"\n },\n {\n \"name\": \"info-line\",\n \"value\": {\n \"light\": \"#c3d1df\",\n \"dark\": \"#243a52\"\n },\n \"usage\": \"Border of info badges and alerts.\"\n },\n {\n \"name\": \"folder\",\n \"value\": {\n \"light\": \"#80661f\",\n \"dark\": \"#a4873e\"\n },\n \"usage\": \"Folder icons and glyphs in secret trees, path pickers and folder rows, the warm ochre the app uses for folders. An icon color, never text or a fill. 5.5:1 on surface in light and dark, 4.9:1 on paper in light.\"\n },\n {\n \"name\": \"chart-1\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Chart series 1, the first series of a categorical chart: --chart-1 and --color-chart-1. The chart series run chart-1 to chart-6 in order; take them from chartSeries rather than listing them.\"\n },\n {\n \"name\": \"chart-2\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Chart series 2: --chart-2 and --color-chart-2.\"\n },\n {\n \"name\": \"chart-3\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Chart series 3: --chart-3 and --color-chart-3. On light grounds it is 1.20:1 on surface, below the 3:1 non-text floor, so a bar or segment in it needs a label or an edge to read.\"\n },\n {\n \"name\": \"chart-4\",\n \"value\": {\n \"light\": \"{ok}\",\n \"dark\": \"{ok}\"\n },\n \"usage\": \"Chart series 4: --chart-4 and --color-chart-4.\"\n },\n {\n \"name\": \"chart-5\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"{bad}\"\n },\n \"usage\": \"Chart series 5: --chart-5 and --color-chart-5.\"\n },\n {\n \"name\": \"chart-6\",\n \"value\": {\n \"light\": \"#2563c9\",\n \"dark\": \"#5b9bf0\"\n },\n \"usage\": \"Chart series 6, a blue the other five lack: --chart-6 and --color-chart-6. 5.5:1 on surface in light; 6.7:1 on surface and 6.9:1 on inset in dark. Its nearest series is chart-2 at an OKLab distance of 0.19 in light and 0.17 in dark, wider than any pair among chart-1 to chart-5.\"\n },\n {\n \"name\": \"ansi-black\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{neutral-600}\"\n },\n \"usage\": \"ANSI black in the Terminal. Ink in light; a mid step in dark, so it stays visible on the surface.\"\n },\n {\n \"name\": \"ansi-red\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"{bad}\"\n },\n \"usage\": \"ANSI red in the Terminal.\"\n },\n {\n \"name\": \"ansi-green\",\n \"value\": {\n \"light\": \"{ok}\",\n \"dark\": \"{ok}\"\n },\n \"usage\": \"ANSI green in the Terminal.\"\n },\n {\n \"name\": \"ansi-yellow\",\n \"value\": {\n \"light\": \"{warn}\",\n \"dark\": \"{warn}\"\n },\n \"usage\": \"ANSI yellow in the Terminal.\"\n },\n {\n \"name\": \"ansi-blue\",\n \"value\": {\n \"light\": \"{info}\",\n \"dark\": \"{info}\"\n },\n \"usage\": \"ANSI blue in the Terminal.\"\n },\n {\n \"name\": \"ansi-magenta\",\n \"value\": {\n \"light\": \"#7b3f8c\",\n \"dark\": \"#d3a6e6\"\n },\n \"usage\": \"ANSI magenta in the Terminal. Terminal output only; no component uses it for meaning.\"\n },\n {\n \"name\": \"ansi-cyan\",\n \"value\": {\n \"light\": \"#1d6670\",\n \"dark\": \"#8ccfd6\"\n },\n \"usage\": \"ANSI cyan in the Terminal. Terminal output only; no component uses it for meaning.\"\n },\n {\n \"name\": \"ansi-white\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{text2}\"\n },\n \"usage\": \"ANSI white in the Terminal. Muted in light, so white text stays readable on a light surface.\"\n },\n {\n \"name\": \"ansi-bright-black\",\n \"value\": {\n \"light\": \"{faint}\",\n \"dark\": \"{faint}\"\n },\n \"usage\": \"ANSI bright black in the Terminal, the usual color for dimmed output.\"\n },\n {\n \"name\": \"ansi-bright-red\",\n \"value\": {\n \"light\": \"{bad-deep}\",\n \"dark\": \"{bad-deep}\"\n },\n \"usage\": \"ANSI bright red in the Terminal. Every bright color takes a step more contrast against the surface.\"\n },\n {\n \"name\": \"ansi-bright-green\",\n \"value\": {\n \"light\": \"{ok-deep}\",\n \"dark\": \"{ok-deep}\"\n },\n \"usage\": \"ANSI bright green in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-yellow\",\n \"value\": {\n \"light\": \"{warn-deep}\",\n \"dark\": \"{warn-deep}\"\n },\n \"usage\": \"ANSI bright yellow in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-blue\",\n \"value\": {\n \"light\": \"{info-deep}\",\n \"dark\": \"{info-deep}\"\n },\n \"usage\": \"ANSI bright blue in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-magenta\",\n \"value\": {\n \"light\": \"#57266a\",\n \"dark\": \"#ead0f5\"\n },\n \"usage\": \"ANSI bright magenta in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-cyan\",\n \"value\": {\n \"light\": \"#134a51\",\n \"dark\": \"#c2e8ec\"\n },\n \"usage\": \"ANSI bright cyan in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-white\",\n \"value\": {\n \"light\": \"{neutral-400}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"ANSI bright white in the Terminal. A light grey in light, so it never matches ansi-black as a background; the Terminal's minimum contrast keeps it readable as text.\"\n },\n {\n \"name\": \"map-land\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{neutral-900}\"\n },\n \"usage\": \"Land on WorldMap: every country with no count, and the base the region tones mix into.\"\n },\n {\n \"name\": \"map-border\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Country borders on WorldMap. The surface the map sits on, so borders read as gaps between countries rather than drawn lines.\"\n },\n {\n \"name\": \"map-region\",\n \"value\": {\n \"light\": \"{chart-6}\",\n \"dark\": \"{chart-6}\"\n },\n \"usage\": \"The tone of a country with a count on WorldMap, mixed into map-land in four steps from fewer to more, and the scale squares in its legend.\"\n },\n {\n \"name\": \"map-marker\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"WorldMap location markers and their legend squares. Ink, so a marker reads over land, region tones and open sea alike.\"\n },\n {\n \"name\": \"map-marker-line\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"The outline that separates overlapping WorldMap markers from each other and from the land under them.\"\n },\n {\n \"name\": \"link\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Text of an inline link and the link Button: ink with a 1px underline at a 3px offset. Hover moves to text2 with a 2px underline and never adds a background. Links are never blue; info is only for informational status.\"\n },\n {\n \"name\": \"sw-on\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Track and border of a switch that is on. Ink in light (20:1 on surface, where the lime fill would vanish at 1.2:1) and the accent in dark (15.1:1 on surface).\"\n },\n {\n \"name\": \"sw-knob-on\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{on-accent}\"\n },\n \"usage\": \"Knob of a switch that is on: the accent on the ink track in light, on-accent ink on the accent track in dark.\"\n },\n {\n \"name\": \"slider-range\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Filled range of a slider: ink in light, the accent in dark. Ink keeps the filled part readable against the track in light.\"\n },\n {\n \"name\": \"slider-track\",\n \"value\": {\n \"light\": \"{faint}\",\n \"dark\": \"{line}\"\n },\n \"usage\": \"Unfilled track of a slider: faint in light so the track edge holds 3:1 on surface, line in dark.\"\n },\n {\n \"name\": \"toast-bg\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{neutral-900}\"\n },\n \"usage\": \"Toasts. Light on light, dark on dark: surface in light, a raised gray in dark (1.2:1 on the dark page). Always with toast-line and shadow-pop.\"\n },\n {\n \"name\": \"toast-line\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{line}\"\n },\n \"usage\": \"Border of toasts.\"\n },\n {\n \"name\": \"toast-text\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Titles and text in toasts (20.1:1 light, 14.3:1 dark).\"\n },\n {\n \"name\": \"toast-muted\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Secondary text and the dismiss icon in toasts (7.1:1 light, 7.5:1 dark).\"\n },\n {\n \"name\": \"toast-ok\",\n \"value\": {\n \"light\": \"{ok}\",\n \"dark\": \"{ok}\"\n },\n \"usage\": \"Success icon in a toast (7.7:1 light, 8.5:1 dark).\"\n },\n {\n \"name\": \"toast-bad\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"#ff7a70\"\n },\n \"usage\": \"Error icon in a toast (5.8:1 light, 6.4:1 dark).\"\n },\n {\n \"name\": \"scrim\",\n \"value\": {\n \"light\": \"rgba(1, 1, 1, 0.38)\",\n \"dark\": \"rgba(0, 0, 0, 0.62)\"\n },\n \"usage\": \"Behind dialogs, alert dialogs and sheets.\"\n },\n {\n \"name\": \"button-face-start\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 82%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 82%, white)\"\n },\n \"usage\": \"Light lime upper face of the primary Button beneath its colored inset illumination.\"\n },\n {\n \"name\": \"button-face-end\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Bright brand lime lower face of the primary Button.\"\n },\n {\n \"name\": \"button-bloom\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 35%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 35%, white)\"\n },\n \"usage\": \"Lower interior light in the primary Button three-layer inset illumination.\"\n },\n {\n \"name\": \"button-hover-start\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 78%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 78%, white)\"\n },\n \"usage\": \"Light lime upper face on hover, painted in the same border box.\"\n },\n {\n \"name\": \"button-hover-end\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Bright brand lime lower face on hover.\"\n },\n {\n \"name\": \"button-hover-bloom\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 25%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 25%, white)\"\n },\n \"usage\": \"Two close lower interior lights in the primary Button five-layer hover illumination.\"\n },\n {\n \"name\": \"button-press-start\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Bright lime pressed primary Button face. Color feedback without movement.\"\n },\n {\n \"name\": \"button-press-end\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 96%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 96%, white)\"\n },\n \"usage\": \"Bright lime pressed lower face without hover illumination.\"\n },\n {\n \"name\": \"button-glow\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"The paired broad colored inset lights of the primary Button at rest.\"\n },\n {\n \"name\": \"button-hover-glow\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"The paired wider colored inset lights of the primary Button on hover.\"\n },\n {\n \"name\": \"button-hover-bloom-soft\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 38%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 38%, white)\"\n },\n \"usage\": \"The wider lower interior light behind the two close hover lights.\"\n }\n ]\n },\n \"type\": {\n \"fonts\": [\n {\n \"family\": \"Archivo\",\n \"file\": \"fonts/Archivo-Latin.woff2\",\n \"weight\": \"100 900\",\n \"style\": \"normal\"\n },\n {\n \"family\": \"Archivo\",\n \"file\": \"fonts/Archivo-Italic-Latin.woff2\",\n \"weight\": \"100 900\",\n \"style\": \"italic\"\n },\n {\n \"family\": \"Geist Mono\",\n \"file\": \"fonts/GeistMono-Latin.woff2\",\n \"weight\": \"400 600\",\n \"style\": \"normal\"\n }\n ],\n \"families\": {\n \"sans\": \"Archivo, \\\"Helvetica Neue\\\", Helvetica, sans-serif\",\n \"mono\": \"\\\"Geist Mono\\\", ui-monospace, Menlo, monospace\"\n },\n \"groups\": [\n {\n \"name\": \"Display\",\n \"family\": \"sans\",\n \"styles\": [\n {\n \"name\": \"display\",\n \"fontSize\": \"44px\",\n \"lineHeight\": \"44px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.03em\",\n \"sample\": \"Needs you\",\n \"usage\": \"Explicit display headings and exceptional large figures. Ordinary interface titles use title-lg.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"title-lg\",\n \"fontSize\": \"28px\",\n \"lineHeight\": \"32px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.025em\",\n \"sample\": \"Certificates\",\n \"usage\": \"Ordinary page and component-workbench titles.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"title\",\n \"fontSize\": \"18px\",\n \"lineHeight\": \"26px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.02em\",\n \"sample\": \"Next rotations\",\n \"usage\": \"Section headings, dialog and sheet titles.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"title-sm\",\n \"fontSize\": \"16px\",\n \"lineHeight\": \"22px\",\n \"fontWeight\": 600,\n \"sample\": \"Add secret\",\n \"usage\": \"Card titles and empty state titles.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n }\n ]\n },\n {\n \"name\": \"Text\",\n \"family\": \"sans\",\n \"styles\": [\n {\n \"name\": \"body-lg\",\n \"fontSize\": \"16px\",\n \"lineHeight\": \"24px\",\n \"fontWeight\": 400,\n \"sample\": \"4 items are waiting on you.\",\n \"usage\": \"Page ledes under the display title, in muted.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"body\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 400,\n \"sample\": \"Syncs 14 secrets to GitHub Actions on every push.\",\n \"usage\": \"Default UI text.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"label\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 500,\n \"sample\": \"Approve\",\n \"usage\": \"Action labels and emphasized row titles. Field labels use field-label.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"small\",\n \"fontSize\": \"13px\",\n \"lineHeight\": \"18px\",\n \"fontWeight\": 400,\n \"sample\": \"Needs one approval under prod-changes.\",\n \"usage\": \"Help text, secondary lines and supporting descriptions.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"caption\",\n \"fontSize\": \"12px\",\n \"lineHeight\": \"16px\",\n \"fontWeight\": 500,\n \"sample\": \"Updated 10:30\",\n \"usage\": \"Timestamps, stage labels, dense metadata, in muted.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"eyebrow\",\n \"fontSize\": \"11px\",\n \"lineHeight\": \"16px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"0.06em\",\n \"sample\": \"ACME CORP / ACME-PLATFORM\",\n \"usage\": \"Explicit compact group labels only. Surface treatment does not change a heading into this role.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"field-label\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"0\",\n \"sample\": \"Connection name\",\n \"usage\": \"Associated field labels. Required and optional hints remain part of the label.\"\n },\n {\n \"name\": \"row-title\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"0\",\n \"sample\": \"Payments API\",\n \"usage\": \"Primary text in resource, member and activity rows. It does not inherit a page body size.\"\n }\n ]\n },\n {\n \"name\": \"Mono\",\n \"family\": \"mono\",\n \"styles\": [\n {\n \"name\": \"mono\",\n \"fontSize\": \"13px\",\n \"lineHeight\": \"18px\",\n \"fontWeight\": 400,\n \"sample\": \"stripe_api_key\",\n \"usage\": \"Secret keys, paths, hostnames, identity names, environment slugs.\",\n \"fontFamily\": \"var(--cipher-font-mono)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"mono-sm\",\n \"fontSize\": \"12px\",\n \"lineHeight\": \"16px\",\n \"fontWeight\": 400,\n \"sample\": \"v15 / 2026-09-24\",\n \"usage\": \"Versions, dates in tables, shortcuts, counts, in muted.\",\n \"fontFamily\": \"var(--cipher-font-mono)\",\n \"letterSpacing\": \"0\"\n }\n ]\n }\n ]\n },\n \"spacing\": {\n \"note\": \"The number is the pixel value. Layouts use the larger steps; controls use 6 to 16.\",\n \"tokens\": [\n {\n \"name\": \"space-2\",\n \"value\": \"2px\",\n \"usage\": \"Between icon buttons in a toolbar; title to description in stacked text; tile to tile inside a stepper.\"\n },\n {\n \"name\": \"space-3\",\n \"value\": \"3px\",\n \"usage\": \"Shell inset: between a tint shell and its content block (cards, tables, lists). Segmented track padding. Menu and listbox padding, so a row's hover ground sits 4px from the outer edge with the border. A field's end padding beside its nested items, so a slot sits 4px from the outer edge with the border.\"\n },\n {\n \"name\": \"space-4\",\n \"value\": \"4px\",\n \"usage\": \"Gap inside segmented tracks and pagination; between step segments; between grouped nested items in a field (reveal and copy, a shortcut and clear).\"\n },\n {\n \"name\": \"space-6\",\n \"value\": \"6px\",\n \"usage\": \"Label to control; badge dot to text; small button icon gap; combobox chip field padding.\"\n },\n {\n \"name\": \"space-8\",\n \"value\": \"8px\",\n \"usage\": \"Icon to label in buttons and inputs; buttons inside a row or item.\"\n },\n {\n \"name\": \"space-10\",\n \"value\": \"10px\",\n \"usage\": \"Small button padding; avatar to name; left and right padding inside text fields, input groups and select, combobox and multiselect triggers. Menu and listbox rows reach the same line: 3px list padding plus 7px row padding, so their text lines up with the trigger's.\"\n },\n {\n \"name\": \"space-12\",\n \"value\": \"12px\",\n \"usage\": \"Popover padding, both directions; gap between buttons in footers; dialog and sheet footer padding; gap between stacked blocks; alert grid gap.\"\n },\n {\n \"name\": \"space-14\",\n \"value\": \"14px\",\n \"usage\": \"Row padding in tables and item lists; default button padding; section heading to content.\"\n },\n {\n \"name\": \"space-16\",\n \"value\": \"16px\",\n \"usage\": \"Card, alert and alert dialog padding; gap between fields in a form.\"\n },\n {\n \"name\": \"space-20\",\n \"value\": \"20px\",\n \"usage\": \"Dialog and sheet body padding; gap between checkbox options.\"\n },\n {\n \"name\": \"space-24\",\n \"value\": \"24px\",\n \"usage\": \"Gap between side by side cards; combobox chip height; gap between header and nav.\"\n },\n {\n \"name\": \"space-32\",\n \"value\": \"32px\",\n \"usage\": \"Gap between side by side sections.\"\n },\n {\n \"name\": \"space-40\",\n \"value\": \"40px\",\n \"usage\": \"Main panel padding; compact list row and tab height.\"\n },\n {\n \"name\": \"space-44\",\n \"value\": \"44px\",\n \"usage\": \"Gap between page sections.\"\n },\n {\n \"name\": \"space-48\",\n \"value\": \"48px\",\n \"usage\": \"Main panel bottom padding; the TopBar height (size-shell-bar). Table rows are size-row (40px), not this.\"\n },\n {\n \"name\": \"space-control-inline-sm\",\n \"value\": \"{space-10}\",\n \"usage\": \"Compact action inline inset. Also the inline padding of sm (32px) fields and the inset of their leading icon and chevron.\"\n },\n {\n \"name\": \"space-control-inline-md\",\n \"value\": \"{space-12}\",\n \"usage\": \"Inline padding of md (36px) fields. Field padding steps 10, 12, 14 with the 32, 36, 40 heights, and a leading icon sits at the same inset.\"\n },\n {\n \"name\": \"space-control-inline\",\n \"value\": \"{space-14}\",\n \"usage\": \"Ordinary and large action inline inset. Also the inline padding of lg (40px) fields.\"\n },\n {\n \"name\": \"space-control-gap\",\n \"value\": \"{space-6}\",\n \"usage\": \"Action icon and label gap.\"\n },\n {\n \"name\": \"space-field-label\",\n \"value\": \"{space-6}\",\n \"usage\": \"Field label to its control and supporting feedback.\"\n },\n {\n \"name\": \"space-field-group\",\n \"value\": \"{space-16}\",\n \"usage\": \"Between complete field groups.\"\n },\n {\n \"name\": \"space-field-legend\",\n \"value\": \"{space-20}\",\n \"usage\": \"FieldSet legend (or the description under it) to the set's first field. Larger than field to field so the legend reads as a heading, smaller than set to set.\"\n },\n {\n \"name\": \"space-content-group\",\n \"value\": \"{space-16}\",\n \"usage\": \"Related blocks inside a content section.\"\n },\n {\n \"name\": \"space-actions-gap\",\n \"value\": \"{space-12}\",\n \"usage\": \"Space between a text block and the action row under it: Item and List rows with actions below, Announcements, ApprovalQueue and Alert actions. Set as a gap (or the block padding of the action row in a tighter stack), never a margin on the buttons.\"\n },\n {\n \"name\": \"space-content-section\",\n \"value\": \"{space-32}\",\n \"usage\": \"Between independent open content sections.\"\n },\n {\n \"name\": \"space-shell-gap\",\n \"value\": \"{space-8}\",\n \"usage\": \"Gap on the right and bottom of the AppInset island (and on its top when there is no TopBar band, and its left when there is no sidebar), so the inset floats on the shell ground as a framed card.\"\n },\n {\n \"name\": \"space-crumb-divider\",\n \"value\": \"{space-8}\",\n \"usage\": \"Space on each side of a BandDivider, between the line and the ground of the target beside it: crumbs in either Breadcrumb variant and the TopBar's right cluster. The divider is an element in the layout flow, so both sides are always equal and no neighbor offsets it.\"\n },\n {\n \"name\": \"size-shell-bar\",\n \"value\": \"{space-48}\",\n \"usage\": \"Height of the TopBar band across the top of the AppShell, on the shell ground and outside the AppInset island. The island and the Sidebar both start below it.\"\n },\n {\n \"name\": \"space-sidebar-row-inset\",\n \"value\": \"9px\",\n \"usage\": \"Inline padding of a Sidebar nav row, so its 18px glyph sits centered in the 36px rail row. The TopBar organization switcher uses it too, so its glyph and label line up with the rows below.\"\n },\n {\n \"name\": \"size-sidebar-icon\",\n \"value\": \"18px\",\n \"usage\": \"Glyph of a Sidebar nav row and of the TopBar organization switcher above it.\"\n },\n {\n \"name\": \"size-shell-target\",\n \"value\": \"{size-control-sm}\",\n \"usage\": \"Hover and press box height of every target in the TopBar band: crumb names, switcher chevrons, the organization switcher, the search and notification icon buttons and the account trigger. One height, centered in size-shell-bar, so no ground is taller or shorter than its neighbors. It equals the default Button height, so the band's Buttons use size sm.\"\n },\n {\n \"name\": \"size-shell-collapse\",\n \"value\": \"800px\",\n \"usage\": \"AppShell width below which the Sidebar has no rail and opens only as a left Sheet from the TopBar menu button, the band keeps at most two crumbs, and the AppInset island drops its gaps and border to fill the shell. Measured on the shell itself, so an embedded shell collapses by its own width.\"\n },\n {\n \"name\": \"size-shell-rail\",\n \"value\": \"1280px\",\n \"usage\": \"AppShell width below which the Sidebar starts as the rail, and expanding it opens the full navigation as a left Sheet with a scrim instead of pushing the island. At this width and above the Sidebar starts expanded. Measured on the shell itself.\"\n },\n {\n \"name\": \"size-sidebar\",\n \"value\": \"224px\",\n \"usage\": \"Width of the expanded Sidebar. In the wide shell the TopBar's organization switcher fills it, so the divider after the switcher lines up with the island's left edge.\"\n },\n {\n \"name\": \"size-sidebar-rail\",\n \"value\": \"52px\",\n \"usage\": \"Width of the collapsed Sidebar rail. Its 36px tools sit on the same 26px center line as the expanded corner toggle, so the toggle never moves.\"\n },\n {\n \"name\": \"size-unread\",\n \"value\": \"6px\",\n \"usage\": \"The unread square on the notifications button, the announcements trigger and the narrow menu button, in accent-fg with a ring of the ground behind it.\"\n },\n {\n \"name\": \"size-touch-row\",\n \"value\": \"{space-48}\",\n \"usage\": \"Rows of the shell's bottom sheets (account and help below size-shell-collapse) and the nav Sheet's user row, sized for touch.\"\n },\n {\n \"name\": \"space-surface-inset\",\n \"value\": \"{space-16}\",\n \"usage\": \"Ordinary surface header, body and footer alignment edge.\"\n },\n {\n \"name\": \"space-surface-inset-sm\",\n \"value\": \"{space-12}\",\n \"usage\": \"Compact surface header, body and footer alignment edge.\"\n },\n {\n \"name\": \"space-frame-inline\",\n \"value\": \"{space-6}\",\n \"usage\": \"Side padding of a frame header and footer band. With the frame edge (frame-pad) beside it, a bordered or filled control in a band corner sits as far from the frame side as from the band top and bottom.\"\n },\n {\n \"name\": \"space-frame-title-inline\",\n \"value\": \"calc({space-12} - {space-frame-inline})\",\n \"usage\": \"Extra start inset for a frame title and footer text on top of space-frame-inline, so text keeps its optical position while controls sit tight to the corner.\"\n },\n {\n \"name\": \"space-overlay-inset\",\n \"value\": \"{space-20}\",\n \"usage\": \"Modal and sheet content alignment edge.\"\n },\n {\n \"name\": \"space-menu-inset\",\n \"value\": \"{space-3}\",\n \"usage\": \"Menu rows inset inside their containing border.\"\n },\n {\n \"name\": \"space-control-slot-inset\",\n \"value\": \"{space-3}\",\n \"usage\": \"Interior field inset. With the 1px border, a nested action sits 4px from the host outside edge.\"\n },\n {\n \"name\": \"space-control-slot-gap\",\n \"value\": \"{space-4}\",\n \"usage\": \"Between separate actions in one field slot.\"\n },\n {\n \"name\": \"space-row-inline\",\n \"value\": \"{space-surface-inset-sm}\",\n \"usage\": \"Inline padding of every Table and DataTable cell: the 12px content edge that cell text and row indicator glyphs share. The sticky actions cell pads by space-row-actions-inset instead.\"\n },\n {\n \"name\": \"space-row-actions-gap\",\n \"value\": \"0px\",\n \"usage\": \"Gap between row action targets and between row indicator slots. Neighbouring targets touch without overlapping, so 16px glyphs sit 12px apart.\"\n },\n {\n \"name\": \"space-row-actions-inset\",\n \"value\": \"calc(({size-row} - {size-target-row}) / 2 - {size-control-border})\",\n \"usage\": \"Inline padding on both sides of the sticky actions cell, inside its divider and the frame edge. With the 1px lines on either side it centers one size-target-row action in a size-row square, 5px clear of each line.\"\n },\n {\n \"name\": \"space-row-indent\",\n \"value\": \"{space-24}\",\n \"usage\": \"One depth step of a DataTable row's primary cell: rows under a group header and child rows from getRowChildren start this far inside the column's content edge. It equals an icon plus its 8px gap, so a child's text lines up with the label after its parent's icon.\"\n },\n {\n \"name\": \"size-action-bar\",\n \"value\": \"{space-48}\",\n \"usage\": \"Height of the FloatingActionBar. While the bar shows, AppInset adds this plus space-action-bar-offset as bottom padding, so the last row and the pagination can scroll clear of it.\"\n },\n {\n \"name\": \"space-action-bar-offset\",\n \"value\": \"{space-24}\",\n \"usage\": \"Gap between the FloatingActionBar and the bottom of the window.\"\n }\n ]\n },\n \"size\": {\n \"note\": \"Heights shared by controls and badges, so they line up in any row, and the slot that nested items take inside a field (size-nested-*: the field height minus 8px). The width floors live here too: size-cell-min for table columns, size-text-min for item and card text, size-tile-min for tile grids.\",\n \"tokens\": [\n {\n \"name\": \"size-badge-sm\",\n \"value\": \"16px\",\n \"usage\": \"Small badge height, inside table rows, item rows and sheet meta.\"\n },\n {\n \"name\": \"size-count\",\n \"value\": \"20px\",\n \"usage\": \"Count chip height, in navigation and tabs.\"\n },\n {\n \"name\": \"size-badge\",\n \"value\": \"20px\",\n \"usage\": \"Default badge height: identity, status and emphasis. Matches the count chip.\"\n },\n {\n \"name\": \"size-kbd-xs\",\n \"value\": \"16px\",\n \"usage\": \"Kbd key cap on ink, inside tooltips. A single-glyph cap is exactly this square; longer labels keep the height and grow in width.\"\n },\n {\n \"name\": \"size-kbd-sm\",\n \"value\": \"18px\",\n \"usage\": \"Small Kbd key cap, in menus, command rows, buttons and the TopBar search. A single-glyph cap is an 18px square; Ctrl, Shift and Esc keep the height and grow with equal side padding.\"\n },\n {\n \"name\": \"size-kbd-md\",\n \"value\": \"20px\",\n \"usage\": \"Default Kbd key cap, in running text and field hints. A single-glyph cap is a 20px square; longer labels keep the height and grow with equal side padding.\"\n },\n {\n \"name\": \"size-control-sm\",\n \"value\": \"32px\",\n \"usage\": \"Small control height: small buttons and inputs, icon buttons in toolbars, menu items and options, segmented items, pagination pages.\"\n },\n {\n \"name\": \"size-control-md\",\n \"value\": \"36px\",\n \"usage\": \"Explicit comfortable md control height. Use size=md with iconOnly for a matching 36px standalone icon action. The ordinary default is 32px. Legacy icon aliases keep their explicit nested sizes.\"\n },\n {\n \"name\": \"size-control-lg\",\n \"value\": \"40px\",\n \"usage\": \"Large control height: large buttons and inputs.\"\n },\n {\n \"name\": \"size-row-stacked\",\n \"value\": \"48px\",\n \"usage\": \"Height of a row whose label stacks two lines (a small title over a caption subtitle, 34px of text), such as the option rows of a stacked picker. A 36px control row is too short for two lines.\"\n },\n {\n \"name\": \"size-nested-sm\",\n \"value\": \"24px\",\n \"usage\": \"Slot for a nested item inside a small (32px) field: icon buttons, shortcut hints, clear buttons. 4px from the field's outer edge on every side.\"\n },\n {\n \"name\": \"size-nested-md\",\n \"value\": \"28px\",\n \"usage\": \"Slot for a nested item inside an explicit comfortable md (36px) field: reveal, copy and clear icon buttons, a Kbd hint or a small Badge. The ordinary default uses nested-default at 24px. This explicit slot sits 4px from the field's outer edge; slots are 4px apart.\"\n },\n {\n \"name\": \"size-nested-lg\",\n \"value\": \"32px\",\n \"usage\": \"Slot for a nested item inside a large (40px) field.\"\n },\n {\n \"name\": \"size-cell-min\",\n \"value\": \"64px\",\n \"usage\": \"Floor for every Table and DataGrid column that fits its content. A column can set its own minWidth, or a fixed width.\"\n },\n {\n \"name\": \"size-field-xs\",\n \"value\": \"96px\",\n \"usage\": \"Width of a field set to width xs: a number with a short limit, such as a seat count in a table cell.\"\n },\n {\n \"name\": \"size-field-sm\",\n \"value\": \"176px\",\n \"usage\": \"Width of a field set to width sm: a date, or a select with short options beside a fluid field.\"\n },\n {\n \"name\": \"size-field-md\",\n \"value\": \"256px\",\n \"usage\": \"Width of a field set to width md: a name or short identifier that should not span the row.\"\n },\n {\n \"name\": \"size-text-min\",\n \"value\": \"160px\",\n \"usage\": \"Floor for the main text of an item row and of a plain card heading. Buttons and badges beside it keep their width and drop under the text instead of squeezing it; the text truncates, with its full value on hover.\"\n },\n {\n \"name\": \"size-tile-min\",\n \"value\": \"208px\",\n \"usage\": \"Narrowest a Tile gets in an ifs-tiles grid; below it the grid drops a column instead of squeezing tiles.\"\n },\n {\n \"name\": \"size-search-max\",\n \"value\": \"720px\",\n \"usage\": \"Widest a list toolbar search gets in FilterBar, so the toolbar actions sit apart at the end of the row instead of reading as part of the search.\"\n },\n {\n \"name\": \"size-tile-stacked-min\",\n \"value\": \"280px\",\n \"usage\": \"Narrowest a stacked Tile gets in TilePicker's grid: a 672px sheet holds two columns and a page measure four, so titles keep room before they truncate.\"\n },\n {\n \"name\": \"size-ghost-card\",\n \"value\": \"132px\",\n \"usage\": \"Height of each faded placeholder card behind a ghost cards Empty, about one short card of copy.\"\n },\n {\n \"name\": \"size-card-min\",\n \"value\": \"320px\",\n \"usage\": \"Narrowest a Card gets in an auto-fit Grid (Grid min=\\\"card\\\"); below it the grid drops to fewer columns, so DataList rows keep their label and value on one line.\"\n },\n {\n \"name\": \"size-tooltip-max\",\n \"value\": \"320px\",\n \"usage\": \"Widest a Tooltip grows; longer text wraps inside it instead of overflowing. Tooltip content always resets white-space, so a trigger inside a nowrap cell never forces one long line.\"\n },\n {\n \"name\": \"size-menu-min\",\n \"value\": \"160px\",\n \"usage\": \"Narrowest a menu, listbox or command list panel gets. A panel is never narrower than its trigger either, and grows with its widest row up to size-menu-max.\"\n },\n {\n \"name\": \"size-menu-max\",\n \"value\": \"320px\",\n \"usage\": \"Widest a menu or listbox panel grows from its content. A trigger wider than this still sets the panel's minimum; rows past it truncate their label instead of wrapping.\"\n },\n {\n \"name\": \"size-popover\",\n \"value\": \"288px\",\n \"usage\": \"Width of a popover and a hover card, both padded space-12.\"\n },\n {\n \"name\": \"size-toast\",\n \"value\": \"400px\",\n \"usage\": \"Maximum width of a toast. A ToastStack is as wide as its widest title or description up to this width, so a short notice stays compact and a long title wraps to two lines instead of a tall, narrow card; actions never widen it. The Sonner Toaster draws every toast at this width.\"\n },\n {\n \"name\": \"size-dialog\",\n \"value\": \"440px\",\n \"usage\": \"Maximum width of an ordinary dialog and alert dialog.\"\n },\n {\n \"name\": \"size-dialog-wide\",\n \"value\": \"560px\",\n \"usage\": \"Maximum width of the command palette dialog: a search row and result rows with room for descriptions and shortcuts.\"\n },\n {\n \"name\": \"size-sheet-sm\",\n \"value\": \"384px\",\n \"usage\": \"Maximum width of a side sheet at size sm, the default: a details panel or a short form with one column of fields.\"\n },\n {\n \"name\": \"size-sheet-md\",\n \"value\": \"512px\",\n \"usage\": \"Maximum width of a side sheet at size md: a create form with a key, a multiline value and a few options, like Create secret and Add machine identity.\"\n },\n {\n \"name\": \"size-sheet-lg\",\n \"value\": \"672px\",\n \"usage\": \"Maximum width of a side sheet at size lg: a form sheet with field pairs, credentials or a step bar, like New connection and an auth method. On a viewport narrower than this the sheet is capped at the viewport width.\"\n },\n {\n \"name\": \"size-sheet-xl\",\n \"value\": \"1024px\",\n \"usage\": \"Maximum width of a side sheet at size xl: a two-pane record sheet with a SheetAside beside tabs and their content, like a PAM account. The main pane keeps 704px beside size-pane-aside. On a viewport narrower than this the sheet is capped at the viewport width.\"\n },\n {\n \"name\": \"size-overlay-margin\",\n \"value\": \"{space-16}\",\n \"usage\": \"Space a centered dialog or alert dialog keeps from each viewport edge; its height caps at the viewport minus twice this.\"\n },\n {\n \"name\": \"size-control-xs\",\n \"value\": \"{size-nested-sm}\",\n \"usage\": \"Explicit 24px nested action and shortcut slot; not the ordinary form action.\"\n },\n {\n \"name\": \"size-control-border\",\n \"value\": \"1px\",\n \"usage\": \"Structural border included in every filled and outlined control box.\"\n },\n {\n \"name\": \"size-crumb-divider\",\n \"value\": \"{size-icon}\",\n \"usage\": \"Height of the vertical breadcrumb divider: one icon height, so it spans the text and the switcher chevron without reaching the edges of the 48px TopBar.\"\n },\n {\n \"name\": \"size-crumb-divider-width\",\n \"value\": \"{size-control-border}\",\n \"usage\": \"Stroke of the vertical breadcrumb divider, one structural line.\"\n },\n {\n \"name\": \"size-focus-ring\",\n \"value\": \"2px\",\n \"usage\": \"Width of every keyboard focus mark. A focused field draws an ink border plus this much focus-ring outside it; buttons, tabs and other actions draw an ink outline this wide, offset by the same amount.\"\n },\n {\n \"name\": \"size-focus-glow\",\n \"value\": \"3px\",\n \"usage\": \"Width of the soft focus glow (focus-ring color) outside a focused field, slider thumb or other control that shows focus as a glow rather than an outline. One token for every glow so fields and sliders match.\"\n },\n {\n \"name\": \"size-icon-sm\",\n \"value\": \"14px\",\n \"usage\": \"Compact action icons next to readable 14px labels.\"\n },\n {\n \"name\": \"size-icon\",\n \"value\": \"16px\",\n \"usage\": \"Ordinary action icons and standalone interface marks.\"\n },\n {\n \"name\": \"size-icon-xs\",\n \"value\": \"12px\",\n \"usage\": \"Explicit 24px nested action icons.\"\n },\n {\n \"name\": \"size-icon-lg\",\n \"value\": \"20px\",\n \"usage\": \"Icons inside a small empty-state tile and bare empty-state marks at sm size.\"\n },\n {\n \"name\": \"size-icon-xl\",\n \"value\": \"24px\",\n \"usage\": \"Icons inside a default empty-state tile and bare empty-state marks.\"\n },\n {\n \"name\": \"size-icon-2xl\",\n \"value\": \"32px\",\n \"usage\": \"A documentation link beside a display page title: the glyph box matches the title's cap height.\"\n },\n {\n \"name\": \"size-empty-media\",\n \"value\": \"48px\",\n \"usage\": \"The tinted media tile above a default empty-state title, twice its icon.\"\n },\n {\n \"name\": \"size-empty-media-sm\",\n \"value\": \"{size-control-md}\",\n \"usage\": \"The tinted media tile in an sm empty state, inside lists, menus and table bodies.\"\n },\n {\n \"name\": \"size-content\",\n \"value\": \"1160px\",\n \"usage\": \"The one page content width. AppInset derives its page gutter from it, and TopBar and PageGutter both pad by that gutter, so the breadcrumb, the page header and the page body share one width and one left edge in the workbench, its docs pages and every composition. Never cap page content with an arbitrary max-width.\"\n },\n {\n \"name\": \"size-measure-page\",\n \"value\": \"{size-content}\",\n \"usage\": \"Maximum outer content measure for layout primitives (Container, MeasurePage). Equal to size-content so a primitive and the page gutter agree.\"\n },\n {\n \"name\": \"size-measure-form\",\n \"value\": \"640px\",\n \"usage\": \"Maximum form and workbench article measure.\"\n },\n {\n \"name\": \"size-measure-field\",\n \"value\": \"400px\",\n \"usage\": \"Maximum width of a stacked form field and its control, so a name, ID or select keeps a bounded width inside wide cards. Search inputs and table toolbars are not Fields and stay full width.\"\n },\n {\n \"name\": \"size-measure-field-wide\",\n \"value\": \"100%\",\n \"usage\": \"Maximum width of a wide Field: it fills its column. For multi-column form rows (host and port, name and TTLs) in dynamic secret, secret rotation and app connection forms, where the row's grid sets each field's width and the stacked field measure would leave gaps.\"\n },\n {\n \"name\": \"size-measure-prose\",\n \"value\": \"65ch\",\n \"usage\": \"Readable prose line measure.\"\n },\n {\n \"name\": \"size-sidecar\",\n \"value\": \"384px\",\n \"usage\": \"Width of the DetailLayout sidecar: the details card (a props DataList) beside a detail page's stacked content cards. The current product draws this card at 24rem. It is the narrowest width at which an ID row keeps a full UUID on one line (360px wraps it); at size-content it leaves the main column 752px.\"\n },\n {\n \"name\": \"size-pane-aside\",\n \"value\": \"320px\",\n \"usage\": \"Width of the Panes aside, and of a SheetAside: the identity, badges and summary DataList beside a pane of tabs or a form. Long values wrap inside it rather than widening it.\"\n },\n {\n \"name\": \"size-pane-collapse\",\n \"value\": \"720px\",\n \"usage\": \"Panes width below which the aside stops sitting beside the main pane. Its identity (media, title, description and badges) becomes a fixed header with tabs on its bottom rule: Details first, then the header's own tabs, or the main pane's label when there are none. It opens on the main pane's tab. Measured on the Panes itself, so a 672px sheet or a phone collapses and a 1024px sheet splits.\"\n },\n {\n \"name\": \"size-sidecar-collapse\",\n \"value\": \"896px\",\n \"usage\": \"DetailLayout width below which the sidecar stops sitting beside the main column and stacks above it. Measured on the layout itself with a container query, the same 56rem container breakpoint the current product's detail pages use. At this width the main column keeps 488px.\"\n },\n {\n \"name\": \"size-data-list-term\",\n \"value\": \"128px\",\n \"usage\": \"Term column of a compact DataList full-width row. A term wider than this wraps between words, and a single word longer than it widens the column instead of breaking. Fits Signature algorithm and Certificate authority on one line in body type.\"\n },\n {\n \"name\": \"size-data-list-row\",\n \"value\": \"{size-control-sm}\",\n \"usage\": \"Minimum height of a compact DataList row, the same 32px as a small control, so a Badge or small button in the value does not grow the row. Default DataList rows keep their 8px padding and 12px gap.\"\n },\n {\n \"name\": \"size-control-default\",\n \"value\": \"{size-control-sm}\",\n \"usage\": \"Ordinary 32px action and field height. Explicit md remains 36px and lg remains 40px.\"\n },\n {\n \"name\": \"size-control-band\",\n \"value\": \"{size-nested-md}\",\n \"usage\": \"Control height inside a frame header or footer band (28px): default buttons, toggles, selects and inputs placed in the band take it without a size prop. Page headers keep size-control-default (32px).\"\n },\n {\n \"name\": \"size-nested-default\",\n \"value\": \"{size-nested-sm}\",\n \"usage\": \"Ordinary 24px nested action inside a default 32px field. Explicit md36 fields use nested-md28.\"\n },\n {\n \"name\": \"size-row\",\n \"value\": \"{size-control-lg}\",\n \"usage\": \"Table and DataTable body row height. DataTable reads it at runtime as its default virtual row metric, so the CSS row and the scroll model share one number.\"\n },\n {\n \"name\": \"size-target-row\",\n \"value\": \"{size-nested-md}\",\n \"usage\": \"Hit target of an icon-only row action (Button size icon-row) and the slot of a standalone row indicator. In a size-row row its 2px focus outline at a 2px offset draws a 36px box that stays 2px inside the row. Row indicators pull into the cell padding by (size-target-row - size-glyph) / 2, so the glyph, not the target, lands on the space-row-inline content edge.\"\n },\n {\n \"name\": \"size-row-action-step\",\n \"value\": \"calc({size-target-row} + {space-row-actions-gap})\",\n \"usage\": \"Width each action adds to the sticky actions column after its first. The column is size-row wide for one action (a square cell) and size-row plus this step for every further action, so its width follows its contents.\"\n },\n {\n \"name\": \"size-glyph\",\n \"value\": \"{size-icon}\",\n \"usage\": \"Glyph of a row action and of a standalone row indicator such as a reminder, metadata or replication mark. One size everywhere, so a mark in a value cell and the matching action in the actions column read as the same glyph. Field and nested actions keep size-icon-xs and size-icon-sm.\"\n },\n {\n \"name\": \"size-glyph-sm\",\n \"value\": \"{size-icon-sm}\",\n \"usage\": \"Small supporting glyph, 14px: the glyph in a default (20px) Badge, before or after its label.\"\n },\n {\n \"name\": \"size-badge-glyph\",\n \"value\": \"{size-glyph-sm}\",\n \"usage\": \"Glyph inside a default (size-badge, 20px) Badge: 14px, which leaves a 3px inset above and below inside the border.\"\n },\n {\n \"name\": \"size-badge-glyph-sm\",\n \"value\": \"{size-icon-xs}\",\n \"usage\": \"Glyph inside a small (size-badge-sm, 16px) Badge: 12px, so the glyph never fills the whole height inside the border.\"\n },\n {\n \"name\": \"size-scroll-fade\",\n \"value\": \"16px\",\n \"usage\": \"Depth of the edge fade on a scroll area that has more content past that edge. Half a 32px row, so the last visible row stays readable while the fade still signals more; v3 used 2rem against taller rows.\"\n },\n {\n \"name\": \"size-skeleton-text\",\n \"value\": \"12px\",\n \"usage\": \"Default Skeleton height: a placeholder for one line of text, in skeleton lines and DataTable loading rows. Shorter than the 20px line so stacked placeholders keep their gaps.\"\n },\n {\n \"name\": \"size-halftone-cell\",\n \"value\": \"8px\",\n \"usage\": \"Edge of one halftone cell. Every halftone in the app shares it so patterns line up across cards.\"\n }\n ]\n },\n \"shape\": {\n \"note\": \"Square corners are the only shape: no surface, control or portal sets a border radius, so there is no radius scale and no corner mode. The remaining shape token is the icon stroke.\",\n \"tokens\": [\n {\n \"name\": \"stroke-icon\",\n \"value\": \"1.7\",\n \"usage\": \"Optical stroke for the canonical interface icon set, scaled by its SVG viewBox.\"\n }\n ]\n },\n \"shadow\": {\n \"note\": \"Depth shadows describe surface elevation. Inset surfaces get a 1px lift, overlays get a real shadow, and other surfaces stay flat. Focus, selection, errors and pressed states use outlines, borders and color. The canonical primary Button is the only exception for colored inset face and hover illumination. All of its light stays inside the control; it has no external or drop shadow.\",\n \"tokens\": [\n {\n \"name\": \"shadow-raised\",\n \"value\": {\n \"light\": \"0 1px 2px rgba(14, 16, 20, 0.05)\",\n \"dark\": \"0 1px 2px rgba(0, 0, 0, 0.4)\"\n },\n \"usage\": \"Inset surfaces inside a tint frame: cards, tables, lists.\"\n },\n {\n \"name\": \"shadow-pop\",\n \"value\": {\n \"light\": \"0 16px 40px rgba(1, 1, 1, 0.14), 0 2px 6px rgba(1, 1, 1, 0.08)\",\n \"dark\": \"0 16px 40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5)\"\n },\n \"usage\": \"Menus, listboxes, popovers, dialogs, sheets, toasts.\"\n },\n {\n \"name\": \"shadow-card-inset\",\n \"value\": {\n \"light\": \"{shadow-raised}\",\n \"dark\": \"none\"\n },\n \"usage\": \"The inset of a framed Card. Light keeps shadow-raised. Dark drops it and leaves the hairline border, because a dark drop shadow on the near-black inset reads as a heavy band under the content.\"\n }\n ]\n },\n \"opacity\": {\n \"note\": \"Opacity steps. row-dim fades the other rows of a table body while one row is being edited. nudge is the focus ring: a focused field draws a size-focus-ring ring of ink at this opacity outside a 1px ink border, and a focused invalid field draws the same ring in bad outside a bad border. Fields at rest have no ring, invalid ones included.\",\n \"tokens\": [\n {\n \"name\": \"opacity-row-dim\",\n \"value\": \"40%\",\n \"usage\": \"Cell contents of the other rows in a table body while a row is focused for editing (TableRow focused, DataTable focusedRowId), applied as filter: opacity so it composes with opacity reveals inside the cells. Row grounds, borders, headers and portalled popovers stay at full strength.\"\n },\n {\n \"name\": \"opacity-nudge\",\n \"value\": \"15%\",\n \"usage\": \"Focus ring opacity in light: 2px of ink at 15% outside the ink border, and 2px of bad at 15% on a focused invalid field. The 1px border carries the contrast.\"\n },\n {\n \"name\": \"opacity-nudge-dark\",\n \"value\": \"28%\",\n \"usage\": \"Focus ring opacity in dark. Higher than light because bone at 15% on the near-black surface is barely distinguishable from it; 28% keeps the ring visible.\"\n }\n ]\n },\n \"motion\": {\n \"note\": \"Three durations by the size of what moves, each with a quicker exit, and springs for things that move. Enter on the tier, leave on the exit tier. Reduced motion snaps travel and scale and keeps fades.\",\n \"tokens\": [\n {\n \"name\": \"duration-fast\",\n \"value\": \"80ms\",\n \"usage\": \"Hover and press color changes, menus, popovers, selects and tooltips opening, and the check and radio marks drawing.\"\n },\n {\n \"name\": \"duration-moderate\",\n \"value\": \"160ms\",\n \"usage\": \"Indicators sliding between items, the switch thumb, disclosures expanding, the sidebar changing width, the Button glow and chevrons turning.\"\n },\n {\n \"name\": \"duration-slow\",\n \"value\": \"240ms\",\n \"usage\": \"Large surfaces entering, such as dialogs and sheets.\"\n },\n {\n \"name\": \"duration-exit-fast\",\n \"value\": \"32ms\",\n \"usage\": \"Menus, popovers, selects and tooltips closing, and marks retracting.\"\n },\n {\n \"name\": \"duration-exit-moderate\",\n \"value\": \"120ms\",\n \"usage\": \"Disclosures collapsing and indicators fading out.\"\n },\n {\n \"name\": \"duration-exit-slow\",\n \"value\": \"96ms\",\n \"usage\": \"Dialogs, sheets and their scrim leaving.\"\n },\n {\n \"name\": \"ease-standard\",\n \"value\": \"cubic-bezier(0.2, 0, 0, 1)\",\n \"usage\": \"Moves and resizes that are not springs, such as the sidebar width.\"\n },\n {\n \"name\": \"ease-fade\",\n \"value\": \"cubic-bezier(0.4, 0, 0.2, 1)\",\n \"usage\": \"Opacity and color fades that do not move anything.\"\n },\n {\n \"name\": \"ease-spring\",\n \"value\": \"linear(0, 0.1144, 0.3208, 0.5164, 0.6711, 0.7831, 0.8601, 0.9113, 0.9445, 0.9656, 0.9789, 0.9871, 0.9922, 0.9953, 0.9972, 0.9983, 1)\",\n \"usage\": \"Enters and moves on the fast and moderate tiers. Critically damped, so it never overshoots.\"\n },\n {\n \"name\": \"ease-spring-soft\",\n \"value\": \"linear(0, 0.1045, 0.3072, 0.5116, 0.6797, 0.8032, 0.887, 0.9402, 0.9717, 0.9892, 0.9979, 1.0017, 1.0029, 1.0028, 1.0023, 1.0017, 1)\",\n \"usage\": \"Dialogs and sheets entering on the slow tier. Overshoots by under half a percent.\"\n },\n {\n \"name\": \"ease-exit\",\n \"value\": \"cubic-bezier(0, 0, 0.58, 1)\",\n \"usage\": \"Everything leaving, so a dismissal reads as final.\"\n },\n {\n \"name\": \"ease-press\",\n \"value\": \"cubic-bezier(0.23, 1, 0.32, 1)\",\n \"usage\": \"A pressed button releasing back to rest.\"\n }\n ]\n },\n \"appearance\": {\n \"note\": \"Component paint roles follow the resolved scope theme, including stateful controls and overlays.\",\n \"tokens\": [\n {\n \"name\": \"hover-mix\",\n \"value\": {\n \"light\": \"4%\",\n \"dark\": \"8%\"\n },\n \"usage\": \"How much mix-ink the shared hover overlay takes: 4% in light schemes, where it darkens the ground, and 8% in dark schemes, where ink is near white and it brightens the ground. The one place to tune hover strength.\"\n },\n {\n \"name\": \"press-mix\",\n \"value\": {\n \"light\": \"7%\",\n \"dark\": \"12%\"\n },\n \"usage\": \"How much ink the shared press overlay takes while a pointer is down: one step past hover-mix in each scheme.\"\n },\n {\n \"name\": \"current-mix\",\n \"value\": {\n \"light\": \"5.5%\",\n \"dark\": \"10%\"\n },\n \"usage\": \"How much mix-ink sidebar-current mixes into the sidebar: a small step past hover-mix (4% light, 8% dark). The current row also takes bold text, so the color step stays quiet.\"\n },\n {\n \"name\": \"selected-mix\",\n \"value\": {\n \"light\": \"30%\",\n \"dark\": \"33%\"\n },\n \"usage\": \"Alpha of the selected-surface fill: 30% in light and 33% in dark, a step past the hover overlay in every theme.\"\n },\n {\n \"name\": \"hover\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {mix-ink} {hover-mix}, transparent)\",\n \"dark\": \"color-mix(in oklab, {mix-ink} {hover-mix}, transparent)\"\n },\n \"usage\": \"The one hover ground for every neutral interactive surface: sidebar rows and tools, table, list, tree and grid rows, menu and listbox rows, segments, ghost and outline actions. Translucent ink, so it lands on whatever ground is underneath and shifts it darker in light and brighter in dark with no per-theme value. Where an opaque fill is needed (a pinned cell, a ring that cuts out a dot), mix ink at hover-mix into that ground in srgb, which matches how the overlay composites: color-mix(in srgb, var(--cipher-ink) var(--cipher-hover-mix), var(--cipher-sidebar)).\"\n },\n {\n \"name\": \"press\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {mix-ink} {press-mix}, transparent)\",\n \"dark\": \"color-mix(in oklab, {mix-ink} {press-mix}, transparent)\"\n },\n \"usage\": \"The pressed ground of the same surfaces as hover, while a pointer is down.\"\n },\n {\n \"name\": \"control-surface\",\n \"value\": {\n \"light\": \"transparent\",\n \"dark\": \"color-mix(in oklab, {control} 30%, transparent)\"\n },\n \"usage\": \"Theme-specific control surface paint.\"\n },\n {\n \"name\": \"control-surface-hover\",\n \"value\": {\n \"light\": \"transparent\",\n \"dark\": \"color-mix(in oklab, {control} 50%, transparent)\"\n },\n \"usage\": \"Theme-specific control surface hover paint.\"\n },\n {\n \"name\": \"control-disabled-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {control} 50%, transparent)\",\n \"dark\": \"color-mix(in oklab, {control} 80%, transparent)\"\n },\n \"usage\": \"Theme-specific control disabled surface paint.\"\n },\n {\n \"name\": \"control-invalid-border\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"{bad}\"\n },\n \"usage\": \"Border of an invalid field, at rest and on focus. Invalid fields have no ring until they are focused.\"\n },\n {\n \"name\": \"focus-ring\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} {opacity-nudge}, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} {opacity-nudge-dark}, transparent)\"\n },\n \"usage\": \"The shared soft focus glow, drawn size-focus-glow wide outside a focused field, an open field and a focused or hovered slider thumb. Ink at opacity-nudge: a neutral gray that reads as a shadow in light, never the accent.\"\n },\n {\n \"name\": \"focus-ring-bad\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {bad} {opacity-nudge}, transparent)\",\n \"dark\": \"color-mix(in oklab, {bad} {opacity-nudge-dark}, transparent)\"\n },\n \"usage\": \"The focus ring of a focused invalid field, and of destructive actions. Same width and opacity as focus-ring.\"\n },\n {\n \"name\": \"action-danger-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {bad} 10%, transparent)\",\n \"dark\": \"color-mix(in oklab, {bad} 20%, transparent)\"\n },\n \"usage\": \"Theme-specific action danger surface paint.\"\n },\n {\n \"name\": \"action-danger-hover\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {bad} 20%, transparent)\",\n \"dark\": \"color-mix(in oklab, {bad} 30%, transparent)\"\n },\n \"usage\": \"Theme-specific action danger hover paint.\"\n },\n {\n \"name\": \"action-ghost-hover\",\n \"value\": {\n \"light\": \"{hover}\",\n \"dark\": \"{hover}\"\n },\n \"usage\": \"Hover ground of ghost buttons and other ghost-styled actions: the shared hover overlay.\"\n },\n {\n \"name\": \"action-outline-border\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{control}\"\n },\n \"usage\": \"Theme-specific action outline border paint.\"\n },\n {\n \"name\": \"action-outline-surface\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"color-mix(in oklab, {control} 30%, transparent)\"\n },\n \"usage\": \"Theme-specific action outline surface paint.\"\n },\n {\n \"name\": \"action-outline-hover\",\n \"value\": {\n \"light\": \"{hover}\",\n \"dark\": \"{hover}\"\n },\n \"usage\": \"Hover ground of outline buttons, triggers and toggles: the shared hover overlay over their own surface.\"\n },\n {\n \"name\": \"choice-selected-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 5%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 10%, transparent)\"\n },\n \"usage\": \"Theme-specific choice selected surface paint.\"\n },\n {\n \"name\": \"choice-selected-border\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 30%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 20%, transparent)\"\n },\n \"usage\": \"Theme-specific choice selected border paint.\"\n },\n {\n \"name\": \"switch-off-surface\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Track of a switch that is off: the surface, outlined in muted (7:1 light, 9:1 dark), so off reads as an available control, not a disabled one.\"\n },\n {\n \"name\": \"switch-thumb\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Knob of a switch that is off: muted, the same ink as the outline.\"\n },\n {\n \"name\": \"switch-thumb-line\",\n \"value\": {\n \"light\": \"transparent\",\n \"dark\": \"transparent\"\n },\n \"usage\": \"Hairline around the off knob in light, so a white knob stays visible on the light grey track.\"\n },\n {\n \"name\": \"scroll-thumb\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 16%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 16%, transparent)\"\n },\n \"usage\": \"Resting scrollbar thumb on every Cipher scroller and ScrollArea. Mixed from ink so it stays quiet in both themes.\"\n },\n {\n \"name\": \"scroll-thumb-hover\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 32%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 32%, transparent)\"\n },\n \"usage\": \"Scrollbar thumb while the pointer is over its scroller.\"\n },\n {\n \"name\": \"avatar-blend\",\n \"value\": {\n \"light\": \"darken\",\n \"dark\": \"lighten\"\n },\n \"usage\": \"Theme-specific avatar blend paint.\"\n },\n {\n \"name\": \"tab-label\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 60%, transparent)\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Theme-specific tab label paint.\"\n },\n {\n \"name\": \"selected-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {neutral-300} {selected-mix}, transparent)\",\n \"dark\": \"color-mix(in oklab, {neutral-600} {selected-mix}, transparent)\"\n },\n \"usage\": \"Fill of a pressed or current control: a pressed Toggle, the current page, a selected list or table row and a selected Button. A translucent neutral step toward the surface it sits on, so whatever sits behind it stays visible. Light is a warm gray at L 0.915 on surface; dark is a neutral gray at L 0.32 at selected-mix, a step past hover, a quiet step above tint with no yellow cast, matching light's behavior. The sliding thumb of segmented tabs and of a ToggleGroup is pop in light and surface with a line border in dark, a cut-in thumb rather than this fill. Paired rule: an on item has ink text and this fill and border; an off item has muted text. A disabled on item keeps the fill and border and only dims its text.\"\n },\n {\n \"name\": \"selected-border\",\n \"value\": {\n \"light\": \"{control}\",\n \"dark\": \"{neutral-700}\"\n },\n \"usage\": \"Border of a pressed or current control. One step stronger than the outline border; neutral gray in dark, like selected-surface.\"\n },\n {\n \"name\": \"selected-ink\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Text and icon of a pressed or current control.\"\n },\n {\n \"name\": \"halftone-peak\",\n \"value\": {\n \"light\": \"42%\",\n \"dark\": \"20%\"\n },\n \"usage\": \"Alpha of the densest halftone cell, at the anchor corner. Halftone intensity scales it. Dark sits at about half of light: colored cells over the near-black inset read strongly, and halftone-gamma keeps its fade faster.\"\n },\n {\n \"name\": \"halftone-peak-hover\",\n \"value\": {\n \"light\": \"90%\",\n \"dark\": \"90%\"\n },\n \"usage\": \"Halftone alpha while the Card around it is hovered or focused, as the pattern grows outward from its anchor. Hover is the one moment the wash should read strongly, so both schemes peak at 90%.\"\n },\n {\n \"name\": \"halftone-gamma\",\n \"value\": {\n \"light\": \"1\",\n \"dark\": \"1.3\"\n },\n \"usage\": \"Halftone density falloff. 1 thins the cells linearly away from the anchor; dark uses 1.3 so the pattern clears faster and stays a corner accent.\"\n },\n {\n \"name\": \"grain\",\n \"value\": {\n \"light\": \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\\\")\",\n \"dark\": \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncG type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncB type='linear' slope='2' intercept='-0.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\\\")\"\n },\n \"usage\": \"The AppShell band texture, off unless AppShell grain is set. A 200px fractal noise tile blended with overlay into the band color as a background layer, so it never repaints on scroll and never sits over text. Dark doubles the noise contrast, since overlay has almost no headroom over the near-black band.\"\n }\n ]\n },\n \"hue\": {\n \"note\": \"One hue, many scopes. Any element can set --cipher-hue (a number of degrees) and data-hue (subtle or pop), and every descendant reads hue-icon, hue-tint, hue-soft and hue-fill built from that hue on the ramp below. Lightness and chroma are fixed per scheme and level, so no hue comes out louder than another. These tokens hold the oklch lightness and chroma pairs; the colors themselves only exist inside a hue scope. A scope set with hueScope also moves the accent family onto its hue (see accent). Outside one, hue-icon is the current text color, hue-tint is faint and hue-soft is tint and hue-fill is the current text color.\",\n \"tokens\": [\n {\n \"name\": \"hue-subtle-icon\",\n \"value\": {\n \"light\": \"0.53 0.1\",\n \"dark\": \"0.78 0.08\"\n },\n \"usage\": \"Icons and small marks on pages that mix several hues, such as one card per scope.\"\n },\n {\n \"name\": \"hue-subtle-tint\",\n \"value\": {\n \"light\": \"0.8 0.11\",\n \"dark\": \"0.7 0.09\"\n },\n \"usage\": \"Halftone cells and other decoration on pages that mix several hues.\"\n },\n {\n \"name\": \"hue-subtle-soft\",\n \"value\": {\n \"light\": \"0.97 0.02\",\n \"dark\": \"0.22 0.02\"\n },\n \"usage\": \"Soft fills on pages that mix several hues. Text on it stays ink.\"\n },\n {\n \"name\": \"hue-subtle-fill\",\n \"value\": {\n \"light\": \"0.72 0.12\",\n \"dark\": \"0.7 0.1\"\n },\n \"usage\": \"Solid icon fills (a filled star or dot) on pages that mix several hues. Mid lightness, so an ink or bone outline around it still reads.\"\n },\n {\n \"name\": \"hue-pop-icon\",\n \"value\": {\n \"light\": \"0.53 0.14\",\n \"dark\": \"0.8 0.12\"\n },\n \"usage\": \"Icons and small marks inside a single-hue scope, where only one hue is on screen.\"\n },\n {\n \"name\": \"hue-pop-tint\",\n \"value\": {\n \"light\": \"0.78 0.16\",\n \"dark\": \"0.74 0.14\"\n },\n \"usage\": \"Halftone cells and other decoration inside a single-hue scope.\"\n },\n {\n \"name\": \"hue-pop-soft\",\n \"value\": {\n \"light\": \"0.955 0.035\",\n \"dark\": \"0.25 0.035\"\n },\n \"usage\": \"Icon tiles and soft fills inside a single-hue scope. Text on it stays ink.\"\n },\n {\n \"name\": \"hue-pop-fill\",\n \"value\": {\n \"light\": \"0.72 0.16\",\n \"dark\": \"0.74 0.14\"\n },\n \"usage\": \"Solid icon fills inside a single-hue scope. Mid lightness, so an ink or bone outline around it still reads.\"\n }\n ]\n }\n}\n" + "content": "{\n \"name\": \"Cipher\",\n \"version\": 1,\n \"meta\": {\n \"source\": \"Cipher, the Infisical design system\"\n },\n \"themes\": {\n \"note\": \"A theme is a named palette with a scheme (light or dark). Every themed token keeps a light and a dark base value. A theme either sits on one of those base columns (base) or extends another theme (extends), and lists in overrides only the tokens whose values differ. A token resolves to the nearest override on the way down the extends chain, then to the base column the chain ends on. Themes of the same scheme are interchangeable: anything that branches on light or dark reads the scheme, never the theme name.\",\n \"list\": [\n {\n \"id\": \"light\",\n \"name\": \"Light\",\n \"scheme\": \"light\",\n \"base\": \"light\",\n \"overrides\": {}\n },\n {\n \"id\": \"dark\",\n \"name\": \"Dark\",\n \"scheme\": \"dark\",\n \"base\": \"dark\",\n \"overrides\": {}\n }\n ]\n },\n \"color\": {\n \"note\": \"Neutral first. Ink on warm off-white, one accent (the hue of the nearest hue scope, Infisical yellow #e3f047 outside every scope, the same in both themes), status colors that always travel with a word or icon. The app is a sidebar beside an inset, both light in light and both dark in dark. Dark mirrors light: ink becomes bone, the accent takes over the on switch and the mark, and selection stays neutral.\",\n \"tokens\": [\n {\n \"name\": \"black\",\n \"value\": {\n \"light\": \"#010101\",\n \"dark\": \"#010101\"\n },\n \"usage\": \"Near-black primitive, the darkest neutral. frame, ink in light, on-ink in dark and frame-soft in dark reference it. Components use a role token, never this.\"\n },\n {\n \"name\": \"white\",\n \"value\": {\n \"light\": \"#ffffff\",\n \"dark\": \"#ffffff\"\n },\n \"usage\": \"White primitive. surface and on-ink in light and on-bad in both themes reference it. Components use a role token, never this.\"\n },\n {\n \"name\": \"neutral-100\",\n \"value\": {\n \"light\": \"#f1f0ea\",\n \"dark\": \"#f1f0ea\"\n },\n \"usage\": \"Bone, the lightest neutral step. ink in dark references it, and toast-text follows through ink.\"\n },\n {\n \"name\": \"neutral-300\",\n \"value\": {\n \"light\": \"#c9c6b8\",\n \"dark\": \"#c9c6b8\"\n },\n \"usage\": \"Warm stone step. The base of selected-surface in light.\"\n },\n {\n \"name\": \"neutral-400\",\n \"value\": {\n \"light\": \"#b0b0a9\",\n \"dark\": \"#b0b0a9\"\n },\n \"usage\": \"Mid neutral step. control in light and muted in dark reference it.\"\n },\n {\n \"name\": \"neutral-600\",\n \"value\": {\n \"light\": \"#555553\",\n \"dark\": \"#555553\"\n },\n \"usage\": \"Dark neutral step. The base of selected-surface in dark.\"\n },\n {\n \"name\": \"neutral-700\",\n \"value\": {\n \"light\": \"#4a4a48\",\n \"dark\": \"#4a4a48\"\n },\n \"usage\": \"Dark neutral step. selected-border in dark references it.\"\n },\n {\n \"name\": \"neutral-800\",\n \"value\": {\n \"light\": \"#2f3234\",\n \"dark\": \"#2f3234\"\n },\n \"usage\": \"Graphite step. text2 in light and line in dark reference it, and toast-line follows through line.\"\n },\n {\n \"name\": \"neutral-900\",\n \"value\": {\n \"light\": \"#1e2022\",\n \"dark\": \"#1e2022\"\n },\n \"usage\": \"The deepest graphite step above black. line-soft and toast-bg in dark reference it.\"\n },\n {\n \"name\": \"red\",\n \"value\": {\n \"light\": \"#c0231b\",\n \"dark\": \"#c0231b\"\n },\n \"usage\": \"Signal red. bad in light and bad-fill in both themes reference it.\"\n },\n {\n \"name\": \"frame\",\n \"value\": {\n \"light\": \"{black}\",\n \"dark\": \"{black}\"\n },\n \"usage\": \"Near-black ground. The dark-theme sidebar sits one step above it; in light the sidebar is light and nothing in the app shell uses frame. It never wraps the inset. Never put text on it except inside the sidebar.\"\n },\n {\n \"name\": \"frame-soft\",\n \"value\": {\n \"light\": \"{select}\",\n \"dark\": \"{black}\"\n },\n \"usage\": \"Warm ground for embedded views and docs that want a frame around their content. In dark it matches frame.\"\n },\n {\n \"name\": \"surface\",\n \"value\": {\n \"light\": \"{white}\",\n \"dark\": \"#111111\"\n },\n \"usage\": \"The main panel and every inset card and input. Menus, popovers and dialogs float on pop. The default ground for text. A step above inset in both themes, so cards read on the page without a bright border.\"\n },\n {\n \"name\": \"pop\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Ground of everything that floats above the page: menus, listboxes, popovers, hover cards, dialogs, sheets. Equal to surface: a panel separates from the page through pop-line and shadow-pop, never through a brighter fill. Always with pop-line and shadow-pop.\"\n },\n {\n \"name\": \"pop-line\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{line-soft}\"\n },\n \"usage\": \"The 1px edge of a pop panel, drawn as a ring inside its shadow. Uses line-soft, the default outward-facing border, and the shadow carries the separation from the page.\"\n },\n {\n \"name\": \"inset\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"#121213\"\n },\n \"usage\": \"The app's page ground beside the sidebar, behind cards, tables and lists. Equal to surface in light, and a hair above it in dark, so a card separates from the page through its line-soft edge and frame rather than a ground step. Pads space-40 (bottom space-48).\"\n },\n {\n \"name\": \"sidebar\",\n \"value\": {\n \"light\": \"{paper}\",\n \"dark\": \"#09090a\"\n },\n \"usage\": \"Ground of the app sidebar. paper in light (1.1:1 against the inset, so it needs its line-soft edge) and a near-black step above frame in dark. Text on it uses ink, text2 and muted: muted is 6.4:1 in light and 9.6:1 in dark. The current page is sidebar-current with ink text; counts are accent Counts, and a rail dot, which has no number, is accent-fg.\"\n },\n {\n \"name\": \"sidebar-current\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {mix-ink} {current-mix}, {sidebar})\",\n \"dark\": \"color-mix(in srgb, {mix-ink} {current-mix}, {sidebar})\"\n },\n \"usage\": \"The current page in the sidebar, and a rail group that holds it: mix-ink at current-mix mixed opaquely into the sidebar (5.5% in light, 10% in dark), a small step past the shared hover overlay at hover-mix, so it follows every theme's sidebar with no per-theme value. Neutral, like every selection; in the sidebar only counts take the accent.\"\n },\n {\n \"name\": \"sidebar-hover\",\n \"value\": {\n \"light\": \"{sidebar-current}\",\n \"dark\": \"color-mix(in srgb, {mix-ink} {current-mix}, {frame})\"\n },\n \"usage\": \"The sidebar's hover highlight, the block that follows the pointer between rows. It matches sidebar-current unless a theme quiets it: Dark mixes current-mix into frame rather than its lifted sidebar, so hovering a row is a softer step than the current page.\"\n },\n {\n \"name\": \"paper\",\n \"value\": {\n \"light\": \"#f4f3ee\",\n \"dark\": \"#161616\"\n },\n \"usage\": \"Dialog and sheet footers. A step off surface so the action bar reads as a shelf.\"\n },\n {\n \"name\": \"tint\",\n \"value\": {\n \"light\": \"#faf8f4\",\n \"dark\": \"#1c1c1c\"\n },\n \"usage\": \"Borderless shells around bordered inset surfaces (cards, tables, lists), table headers, segmented tracks, disabled and read-only fields, the hover ground of striped table rows. In dark it is lifted so a borderless shell still reads against surface (1.11:1).\"\n },\n {\n \"name\": \"row-done\",\n \"value\": {\n \"light\": \"{paper}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Resolved list items that stay in place so nothing jumps. paper in light and surface in dark.\"\n },\n {\n \"name\": \"row-done-card\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {tint} 50%, transparent)\",\n \"dark\": \"color-mix(in oklab, {tint} 50%, transparent)\"\n },\n \"usage\": \"Resolved rows in a segmented List: half the tint card fill, so a resolved card stays in place and keeps its edge on the page in both themes, where row-done would vanish in dark.\"\n },\n {\n \"name\": \"row-done-divided\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 4%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 6%, transparent)\"\n },\n \"usage\": \"Resolved rows in a divided List, which sit on the page with no container: translucent ink over whatever ground is behind (1.09:1 on the light page, 1.11:1 on the dark one), a clear step where row-done would vanish in dark and still quieter than hover (1.14:1 light, 1.33:1 dark).\"\n },\n {\n \"name\": \"select\",\n \"value\": {\n \"light\": \"#eeede6\",\n \"dark\": \"#262626\"\n },\n \"usage\": \"Selection in connected rows: a list's current and checked rows, selected table and tree rows, DataGrid ranges, the pressed toggle Button. On rows it is the whole signal, with the row text one step up (text2 to ink, muted to text2); no edge bar. Neutral in both themes, never tinted: in dark it is 1.25:1 on surface and a step above tint (1.13:1), the same step as before.\"\n },\n {\n \"name\": \"line-soft\",\n \"value\": {\n \"light\": \"#e4ded5\",\n \"dark\": \"{neutral-900}\"\n },\n \"usage\": \"The default border: the outward-facing edge of inset surfaces, cards, plain lists, tables, popovers, dialogs and bordered controls that use a line token, the app shell chrome (the AppInset island border, the narrow TopBar rule, the sidebar edge, corner and section separators), and every divider that touches one of those edges, such as row hairlines, table cell dividers and dialog head and footer rules. Frames have no border; only the inset surface inside them carries line-soft. Also skeleton blocks, progress tracks and soft badges.\"\n },\n {\n \"name\": \"line\",\n \"value\": {\n \"light\": \"#d5cdc2\",\n \"dark\": \"{neutral-800}\"\n },\n \"usage\": \"Reserved for a standalone rule that touches no other border: a section rule, the band's divider marks (through crumb-divider), a lone hr, a tree guide, the tab track, chart axes and grid lines. One step stronger than line-soft, so a free-standing line still reads without an edge to lean on. Never the edge of a surface or a divider that meets one; those are line-soft.\"\n },\n {\n \"name\": \"control\",\n \"value\": {\n \"light\": \"{neutral-400}\",\n \"dark\": \"#37393c\"\n },\n \"usage\": \"Borders of inputs, selects and secondary buttons. Source pair: 2.1:1 on surface in light and 1.6:1 in dark, below the 3:1 floor for control borders. Kept exact; focus turns the border ink with a 3px nudge outline. An invalid field rests on bad-control and turns bad with the 3px bad outline while focused.\"\n },\n {\n \"name\": \"crumb-divider\",\n \"value\": {\n \"light\": \"{line}\",\n \"dark\": \"{line}\"\n },\n \"usage\": \"The vertical divider between breadcrumb crumbs, in the TopBar and in page and folder trails. line, the standalone-rule tint: each divider is a lone mark that touches no other border, one step stronger than the line-soft shell chrome around it. Decorative: it never carries meaning.\"\n },\n {\n \"name\": \"faint\",\n \"value\": {\n \"light\": \"#85807a\",\n \"dark\": \"#8e9291\"\n },\n \"usage\": \"Disabled text only; breadcrumb dividers use crumb-divider. 3.0:1 on surface in light (6.0:1 in dark): never for text people must read.\"\n },\n {\n \"name\": \"muted\",\n \"value\": {\n \"light\": \"#565654\",\n \"dark\": \"{neutral-400}\"\n },\n \"usage\": \"Secondary text, descriptions, placeholders, eyebrows and captions. 7.1:1 on surface, 6.4:1 on tint in light; 8.7:1 and 7.8:1 in dark.\"\n },\n {\n \"name\": \"text2\",\n \"value\": {\n \"light\": \"{neutral-800}\",\n \"dark\": \"#d8d8d4\"\n },\n \"usage\": \"Body copy that sits one step below ink: descriptions in alerts, table cells, ghost button labels. 12.5:1 on surface in light, 13.8:1 in dark.\"\n },\n {\n \"name\": \"ink\",\n \"value\": {\n \"light\": \"{black}\",\n \"dark\": \"{neutral-100}\"\n },\n \"usage\": \"Primary text and icons on surface, tint, paper and select (at least 17:1 in light, 13:1 in dark). Also the fill of checked controls and person avatars.\"\n },\n {\n \"name\": \"mix-ink\",\n \"value\": {\n \"light\": \"#2e271d\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"The neutral every hover, press and current mix takes in, so state grounds shift the surface underneath without leaving its family. In light, a dark warm neutral from the ground's own hue, so states blend into the warm ground instead of greying it; ink in dark.\"\n },\n {\n \"name\": \"on-ink\",\n \"value\": {\n \"light\": \"{white}\",\n \"dark\": \"{black}\"\n },\n \"usage\": \"Text and icons on an ink fill: checked checkboxes, person avatars, tooltips.\"\n },\n {\n \"name\": \"accent\",\n \"value\": {\n \"light\": \"#e3f047\",\n \"dark\": \"#e3f047\"\n },\n \"scoped\": \"oklch(var(--cipher-accent-lc, 0.917 0.183) {hue})\",\n \"usage\": \"The one accent. Outside every hue scope it is Infisical yellow #e3f047 in both themes (sign-in, and any page that sets no hue); inside a hue scope it is that hue's own accent, which hueScope places at the lightest point where the hue holds the brand chroma, so a KMS create button is KMS green and the brand hue still lands on #e3f047. The fill of the one primary create action on a page (Add new, Create key, New connection), approval and grant buttons, counts (in the sidebar and the bulk action bar), the on switch track in dark, the slider range in dark and search highlights; the current page in the sidebar stays neutral. On light grounds a yellow fill is nearly as light as the ground and carries no edge: it is a highlight, and what it says is its on-accent text, so the label, not the fill, identifies the control or the number. Never let a bare fill with no text carry meaning (a dot, a bar); use accent-fg for those. A fill, never text on light grounds. For accent-colored text and icons (the banner), use accent-fg.\"\n },\n {\n \"name\": \"accent-2\",\n \"value\": {\n \"light\": \"#d3df29\",\n \"dark\": \"#d1de23\"\n },\n \"scoped\": \"oklch(var(--cipher-accent-2-lc, 0.867 0.183) {hue})\",\n \"usage\": \"Hover and pressed fill of accent buttons. A step darker than accent on the same hue (0.05 lower oklch lightness, chroma kept where the gamut allows); on-accent on it passes AA on every hue.\"\n },\n {\n \"name\": \"on-accent\",\n \"value\": {\n \"light\": \"#010101\",\n \"dark\": \"#010101\"\n },\n \"scoped\": \"var(--cipher-accent-on, #010101)\",\n \"usage\": \"Text and icons on an accent fill. Near-black outside every hue scope, the same in both themes. Inside a scope hueScope picks near-black or white, whichever keeps the higher contrast on the worst of the accent, accent-2 and the lightest stop of the button material, so a dark accent (a deep blue) gets white text. Every product hue picks near-black.\"\n },\n {\n \"name\": \"accent-wash\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 28%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 11%, black)\"\n },\n \"usage\": \"Very light accent ground for a highlighted row, a callout and the production banner, mixed from the accent so it follows the hue scope. Text on it is ink.\"\n },\n {\n \"name\": \"accent-line\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 55%, {line})\",\n \"dark\": \"color-mix(in srgb, {accent} 25%, black)\"\n },\n \"usage\": \"Border of the production banner and other accent-wash callouts, mixed from the accent a step darker than the wash, like the status -line colors.\"\n },\n {\n \"name\": \"accent-fg\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"The accent as text or an icon. Ink in light, where the accent cannot be read; the accent in dark (13.1:1 on toast-bg, 13.8:1 on accent-wash). The banner icon and link, and marks with no text in them, like the rail dot that stands for a count.\"\n },\n {\n \"name\": \"mark\",\n \"value\": {\n \"light\": \"#010101\",\n \"dark\": \"#e3f047\"\n },\n \"usage\": \"The mark's ink when UI draws it, such as the Spinner. Ink in light, the accent in dark, the same inks as the logo files.\"\n },\n {\n \"name\": \"ok\",\n \"value\": {\n \"light\": \"#2b5945\",\n \"dark\": \"#8fc7a4\"\n },\n \"usage\": \"Success text, icons and dots. 7.7:1 on surface and 6.6:1 on ok-bg in light; 10.2:1 and 8.5:1 in dark. Always paired with a word or icon.\"\n },\n {\n \"name\": \"ok-deep\",\n \"value\": {\n \"light\": \"#1f4232\",\n \"dark\": \"#bfe3cc\"\n },\n \"usage\": \"Titles inside success alerts, on ok-wash (9.9:1 light, 12.7:1 dark).\"\n },\n {\n \"name\": \"ok-bg\",\n \"value\": {\n \"light\": \"#e2eae5\",\n \"dark\": \"#14231b\"\n },\n \"usage\": \"Fill of success badges.\"\n },\n {\n \"name\": \"ok-wash\",\n \"value\": {\n \"light\": \"#eef3f0\",\n \"dark\": \"#101b15\"\n },\n \"usage\": \"Ground of success alerts.\"\n },\n {\n \"name\": \"ok-line\",\n \"value\": {\n \"light\": \"#c7d6cd\",\n \"dark\": \"#25402f\"\n },\n \"usage\": \"Border of success badges and alerts.\"\n },\n {\n \"name\": \"warn\",\n \"value\": {\n \"light\": \"#7a5300\",\n \"dark\": \"#e8c26a\"\n },\n \"usage\": \"Warning text, icons and near-limit progress. 6.6:1 on surface and 5.5:1 on warn-bg in light; 11.6:1 and 9.2:1 in dark.\"\n },\n {\n \"name\": \"warn-deep\",\n \"value\": {\n \"light\": \"#4d3500\",\n \"dark\": \"#f3d99a\"\n },\n \"usage\": \"Titles inside warning alerts, on warn-wash.\"\n },\n {\n \"name\": \"warn-bg\",\n \"value\": {\n \"light\": \"#f2e6c8\",\n \"dark\": \"#2b2210\"\n },\n \"usage\": \"Fill of warning badges.\"\n },\n {\n \"name\": \"warn-wash\",\n \"value\": {\n \"light\": \"#f8f2e2\",\n \"dark\": \"#1c170c\"\n },\n \"usage\": \"Ground of warning alerts.\"\n },\n {\n \"name\": \"warn-line\",\n \"value\": {\n \"light\": \"#e3d2a4\",\n \"dark\": \"#463819\"\n },\n \"usage\": \"Border of warning badges and alerts.\"\n },\n {\n \"name\": \"bad\",\n \"value\": {\n \"light\": \"{red}\",\n \"dark\": \"#ff5a4f\"\n },\n \"usage\": \"Errors, destructive buttons, over-limit progress. 5.8:1 on surface and 4.7:1 on bad-bg in light; 6.4:1 and 5.5:1 in dark. Told apart from ok by lightness and by its word or icon.\"\n },\n {\n \"name\": \"bad-deep\",\n \"value\": {\n \"light\": \"#6b1510\",\n \"dark\": \"#ffc0b9\"\n },\n \"usage\": \"Titles inside error alerts, on bad-wash.\"\n },\n {\n \"name\": \"bad-bg\",\n \"value\": {\n \"light\": \"#f7deda\",\n \"dark\": \"#331311\"\n },\n \"usage\": \"Fill of error badges and the icon tile in alert dialogs.\"\n },\n {\n \"name\": \"bad-wash\",\n \"value\": {\n \"light\": \"#faeeec\",\n \"dark\": \"#1d0e0d\"\n },\n \"usage\": \"Ground of error alerts; hover of danger ghost buttons.\"\n },\n {\n \"name\": \"bad-line\",\n \"value\": {\n \"light\": \"#edc3bd\",\n \"dark\": \"#5a221e\"\n },\n \"usage\": \"Border of error badges and alerts.\"\n },\n {\n \"name\": \"bad-control\",\n \"value\": {\n \"light\": \"#e2a09c\",\n \"dark\": \"#712c28\"\n },\n \"usage\": \"Border of an invalid field at rest: bad at the control step (2.1:1 on surface in light, 2.0:1 in dark, like control), so an invalid field rests as quietly as any other. Focus or open turns it bad with the 3px bad nudge outline. The error text under it carries the message.\"\n },\n {\n \"name\": \"bad-fill\",\n \"value\": {\n \"light\": \"{red}\",\n \"dark\": \"{red}\"\n },\n \"usage\": \"Fill and border of the destructive Button. One red in both themes, so its on-bad label stays white (6.0:1); on the dark surface the fill is 3.1:1, enough for a control boundary. Text and icons in red still use bad, which lightens in dark.\"\n },\n {\n \"name\": \"on-bad\",\n \"value\": {\n \"light\": \"{white}\",\n \"dark\": \"{white}\"\n },\n \"usage\": \"Label on the destructive fill. White in both themes, because bad-fill does not change with theme: 6.0:1 on bad-fill and 8.0:1 on bad-hover.\"\n },\n {\n \"name\": \"bad-hover\",\n \"value\": {\n \"light\": \"#9e1b14\",\n \"dark\": \"#9e1b14\"\n },\n \"usage\": \"Hover and pressed fill of destructive buttons, the same in both themes so the white on-bad label holds (8.0:1).\"\n },\n {\n \"name\": \"info\",\n \"value\": {\n \"light\": \"#1f4e79\",\n \"dark\": \"#8fb4de\"\n },\n \"usage\": \"Informational text and icons. 8.4:1 on surface, 6.9:1 on info-bg in light; 9.1:1 and 7.8:1 in dark.\"\n },\n {\n \"name\": \"info-deep\",\n \"value\": {\n \"light\": \"#143556\",\n \"dark\": \"#c4d9ef\"\n },\n \"usage\": \"Titles inside info alerts, on info-wash.\"\n },\n {\n \"name\": \"info-bg\",\n \"value\": {\n \"light\": \"#dfe7ef\",\n \"dark\": \"#121e2b\"\n },\n \"usage\": \"Fill of info badges.\"\n },\n {\n \"name\": \"info-wash\",\n \"value\": {\n \"light\": \"#eef3f8\",\n \"dark\": \"#0e1620\"\n },\n \"usage\": \"Ground of info alerts.\"\n },\n {\n \"name\": \"info-line\",\n \"value\": {\n \"light\": \"#c3d1df\",\n \"dark\": \"#243a52\"\n },\n \"usage\": \"Border of info badges and alerts.\"\n },\n {\n \"name\": \"folder\",\n \"value\": {\n \"light\": \"#80661f\",\n \"dark\": \"#a4873e\"\n },\n \"usage\": \"Folder icons and glyphs in secret trees, path pickers and folder rows, the warm ochre the app uses for folders. An icon color, never text or a fill. 5.5:1 on surface in light and dark, 4.9:1 on paper in light.\"\n },\n {\n \"name\": \"chart-1\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Chart series 1, the first series of a categorical chart: --chart-1 and --color-chart-1. The chart series run chart-1 to chart-6 in order; take them from chartSeries rather than listing them.\"\n },\n {\n \"name\": \"chart-2\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Chart series 2: --chart-2 and --color-chart-2.\"\n },\n {\n \"name\": \"chart-3\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Chart series 3: --chart-3 and --color-chart-3. On light grounds it is 1.20:1 on surface, below the 3:1 non-text floor, so a bar or segment in it needs a label or an edge to read.\"\n },\n {\n \"name\": \"chart-4\",\n \"value\": {\n \"light\": \"{ok}\",\n \"dark\": \"{ok}\"\n },\n \"usage\": \"Chart series 4: --chart-4 and --color-chart-4.\"\n },\n {\n \"name\": \"chart-5\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"{bad}\"\n },\n \"usage\": \"Chart series 5: --chart-5 and --color-chart-5.\"\n },\n {\n \"name\": \"chart-6\",\n \"value\": {\n \"light\": \"#2563c9\",\n \"dark\": \"#5b9bf0\"\n },\n \"usage\": \"Chart series 6, a blue the other five lack: --chart-6 and --color-chart-6. 5.5:1 on surface in light; 6.7:1 on surface and 6.9:1 on inset in dark. Its nearest series is chart-2 at an OKLab distance of 0.19 in light and 0.17 in dark, wider than any pair among chart-1 to chart-5.\"\n },\n {\n \"name\": \"ansi-black\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{neutral-600}\"\n },\n \"usage\": \"ANSI black in the Terminal. Ink in light; a mid step in dark, so it stays visible on the surface.\"\n },\n {\n \"name\": \"ansi-red\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"{bad}\"\n },\n \"usage\": \"ANSI red in the Terminal.\"\n },\n {\n \"name\": \"ansi-green\",\n \"value\": {\n \"light\": \"{ok}\",\n \"dark\": \"{ok}\"\n },\n \"usage\": \"ANSI green in the Terminal.\"\n },\n {\n \"name\": \"ansi-yellow\",\n \"value\": {\n \"light\": \"{warn}\",\n \"dark\": \"{warn}\"\n },\n \"usage\": \"ANSI yellow in the Terminal.\"\n },\n {\n \"name\": \"ansi-blue\",\n \"value\": {\n \"light\": \"{info}\",\n \"dark\": \"{info}\"\n },\n \"usage\": \"ANSI blue in the Terminal.\"\n },\n {\n \"name\": \"ansi-magenta\",\n \"value\": {\n \"light\": \"#7b3f8c\",\n \"dark\": \"#d3a6e6\"\n },\n \"usage\": \"ANSI magenta in the Terminal. Terminal output only; no component uses it for meaning.\"\n },\n {\n \"name\": \"ansi-cyan\",\n \"value\": {\n \"light\": \"#1d6670\",\n \"dark\": \"#8ccfd6\"\n },\n \"usage\": \"ANSI cyan in the Terminal. Terminal output only; no component uses it for meaning.\"\n },\n {\n \"name\": \"ansi-white\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{text2}\"\n },\n \"usage\": \"ANSI white in the Terminal. Muted in light, so white text stays readable on a light surface.\"\n },\n {\n \"name\": \"ansi-bright-black\",\n \"value\": {\n \"light\": \"{faint}\",\n \"dark\": \"{faint}\"\n },\n \"usage\": \"ANSI bright black in the Terminal, the usual color for dimmed output.\"\n },\n {\n \"name\": \"ansi-bright-red\",\n \"value\": {\n \"light\": \"{bad-deep}\",\n \"dark\": \"{bad-deep}\"\n },\n \"usage\": \"ANSI bright red in the Terminal. Every bright color takes a step more contrast against the surface.\"\n },\n {\n \"name\": \"ansi-bright-green\",\n \"value\": {\n \"light\": \"{ok-deep}\",\n \"dark\": \"{ok-deep}\"\n },\n \"usage\": \"ANSI bright green in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-yellow\",\n \"value\": {\n \"light\": \"{warn-deep}\",\n \"dark\": \"{warn-deep}\"\n },\n \"usage\": \"ANSI bright yellow in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-blue\",\n \"value\": {\n \"light\": \"{info-deep}\",\n \"dark\": \"{info-deep}\"\n },\n \"usage\": \"ANSI bright blue in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-magenta\",\n \"value\": {\n \"light\": \"#57266a\",\n \"dark\": \"#ead0f5\"\n },\n \"usage\": \"ANSI bright magenta in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-cyan\",\n \"value\": {\n \"light\": \"#134a51\",\n \"dark\": \"#c2e8ec\"\n },\n \"usage\": \"ANSI bright cyan in the Terminal.\"\n },\n {\n \"name\": \"ansi-bright-white\",\n \"value\": {\n \"light\": \"{neutral-400}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"ANSI bright white in the Terminal. A light grey in light, so it never matches ansi-black as a background; the Terminal's minimum contrast keeps it readable as text.\"\n },\n {\n \"name\": \"map-land\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{neutral-900}\"\n },\n \"usage\": \"Land on WorldMap: every country with no count, and the base the region tones mix into.\"\n },\n {\n \"name\": \"map-border\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Country borders on WorldMap. The surface the map sits on, so borders read as gaps between countries rather than drawn lines.\"\n },\n {\n \"name\": \"map-region\",\n \"value\": {\n \"light\": \"{chart-6}\",\n \"dark\": \"{chart-6}\"\n },\n \"usage\": \"The tone of a country with a count on WorldMap, mixed into map-land in four steps from fewer to more, and the scale squares in its legend.\"\n },\n {\n \"name\": \"map-marker\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"WorldMap location markers and their legend squares. Ink, so a marker reads over land, region tones and open sea alike.\"\n },\n {\n \"name\": \"map-marker-line\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"The outline that separates overlapping WorldMap markers from each other and from the land under them.\"\n },\n {\n \"name\": \"link\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Text of an inline link and the link Button: ink with a 1px underline at a 3px offset. Hover moves to text2 with a 2px underline and never adds a background. Links are never blue; info is only for informational status.\"\n },\n {\n \"name\": \"sw-on\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Track and border of a switch that is on. Ink in light (20:1 on surface, where the lime fill would vanish at 1.2:1) and the accent in dark (15.1:1 on surface).\"\n },\n {\n \"name\": \"sw-knob-on\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{on-accent}\"\n },\n \"usage\": \"Knob of a switch that is on: the accent on the ink track in light, on-accent ink on the accent track in dark.\"\n },\n {\n \"name\": \"slider-range\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Filled range of a slider: ink in light, the accent in dark. Ink keeps the filled part readable against the track in light.\"\n },\n {\n \"name\": \"slider-track\",\n \"value\": {\n \"light\": \"{faint}\",\n \"dark\": \"{line}\"\n },\n \"usage\": \"Unfilled track of a slider: faint in light so the track edge holds 3:1 on surface, line in dark.\"\n },\n {\n \"name\": \"toast-bg\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{neutral-900}\"\n },\n \"usage\": \"Toasts. Light on light, dark on dark: surface in light, a raised gray in dark (1.2:1 on the dark page). Always with toast-line and shadow-pop.\"\n },\n {\n \"name\": \"toast-line\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{line}\"\n },\n \"usage\": \"Border of toasts.\"\n },\n {\n \"name\": \"toast-text\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Titles and text in toasts (20.1:1 light, 14.3:1 dark).\"\n },\n {\n \"name\": \"toast-muted\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Secondary text and the dismiss icon in toasts (7.1:1 light, 7.5:1 dark).\"\n },\n {\n \"name\": \"toast-ok\",\n \"value\": {\n \"light\": \"{ok}\",\n \"dark\": \"{ok}\"\n },\n \"usage\": \"Success icon in a toast (7.7:1 light, 8.5:1 dark).\"\n },\n {\n \"name\": \"toast-bad\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"#ff7a70\"\n },\n \"usage\": \"Error icon in a toast (5.8:1 light, 6.4:1 dark).\"\n },\n {\n \"name\": \"scrim\",\n \"value\": {\n \"light\": \"rgba(1, 1, 1, 0.38)\",\n \"dark\": \"rgba(0, 0, 0, 0.62)\"\n },\n \"usage\": \"Behind dialogs, alert dialogs and sheets.\"\n },\n {\n \"name\": \"button-face-start\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 82%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 82%, white)\"\n },\n \"usage\": \"Light lime upper face of the primary Button beneath its colored inset illumination.\"\n },\n {\n \"name\": \"button-face-end\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Bright brand lime lower face of the primary Button.\"\n },\n {\n \"name\": \"button-bloom\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 35%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 35%, white)\"\n },\n \"usage\": \"Lower interior light in the primary Button three-layer inset illumination.\"\n },\n {\n \"name\": \"button-hover-start\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 78%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 78%, white)\"\n },\n \"usage\": \"Light lime upper face on hover, painted in the same border box.\"\n },\n {\n \"name\": \"button-hover-end\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Bright brand lime lower face on hover.\"\n },\n {\n \"name\": \"button-hover-bloom\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 25%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 25%, white)\"\n },\n \"usage\": \"Two close lower interior lights in the primary Button five-layer hover illumination.\"\n },\n {\n \"name\": \"button-press-start\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"Bright lime pressed primary Button face. Color feedback without movement.\"\n },\n {\n \"name\": \"button-press-end\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 96%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 96%, white)\"\n },\n \"usage\": \"Bright lime pressed lower face without hover illumination.\"\n },\n {\n \"name\": \"button-glow\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"The paired broad colored inset lights of the primary Button at rest.\"\n },\n {\n \"name\": \"button-hover-glow\",\n \"value\": {\n \"light\": \"{accent}\",\n \"dark\": \"{accent}\"\n },\n \"usage\": \"The paired wider colored inset lights of the primary Button on hover.\"\n },\n {\n \"name\": \"button-hover-bloom-soft\",\n \"value\": {\n \"light\": \"color-mix(in srgb, {accent} 38%, white)\",\n \"dark\": \"color-mix(in srgb, {accent} 38%, white)\"\n },\n \"usage\": \"The wider lower interior light behind the two close hover lights.\"\n }\n ]\n },\n \"type\": {\n \"fonts\": [\n {\n \"family\": \"Archivo\",\n \"file\": \"fonts/Archivo-Latin.woff2\",\n \"weight\": \"100 900\",\n \"style\": \"normal\"\n },\n {\n \"family\": \"Archivo\",\n \"file\": \"fonts/Archivo-Italic-Latin.woff2\",\n \"weight\": \"100 900\",\n \"style\": \"italic\"\n },\n {\n \"family\": \"Geist Mono\",\n \"file\": \"fonts/GeistMono-Latin.woff2\",\n \"weight\": \"400 600\",\n \"style\": \"normal\"\n }\n ],\n \"families\": {\n \"sans\": \"Archivo, \\\"Helvetica Neue\\\", Helvetica, sans-serif\",\n \"mono\": \"\\\"Geist Mono\\\", ui-monospace, Menlo, monospace\"\n },\n \"groups\": [\n {\n \"name\": \"Display\",\n \"family\": \"sans\",\n \"styles\": [\n {\n \"name\": \"display\",\n \"fontSize\": \"44px\",\n \"lineHeight\": \"44px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.03em\",\n \"sample\": \"Needs you\",\n \"usage\": \"Explicit display headings and exceptional large figures. Ordinary interface titles use title-lg.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"title-lg\",\n \"fontSize\": \"28px\",\n \"lineHeight\": \"32px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.025em\",\n \"sample\": \"Certificates\",\n \"usage\": \"Ordinary page and component-workbench titles.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"title\",\n \"fontSize\": \"18px\",\n \"lineHeight\": \"26px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.02em\",\n \"sample\": \"Next rotations\",\n \"usage\": \"Section headings, dialog and sheet titles.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"title-sm\",\n \"fontSize\": \"16px\",\n \"lineHeight\": \"22px\",\n \"fontWeight\": 600,\n \"sample\": \"Add secret\",\n \"usage\": \"Card titles and empty state titles.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n }\n ]\n },\n {\n \"name\": \"Text\",\n \"family\": \"sans\",\n \"styles\": [\n {\n \"name\": \"body-lg\",\n \"fontSize\": \"16px\",\n \"lineHeight\": \"24px\",\n \"fontWeight\": 400,\n \"sample\": \"4 items are waiting on you.\",\n \"usage\": \"Page ledes under the display title, in muted.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"body\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 400,\n \"sample\": \"Syncs 14 secrets to GitHub Actions on every push.\",\n \"usage\": \"Default UI text.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"label\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 500,\n \"sample\": \"Approve\",\n \"usage\": \"Action labels and emphasized row titles. Field labels use field-label.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"small\",\n \"fontSize\": \"13px\",\n \"lineHeight\": \"18px\",\n \"fontWeight\": 400,\n \"sample\": \"Needs one approval under prod-changes.\",\n \"usage\": \"Help text, secondary lines and supporting descriptions.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"caption\",\n \"fontSize\": \"12px\",\n \"lineHeight\": \"16px\",\n \"fontWeight\": 500,\n \"sample\": \"Updated 10:30\",\n \"usage\": \"Timestamps, stage labels, dense metadata, in muted.\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"eyebrow\",\n \"fontSize\": \"11px\",\n \"lineHeight\": \"16px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"0.06em\",\n \"sample\": \"ACME CORP / ACME-PLATFORM\",\n \"usage\": \"Explicit compact group labels only. Surface treatment does not change a heading into this role.\",\n \"fontFamily\": \"var(--cipher-font-sans)\"\n },\n {\n \"name\": \"field-label\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"0\",\n \"sample\": \"Connection name\",\n \"usage\": \"Associated field labels. Required and optional hints remain part of the label.\"\n },\n {\n \"name\": \"row-title\",\n \"fontFamily\": \"var(--cipher-font-sans)\",\n \"fontSize\": \"14px\",\n \"lineHeight\": \"20px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"0\",\n \"sample\": \"Payments API\",\n \"usage\": \"Primary text in resource, member and activity rows. It does not inherit a page body size.\"\n }\n ]\n },\n {\n \"name\": \"Mono\",\n \"family\": \"mono\",\n \"styles\": [\n {\n \"name\": \"mono\",\n \"fontSize\": \"13px\",\n \"lineHeight\": \"18px\",\n \"fontWeight\": 400,\n \"sample\": \"stripe_api_key\",\n \"usage\": \"Secret keys, paths, hostnames, identity names, environment slugs.\",\n \"fontFamily\": \"var(--cipher-font-mono)\",\n \"letterSpacing\": \"0\"\n },\n {\n \"name\": \"mono-sm\",\n \"fontSize\": \"12px\",\n \"lineHeight\": \"16px\",\n \"fontWeight\": 400,\n \"sample\": \"v15 / 2026-09-24\",\n \"usage\": \"Versions, dates in tables, shortcuts, counts, in muted.\",\n \"fontFamily\": \"var(--cipher-font-mono)\",\n \"letterSpacing\": \"0\"\n }\n ]\n }\n ]\n },\n \"spacing\": {\n \"note\": \"The number is the pixel value. Layouts use the larger steps; controls use 6 to 16.\",\n \"tokens\": [\n {\n \"name\": \"space-2\",\n \"value\": \"2px\",\n \"usage\": \"Between icon buttons in a toolbar; title to description in stacked text; tile to tile inside a stepper.\"\n },\n {\n \"name\": \"space-3\",\n \"value\": \"3px\",\n \"usage\": \"Shell inset: between a tint shell and its content block (cards, tables, lists). Segmented track padding. Menu and listbox padding, so a row's hover ground sits 4px from the outer edge with the border. A field's end padding beside its nested items, so a slot sits 4px from the outer edge with the border.\"\n },\n {\n \"name\": \"space-4\",\n \"value\": \"4px\",\n \"usage\": \"Gap inside segmented tracks and pagination; between step segments; between grouped nested items in a field (reveal and copy, a shortcut and clear).\"\n },\n {\n \"name\": \"space-6\",\n \"value\": \"6px\",\n \"usage\": \"Label to control; badge dot to text; small button icon gap; combobox chip field padding.\"\n },\n {\n \"name\": \"space-8\",\n \"value\": \"8px\",\n \"usage\": \"Icon to label in buttons and inputs; buttons inside a row or item.\"\n },\n {\n \"name\": \"space-10\",\n \"value\": \"10px\",\n \"usage\": \"Small button padding; avatar to name; left and right padding inside text fields, input groups and select, combobox and multiselect triggers. Menu and listbox rows reach the same line: 3px list padding plus 7px row padding, so their text lines up with the trigger's.\"\n },\n {\n \"name\": \"space-12\",\n \"value\": \"12px\",\n \"usage\": \"Popover padding, both directions; gap between buttons in footers; dialog and sheet footer padding; gap between stacked blocks; alert grid gap.\"\n },\n {\n \"name\": \"space-14\",\n \"value\": \"14px\",\n \"usage\": \"Row padding in tables and item lists; default button padding; section heading to content.\"\n },\n {\n \"name\": \"space-16\",\n \"value\": \"16px\",\n \"usage\": \"Card, alert and alert dialog padding; gap between fields in a form.\"\n },\n {\n \"name\": \"space-20\",\n \"value\": \"20px\",\n \"usage\": \"Dialog and sheet body padding; gap between checkbox options.\"\n },\n {\n \"name\": \"space-24\",\n \"value\": \"24px\",\n \"usage\": \"Gap between side by side cards; combobox chip height; gap between header and nav.\"\n },\n {\n \"name\": \"space-32\",\n \"value\": \"32px\",\n \"usage\": \"Gap between side by side sections.\"\n },\n {\n \"name\": \"space-40\",\n \"value\": \"40px\",\n \"usage\": \"Main panel padding; compact list row and tab height.\"\n },\n {\n \"name\": \"space-44\",\n \"value\": \"44px\",\n \"usage\": \"Gap between page sections.\"\n },\n {\n \"name\": \"space-48\",\n \"value\": \"48px\",\n \"usage\": \"Main panel bottom padding; the TopBar height (size-shell-bar). Table rows are size-row (40px), not this.\"\n },\n {\n \"name\": \"space-control-inline-sm\",\n \"value\": \"{space-10}\",\n \"usage\": \"Compact action inline inset. Also the inline padding of sm (32px) fields and the inset of their leading icon and chevron.\"\n },\n {\n \"name\": \"space-control-inline-md\",\n \"value\": \"{space-12}\",\n \"usage\": \"Inline padding of md (36px) fields. Field padding steps 10, 12, 14 with the 32, 36, 40 heights, and a leading icon sits at the same inset.\"\n },\n {\n \"name\": \"space-control-inline\",\n \"value\": \"{space-14}\",\n \"usage\": \"Ordinary and large action inline inset. Also the inline padding of lg (40px) fields.\"\n },\n {\n \"name\": \"space-control-gap\",\n \"value\": \"{space-6}\",\n \"usage\": \"Action icon and label gap.\"\n },\n {\n \"name\": \"space-field-label\",\n \"value\": \"{space-6}\",\n \"usage\": \"Field label to its control and supporting feedback.\"\n },\n {\n \"name\": \"space-field-group\",\n \"value\": \"{space-16}\",\n \"usage\": \"Between complete field groups.\"\n },\n {\n \"name\": \"space-field-legend\",\n \"value\": \"{space-20}\",\n \"usage\": \"FieldSet legend (or the description under it) to the set's first field. Larger than field to field so the legend reads as a heading, smaller than set to set.\"\n },\n {\n \"name\": \"space-content-group\",\n \"value\": \"{space-16}\",\n \"usage\": \"Related blocks inside a content section.\"\n },\n {\n \"name\": \"space-actions-gap\",\n \"value\": \"{space-12}\",\n \"usage\": \"Space between a text block and the action row under it: Item and List rows with actions below, Announcements, ApprovalQueue and Alert actions. Set as a gap (or the block padding of the action row in a tighter stack), never a margin on the buttons.\"\n },\n {\n \"name\": \"space-content-section\",\n \"value\": \"{space-32}\",\n \"usage\": \"Between independent open content sections.\"\n },\n {\n \"name\": \"space-shell-gap\",\n \"value\": \"{space-8}\",\n \"usage\": \"Gap on the right and bottom of the AppInset island (and on its top when there is no TopBar band, and its left when there is no sidebar), so the inset floats on the shell ground as a framed card.\"\n },\n {\n \"name\": \"space-crumb-divider\",\n \"value\": \"{space-8}\",\n \"usage\": \"Space on each side of a BandDivider, between the line and the ground of the target beside it: crumbs in either Breadcrumb variant and the TopBar's right cluster. The divider is an element in the layout flow, so both sides are always equal and no neighbor offsets it.\"\n },\n {\n \"name\": \"size-shell-bar\",\n \"value\": \"{space-48}\",\n \"usage\": \"Height of the TopBar band across the top of the AppShell, on the shell ground and outside the AppInset island. The island and the Sidebar both start below it.\"\n },\n {\n \"name\": \"space-sidebar-row-inset\",\n \"value\": \"9px\",\n \"usage\": \"Inline padding of a Sidebar nav row, so its 18px glyph sits centered in the 36px rail row. The TopBar organization switcher uses it too, so its glyph and label line up with the rows below.\"\n },\n {\n \"name\": \"size-sidebar-icon\",\n \"value\": \"18px\",\n \"usage\": \"Glyph of a Sidebar nav row and of the TopBar organization switcher above it.\"\n },\n {\n \"name\": \"size-shell-target\",\n \"value\": \"{size-control-sm}\",\n \"usage\": \"Hover and press box height of every target in the TopBar band: crumb names, switcher chevrons, the organization switcher, the search and notification icon buttons and the account trigger. One height, centered in size-shell-bar, so no ground is taller or shorter than its neighbors. It equals the default Button height, so the band's Buttons use size sm.\"\n },\n {\n \"name\": \"size-shell-collapse\",\n \"value\": \"800px\",\n \"usage\": \"AppShell width below which the Sidebar has no rail and opens only as a left Sheet from the TopBar menu button, the band keeps at most two crumbs, and the AppInset island drops its gaps and border to fill the shell. Measured on the shell itself, so an embedded shell collapses by its own width.\"\n },\n {\n \"name\": \"size-shell-rail\",\n \"value\": \"1280px\",\n \"usage\": \"AppShell width below which the Sidebar starts as the rail, and expanding it opens the full navigation as a left Sheet with a scrim instead of pushing the island. At this width and above the Sidebar starts expanded. Measured on the shell itself.\"\n },\n {\n \"name\": \"size-sidebar\",\n \"value\": \"224px\",\n \"usage\": \"Width of the expanded Sidebar. In the wide shell the TopBar's organization switcher fills it, so the divider after the switcher lines up with the island's left edge.\"\n },\n {\n \"name\": \"size-sidebar-rail\",\n \"value\": \"52px\",\n \"usage\": \"Width of the collapsed Sidebar rail. Its 36px tools sit on the same 26px center line as the expanded corner toggle, so the toggle never moves.\"\n },\n {\n \"name\": \"size-unread\",\n \"value\": \"6px\",\n \"usage\": \"The unread square on the notifications button, the announcements trigger and the narrow menu button, in accent-fg with a ring of the ground behind it.\"\n },\n {\n \"name\": \"size-touch-row\",\n \"value\": \"{space-48}\",\n \"usage\": \"Rows of the shell's bottom sheets (account and help below size-shell-collapse) and the nav Sheet's user row, sized for touch.\"\n },\n {\n \"name\": \"space-surface-inset\",\n \"value\": \"{space-16}\",\n \"usage\": \"Ordinary surface header, body and footer alignment edge.\"\n },\n {\n \"name\": \"space-surface-inset-sm\",\n \"value\": \"{space-12}\",\n \"usage\": \"Compact surface header, body and footer alignment edge.\"\n },\n {\n \"name\": \"space-frame-inline\",\n \"value\": \"{space-6}\",\n \"usage\": \"Side padding of a frame header and footer band. With the frame edge (frame-pad) beside it, a bordered or filled control in a band corner sits as far from the frame side as from the band top and bottom.\"\n },\n {\n \"name\": \"space-frame-title-inline\",\n \"value\": \"calc({space-12} - {space-frame-inline})\",\n \"usage\": \"Extra start inset for a frame title and footer text on top of space-frame-inline, so text keeps its optical position while controls sit tight to the corner.\"\n },\n {\n \"name\": \"space-overlay-inset\",\n \"value\": \"{space-20}\",\n \"usage\": \"Modal and sheet content alignment edge.\"\n },\n {\n \"name\": \"space-menu-inset\",\n \"value\": \"{space-3}\",\n \"usage\": \"Menu rows inset inside their containing border.\"\n },\n {\n \"name\": \"space-control-slot-inset\",\n \"value\": \"{space-3}\",\n \"usage\": \"Interior field inset. With the 1px border, a nested action sits 4px from the host outside edge.\"\n },\n {\n \"name\": \"space-control-slot-gap\",\n \"value\": \"{space-4}\",\n \"usage\": \"Between separate actions in one field slot.\"\n },\n {\n \"name\": \"space-row-inline\",\n \"value\": \"{space-surface-inset-sm}\",\n \"usage\": \"Inline padding of every Table and DataTable cell: the 12px content edge that cell text and row indicator glyphs share. The sticky actions cell pads by space-row-actions-inset instead.\"\n },\n {\n \"name\": \"space-row-actions-gap\",\n \"value\": \"0px\",\n \"usage\": \"Gap between row action targets and between row indicator slots. Neighbouring targets touch without overlapping, so 16px glyphs sit 12px apart.\"\n },\n {\n \"name\": \"space-row-actions-inset\",\n \"value\": \"calc(({size-row} - {size-target-row}) / 2 - {size-control-border})\",\n \"usage\": \"Inline padding on both sides of the sticky actions cell, inside its divider and the frame edge. With the 1px lines on either side it centers one size-target-row action in a size-row square, 5px clear of each line.\"\n },\n {\n \"name\": \"space-row-indent\",\n \"value\": \"{space-24}\",\n \"usage\": \"One depth step of a DataTable row's primary cell: rows under a group header and child rows from getRowChildren start this far inside the column's content edge. It equals an icon plus its 8px gap, so a child's text lines up with the label after its parent's icon.\"\n },\n {\n \"name\": \"size-action-bar\",\n \"value\": \"{space-48}\",\n \"usage\": \"Height of the FloatingActionBar. While the bar shows, AppInset adds this plus space-action-bar-offset as bottom padding, so the last row and the pagination can scroll clear of it.\"\n },\n {\n \"name\": \"space-action-bar-offset\",\n \"value\": \"{space-24}\",\n \"usage\": \"Gap between the FloatingActionBar and the bottom of the window.\"\n }\n ]\n },\n \"size\": {\n \"note\": \"Heights shared by controls and badges, so they line up in any row, and the slot that nested items take inside a field (size-nested-*: the field height minus 8px). The width floors live here too: size-cell-min for table columns, size-text-min for item and card text, size-tile-min for tile grids.\",\n \"tokens\": [\n {\n \"name\": \"size-badge-sm\",\n \"value\": \"16px\",\n \"usage\": \"Small badge height, inside table rows, item rows and sheet meta.\"\n },\n {\n \"name\": \"size-count\",\n \"value\": \"20px\",\n \"usage\": \"Count chip height, in navigation and tabs.\"\n },\n {\n \"name\": \"size-badge\",\n \"value\": \"20px\",\n \"usage\": \"Default badge height: identity, status and emphasis. Matches the count chip.\"\n },\n {\n \"name\": \"size-kbd-xs\",\n \"value\": \"16px\",\n \"usage\": \"Kbd key cap on ink, inside tooltips. A single-glyph cap is exactly this square; longer labels keep the height and grow in width.\"\n },\n {\n \"name\": \"size-kbd-sm\",\n \"value\": \"18px\",\n \"usage\": \"Small Kbd key cap, in menus, command rows, buttons and the TopBar search. A single-glyph cap is an 18px square; Ctrl, Shift and Esc keep the height and grow with equal side padding.\"\n },\n {\n \"name\": \"size-kbd-md\",\n \"value\": \"20px\",\n \"usage\": \"Default Kbd key cap, in running text and field hints. A single-glyph cap is a 20px square; longer labels keep the height and grow with equal side padding.\"\n },\n {\n \"name\": \"size-control-sm\",\n \"value\": \"32px\",\n \"usage\": \"Small control height: small buttons and inputs, icon buttons in toolbars, menu items and options, segmented items, pagination pages.\"\n },\n {\n \"name\": \"size-control-md\",\n \"value\": \"36px\",\n \"usage\": \"Explicit comfortable md control height. Use size=md with iconOnly for a matching 36px standalone icon action. The ordinary default is 32px. Legacy icon aliases keep their explicit nested sizes.\"\n },\n {\n \"name\": \"size-control-lg\",\n \"value\": \"40px\",\n \"usage\": \"Large control height: large buttons and inputs.\"\n },\n {\n \"name\": \"size-row-stacked\",\n \"value\": \"48px\",\n \"usage\": \"Height of a row whose label stacks two lines (a small title over a caption subtitle, 34px of text), such as the option rows of a stacked picker. A 36px control row is too short for two lines.\"\n },\n {\n \"name\": \"size-nested-sm\",\n \"value\": \"24px\",\n \"usage\": \"Slot for a nested item inside a small (32px) field: icon buttons, shortcut hints, clear buttons. 4px from the field's outer edge on every side.\"\n },\n {\n \"name\": \"size-nested-md\",\n \"value\": \"28px\",\n \"usage\": \"Slot for a nested item inside an explicit comfortable md (36px) field: reveal, copy and clear icon buttons, a Kbd hint or a small Badge. The ordinary default uses nested-default at 24px. This explicit slot sits 4px from the field's outer edge; slots are 4px apart.\"\n },\n {\n \"name\": \"size-nested-lg\",\n \"value\": \"32px\",\n \"usage\": \"Slot for a nested item inside a large (40px) field.\"\n },\n {\n \"name\": \"size-cell-min\",\n \"value\": \"64px\",\n \"usage\": \"Floor for every Table and DataGrid column that fits its content. A column can set its own minWidth, or a fixed width.\"\n },\n {\n \"name\": \"size-field-xs\",\n \"value\": \"96px\",\n \"usage\": \"Width of a field set to width xs: a number with a short limit, such as a seat count in a table cell.\"\n },\n {\n \"name\": \"size-field-sm\",\n \"value\": \"176px\",\n \"usage\": \"Width of a field set to width sm: a date, or a select with short options beside a fluid field.\"\n },\n {\n \"name\": \"size-field-md\",\n \"value\": \"256px\",\n \"usage\": \"Width of a field set to width md: a name or short identifier that should not span the row.\"\n },\n {\n \"name\": \"size-text-min\",\n \"value\": \"160px\",\n \"usage\": \"Floor for the main text of an item row and of a plain card heading. Buttons and badges beside it keep their width and drop under the text instead of squeezing it; the text truncates, with its full value on hover.\"\n },\n {\n \"name\": \"size-tile-min\",\n \"value\": \"208px\",\n \"usage\": \"Narrowest a Tile gets in an ifs-tiles grid; below it the grid drops a column instead of squeezing tiles.\"\n },\n {\n \"name\": \"size-search-max\",\n \"value\": \"720px\",\n \"usage\": \"Widest a list toolbar search gets in FilterBar, so the toolbar actions sit apart at the end of the row instead of reading as part of the search.\"\n },\n {\n \"name\": \"size-tile-stacked-min\",\n \"value\": \"280px\",\n \"usage\": \"Narrowest a stacked Tile gets in TilePicker's grid: a 672px sheet holds two columns and a page measure four, so titles keep room before they truncate.\"\n },\n {\n \"name\": \"size-ghost-card\",\n \"value\": \"132px\",\n \"usage\": \"Height of each faded placeholder card behind a ghost cards Empty, about one short card of copy.\"\n },\n {\n \"name\": \"size-card-min\",\n \"value\": \"320px\",\n \"usage\": \"Narrowest a Card gets in an auto-fit Grid (Grid min=\\\"card\\\"); below it the grid drops to fewer columns, so DataList rows keep their label and value on one line.\"\n },\n {\n \"name\": \"size-tooltip-max\",\n \"value\": \"320px\",\n \"usage\": \"Widest a Tooltip grows; longer text wraps inside it instead of overflowing. Tooltip content always resets white-space, so a trigger inside a nowrap cell never forces one long line.\"\n },\n {\n \"name\": \"size-menu-min\",\n \"value\": \"160px\",\n \"usage\": \"Narrowest a menu, listbox or command list panel gets. A panel is never narrower than its trigger either, and grows with its widest row up to size-menu-max.\"\n },\n {\n \"name\": \"size-menu-max\",\n \"value\": \"320px\",\n \"usage\": \"Widest a menu or listbox panel grows from its content. A trigger wider than this still sets the panel's minimum; rows past it truncate their label instead of wrapping.\"\n },\n {\n \"name\": \"size-popover\",\n \"value\": \"288px\",\n \"usage\": \"Width of a popover and a hover card, both padded space-12.\"\n },\n {\n \"name\": \"size-toast\",\n \"value\": \"400px\",\n \"usage\": \"Maximum width of a toast. A ToastStack is as wide as its widest title or description up to this width, so a short notice stays compact and a long title wraps to two lines instead of a tall, narrow card; actions never widen it. The Sonner Toaster draws every toast at this width.\"\n },\n {\n \"name\": \"size-dialog\",\n \"value\": \"440px\",\n \"usage\": \"Maximum width of an ordinary dialog and alert dialog.\"\n },\n {\n \"name\": \"size-dialog-wide\",\n \"value\": \"560px\",\n \"usage\": \"Maximum width of the command palette dialog: a search row and result rows with room for descriptions and shortcuts.\"\n },\n {\n \"name\": \"size-sheet-sm\",\n \"value\": \"384px\",\n \"usage\": \"Maximum width of a side sheet at size sm, the default: a details panel or a short form with one column of fields.\"\n },\n {\n \"name\": \"size-sheet-md\",\n \"value\": \"512px\",\n \"usage\": \"Maximum width of a side sheet at size md: a create form with a key, a multiline value and a few options, like Create secret and Add machine identity.\"\n },\n {\n \"name\": \"size-sheet-lg\",\n \"value\": \"672px\",\n \"usage\": \"Maximum width of a side sheet at size lg: a form sheet with field pairs, credentials or a step bar, like New connection and an auth method. On a viewport narrower than this the sheet is capped at the viewport width.\"\n },\n {\n \"name\": \"size-sheet-xl\",\n \"value\": \"1024px\",\n \"usage\": \"Maximum width of a side sheet at size xl: a two-pane record sheet with a SheetAside beside tabs and their content, like a PAM account. The main pane keeps 704px beside size-pane-aside. On a viewport narrower than this the sheet is capped at the viewport width.\"\n },\n {\n \"name\": \"size-overlay-margin\",\n \"value\": \"{space-16}\",\n \"usage\": \"Space a centered dialog or alert dialog keeps from each viewport edge; its height caps at the viewport minus twice this.\"\n },\n {\n \"name\": \"size-control-xs\",\n \"value\": \"{size-nested-sm}\",\n \"usage\": \"Explicit 24px nested action and shortcut slot; not the ordinary form action.\"\n },\n {\n \"name\": \"size-control-border\",\n \"value\": \"1px\",\n \"usage\": \"Structural border included in every filled and outlined control box.\"\n },\n {\n \"name\": \"size-crumb-divider\",\n \"value\": \"{size-icon}\",\n \"usage\": \"Height of the vertical breadcrumb divider: one icon height, so it spans the text and the switcher chevron without reaching the edges of the 48px TopBar.\"\n },\n {\n \"name\": \"size-crumb-divider-width\",\n \"value\": \"{size-control-border}\",\n \"usage\": \"Stroke of the vertical breadcrumb divider, one structural line.\"\n },\n {\n \"name\": \"size-focus-ring\",\n \"value\": \"2px\",\n \"usage\": \"Width of every keyboard focus mark. A focused field draws an ink border plus this much focus-ring outside it; buttons, tabs and other actions draw an ink outline this wide, offset by the same amount.\"\n },\n {\n \"name\": \"size-focus-glow\",\n \"value\": \"3px\",\n \"usage\": \"Width of the soft focus glow (focus-ring color) outside a focused field, slider thumb or other control that shows focus as a glow rather than an outline. One token for every glow so fields and sliders match.\"\n },\n {\n \"name\": \"size-icon-sm\",\n \"value\": \"14px\",\n \"usage\": \"Compact action icons next to readable 14px labels.\"\n },\n {\n \"name\": \"size-icon\",\n \"value\": \"16px\",\n \"usage\": \"Ordinary action icons and standalone interface marks.\"\n },\n {\n \"name\": \"size-icon-xs\",\n \"value\": \"12px\",\n \"usage\": \"Explicit 24px nested action icons.\"\n },\n {\n \"name\": \"size-icon-lg\",\n \"value\": \"20px\",\n \"usage\": \"Icons inside a small empty-state tile and bare empty-state marks at sm size.\"\n },\n {\n \"name\": \"size-icon-xl\",\n \"value\": \"24px\",\n \"usage\": \"Icons inside a default empty-state tile and bare empty-state marks.\"\n },\n {\n \"name\": \"size-icon-2xl\",\n \"value\": \"32px\",\n \"usage\": \"A documentation link beside a display page title: the glyph box matches the title's cap height.\"\n },\n {\n \"name\": \"size-empty-media\",\n \"value\": \"48px\",\n \"usage\": \"The tinted media tile above a default empty-state title, twice its icon.\"\n },\n {\n \"name\": \"size-empty-media-sm\",\n \"value\": \"{size-control-md}\",\n \"usage\": \"The tinted media tile in an sm empty state, inside lists, menus and table bodies.\"\n },\n {\n \"name\": \"size-content\",\n \"value\": \"1160px\",\n \"usage\": \"The one page content width. AppInset derives its page gutter from it, and TopBar and PageGutter both pad by that gutter, so the breadcrumb, the page header and the page body share one width and one left edge in the workbench, its docs pages and every composition. Never cap page content with an arbitrary max-width.\"\n },\n {\n \"name\": \"size-measure-page\",\n \"value\": \"{size-content}\",\n \"usage\": \"Maximum outer content measure for layout primitives (Container, MeasurePage). Equal to size-content so a primitive and the page gutter agree.\"\n },\n {\n \"name\": \"size-measure-form\",\n \"value\": \"640px\",\n \"usage\": \"Maximum form and workbench article measure.\"\n },\n {\n \"name\": \"size-measure-field\",\n \"value\": \"400px\",\n \"usage\": \"Maximum width of a stacked form field and its control, so a name, ID or select keeps a bounded width inside wide cards. Search inputs and table toolbars are not Fields and stay full width.\"\n },\n {\n \"name\": \"size-measure-field-wide\",\n \"value\": \"100%\",\n \"usage\": \"Maximum width of a wide Field: it fills its column. For multi-column form rows (host and port, name and TTLs) in dynamic secret, secret rotation and app connection forms, where the row's grid sets each field's width and the stacked field measure would leave gaps.\"\n },\n {\n \"name\": \"size-measure-prose\",\n \"value\": \"65ch\",\n \"usage\": \"Readable prose line measure.\"\n },\n {\n \"name\": \"size-sidecar\",\n \"value\": \"384px\",\n \"usage\": \"Width of the DetailLayout sidecar: the details card (a props DataList) beside a detail page's stacked content cards. The current product draws this card at 24rem. It is the narrowest width at which an ID row keeps a full UUID on one line (360px wraps it); at size-content it leaves the main column 752px.\"\n },\n {\n \"name\": \"size-pane-aside\",\n \"value\": \"320px\",\n \"usage\": \"Width of the Panes aside, and of a SheetAside: the identity, badges and summary DataList beside a pane of tabs or a form. Long values wrap inside it rather than widening it.\"\n },\n {\n \"name\": \"size-pane-collapse\",\n \"value\": \"880px\",\n \"usage\": \"Panes width below which the aside stops sitting beside the main pane: size-pane-aside plus a 560px main pane, so a table beside the aside keeps its columns. Its identity (media, title, description and badges) becomes a fixed header with tabs on its bottom rule: Details first, then the header's own tabs, or the main pane's label when there are none. It opens on the main pane's tab. Measured on the Panes itself, so a 768px sheet (an xl sheet on a 1024px viewport) or a phone collapses and a 960px sheet splits.\"\n },\n {\n \"name\": \"size-sidecar-collapse\",\n \"value\": \"896px\",\n \"usage\": \"DetailLayout width below which the sidecar stops sitting beside the main column and stacks above it. Measured on the layout itself with a container query, the same 56rem container breakpoint the current product's detail pages use. At this width the main column keeps 488px.\"\n },\n {\n \"name\": \"size-data-list-term\",\n \"value\": \"128px\",\n \"usage\": \"Term column of a compact DataList full-width row. A term wider than this wraps between words, and a single word longer than it widens the column instead of breaking. Fits Signature algorithm and Certificate authority on one line in body type.\"\n },\n {\n \"name\": \"size-data-list-row\",\n \"value\": \"{size-control-sm}\",\n \"usage\": \"Minimum height of a compact DataList row, the same 32px as a small control, so a Badge or small button in the value does not grow the row. Default DataList rows keep their 8px padding and 12px gap.\"\n },\n {\n \"name\": \"size-control-default\",\n \"value\": \"{size-control-sm}\",\n \"usage\": \"Ordinary 32px action and field height. Explicit md remains 36px and lg remains 40px.\"\n },\n {\n \"name\": \"size-control-band\",\n \"value\": \"{size-nested-md}\",\n \"usage\": \"Control height inside a frame header or footer band (28px): default buttons, toggles, selects and inputs placed in the band take it without a size prop. Page headers keep size-control-default (32px).\"\n },\n {\n \"name\": \"size-nested-default\",\n \"value\": \"{size-nested-sm}\",\n \"usage\": \"Ordinary 24px nested action inside a default 32px field. Explicit md36 fields use nested-md28.\"\n },\n {\n \"name\": \"size-row\",\n \"value\": \"{size-control-lg}\",\n \"usage\": \"Table and DataTable body row height. DataTable reads it at runtime as its default virtual row metric, so the CSS row and the scroll model share one number.\"\n },\n {\n \"name\": \"size-target-row\",\n \"value\": \"{size-nested-md}\",\n \"usage\": \"Hit target of an icon-only row action (Button size icon-row) and the slot of a standalone row indicator. In a size-row row its 2px focus outline at a 2px offset draws a 36px box that stays 2px inside the row. Row indicators pull into the cell padding by (size-target-row - size-glyph) / 2, so the glyph, not the target, lands on the space-row-inline content edge.\"\n },\n {\n \"name\": \"size-row-action-step\",\n \"value\": \"calc({size-target-row} + {space-row-actions-gap})\",\n \"usage\": \"Width each action adds to the sticky actions column after its first. The column is size-row wide for one action (a square cell) and size-row plus this step for every further action, so its width follows its contents.\"\n },\n {\n \"name\": \"size-glyph\",\n \"value\": \"{size-icon}\",\n \"usage\": \"Glyph of a row action and of a standalone row indicator such as a reminder, metadata or replication mark. One size everywhere, so a mark in a value cell and the matching action in the actions column read as the same glyph. Field and nested actions keep size-icon-xs and size-icon-sm.\"\n },\n {\n \"name\": \"size-glyph-sm\",\n \"value\": \"{size-icon-sm}\",\n \"usage\": \"Small supporting glyph, 14px: the glyph in a default (20px) Badge, before or after its label.\"\n },\n {\n \"name\": \"size-badge-glyph\",\n \"value\": \"{size-glyph-sm}\",\n \"usage\": \"Glyph inside a default (size-badge, 20px) Badge: 14px, which leaves a 3px inset above and below inside the border.\"\n },\n {\n \"name\": \"size-badge-glyph-sm\",\n \"value\": \"{size-icon-xs}\",\n \"usage\": \"Glyph inside a small (size-badge-sm, 16px) Badge: 12px, so the glyph never fills the whole height inside the border.\"\n },\n {\n \"name\": \"size-scroll-fade\",\n \"value\": \"16px\",\n \"usage\": \"Depth of the edge fade on a scroll area that has more content past that edge. Half a 32px row, so the last visible row stays readable while the fade still signals more; v3 used 2rem against taller rows.\"\n },\n {\n \"name\": \"size-skeleton-text\",\n \"value\": \"12px\",\n \"usage\": \"Default Skeleton height: a placeholder for one line of text, in skeleton lines and DataTable loading rows. Shorter than the 20px line so stacked placeholders keep their gaps.\"\n },\n {\n \"name\": \"size-halftone-cell\",\n \"value\": \"8px\",\n \"usage\": \"Edge of one halftone cell. Every halftone in the app shares it so patterns line up across cards.\"\n }\n ]\n },\n \"shape\": {\n \"note\": \"Square corners are the only shape: no surface, control or portal sets a border radius, so there is no radius scale and no corner mode. The remaining shape token is the icon stroke.\",\n \"tokens\": [\n {\n \"name\": \"stroke-icon\",\n \"value\": \"1.7\",\n \"usage\": \"Optical stroke for the canonical interface icon set, scaled by its SVG viewBox.\"\n }\n ]\n },\n \"shadow\": {\n \"note\": \"Depth shadows describe surface elevation. Inset surfaces get a 1px lift, overlays get a real shadow, and other surfaces stay flat. Focus, selection, errors and pressed states use outlines, borders and color. The canonical primary Button is the only exception for colored inset face and hover illumination. All of its light stays inside the control; it has no external or drop shadow.\",\n \"tokens\": [\n {\n \"name\": \"shadow-raised\",\n \"value\": {\n \"light\": \"0 1px 2px rgba(14, 16, 20, 0.05)\",\n \"dark\": \"0 1px 2px rgba(0, 0, 0, 0.4)\"\n },\n \"usage\": \"Inset surfaces inside a tint frame: cards, tables, lists.\"\n },\n {\n \"name\": \"shadow-pop\",\n \"value\": {\n \"light\": \"0 16px 40px rgba(1, 1, 1, 0.14), 0 2px 6px rgba(1, 1, 1, 0.08)\",\n \"dark\": \"0 16px 40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5)\"\n },\n \"usage\": \"Menus, listboxes, popovers, dialogs, sheets, toasts.\"\n },\n {\n \"name\": \"shadow-card-inset\",\n \"value\": {\n \"light\": \"{shadow-raised}\",\n \"dark\": \"none\"\n },\n \"usage\": \"The inset of a framed Card. Light keeps shadow-raised. Dark drops it and leaves the hairline border, because a dark drop shadow on the near-black inset reads as a heavy band under the content.\"\n }\n ]\n },\n \"opacity\": {\n \"note\": \"Opacity steps. row-dim fades the other rows of a table body while one row is being edited. nudge is the focus ring: a focused field draws a size-focus-ring ring of ink at this opacity outside a 1px ink border, and a focused invalid field draws the same ring in bad outside a bad border. Fields at rest have no ring, invalid ones included.\",\n \"tokens\": [\n {\n \"name\": \"opacity-row-dim\",\n \"value\": \"40%\",\n \"usage\": \"Cell contents of the other rows in a table body while a row is focused for editing (TableRow focused, DataTable focusedRowId), applied as filter: opacity so it composes with opacity reveals inside the cells. Row grounds, borders, headers and portalled popovers stay at full strength.\"\n },\n {\n \"name\": \"opacity-nudge\",\n \"value\": \"15%\",\n \"usage\": \"Focus ring opacity in light: 2px of ink at 15% outside the ink border, and 2px of bad at 15% on a focused invalid field. The 1px border carries the contrast.\"\n },\n {\n \"name\": \"opacity-nudge-dark\",\n \"value\": \"28%\",\n \"usage\": \"Focus ring opacity in dark. Higher than light because bone at 15% on the near-black surface is barely distinguishable from it; 28% keeps the ring visible.\"\n }\n ]\n },\n \"motion\": {\n \"note\": \"Three durations by the size of what moves, each with a quicker exit, and springs for things that move. Enter on the tier, leave on the exit tier. Reduced motion snaps travel and scale and keeps fades.\",\n \"tokens\": [\n {\n \"name\": \"duration-fast\",\n \"value\": \"80ms\",\n \"usage\": \"Hover and press color changes, menus, popovers, selects and tooltips opening, and the check and radio marks drawing.\"\n },\n {\n \"name\": \"duration-moderate\",\n \"value\": \"160ms\",\n \"usage\": \"Indicators sliding between items, the switch thumb, disclosures expanding, the sidebar changing width, the Button glow and chevrons turning.\"\n },\n {\n \"name\": \"duration-slow\",\n \"value\": \"240ms\",\n \"usage\": \"Large surfaces entering, such as dialogs and sheets.\"\n },\n {\n \"name\": \"duration-exit-fast\",\n \"value\": \"32ms\",\n \"usage\": \"Menus, popovers, selects and tooltips closing, and marks retracting.\"\n },\n {\n \"name\": \"duration-exit-moderate\",\n \"value\": \"120ms\",\n \"usage\": \"Disclosures collapsing and indicators fading out.\"\n },\n {\n \"name\": \"duration-exit-slow\",\n \"value\": \"96ms\",\n \"usage\": \"Dialogs, sheets and their scrim leaving.\"\n },\n {\n \"name\": \"ease-standard\",\n \"value\": \"cubic-bezier(0.2, 0, 0, 1)\",\n \"usage\": \"Moves and resizes that are not springs, such as the sidebar width.\"\n },\n {\n \"name\": \"ease-fade\",\n \"value\": \"cubic-bezier(0.4, 0, 0.2, 1)\",\n \"usage\": \"Opacity and color fades that do not move anything.\"\n },\n {\n \"name\": \"ease-spring\",\n \"value\": \"linear(0, 0.1144, 0.3208, 0.5164, 0.6711, 0.7831, 0.8601, 0.9113, 0.9445, 0.9656, 0.9789, 0.9871, 0.9922, 0.9953, 0.9972, 0.9983, 1)\",\n \"usage\": \"Enters and moves on the fast and moderate tiers. Critically damped, so it never overshoots.\"\n },\n {\n \"name\": \"ease-spring-soft\",\n \"value\": \"linear(0, 0.1045, 0.3072, 0.5116, 0.6797, 0.8032, 0.887, 0.9402, 0.9717, 0.9892, 0.9979, 1.0017, 1.0029, 1.0028, 1.0023, 1.0017, 1)\",\n \"usage\": \"Dialogs and sheets entering on the slow tier. Overshoots by under half a percent.\"\n },\n {\n \"name\": \"ease-exit\",\n \"value\": \"cubic-bezier(0, 0, 0.58, 1)\",\n \"usage\": \"Everything leaving, so a dismissal reads as final.\"\n },\n {\n \"name\": \"ease-press\",\n \"value\": \"cubic-bezier(0.23, 1, 0.32, 1)\",\n \"usage\": \"A pressed button releasing back to rest.\"\n }\n ]\n },\n \"appearance\": {\n \"note\": \"Component paint roles follow the resolved scope theme, including stateful controls and overlays.\",\n \"tokens\": [\n {\n \"name\": \"hover-mix\",\n \"value\": {\n \"light\": \"4%\",\n \"dark\": \"8%\"\n },\n \"usage\": \"How much mix-ink the shared hover overlay takes: 4% in light schemes, where it darkens the ground, and 8% in dark schemes, where ink is near white and it brightens the ground. The one place to tune hover strength.\"\n },\n {\n \"name\": \"press-mix\",\n \"value\": {\n \"light\": \"7%\",\n \"dark\": \"12%\"\n },\n \"usage\": \"How much ink the shared press overlay takes while a pointer is down: one step past hover-mix in each scheme.\"\n },\n {\n \"name\": \"current-mix\",\n \"value\": {\n \"light\": \"5.5%\",\n \"dark\": \"10%\"\n },\n \"usage\": \"How much mix-ink sidebar-current mixes into the sidebar: a small step past hover-mix (4% light, 8% dark). The current row also takes bold text, so the color step stays quiet.\"\n },\n {\n \"name\": \"selected-mix\",\n \"value\": {\n \"light\": \"30%\",\n \"dark\": \"33%\"\n },\n \"usage\": \"Alpha of the selected-surface fill: 30% in light and 33% in dark, a step past the hover overlay in every theme.\"\n },\n {\n \"name\": \"hover\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {mix-ink} {hover-mix}, transparent)\",\n \"dark\": \"color-mix(in oklab, {mix-ink} {hover-mix}, transparent)\"\n },\n \"usage\": \"The one hover ground for every neutral interactive surface: sidebar rows and tools, table, list, tree and grid rows, menu and listbox rows, segments, ghost and outline actions. Translucent ink, so it lands on whatever ground is underneath and shifts it darker in light and brighter in dark with no per-theme value. Where an opaque fill is needed (a pinned cell, a ring that cuts out a dot), mix ink at hover-mix into that ground in srgb, which matches how the overlay composites: color-mix(in srgb, var(--cipher-ink) var(--cipher-hover-mix), var(--cipher-sidebar)).\"\n },\n {\n \"name\": \"press\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {mix-ink} {press-mix}, transparent)\",\n \"dark\": \"color-mix(in oklab, {mix-ink} {press-mix}, transparent)\"\n },\n \"usage\": \"The pressed ground of the same surfaces as hover, while a pointer is down.\"\n },\n {\n \"name\": \"control-surface\",\n \"value\": {\n \"light\": \"transparent\",\n \"dark\": \"color-mix(in oklab, {control} 30%, transparent)\"\n },\n \"usage\": \"Theme-specific control surface paint.\"\n },\n {\n \"name\": \"control-surface-hover\",\n \"value\": {\n \"light\": \"transparent\",\n \"dark\": \"color-mix(in oklab, {control} 50%, transparent)\"\n },\n \"usage\": \"Theme-specific control surface hover paint.\"\n },\n {\n \"name\": \"control-disabled-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {control} 50%, transparent)\",\n \"dark\": \"color-mix(in oklab, {control} 80%, transparent)\"\n },\n \"usage\": \"Theme-specific control disabled surface paint.\"\n },\n {\n \"name\": \"control-invalid-border\",\n \"value\": {\n \"light\": \"{bad}\",\n \"dark\": \"{bad}\"\n },\n \"usage\": \"Border of an invalid field, at rest and on focus. Invalid fields have no ring until they are focused.\"\n },\n {\n \"name\": \"focus-ring\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} {opacity-nudge}, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} {opacity-nudge-dark}, transparent)\"\n },\n \"usage\": \"The shared soft focus glow, drawn size-focus-glow wide outside a focused field, an open field and a focused or hovered slider thumb. Ink at opacity-nudge: a neutral gray that reads as a shadow in light, never the accent.\"\n },\n {\n \"name\": \"focus-ring-bad\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {bad} {opacity-nudge}, transparent)\",\n \"dark\": \"color-mix(in oklab, {bad} {opacity-nudge-dark}, transparent)\"\n },\n \"usage\": \"The focus ring of a focused invalid field, and of destructive actions. Same width and opacity as focus-ring.\"\n },\n {\n \"name\": \"action-danger-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {bad} 10%, transparent)\",\n \"dark\": \"color-mix(in oklab, {bad} 20%, transparent)\"\n },\n \"usage\": \"Theme-specific action danger surface paint.\"\n },\n {\n \"name\": \"action-danger-hover\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {bad} 20%, transparent)\",\n \"dark\": \"color-mix(in oklab, {bad} 30%, transparent)\"\n },\n \"usage\": \"Theme-specific action danger hover paint.\"\n },\n {\n \"name\": \"action-ghost-hover\",\n \"value\": {\n \"light\": \"{hover}\",\n \"dark\": \"{hover}\"\n },\n \"usage\": \"Hover ground of ghost buttons and other ghost-styled actions: the shared hover overlay.\"\n },\n {\n \"name\": \"action-outline-border\",\n \"value\": {\n \"light\": \"{line-soft}\",\n \"dark\": \"{control}\"\n },\n \"usage\": \"Theme-specific action outline border paint.\"\n },\n {\n \"name\": \"action-outline-surface\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"color-mix(in oklab, {control} 30%, transparent)\"\n },\n \"usage\": \"Theme-specific action outline surface paint.\"\n },\n {\n \"name\": \"action-outline-hover\",\n \"value\": {\n \"light\": \"{hover}\",\n \"dark\": \"{hover}\"\n },\n \"usage\": \"Hover ground of outline buttons, triggers and toggles: the shared hover overlay over their own surface.\"\n },\n {\n \"name\": \"choice-selected-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 5%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 10%, transparent)\"\n },\n \"usage\": \"Theme-specific choice selected surface paint.\"\n },\n {\n \"name\": \"choice-selected-border\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 30%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 20%, transparent)\"\n },\n \"usage\": \"Theme-specific choice selected border paint.\"\n },\n {\n \"name\": \"switch-off-surface\",\n \"value\": {\n \"light\": \"{surface}\",\n \"dark\": \"{surface}\"\n },\n \"usage\": \"Track of a switch that is off: the surface, outlined in muted (7:1 light, 9:1 dark), so off reads as an available control, not a disabled one.\"\n },\n {\n \"name\": \"switch-thumb\",\n \"value\": {\n \"light\": \"{muted}\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Knob of a switch that is off: muted, the same ink as the outline.\"\n },\n {\n \"name\": \"switch-thumb-line\",\n \"value\": {\n \"light\": \"transparent\",\n \"dark\": \"transparent\"\n },\n \"usage\": \"Hairline around the off knob in light, so a white knob stays visible on the light grey track.\"\n },\n {\n \"name\": \"scroll-thumb\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 16%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 16%, transparent)\"\n },\n \"usage\": \"Resting scrollbar thumb on every Cipher scroller and ScrollArea. Mixed from ink so it stays quiet in both themes.\"\n },\n {\n \"name\": \"scroll-thumb-hover\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 32%, transparent)\",\n \"dark\": \"color-mix(in oklab, {ink} 32%, transparent)\"\n },\n \"usage\": \"Scrollbar thumb while the pointer is over its scroller.\"\n },\n {\n \"name\": \"avatar-blend\",\n \"value\": {\n \"light\": \"darken\",\n \"dark\": \"lighten\"\n },\n \"usage\": \"Theme-specific avatar blend paint.\"\n },\n {\n \"name\": \"tab-label\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {ink} 60%, transparent)\",\n \"dark\": \"{muted}\"\n },\n \"usage\": \"Theme-specific tab label paint.\"\n },\n {\n \"name\": \"selected-surface\",\n \"value\": {\n \"light\": \"color-mix(in oklab, {neutral-300} {selected-mix}, transparent)\",\n \"dark\": \"color-mix(in oklab, {neutral-600} {selected-mix}, transparent)\"\n },\n \"usage\": \"Fill of a pressed or current control: a pressed Toggle, the current page, a selected list or table row and a selected Button. A translucent neutral step toward the surface it sits on, so whatever sits behind it stays visible. Light is a warm gray at L 0.915 on surface; dark is a neutral gray at L 0.32 at selected-mix, a step past hover, a quiet step above tint with no yellow cast, matching light's behavior. The sliding thumb of segmented tabs and of a ToggleGroup is pop in light and surface with a line border in dark, a cut-in thumb rather than this fill. Paired rule: an on item has ink text and this fill and border; an off item has muted text. A disabled on item keeps the fill and border and only dims its text.\"\n },\n {\n \"name\": \"selected-border\",\n \"value\": {\n \"light\": \"{control}\",\n \"dark\": \"{neutral-700}\"\n },\n \"usage\": \"Border of a pressed or current control. One step stronger than the outline border; neutral gray in dark, like selected-surface.\"\n },\n {\n \"name\": \"selected-ink\",\n \"value\": {\n \"light\": \"{ink}\",\n \"dark\": \"{ink}\"\n },\n \"usage\": \"Text and icon of a pressed or current control.\"\n },\n {\n \"name\": \"halftone-peak\",\n \"value\": {\n \"light\": \"42%\",\n \"dark\": \"20%\"\n },\n \"usage\": \"Alpha of the densest halftone cell, at the anchor corner. Halftone intensity scales it. Dark sits at about half of light: colored cells over the near-black inset read strongly, and halftone-gamma keeps its fade faster.\"\n },\n {\n \"name\": \"halftone-peak-hover\",\n \"value\": {\n \"light\": \"90%\",\n \"dark\": \"90%\"\n },\n \"usage\": \"Halftone alpha while the Card around it is hovered or focused, as the pattern grows outward from its anchor. Hover is the one moment the wash should read strongly, so both schemes peak at 90%.\"\n },\n {\n \"name\": \"halftone-gamma\",\n \"value\": {\n \"light\": \"1\",\n \"dark\": \"1.3\"\n },\n \"usage\": \"Halftone density falloff. 1 thins the cells linearly away from the anchor; dark uses 1.3 so the pattern clears faster and stays a corner accent.\"\n },\n {\n \"name\": \"grain\",\n \"value\": {\n \"light\": \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\\\")\",\n \"dark\": \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncG type='linear' slope='2' intercept='-0.5'/%3E%3CfeFuncB type='linear' slope='2' intercept='-0.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E\\\")\"\n },\n \"usage\": \"The AppShell band texture, off unless AppShell grain is set. A 200px fractal noise tile blended with overlay into the band color as a background layer, so it never repaints on scroll and never sits over text. Dark doubles the noise contrast, since overlay has almost no headroom over the near-black band.\"\n }\n ]\n },\n \"hue\": {\n \"note\": \"One hue, many scopes. Any element can set --cipher-hue (a number of degrees) and data-hue (subtle or pop), and every descendant reads hue-icon, hue-tint, hue-soft and hue-fill built from that hue on the ramp below. Lightness and chroma are fixed per scheme and level, so no hue comes out louder than another. These tokens hold the oklch lightness and chroma pairs; the colors themselves only exist inside a hue scope. A scope set with hueScope also moves the accent family onto its hue (see accent). Outside one, hue-icon is the current text color, hue-tint is faint and hue-soft is tint and hue-fill is the current text color.\",\n \"tokens\": [\n {\n \"name\": \"hue-subtle-icon\",\n \"value\": {\n \"light\": \"0.53 0.1\",\n \"dark\": \"0.78 0.08\"\n },\n \"usage\": \"Icons and small marks on pages that mix several hues, such as one card per scope.\"\n },\n {\n \"name\": \"hue-subtle-tint\",\n \"value\": {\n \"light\": \"0.8 0.11\",\n \"dark\": \"0.7 0.09\"\n },\n \"usage\": \"Halftone cells and other decoration on pages that mix several hues.\"\n },\n {\n \"name\": \"hue-subtle-soft\",\n \"value\": {\n \"light\": \"0.97 0.02\",\n \"dark\": \"0.22 0.02\"\n },\n \"usage\": \"Soft fills on pages that mix several hues. Text on it stays ink.\"\n },\n {\n \"name\": \"hue-subtle-fill\",\n \"value\": {\n \"light\": \"0.72 0.12\",\n \"dark\": \"0.7 0.1\"\n },\n \"usage\": \"Solid icon fills (a filled star or dot) on pages that mix several hues. Mid lightness, so an ink or bone outline around it still reads.\"\n },\n {\n \"name\": \"hue-pop-icon\",\n \"value\": {\n \"light\": \"0.53 0.14\",\n \"dark\": \"0.8 0.12\"\n },\n \"usage\": \"Icons and small marks inside a single-hue scope, where only one hue is on screen.\"\n },\n {\n \"name\": \"hue-pop-tint\",\n \"value\": {\n \"light\": \"0.78 0.16\",\n \"dark\": \"0.74 0.14\"\n },\n \"usage\": \"Halftone cells and other decoration inside a single-hue scope.\"\n },\n {\n \"name\": \"hue-pop-soft\",\n \"value\": {\n \"light\": \"0.955 0.035\",\n \"dark\": \"0.25 0.035\"\n },\n \"usage\": \"Icon tiles and soft fills inside a single-hue scope. Text on it stays ink.\"\n },\n {\n \"name\": \"hue-pop-fill\",\n \"value\": {\n \"light\": \"0.72 0.16\",\n \"dark\": \"0.74 0.14\"\n },\n \"usage\": \"Solid icon fills inside a single-hue scope. Mid lightness, so an ink or bone outline around it still reads.\"\n }\n ]\n }\n}\n" } ] } diff --git a/r/layout.json b/r/layout.json index bd91c75e..12c5d232 100644 --- a/r/layout.json +++ b/r/layout.json @@ -24,7 +24,7 @@ "path": "src/components/cipher/ui/panes.module.css", "type": "registry:file", "target": "src/components/cipher/ui/panes.module.css", - "content": ".root {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n.columns {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: var(--cipher-size-pane-aside) minmax(0, 1fr);\n grid-template-rows: minmax(0, 1fr);\n min-height: 0;\n}\n.aside {\n display: flex;\n flex-direction: column;\n gap: var(--cipher-space-content-group);\n min-width: 0;\n min-height: 0;\n padding: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n overflow-y: auto;\n overscroll-behavior: contain;\n overflow-wrap: anywhere;\n scroll-padding-block: var(--cipher-focus-clearance);\n border-inline-end: var(--cipher-size-control-border) solid var(--cipher-line-soft);\n}\n.aside :global([data-slot=\"data-list\"]) > * {\n flex-direction: column;\n align-items: flex-start;\n gap: var(--cipher-space-2);\n}\n.aside :global([data-slot=\"data-list\"][data-density=\"compact\"]) > * {\n grid-template-columns: minmax(0, 1fr);\n}\n.aside :global([data-slot=\"data-list\"]) dt {\n max-width: none;\n}\n.aside :global([data-slot=\"data-list\"]) dd {\n text-align: start;\n}\n.identity {\n display: flex;\n flex-direction: column;\n gap: var(--cipher-space-8);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.identityText {\n display: flex;\n flex-direction: column;\n gap: var(--cipher-space-4);\n min-width: 0;\n}\n.badges {\n display: flex;\n flex-wrap: wrap;\n gap: var(--cipher-space-6);\n min-width: 0;\n}\n.main {\n --cipher-size-measure-field: 100%;\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n.root[data-narrow] > .columns {\n display: flex;\n flex-direction: column;\n}\n.root[data-narrow] > .columns > .identity {\n flex: 0 1 auto;\n max-height: 40%;\n overflow-y: auto;\n overscroll-behavior: contain;\n flex-direction: row;\n align-items: flex-start;\n gap: var(--cipher-space-12);\n padding: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n padding-inline-end: var(--cipher-pane-head-end, var(--cipher-pane-pad, var(--cipher-space-overlay-inset)));\n border-bottom: var(--cipher-size-control-border) solid var(--cipher-line-soft);\n}\n.root[data-narrow] > .columns > .main {\n flex: 1 1 auto;\n}\n.page {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: var(--cipher-space-content-group);\n min-height: 0;\n padding: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n overflow-y: auto;\n overscroll-behavior: contain;\n overflow-wrap: anywhere;\n}\n.tabs {\n flex: none;\n padding-inline: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n}\n.scroll {\n flex: 1 1 auto;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n.hidden {\n display: none;\n}\n" + "content": ".root {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n.columns {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: var(--cipher-size-pane-aside) minmax(0, 1fr);\n grid-template-rows: minmax(0, 1fr);\n min-height: 0;\n}\n.aside {\n display: flex;\n flex-direction: column;\n gap: var(--cipher-space-content-group);\n min-width: 0;\n min-height: 0;\n padding: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n overflow-y: auto;\n overscroll-behavior: contain;\n overflow-wrap: anywhere;\n scroll-padding-block: var(--cipher-focus-clearance);\n border-inline-end: var(--cipher-size-control-border) solid var(--cipher-line-soft);\n}\n.aside :global([data-slot=\"data-list\"]) > * {\n flex-direction: column;\n align-items: stretch;\n gap: var(--cipher-space-2);\n}\n.aside :global([data-slot=\"data-list\"][data-density=\"compact\"]) > * {\n grid-template-columns: minmax(0, 1fr);\n}\n.aside :global([data-slot=\"data-list\"]) dt {\n max-width: none;\n}\n.aside :global([data-slot=\"data-list\"]) dd {\n text-align: start;\n}\n.identity {\n display: flex;\n flex-direction: column;\n gap: var(--cipher-space-8);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.identityText {\n display: flex;\n flex-direction: column;\n gap: var(--cipher-space-4);\n min-width: 0;\n}\n.badges {\n display: flex;\n flex-wrap: wrap;\n gap: var(--cipher-space-6);\n min-width: 0;\n}\n.main {\n --cipher-size-measure-field: 100%;\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n.root[data-narrow] > .columns {\n display: flex;\n flex-direction: column;\n}\n.root[data-narrow] > .columns > .identity {\n flex: none;\n max-height: 40%;\n overflow-y: auto;\n overscroll-behavior: contain;\n flex-direction: row;\n align-items: flex-start;\n gap: var(--cipher-space-12);\n padding: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n padding-inline-end: var(\n --cipher-pane-head-end,\n var(--cipher-pane-pad, var(--cipher-space-overlay-inset))\n );\n border-bottom: var(--cipher-size-control-border) solid var(--cipher-line-soft);\n}\n.root[data-narrow] > .columns > .main {\n flex: 1 1 auto;\n}\n.page {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: var(--cipher-space-content-group);\n min-height: 0;\n padding: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n overflow-y: auto;\n overscroll-behavior: contain;\n overflow-wrap: anywhere;\n}\n.tabs {\n flex: none;\n padding-inline: var(--cipher-pane-pad, var(--cipher-space-overlay-inset));\n}\n.scroll {\n flex: 1 1 auto;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n.hidden {\n display: none;\n}\n" }, { "path": "src/components/cipher/ui/text.module.css", diff --git a/r/sheet.json b/r/sheet.json index af0c61bb..f11c948c 100644 --- a/r/sheet.json +++ b/r/sheet.json @@ -18,7 +18,7 @@ "path": "src/components/cipher/ui/sheet.tsx", "type": "registry:file", "target": "src/components/cipher/ui/sheet.tsx", - "content": "import * as React from \"react\";\nimport { Dialog as SheetPrimitive, Slot } from \"radix-ui\";\n\nimport { usePortalContainer } from \"../scope\";\nimport { DiscardChangesAlertDialog } from \"./alert-dialog\";\nimport { Button } from \"./button\";\nimport { Icon } from \"./icon\";\nimport { Panes, type PanesState } from \"./layout\";\nimport { Tabs, TabsList, TabsTrigger } from \"./tabs\";\n\nimport { FrameScope } from \"../lib/frame-context\";\nimport { focusFirstControl, formControlSelector } from \"../lib/initial-focus\";\nimport { OverlayPendingContext, useDismissGuard, useOverlayPending } from \"../lib/overlay-pending\";\nimport { flattenFragments, renderInForm, splitOverlaySections } from \"../lib/overlay-sections\";\nimport { useOwnedEscape } from \"../lib/use-owned-escape\";\nimport { cn } from \"../lib/utils\";\n\nimport overlay from \"./overlay.module.css\";\n\ntype SheetSize = \"sm\" | \"md\" | \"lg\" | \"xl\";\ntype SheetIntercept = {\n escape: () => boolean;\n close: (proceed: () => void) => boolean;\n};\ntype SheetViewLabels = { title?: string; description?: string };\nconst SheetHostContext = React.createContext<{\n setViewSize: (size: SheetSize | undefined) => void;\n setViewPending: (pending: boolean) => void;\n setViewLabels: (labels: SheetViewLabels | undefined) => void;\n intercept: React.RefObject;\n interceptClose: (event: { preventDefault: () => void }) => void;\n} | null>(null);\n\nfunction Sheet({ ...props }: React.ComponentProps) {\n return ;\n}\n\nfunction SheetTrigger({ ref, ...props }: React.ComponentProps) {\n return ;\n}\nSheetTrigger.displayName = \"SheetTrigger\";\n\nfunction SheetClose({\n ref,\n disabled,\n onClick,\n ...props\n}: React.ComponentProps) {\n const pending = useOverlayPending();\n const host = React.useContext(SheetHostContext);\n return (\n {\n onClick?.(event);\n if (!event.defaultPrevented) host?.interceptClose(event);\n }}\n {...props}\n />\n );\n}\nSheetClose.displayName = \"SheetClose\";\n\nfunction SheetPortal({ children, ...props }: React.ComponentProps) {\n return (\n \n {children}\n \n );\n}\n\nfunction SheetOverlay({\n className,\n ref,\n ...props\n}: React.ComponentProps) {\n return (\n \n );\n}\nSheetOverlay.displayName = \"SheetOverlay\";\n\nconst SheetLayout = ({\n head,\n scroll,\n footer\n}: {\n head: React.ReactNode;\n scroll: React.ReactNode;\n footer: React.ReactNode;\n}) => (\n <>\n {head &&
{head}
}\n {scroll && (\n \n {scroll}\n \n )}\n {footer}\n \n);\n\nfunction SheetContent({\n className,\n children,\n side = \"right\",\n size = \"sm\",\n showCloseButton = true,\n pending = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onInteractOutside,\n onOpenAutoFocus,\n ref,\n ...props\n}: React.ComponentPropsWithoutRef & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n size?: SheetSize;\n showCloseButton?: boolean;\n /** While true, Escape, outside clicks and every close control are blocked, so an in-flight save cannot be abandoned. */\n pending?: boolean;\n} & { ref?: React.Ref> }) {\n const escape = useOwnedEscape(ref, onEscapeKeyDown);\n const [viewPending, setViewPending] = React.useState(false);\n const blocked = pending || viewPending;\n const guard = useDismissGuard(blocked, {\n onEscapeKeyDown: escape.onEscapeKeyDown,\n onPointerDownOutside,\n onInteractOutside\n });\n const [viewSize, setViewSize] = React.useState();\n const [viewLabels, setViewLabels] = React.useState();\n const intercept = React.useRef(null);\n const closeRef = React.useRef(null);\n const closing = React.useRef(false);\n const host = React.useMemo(() => {\n const proceed = () => {\n closing.current = true;\n closeRef.current?.click();\n closing.current = false;\n };\n return {\n setViewSize,\n setViewPending,\n setViewLabels,\n intercept,\n interceptClose: (event: { preventDefault: () => void }) => {\n if (closing.current) return;\n if (intercept.current?.close(proceed)) event.preventDefault();\n }\n };\n }, []);\n const top = flattenFragments(children);\n const aside = top.find(\n (child): child is React.ReactElement =>\n React.isValidElement(child) && child.type === SheetAside\n );\n const rest = aside ? top.filter((child) => child !== aside) : children;\n const detailsTabId = React.useId();\n const detailsPanelId = React.useId();\n const sections = splitOverlaySections(\n rest,\n {\n header: SheetHeader,\n subheader: SheetSubheader,\n body: SheetBody,\n footer: SheetFooter\n },\n { pinHeader: true, lookThroughForm: true }\n );\n const content = sections\n ? renderInForm(\n sections.form,\n \"sheet-form\",\n 0 && sections.pinned}\n scroll={sections.scroll.length > 0 && sections.scroll}\n footer={sections.footer.length > 0 && sections.footer}\n />\n )\n : rest;\n return (\n \n \n {\n onOpenAutoFocus?.(event);\n focusFirstControl(event);\n }}\n {...props}\n {...(viewLabels?.title ? { \"aria-labelledby\": viewLabels.title } : {})}\n {...(viewLabels\n ? { \"aria-describedby\": viewLabels.description ?? props[\"aria-describedby\"] }\n : {})}\n {...guard}\n onEscapeKeyDown={(event) => {\n guard.onEscapeKeyDown(event);\n if (!event.defaultPrevented && intercept.current?.escape()) event.preventDefault();\n }}\n onInteractOutside={(event) => {\n guard.onInteractOutside(event);\n if (!event.defaultPrevented) host.interceptClose(event);\n }}\n >\n \n \n \n {aside ? (\n {aside.props.title},\n description: aside.props.description && (\n {aside.props.description}\n ),\n badges: aside.props.badges\n }}\n aside={aside.props.children}\n asideLabel={aside.props.label}\n asideClassName={aside.props.className}\n >\n {(panes) => (\n
\n {renderAsideMain({\n panes,\n aside: aside.props,\n sections,\n rest,\n detailsTabId,\n detailsPanelId\n })}\n
\n )}\n \n ) : (\n content\n )}\n {showCloseButton ? (\n \n \n \n Close\n \n \n ) : (\n
\n
\n
\n \n
\n );\n}\nSheetContent.displayName = \"SheetContent\";\n\n/**\n * The pinned layout for content that SheetContent cannot see: a view component that renders its own\n * header and footer, or a header wrapped in another component. header and footer are pinned and\n * children scroll between them, so pinning never depends on what the direct children are.\n */\nfunction SheetSections({\n header,\n footer,\n children,\n className,\n ref,\n ...props\n}: Omit, \"children\"> & {\n header?: React.ReactNode;\n footer?: React.ReactNode;\n children?: React.ReactNode;\n} & { ref?: React.Ref }) {\n return (\n
\n {footer}
}\n />\n \n );\n}\nSheetSections.displayName = \"SheetSections\";\n\ntype SheetAsideProps = {\n /** Names the aside landmark and, in the narrow layout, its tab. Defaults to Details. */\n label?: string;\n /**\n * Names the main pane's tab in the narrow layout when the sheet's header has no tabs of its own,\n * such as Configuration. Required because SheetAside cannot see the header; a header with tabs\n * keeps its own labels and this goes unused.\n */\n mainLabel: string;\n className?: string;\n media?: React.ReactNode;\n /** The sheet's title, rendered as its SheetTitle. */\n title: React.ReactNode;\n description?: React.ReactNode;\n badges?: React.ReactNode;\n /** The aside body, such as a summary DataList. */\n children?: React.ReactNode;\n};\n\n/**\n * The fixed left pane of a two-pane sheet. It declares the identity (media, title, description,\n * badges) and, as children, the body such as a summary DataList. As a direct child of SheetContent\n * (outside any form) it splits the sheet, and the header, tabs, body, footer or SheetViews beside\n * it form the main pane. Use it with size=\"xl\". Below size-pane-collapse the identity becomes the\n * fixed header and the body becomes the first header tab (label). A header with controlled Tabs\n * and a TabsList keeps its tabs after it; otherwise a second tab, mainLabel, holds the main pane.\n * The sheet opens on the main pane's tab either way. Only a header that is a direct child of\n * SheetContent merges its tabs: beside SheetViews or SheetSections the Details and mainLabel tabs\n * sit above their headers, so keep tabs out of those headers or give the sheet a direct header.\n */\nfunction SheetAside(_: SheetAsideProps): React.ReactNode {\n return null;\n}\nSheetAside.displayName = \"SheetAside\";\n\nconst DETAILS_TAB = \"cipher-sheet-aside-details\";\nconst MAIN_TAB = \"cipher-sheet-aside-main\";\n\ntype TabsElement = React.ReactElement>;\n\nconst withDetailsTab = (\n tabs: React.ReactNode,\n label: string,\n open: boolean,\n setOpen: (open: boolean) => void,\n triggerId: string,\n panelId: string\n) => {\n if (!React.isValidElement(tabs) || tabs.type !== Tabs) return null;\n const element = tabs as TabsElement;\n if (element.props.value === undefined || element.props.tabs) return null;\n let found = false;\n const children = React.Children.map(element.props.children, (child) => {\n if (!React.isValidElement<{ children?: React.ReactNode }>(child) || child.type !== TabsList)\n return child;\n found = true;\n return React.cloneElement(\n child,\n undefined,\n \n {label}\n ,\n child.props.children\n );\n });\n if (!found) return null;\n return React.cloneElement(\n element,\n {\n value: open ? DETAILS_TAB : element.props.value,\n onChange: undefined,\n onValueChange: (value: string) => {\n setOpen(value === DETAILS_TAB);\n if (value === DETAILS_TAB) return;\n element.props.onValueChange?.(value);\n element.props.onChange?.(value);\n }\n },\n children\n );\n};\n\ntype Sections = ReturnType;\n\nconst hide = (node: React.ReactNode, hidden: boolean) =>\n React.isValidElement<{ \"data-hidden\"?: boolean }>(node)\n ? React.cloneElement(node, { \"data-hidden\": hidden || undefined })\n : node;\n\n/**\n * The main pane beside a SheetAside, with the aside body as the first header tab while narrow.\n * Both widths render the same tree so the main pane's state survives a resize.\n */\nfunction renderAsideMain({\n panes,\n aside,\n sections,\n rest,\n detailsTabId,\n detailsPanelId\n}: {\n panes: PanesState;\n aside: SheetAsideProps;\n sections: Sections;\n rest: React.ReactNode;\n detailsTabId: string;\n detailsPanelId: string;\n}) {\n const { narrow, detailsOpen: open, setDetailsOpen } = panes;\n const label = aside.label ?? \"Details\";\n const mainTabId = detailsTabId + \"main\";\n const mainPanelId = detailsPanelId + \"main\";\n const pinned = sections?.pinned ?? [];\n const tabbedIndex = pinned.findIndex(\n (child) =>\n React.isValidElement<{ tabs?: React.ReactNode }>(child) &&\n child.type === SheetHeader &&\n Boolean(child.props.tabs)\n );\n const tabbedHeader = pinned[tabbedIndex] as\n React.ReactElement<{ tabs?: React.ReactNode }> | undefined;\n const tabs =\n narrow && tabbedHeader\n ? withDetailsTab(\n tabbedHeader.props.tabs,\n label,\n open,\n setDetailsOpen,\n detailsTabId,\n detailsPanelId\n )\n : null;\n const ownTabs = narrow && !tabs && (\n setDetailsOpen(value === DETAILS_TAB)}\n >\n \n \n {label}\n \n \n {aside.mainLabel}\n \n \n \n }\n />\n );\n const mainPanel = ownTabs\n ? { role: \"tabpanel\", id: mainPanelId, \"aria-labelledby\": mainTabId }\n : {};\n const details = narrow && (\n
\n \n {aside.children}\n \n
\n );\n if (!sections)\n return (\n <>\n {ownTabs &&
{ownTabs}
}\n {details}\n \n {rest}\n \n \n );\n const head = tabs\n ? pinned.map((child, index) =>\n index === tabbedIndex && tabbedHeader ? React.cloneElement(tabbedHeader, { tabs }) : child\n )\n : pinned;\n const footer = sections.footer.map((child) => hide(child, open));\n return renderInForm(\n sections.form,\n \"sheet-form\",\n <>\n {(head.length > 0 || ownTabs) && (\n
\n {head}\n {ownTabs}\n
\n )}\n {details}\n {sections.scroll.length > 0 && (\n 0 || undefined}\n data-hidden={open || undefined}\n {...mainPanel}\n >\n {sections.scroll}\n \n )}\n {footer}\n \n );\n}\n\ntype SheetViewProps = {\n id: string;\n /** Names the view in a child's breadcrumb, such as the folder a New alert view belongs to. */\n title: string;\n /** The view Back returns to. Defaults to the first view. */\n parent?: string;\n /** The first view's own header, usually a SheetHeader with the SheetTitle. Child views get a back control and a breadcrumb title instead. */\n header?: React.ReactNode;\n description?: React.ReactNode;\n /** A child view's header tabs, as SheetHeader `tabs`. The first view sets them on its own header. */\n tabs?: React.ReactNode;\n footer?: React.ReactNode;\n /** Widens the sheet while this view is shown. */\n size?: SheetSize;\n /** Back, Escape and the close button ask before leaving a view with unsaved changes. */\n dirty?: boolean;\n discardTitle?: string;\n discardDescription?: string;\n /** Right after a child view's breadcrumb title, such as its DocumentationLink. The first view sets them on its own SheetTitle. */\n badges?: React.ReactNode;\n children?: React.ReactNode;\n};\n\n/** One level of a SheetViews stack. SheetViews reads its props; it renders nothing on its own. */\nfunction SheetView(_: SheetViewProps): React.ReactNode {\n return null;\n}\nSheetView.displayName = \"SheetView\";\n\ntype SheetViewSlots = {\n subheader: HTMLElement | null;\n footer: HTMLElement | null;\n /** Leaves the view through its discard guard, as Back does. onLeave runs once leaving is accepted. */\n back: (onLeave?: () => void) => void;\n /** Leaves the view without asking, once its work is saved. */\n done: () => void;\n setPending: (pending: boolean) => void;\n};\nconst SheetViewContext = React.createContext(null);\nconst SheetViewDescribeContext = React.createContext<((id: string | undefined) => void) | null>(\n null\n);\n/** The view a component renders in, for MultiStep's view variant: its subheader and footer slots and its exits. */\nconst useSheetView = () => React.useContext(SheetViewContext);\n\nfunction SheetViewFrame({\n view,\n trail,\n active,\n onBack,\n onDone,\n backDisabled,\n setPending\n}: {\n view: SheetViewProps;\n trail: string[];\n active: boolean;\n onBack: (onLeave?: () => void) => void;\n onDone: () => void;\n backDisabled: boolean;\n setPending: (pending: boolean) => void;\n}) {\n const host = React.useContext(SheetHostContext);\n const titleId = React.useId();\n const descriptionId = React.useId();\n const labelled = active && trail.length > 0;\n const [describedBy, setDescribedBy] = React.useState();\n const ownDescription = labelled && view.description ? descriptionId : undefined;\n React.useLayoutEffect(() => {\n if (!host || !active) return undefined;\n host.setViewLabels({\n title: labelled ? titleId : undefined,\n description: ownDescription ?? describedBy\n });\n return () => host.setViewLabels(undefined);\n }, [host, active, labelled, titleId, ownDescription, describedBy]);\n const [subheader, setSubheader] = React.useState(null);\n const [footer, setFooter] = React.useState(null);\n const slots = React.useMemo(\n () => ({ subheader, footer, back: onBack, done: onDone, setPending }),\n [subheader, footer, onBack, onDone, setPending]\n );\n const header = trail.length ? (\n \n
\n onBack()}\n >\n \n \n

\n {trail.map((name) => (\n \n {name}\n \n {\" / \"}\n \n \n ))}\n {view.title}\n

\n {view.badges && (\n \n {view.badges}\n \n )}\n
\n {view.description && (\n

\n {view.description}\n

\n )}\n
\n ) : (\n view.header\n );\n return (\n \n \n \n \n {header}\n \n \n }\n scroll={view.children}\n footer={\n
\n {view.footer}\n
\n
\n }\n />\n \n \n
\n );\n}\n\n/**\n * A stack of views inside one SheetContent, such as a folder and a New alert flow opened from it.\n * The first SheetView is the base. Showing another view keeps the views under it mounted but hidden,\n * so their scroll and unsaved edits survive, and gives it a back control and a breadcrumb title.\n * Back, Escape, and Cancel on a nested MultiStep's first step return to the parent view; the close\n * button closes the whole sheet. Each asks first when a view it leaves is dirty.\n */\nfunction SheetViews({\n view,\n onViewChange,\n children\n}: {\n view: string;\n onViewChange: (view: string) => void;\n children: React.ReactNode;\n}) {\n const host = React.useContext(SheetHostContext);\n const views = React.Children.toArray(children)\n .filter(\n (child): child is React.ReactElement =>\n React.isValidElement(child) && child.type === SheetView\n )\n .map((child) => child.props);\n const base = views[0];\n const byId = new Map(views.map((entry) => [entry.id, entry]));\n const chain: SheetViewProps[] = [];\n let entry: SheetViewProps | undefined = byId.get(view) ?? base;\n while (entry && !chain.includes(entry)) {\n chain.unshift(entry);\n entry = entry.id === base?.id ? undefined : byId.get(entry.parent ?? base?.id ?? \"\");\n }\n const current = chain[chain.length - 1];\n const parentOf = chain[chain.length - 2];\n const [pending, setPending] = React.useState(false);\n const returnFocus = React.useRef(null);\n const [discard, setDiscard] = React.useState<{\n proceed: () => void;\n title?: string;\n description?: string;\n }>();\n const ask = (dirty: SheetViewProps | undefined, proceed: () => void) => {\n if (!dirty) {\n proceed();\n return;\n }\n returnFocus.current = null;\n setDiscard({ proceed, title: dirty.discardTitle, description: dirty.discardDescription });\n };\n const askEach = (dirty: SheetViewProps[], proceed: () => void) => {\n const [first, ...rest] = dirty;\n if (!first) proceed();\n else ask(first, () => askEach(rest, proceed));\n };\n const back = (onLeave?: () => void) => {\n if (pending || !parentOf || !current) return;\n ask(current.dirty ? current : undefined, () => {\n onLeave?.();\n onViewChange(parentOf.id);\n });\n };\n const done = () => {\n if (parentOf) onViewChange(parentOf.id);\n };\n const latest = React.useRef({ back, done });\n React.useLayoutEffect(() => {\n latest.current = { back, done };\n });\n const stableBack = React.useCallback((onLeave?: () => void) => latest.current.back(onLeave), []);\n const stableDone = React.useCallback(() => latest.current.done(), []);\n React.useLayoutEffect(() => {\n if (!host) return;\n host.intercept.current = {\n escape: () => {\n if (chain.length < 2) return false;\n back();\n return true;\n },\n close: (proceed) => {\n if (pending) return true;\n const dirty = chain\n .slice(1)\n .filter((entry) => entry.dirty)\n .reverse();\n if (!dirty.length) return false;\n askEach(dirty, proceed);\n return true;\n }\n };\n });\n React.useLayoutEffect(() => {\n if (!host) return undefined;\n host.setViewSize(chain.length > 1 ? current?.size : undefined);\n return () => host.setViewSize(undefined);\n }, [host, chain.length, current?.size]);\n React.useLayoutEffect(\n () => () => {\n if (host) host.intercept.current = null;\n },\n [host]\n );\n React.useLayoutEffect(() => {\n if (!host) return undefined;\n host.setViewPending(pending);\n return () => host.setViewPending(false);\n }, [host, pending]);\n const frames = React.useRef(new Map());\n const openers = React.useRef(new Map());\n const shown = React.useRef(current?.id);\n React.useLayoutEffect(() => {\n const previous = shown.current;\n shown.current = current?.id;\n if (!current || previous === current.id) return;\n if (previous !== undefined && !chain.some((entry) => entry.id === previous)) {\n const opener = openers.current.get(previous);\n openers.current.delete(previous);\n if (opener?.isConnected) {\n returnFocus.current = opener;\n opener.focus();\n return;\n }\n } else if (document.activeElement instanceof HTMLElement) {\n openers.current.set(current.id, document.activeElement);\n }\n const frame = frames.current.get(current.id);\n const target =\n frame?.querySelector('[data-slot=\"sheet-scroll\"] ' + formControlSelector) ??\n frame?.querySelector(\"button, [href], [tabindex]:not([tabindex='-1'])\");\n if (!target) return;\n returnFocus.current = target;\n target.focus({ preventScroll: true });\n });\n return (\n
\n {chain.map((entry, index) => (\n {\n if (node) frames.current.set(entry.id, node);\n else frames.current.delete(entry.id);\n }}\n >\n item.title)}\n active={entry === current}\n onBack={stableBack}\n onDone={stableDone}\n backDisabled={pending}\n setPending={setPending}\n />\n
\n ))}\n {\n if (!open) setDiscard(undefined);\n }}\n onDiscard={() => {\n const proceed = discard?.proceed;\n setDiscard(undefined);\n proceed?.();\n }}\n title={discard?.title}\n description={discard?.description}\n onCloseAutoFocus={(event) => {\n const target = returnFocus.current;\n returnFocus.current = null;\n if (!target?.isConnected) return;\n event.preventDefault();\n target.focus();\n }}\n />\n \n );\n}\nSheetViews.displayName = \"SheetViews\";\n\nfunction SheetHeader({\n className,\n tabs,\n children,\n ref,\n ...props\n}: React.ComponentProps<\"div\"> & {\n /** Underline Tabs that sit on the header's bottom rule, so the active underline lands on it. Pass a controlled Tabs without content and render the panel in the body, giving it role=\"tabpanel\" and linking it to the active trigger. */\n tabs?: React.ReactNode;\n}) {\n const titled = React.Children.toArray(children).length > 0;\n return (\n \n {children}\n {tabs &&
{tabs}
}\n \n );\n}\nSheetHeader.displayName = \"SheetHeader\";\n\nfunction SheetSubheader({\n className,\n ref,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\"> & { ref?: React.Ref }) {\n return
;\n}\nSheetSubheader.displayName = \"SheetSubheader\";\n\nfunction SheetBody({\n className,\n ref,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\"> & { ref?: React.Ref }) {\n return
;\n}\nSheetBody.displayName = \"SheetBody\";\n\nfunction SheetFooter({ className, ref, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n );\n}\nSheetFooter.displayName = \"SheetFooter\";\n\nfunction SheetTitle({\n className,\n ref,\n badges,\n ...props\n}: React.ComponentProps & {\n /** Right after the title: status badges, and the DocumentationLink so it stays paired with the title. */\n badges?: React.ReactNode;\n}) {\n const title = (\n \n );\n if (!badges) return title;\n return (\n
\n {title}\n \n {badges}\n \n
\n );\n}\nSheetTitle.displayName = \"SheetTitle\";\n\nfunction SheetDescription({\n className,\n ref,\n asChild,\n id,\n ...props\n}: React.ComponentProps) {\n const describe = React.useContext(SheetViewDescribeContext);\n const ownId = React.useId();\n const viewId = id ?? ownId;\n React.useLayoutEffect(() => {\n if (!describe) return undefined;\n describe(viewId);\n return () => describe(undefined);\n }, [describe, viewId]);\n if (describe) {\n const Description = asChild ? Slot.Root : \"p\";\n return (\n \n );\n }\n return (\n \n );\n}\nSheetDescription.displayName = \"SheetDescription\";\n\nexport {\n Sheet,\n SheetAside,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetSections,\n SheetSubheader,\n SheetTitle,\n SheetTrigger,\n SheetView,\n SheetViews,\n useSheetView\n};\n" + "content": "import * as React from \"react\";\nimport { Dialog as SheetPrimitive, Slot } from \"radix-ui\";\n\nimport { usePortalContainer } from \"../scope\";\nimport { DiscardChangesAlertDialog } from \"./alert-dialog\";\nimport { Button } from \"./button\";\nimport { Icon } from \"./icon\";\nimport { Panes, type PanesState } from \"./layout\";\nimport { Tabs, TabsList, TabsTrigger } from \"./tabs\";\n\nimport { FrameScope } from \"../lib/frame-context\";\nimport { focusFirstControl, formControlSelector } from \"../lib/initial-focus\";\nimport { OverlayPendingContext, useDismissGuard, useOverlayPending } from \"../lib/overlay-pending\";\nimport { flattenFragments, renderInForm, splitOverlaySections } from \"../lib/overlay-sections\";\nimport { useOwnedEscape } from \"../lib/use-owned-escape\";\nimport { cn } from \"../lib/utils\";\n\nimport overlay from \"./overlay.module.css\";\n\ntype SheetSize = \"sm\" | \"md\" | \"lg\" | \"xl\";\ntype SheetIntercept = {\n escape: () => boolean;\n close: (proceed: () => void) => boolean;\n};\ntype SheetViewLabels = { title?: string; description?: string };\nconst SheetHostContext = React.createContext<{\n setViewSize: (size: SheetSize | undefined) => void;\n setViewPending: (pending: boolean) => void;\n setViewLabels: (labels: SheetViewLabels | undefined) => void;\n intercept: React.RefObject;\n interceptClose: (event: { preventDefault: () => void }) => void;\n} | null>(null);\n\nfunction Sheet({ ...props }: React.ComponentProps) {\n return ;\n}\n\nfunction SheetTrigger({ ref, ...props }: React.ComponentProps) {\n return ;\n}\nSheetTrigger.displayName = \"SheetTrigger\";\n\nfunction SheetClose({\n ref,\n disabled,\n onClick,\n ...props\n}: React.ComponentProps) {\n const pending = useOverlayPending();\n const host = React.useContext(SheetHostContext);\n return (\n {\n onClick?.(event);\n if (!event.defaultPrevented) host?.interceptClose(event);\n }}\n {...props}\n />\n );\n}\nSheetClose.displayName = \"SheetClose\";\n\nfunction SheetPortal({ children, ...props }: React.ComponentProps) {\n return (\n \n {children}\n \n );\n}\n\nfunction SheetOverlay({\n className,\n ref,\n ...props\n}: React.ComponentProps) {\n return (\n \n );\n}\nSheetOverlay.displayName = \"SheetOverlay\";\n\nconst SheetLayout = ({\n head,\n scroll,\n footer\n}: {\n head: React.ReactNode;\n scroll: React.ReactNode;\n footer: React.ReactNode;\n}) => (\n <>\n {head &&
{head}
}\n {scroll && (\n \n {scroll}\n
\n )}\n {footer}\n \n);\n\nfunction SheetContent({\n className,\n children,\n side = \"right\",\n size = \"sm\",\n showCloseButton = true,\n pending = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onInteractOutside,\n onOpenAutoFocus,\n ref,\n ...props\n}: React.ComponentPropsWithoutRef & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n size?: SheetSize;\n showCloseButton?: boolean;\n /** While true, Escape, outside clicks and every close control are blocked, so an in-flight save cannot be abandoned. */\n pending?: boolean;\n} & { ref?: React.Ref> }) {\n const escape = useOwnedEscape(ref, onEscapeKeyDown);\n const [viewPending, setViewPending] = React.useState(false);\n const blocked = pending || viewPending;\n const guard = useDismissGuard(blocked, {\n onEscapeKeyDown: escape.onEscapeKeyDown,\n onPointerDownOutside,\n onInteractOutside\n });\n const [viewSize, setViewSize] = React.useState();\n const [viewLabels, setViewLabels] = React.useState();\n const intercept = React.useRef(null);\n const closeRef = React.useRef(null);\n const closing = React.useRef(false);\n const host = React.useMemo(() => {\n const proceed = () => {\n closing.current = true;\n closeRef.current?.click();\n closing.current = false;\n };\n return {\n setViewSize,\n setViewPending,\n setViewLabels,\n intercept,\n interceptClose: (event: { preventDefault: () => void }) => {\n if (closing.current) return;\n if (intercept.current?.close(proceed)) event.preventDefault();\n }\n };\n }, []);\n const top = flattenFragments(children);\n const aside = top.find(\n (child): child is React.ReactElement =>\n React.isValidElement(child) && child.type === SheetAside\n );\n const rest = aside ? top.filter((child) => child !== aside) : children;\n const detailsTabId = React.useId();\n const detailsPanelId = React.useId();\n const sections = splitOverlaySections(\n rest,\n {\n header: SheetHeader,\n subheader: SheetSubheader,\n body: SheetBody,\n footer: SheetFooter\n },\n { pinHeader: true, lookThroughForm: true }\n );\n const content = sections\n ? renderInForm(\n sections.form,\n \"sheet-form\",\n 0 && sections.pinned}\n scroll={sections.scroll.length > 0 && sections.scroll}\n footer={sections.footer.length > 0 && sections.footer}\n />\n )\n : rest;\n return (\n \n \n {\n onOpenAutoFocus?.(event);\n focusFirstControl(event, aside ? '[data-slot=\"sheet-main\"]' : undefined);\n }}\n {...props}\n {...(viewLabels?.title ? { \"aria-labelledby\": viewLabels.title } : {})}\n {...(viewLabels\n ? { \"aria-describedby\": viewLabels.description ?? props[\"aria-describedby\"] }\n : {})}\n {...guard}\n onEscapeKeyDown={(event) => {\n guard.onEscapeKeyDown(event);\n if (!event.defaultPrevented && intercept.current?.escape()) event.preventDefault();\n }}\n onInteractOutside={(event) => {\n guard.onInteractOutside(event);\n if (!event.defaultPrevented) host.interceptClose(event);\n }}\n >\n \n \n \n {aside ? (\n {aside.props.title},\n description: aside.props.description && (\n {aside.props.description}\n ),\n badges: aside.props.badges\n }}\n aside={aside.props.children}\n asideLabel={aside.props.label}\n asideClassName={aside.props.className}\n >\n {(panes) => (\n
\n {renderAsideMain({\n panes,\n aside: aside.props,\n sections,\n rest,\n detailsTabId,\n detailsPanelId\n })}\n
\n )}\n \n ) : (\n content\n )}\n {showCloseButton ? (\n \n \n \n Close\n \n \n ) : (\n
\n
\n
\n \n
\n );\n}\nSheetContent.displayName = \"SheetContent\";\n\n/**\n * The pinned layout for content that SheetContent cannot see: a view component that renders its own\n * header and footer, or a header wrapped in another component. header and footer are pinned and\n * children scroll between them, so pinning never depends on what the direct children are.\n */\nfunction SheetSections({\n header,\n footer,\n children,\n className,\n ref,\n ...props\n}: Omit, \"children\"> & {\n header?: React.ReactNode;\n footer?: React.ReactNode;\n children?: React.ReactNode;\n} & { ref?: React.Ref }) {\n return (\n
\n {footer}
}\n />\n
\n );\n}\nSheetSections.displayName = \"SheetSections\";\n\ntype SheetAsideProps = {\n /** Names the aside landmark and, in the narrow layout, its tab. Defaults to Details. */\n label?: string;\n /**\n * Names the main pane's tab in the narrow layout when the sheet's header has no tabs of its own,\n * such as Configuration. Required because SheetAside cannot see the header; a header with tabs\n * keeps its own labels and this goes unused.\n */\n mainLabel: string;\n className?: string;\n media?: React.ReactNode;\n /** The sheet's title, rendered as its SheetTitle. */\n title: React.ReactNode;\n description?: React.ReactNode;\n badges?: React.ReactNode;\n /** The aside body, such as a summary DataList. */\n children?: React.ReactNode;\n};\n\n/**\n * The fixed left pane of a two-pane sheet. It declares the identity (media, title, description,\n * badges) and, as children, the body such as a summary DataList. As a direct child of SheetContent\n * (outside any form) it splits the sheet, and the header, tabs, body, footer or SheetViews beside\n * it form the main pane. Use it with size=\"xl\". Below size-pane-collapse the identity becomes the\n * fixed header and the body becomes the first header tab (label). A header with controlled Tabs\n * and a TabsList keeps its tabs after it; otherwise a second tab, mainLabel, holds the main pane.\n * The sheet opens on the main pane's tab either way. Only a header that is a direct child of\n * SheetContent merges its tabs: beside SheetViews or SheetSections the Details and mainLabel tabs\n * sit above their headers, so keep tabs out of those headers or give the sheet a direct header.\n */\nfunction SheetAside(_: SheetAsideProps): React.ReactNode {\n return null;\n}\nSheetAside.displayName = \"SheetAside\";\n\nconst DETAILS_TAB = \"cipher-sheet-aside-details\";\nconst MAIN_TAB = \"cipher-sheet-aside-main\";\n\ntype TabsElement = React.ReactElement>;\n\nconst withDetailsTab = (\n tabs: React.ReactNode,\n label: string,\n open: boolean,\n setOpen: (open: boolean) => void,\n triggerId: string,\n panelId: string\n) => {\n if (!React.isValidElement(tabs) || tabs.type !== Tabs) return null;\n const element = tabs as TabsElement;\n if (element.props.value === undefined || element.props.tabs) return null;\n let found = false;\n const children = React.Children.map(element.props.children, (child) => {\n if (!React.isValidElement<{ children?: React.ReactNode }>(child) || child.type !== TabsList)\n return child;\n found = true;\n return React.cloneElement(\n child,\n undefined,\n \n {label}\n ,\n child.props.children\n );\n });\n if (!found) return null;\n return React.cloneElement(\n element,\n {\n value: open ? DETAILS_TAB : element.props.value,\n onChange: undefined,\n onValueChange: (value: string) => {\n setOpen(value === DETAILS_TAB);\n if (value === DETAILS_TAB) return;\n element.props.onValueChange?.(value);\n element.props.onChange?.(value);\n }\n },\n children\n );\n};\n\ntype Sections = ReturnType;\n\nconst hide = (node: React.ReactNode, hidden: boolean) =>\n React.isValidElement<{ \"data-hidden\"?: boolean }>(node)\n ? React.cloneElement(node, { \"data-hidden\": hidden || undefined })\n : node;\n\n/**\n * The main pane beside a SheetAside, with the aside body as the first header tab while narrow.\n * Both widths render the same tree so the main pane's state survives a resize.\n */\nfunction renderAsideMain({\n panes,\n aside,\n sections,\n rest,\n detailsTabId,\n detailsPanelId\n}: {\n panes: PanesState;\n aside: SheetAsideProps;\n sections: Sections;\n rest: React.ReactNode;\n detailsTabId: string;\n detailsPanelId: string;\n}) {\n const { narrow, detailsOpen: open, setDetailsOpen } = panes;\n const label = aside.label ?? \"Details\";\n const mainTabId = detailsTabId + \"main\";\n const mainPanelId = detailsPanelId + \"main\";\n const pinned = sections?.pinned ?? [];\n const tabbedIndex = pinned.findIndex(\n (child) =>\n React.isValidElement<{ tabs?: React.ReactNode }>(child) &&\n child.type === SheetHeader &&\n Boolean(child.props.tabs)\n );\n const tabbedHeader = pinned[tabbedIndex] as\n React.ReactElement<{ tabs?: React.ReactNode }> | undefined;\n const tabs =\n narrow && tabbedHeader\n ? withDetailsTab(\n tabbedHeader.props.tabs,\n label,\n open,\n setDetailsOpen,\n detailsTabId,\n detailsPanelId\n )\n : null;\n const ownTabs = narrow && !tabs && (\n setDetailsOpen(value === DETAILS_TAB)}\n >\n \n \n {label}\n \n \n {aside.mainLabel}\n \n \n \n }\n />\n );\n const mainPanel = ownTabs\n ? { role: \"tabpanel\", id: mainPanelId, \"aria-labelledby\": mainTabId }\n : {};\n const details = narrow && (\n
\n \n {aside.children}\n \n
\n );\n if (!sections)\n return (\n <>\n {ownTabs &&
{ownTabs}
}\n {details}\n \n {rest}\n \n \n );\n const head = tabs\n ? pinned.map((child, index) =>\n index === tabbedIndex && tabbedHeader ? React.cloneElement(tabbedHeader, { tabs }) : child\n )\n : pinned;\n const footer = sections.footer.map((child) => hide(child, open));\n return renderInForm(\n sections.form,\n \"sheet-form\",\n <>\n {(head.length > 0 || ownTabs) && (\n
\n {head}\n {ownTabs}\n
\n )}\n {details}\n {sections.scroll.length > 0 && (\n 0 || undefined}\n data-hidden={open || undefined}\n {...mainPanel}\n >\n {sections.scroll}\n \n )}\n {footer}\n \n );\n}\n\ntype SheetViewProps = {\n id: string;\n /** Names the view in a child's breadcrumb, such as the folder a New alert view belongs to. */\n title: string;\n /** The view Back returns to. Defaults to the first view. */\n parent?: string;\n /** The first view's own header, usually a SheetHeader with the SheetTitle. Child views get a back control and a breadcrumb title instead. */\n header?: React.ReactNode;\n description?: React.ReactNode;\n /** A child view's header tabs, as SheetHeader `tabs`. The first view sets them on its own header. */\n tabs?: React.ReactNode;\n footer?: React.ReactNode;\n /** Widens the sheet while this view is shown. */\n size?: SheetSize;\n /** Back, Escape and the close button ask before leaving a view with unsaved changes. */\n dirty?: boolean;\n discardTitle?: string;\n discardDescription?: string;\n /** Right after a child view's breadcrumb title, such as its DocumentationLink. The first view sets them on its own SheetTitle. */\n badges?: React.ReactNode;\n children?: React.ReactNode;\n};\n\n/** One level of a SheetViews stack. SheetViews reads its props; it renders nothing on its own. */\nfunction SheetView(_: SheetViewProps): React.ReactNode {\n return null;\n}\nSheetView.displayName = \"SheetView\";\n\ntype SheetViewSlots = {\n subheader: HTMLElement | null;\n footer: HTMLElement | null;\n /** Leaves the view through its discard guard, as Back does. onLeave runs once leaving is accepted. */\n back: (onLeave?: () => void) => void;\n /** Leaves the view without asking, once its work is saved. */\n done: () => void;\n setPending: (pending: boolean) => void;\n};\nconst SheetViewContext = React.createContext(null);\nconst SheetViewDescribeContext = React.createContext<((id: string | undefined) => void) | null>(\n null\n);\n/** The view a component renders in, for MultiStep's view variant: its subheader and footer slots and its exits. */\nconst useSheetView = () => React.useContext(SheetViewContext);\n\nfunction SheetViewFrame({\n view,\n trail,\n active,\n onBack,\n onDone,\n backDisabled,\n setPending\n}: {\n view: SheetViewProps;\n trail: string[];\n active: boolean;\n onBack: (onLeave?: () => void) => void;\n onDone: () => void;\n backDisabled: boolean;\n setPending: (pending: boolean) => void;\n}) {\n const host = React.useContext(SheetHostContext);\n const titleId = React.useId();\n const descriptionId = React.useId();\n const labelled = active && trail.length > 0;\n const [describedBy, setDescribedBy] = React.useState();\n const ownDescription = labelled && view.description ? descriptionId : undefined;\n React.useLayoutEffect(() => {\n if (!host || !active) return undefined;\n host.setViewLabels({\n title: labelled ? titleId : undefined,\n description: ownDescription ?? describedBy\n });\n return () => host.setViewLabels(undefined);\n }, [host, active, labelled, titleId, ownDescription, describedBy]);\n const [subheader, setSubheader] = React.useState(null);\n const [footer, setFooter] = React.useState(null);\n const slots = React.useMemo(\n () => ({ subheader, footer, back: onBack, done: onDone, setPending }),\n [subheader, footer, onBack, onDone, setPending]\n );\n const header = trail.length ? (\n \n
\n onBack()}\n >\n \n \n

\n {trail.map((name) => (\n \n {name}\n \n {\" / \"}\n \n \n ))}\n {view.title}\n

\n {view.badges && (\n \n {view.badges}\n \n )}\n
\n {view.description && (\n

\n {view.description}\n

\n )}\n
\n ) : (\n view.header\n );\n return (\n \n \n \n \n {header}\n \n \n }\n scroll={view.children}\n footer={\n
\n {view.footer}\n
\n
\n }\n />\n \n \n
\n );\n}\n\n/**\n * A stack of views inside one SheetContent, such as a folder and a New alert flow opened from it.\n * The first SheetView is the base. Showing another view keeps the views under it mounted but hidden,\n * so their scroll and unsaved edits survive, and gives it a back control and a breadcrumb title.\n * Back, Escape, and Cancel on a nested MultiStep's first step return to the parent view; the close\n * button closes the whole sheet. Each asks first when a view it leaves is dirty.\n */\nfunction SheetViews({\n view,\n onViewChange,\n children\n}: {\n view: string;\n onViewChange: (view: string) => void;\n children: React.ReactNode;\n}) {\n const host = React.useContext(SheetHostContext);\n const views = React.Children.toArray(children)\n .filter(\n (child): child is React.ReactElement =>\n React.isValidElement(child) && child.type === SheetView\n )\n .map((child) => child.props);\n const base = views[0];\n const byId = new Map(views.map((entry) => [entry.id, entry]));\n const chain: SheetViewProps[] = [];\n let entry: SheetViewProps | undefined = byId.get(view) ?? base;\n while (entry && !chain.includes(entry)) {\n chain.unshift(entry);\n entry = entry.id === base?.id ? undefined : byId.get(entry.parent ?? base?.id ?? \"\");\n }\n const current = chain[chain.length - 1];\n const parentOf = chain[chain.length - 2];\n const [pending, setPending] = React.useState(false);\n const returnFocus = React.useRef(null);\n const [discard, setDiscard] = React.useState<{\n proceed: () => void;\n title?: string;\n description?: string;\n }>();\n const ask = (dirty: SheetViewProps | undefined, proceed: () => void) => {\n if (!dirty) {\n proceed();\n return;\n }\n returnFocus.current = null;\n setDiscard({ proceed, title: dirty.discardTitle, description: dirty.discardDescription });\n };\n const askEach = (dirty: SheetViewProps[], proceed: () => void) => {\n const [first, ...rest] = dirty;\n if (!first) proceed();\n else ask(first, () => askEach(rest, proceed));\n };\n const back = (onLeave?: () => void) => {\n if (pending || !parentOf || !current) return;\n ask(current.dirty ? current : undefined, () => {\n onLeave?.();\n onViewChange(parentOf.id);\n });\n };\n const done = () => {\n if (parentOf) onViewChange(parentOf.id);\n };\n const latest = React.useRef({ back, done });\n React.useLayoutEffect(() => {\n latest.current = { back, done };\n });\n const stableBack = React.useCallback((onLeave?: () => void) => latest.current.back(onLeave), []);\n const stableDone = React.useCallback(() => latest.current.done(), []);\n React.useLayoutEffect(() => {\n if (!host) return;\n host.intercept.current = {\n escape: () => {\n if (chain.length < 2) return false;\n back();\n return true;\n },\n close: (proceed) => {\n if (pending) return true;\n const dirty = chain\n .slice(1)\n .filter((entry) => entry.dirty)\n .reverse();\n if (!dirty.length) return false;\n askEach(dirty, proceed);\n return true;\n }\n };\n });\n React.useLayoutEffect(() => {\n if (!host) return undefined;\n host.setViewSize(chain.length > 1 ? current?.size : undefined);\n return () => host.setViewSize(undefined);\n }, [host, chain.length, current?.size]);\n React.useLayoutEffect(\n () => () => {\n if (host) host.intercept.current = null;\n },\n [host]\n );\n React.useLayoutEffect(() => {\n if (!host) return undefined;\n host.setViewPending(pending);\n return () => host.setViewPending(false);\n }, [host, pending]);\n const frames = React.useRef(new Map());\n const openers = React.useRef(new Map());\n const shown = React.useRef(current?.id);\n React.useLayoutEffect(() => {\n const previous = shown.current;\n shown.current = current?.id;\n if (!current || previous === current.id) return;\n if (previous !== undefined && !chain.some((entry) => entry.id === previous)) {\n const opener = openers.current.get(previous);\n openers.current.delete(previous);\n if (opener?.isConnected) {\n returnFocus.current = opener;\n opener.focus();\n return;\n }\n } else if (document.activeElement instanceof HTMLElement) {\n openers.current.set(current.id, document.activeElement);\n }\n const frame = frames.current.get(current.id);\n const target =\n frame?.querySelector('[data-slot=\"sheet-scroll\"] ' + formControlSelector) ??\n frame?.querySelector(\"button, [href], [tabindex]:not([tabindex='-1'])\");\n if (!target) return;\n returnFocus.current = target;\n target.focus({ preventScroll: true });\n });\n return (\n
\n {chain.map((entry, index) => (\n {\n if (node) frames.current.set(entry.id, node);\n else frames.current.delete(entry.id);\n }}\n >\n item.title)}\n active={entry === current}\n onBack={stableBack}\n onDone={stableDone}\n backDisabled={pending}\n setPending={setPending}\n />\n
\n ))}\n {\n if (!open) setDiscard(undefined);\n }}\n onDiscard={() => {\n const proceed = discard?.proceed;\n setDiscard(undefined);\n proceed?.();\n }}\n title={discard?.title}\n description={discard?.description}\n onCloseAutoFocus={(event) => {\n const target = returnFocus.current;\n returnFocus.current = null;\n if (!target?.isConnected) return;\n event.preventDefault();\n target.focus();\n }}\n />\n \n );\n}\nSheetViews.displayName = \"SheetViews\";\n\nfunction SheetHeader({\n className,\n tabs,\n children,\n ref,\n ...props\n}: React.ComponentProps<\"div\"> & {\n /** Underline Tabs that sit on the header's bottom rule, so the active underline lands on it. Pass a controlled Tabs without content and render the panel in the body, giving it role=\"tabpanel\" and linking it to the active trigger. */\n tabs?: React.ReactNode;\n}) {\n const titled = React.Children.toArray(children).length > 0;\n return (\n \n {children}\n {tabs &&
{tabs}
}\n \n );\n}\nSheetHeader.displayName = \"SheetHeader\";\n\nfunction SheetSubheader({\n className,\n ref,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\"> & { ref?: React.Ref }) {\n return
;\n}\nSheetSubheader.displayName = \"SheetSubheader\";\n\nfunction SheetBody({\n className,\n ref,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\"> & { ref?: React.Ref }) {\n return
;\n}\nSheetBody.displayName = \"SheetBody\";\n\nfunction SheetFooter({ className, ref, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n );\n}\nSheetFooter.displayName = \"SheetFooter\";\n\nfunction SheetTitle({\n className,\n ref,\n badges,\n ...props\n}: React.ComponentProps & {\n /** Right after the title: status badges, and the DocumentationLink so it stays paired with the title. */\n badges?: React.ReactNode;\n}) {\n const title = (\n \n );\n if (!badges) return title;\n return (\n
\n {title}\n \n {badges}\n \n
\n );\n}\nSheetTitle.displayName = \"SheetTitle\";\n\nfunction SheetDescription({\n className,\n ref,\n asChild,\n id,\n ...props\n}: React.ComponentProps) {\n const describe = React.useContext(SheetViewDescribeContext);\n const ownId = React.useId();\n const viewId = id ?? ownId;\n React.useLayoutEffect(() => {\n if (!describe) return undefined;\n describe(viewId);\n return () => describe(undefined);\n }, [describe, viewId]);\n if (describe) {\n const Description = asChild ? Slot.Root : \"p\";\n return (\n \n );\n }\n return (\n \n );\n}\nSheetDescription.displayName = \"SheetDescription\";\n\nexport {\n Sheet,\n SheetAside,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetSections,\n SheetSubheader,\n SheetTitle,\n SheetTrigger,\n SheetView,\n SheetViews,\n useSheetView\n};\n" }, { "path": "src/components/cipher/ui/overlay.module.css", diff --git a/site/src/examples/sheet/two-pane.tsx b/site/src/examples/sheet/two-pane.tsx index 9aebe29c..d1d5ca4d 100644 --- a/site/src/examples/sheet/two-pane.tsx +++ b/site/src/examples/sheet/two-pane.tsx @@ -7,6 +7,7 @@ import { Input } from "@infisical/cipher/ui/input"; import { Media } from "@infisical/cipher/ui/item"; import { Stack } from "@infisical/cipher/ui/layout"; import { DataList } from "@infisical/cipher/ui/list"; +import { MiddleTruncate } from "@infisical/cipher/ui/middle-truncate"; import * as UI from "@infisical/cipher/ui/sheet"; import { Switch } from "@infisical/cipher/ui/switch"; import { Tabs, TabsList, TabsTrigger } from "@infisical/cipher/ui/tabs"; @@ -60,8 +61,13 @@ const AccountSheet = ({ variant="props" items={[ ["Description", "Writer endpoint for the orders service"], - ["Template", "production-postgres"], - ["Host", mono(account.host)], + [ + "Template", + + ], + ["Host", ], ["Port", mono(account.port)], ["Database", mono(account.database)], ["SSL", ssl ? "Enabled" : "Disabled"], diff --git a/src/lib/initial-focus.ts b/src/lib/initial-focus.ts index d501e756..25219656 100644 --- a/src/lib/initial-focus.ts +++ b/src/lib/initial-focus.ts @@ -15,14 +15,18 @@ const candidate = (element: HTMLElement) => /** * An onOpenAutoFocus handler for overlays: focus lands on the first form control, else the first * tabbable element that is not marked with skipAutoFocus, so a help button beside the first label - * never takes focus and opens its tooltip. + * never takes focus and opens its tooltip. With prefer, the first control inside that element wins, + * such as a two-pane sheet's main pane over its aside. */ -export function focusFirstControl(event: Event) { +export function focusFirstControl(event: Event, prefer?: string) { if (event.defaultPrevented || !(event.target instanceof HTMLElement)) return; - const container = event.target; - const find = (selector: string) => + const root = event.target; + const preferred = prefer ? root.querySelector(prefer) : null; + const find = (container: HTMLElement, selector: string) => Array.from(container.querySelectorAll(selector)).find(candidate); - const target = find(formControlSelector) ?? find(tabbableSelector); + const first = (container: HTMLElement) => + find(container, formControlSelector) ?? find(container, tabbableSelector); + const target = (preferred && first(preferred)) ?? first(root); if (!target) return; event.preventDefault(); target.focus({ preventScroll: true }); diff --git a/src/tokens.generated.css b/src/tokens.generated.css index 8a2330d1..7b454ede 100644 --- a/src/tokens.generated.css +++ b/src/tokens.generated.css @@ -108,7 +108,7 @@ --cipher-size-measure-prose: 65ch; --cipher-size-sidecar: 384px; --cipher-size-pane-aside: 320px; - --cipher-size-pane-collapse: 720px; + --cipher-size-pane-collapse: 880px; --cipher-size-sidecar-collapse: 896px; --cipher-size-data-list-term: 128px; --cipher-size-data-list-row: var(--cipher-size-control-sm); diff --git a/src/tokens.json b/src/tokens.json index 298ef8b5..fab58aa7 100644 --- a/src/tokens.json +++ b/src/tokens.json @@ -1703,8 +1703,8 @@ }, { "name": "size-pane-collapse", - "value": "720px", - "usage": "Panes width below which the aside stops sitting beside the main pane. Its identity (media, title, description and badges) becomes a fixed header with tabs on its bottom rule: Details first, then the header's own tabs, or the main pane's label when there are none. It opens on the main pane's tab. Measured on the Panes itself, so a 672px sheet or a phone collapses and a 1024px sheet splits." + "value": "880px", + "usage": "Panes width below which the aside stops sitting beside the main pane: size-pane-aside plus a 560px main pane, so a table beside the aside keeps its columns. Its identity (media, title, description and badges) becomes a fixed header with tabs on its bottom rule: Details first, then the header's own tabs, or the main pane's label when there are none. It opens on the main pane's tab. Measured on the Panes itself, so a 768px sheet (an xl sheet on a 1024px viewport) or a phone collapses and a 960px sheet splits." }, { "name": "size-sidecar-collapse", diff --git a/src/ui/panes.module.css b/src/ui/panes.module.css index 83db6ae0..154d836c 100644 --- a/src/ui/panes.module.css +++ b/src/ui/panes.module.css @@ -27,7 +27,7 @@ } .aside :global([data-slot="data-list"]) > * { flex-direction: column; - align-items: flex-start; + align-items: stretch; gap: var(--cipher-space-2); } .aside :global([data-slot="data-list"][data-density="compact"]) > * { @@ -70,7 +70,7 @@ flex-direction: column; } .root[data-narrow] > .columns > .identity { - flex: 0 1 auto; + flex: none; max-height: 40%; overflow-y: auto; overscroll-behavior: contain; @@ -78,7 +78,10 @@ align-items: flex-start; gap: var(--cipher-space-12); padding: var(--cipher-pane-pad, var(--cipher-space-overlay-inset)); - padding-inline-end: var(--cipher-pane-head-end, var(--cipher-pane-pad, var(--cipher-space-overlay-inset))); + padding-inline-end: var( + --cipher-pane-head-end, + var(--cipher-pane-pad, var(--cipher-space-overlay-inset)) + ); border-bottom: var(--cipher-size-control-border) solid var(--cipher-line-soft); } .root[data-narrow] > .columns > .main { diff --git a/src/ui/sheet.tsx b/src/ui/sheet.tsx index 41f7d01b..b82b5b60 100644 --- a/src/ui/sheet.tsx +++ b/src/ui/sheet.tsx @@ -211,7 +211,7 @@ function SheetContent({ aria-busy={blocked || undefined} onOpenAutoFocus={(event) => { onOpenAutoFocus?.(event); - focusFirstControl(event); + focusFirstControl(event, aside ? '[data-slot="sheet-main"]' : undefined); }} {...props} {...(viewLabels?.title ? { "aria-labelledby": viewLabels.title } : {})}