@lace-cloud/design-tokens 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -48,7 +48,7 @@ var darkTheme = {
48
48
  "--lace-color-bg-context-menu": "#1a1a1a",
49
49
  "--lace-color-border-default": "rgba(255, 255, 255, 0.08)",
50
50
  "--lace-color-border-subtle": "#3c3c3c",
51
- "--lace-color-border-input": "rgba(255, 255, 255, 0.15)",
51
+ "--lace-color-border-input": "rgba(255, 255, 255, 0.14)",
52
52
  "--lace-color-border-control": "#757575",
53
53
  "--lace-color-border-input-hover": "#888888",
54
54
  "--lace-color-text-primary": "#ecefed",
@@ -66,6 +66,7 @@ var darkTheme = {
66
66
  "--lace-color-accent-alpha-medium": "rgba(206, 254, 101, 0.2)",
67
67
  "--lace-color-accent-strong": "#e0ff8a",
68
68
  "--lace-color-blue-mark": "#60a5fa",
69
+ "--lace-color-blue-word": "#60a5fa",
69
70
  "--lace-color-amber-mark": "#f5a623",
70
71
  "--lace-color-green-mark": "#4ade80",
71
72
  "--lace-color-success": "#4ade80",
@@ -85,39 +86,40 @@ var darkTheme = {
85
86
  "--lace-color-series-6": "#cefe65"
86
87
  };
87
88
  var lightTheme = {
88
- "--lace-color-bg-canvas": "#ffffff",
89
+ "--lace-color-bg-canvas": "#f1f3f0",
89
90
  "--lace-color-bg-surface": "#ffffff",
90
- "--lace-color-bg-surface-alt": "#f4f5f2",
91
+ "--lace-color-bg-surface-alt": "#f6f8f5",
91
92
  "--lace-color-bg-input": "#ffffff",
92
93
  "--lace-color-bg-context-menu": "#ffffff",
93
- "--lace-color-border-default": "#eef0f3",
94
+ "--lace-color-border-default": "rgba(0, 0, 0, 0.1)",
94
95
  "--lace-color-border-subtle": "#dfe3ea",
95
- "--lace-color-border-input": "rgba(22, 22, 22, 0.2)",
96
+ "--lace-color-border-input": "rgba(0, 0, 0, 0.18)",
96
97
  "--lace-color-border-control": "#7a7a7a",
97
98
  "--lace-color-border-input-hover": "#4b5563",
98
- "--lace-color-text-primary": "#0f172a",
99
+ "--lace-color-text-primary": "#161616",
99
100
  "--lace-color-text-label": "#1f2937",
100
- "--lace-color-text-muted": "#606f85",
101
- "--lace-color-text-description": "#475569",
101
+ "--lace-color-text-muted": "#586059",
102
+ "--lace-color-text-description": "#3f4642",
102
103
  "--lace-color-text-danger": "#dc2626",
103
104
  "--lace-color-text-danger-soft": "#ef4444",
104
105
  "--lace-color-row-hover": "rgba(0, 0, 0, 0.02)",
105
- "--lace-color-ink": "#3d6600",
106
+ "--lace-color-ink": "#44680f",
106
107
  "--lace-color-accent-alpha-subtle": "#f1fcd9",
107
108
  "--lace-color-accent-alpha-medium": "rgba(132, 204, 22, 0.16)",
108
109
  "--lace-color-accent-strong": "#2d4a00",
109
110
  "--lace-color-blue-mark": "#2563eb",
111
+ "--lace-color-blue-word": "#1d4ed8",
110
112
  "--lace-color-amber-mark": "#8a5a10",
111
113
  "--lace-color-green-mark": "#047857",
112
- "--lace-color-success": "#047857",
114
+ "--lace-color-success": "#157f3d",
113
115
  "--lace-color-success-hover": "#065f46",
114
116
  "--lace-color-danger": "#dc2626",
115
117
  "--lace-color-danger-bg-soft": "#fef2f2",
116
118
  "--lace-color-danger-fg": "#b91c1c",
117
119
  "--lace-color-warning-bg": "#fffbeb",
118
- "--lace-color-warning-fg": "#b45309",
119
- "--lace-color-info": "#2563eb",
120
- "--lace-color-focus-ring": "#3d6600",
120
+ "--lace-color-warning-fg": "#a14a09",
121
+ "--lace-color-info": "#1d4ed8",
122
+ "--lace-color-focus-ring": "#44680f",
121
123
  "--lace-color-series-1": "#268fa9",
122
124
  "--lace-color-series-2": "#5c3e9a",
123
125
  "--lace-color-series-3": "#8a5a10",
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/themes.gen.ts","../src/theme-choice.ts"],"sourcesContent":["// @lace-cloud/design-tokens — JS/TS token exports\n// Primary distribution is tokens.css; use this for JS/TS consumers that\n// need programmatic access to token values (e.g., pinColor.ts).\n\nexport const brand = {\n green: '#CEFE65',\n greenBright: '#e0ff8a',\n gunmetal: '#153238',\n gunmetalLight: '#1a3f47',\n night: '#161616',\n cyan: '#95E7FF',\n grey: '#ECEFED',\n} as const;\n\nexport const pin = {\n string: { fill: '#95E7FF', stroke: '#2C9DB9' },\n number: { fill: '#F5A623', stroke: '#8A5A10' },\n bool: { fill: '#B084F0', stroke: '#5C3E9A' },\n list: { fill: '#CEFE65', stroke: '#5E8A1A' },\n map: { fill: '#F288C6', stroke: '#8A2E5C' },\n object: { fill: '#FF8A4C', stroke: '#8A3A10' },\n any: { fill: '#9BA19E', stroke: '#4A4F4C' },\n} as const;\n\n// The themes' semantic colours and the compact text roles, generated from\n// tokens.css at build (`src/themes-source.ts`): `darkTheme`, `lightTheme` and\n// `textRoles`, for a consumer that cannot load the stylesheet.\nexport { darkTheme, lightTheme, textRoles } from './themes.gen';\n\nimport type { textRoles } from './themes.gen';\n\n/** A text role tokens.css declares, by the name in its `--lace-text-<role>` custom properties. */\nexport type TextRole = keyof typeof textRoles extends infer Name\n ? Name extends `--lace-text-${infer Role}-size`\n ? Role\n : never\n : never;\n\n/** The themes tokens.css declares, read through `data-theme` on <html>: `dark` is the default,\n * the rest are `[data-theme=\"<name>\"]` blocks. A host maps its own theme names onto these. */\nexport const THEMES = ['dark', 'light', 'high-contrast', 'high-contrast-light'] as const;\n\n// The themes product UI offers (`PRODUCT_THEMES`) and the rule that picks one from the reader's\n// choice and the device's setting.\nexport * from './theme-choice';\n\n/** The type sets tokens.css declares, read through `data-lace-type-set` on a region's root: each\n * sizes the text roles for one kind of region. `compact` is the default (`:root`) and the\n * canvas's own root; `comfortable` is product UI, the portal's document root; `expressive` is\n * prose, the editorial and article templates' prose regions. */\nexport const TYPE_SETS = ['compact', 'comfortable', 'expressive'] as const;\n\n/** A type set, the value of a region's `data-lace-type-set`. */\nexport type TypeSet = (typeof TYPE_SETS)[number];\n\n/** The type set product UI reads: the one the portal's document root declares. */\nexport const PRODUCT_TYPE_SET = 'comfortable' satisfies TypeSet;\n\n/** The papers tokens.css declares beside the paper of now (`:root`), read through\n * `data-lace-paper` on a region's root: `blueprint` is the paper a page drawn as of an earlier\n * revision is drawn on, its ground, threads and ink in one blue in every theme. */\nexport const PAPERS = ['blueprint'] as const;\n\n/** A paper, the value of a region's `data-lace-paper`. */\nexport type Paper = (typeof PAPERS)[number];\n\n/** Custom properties (a theme's colours, the text roles) as the declarations of one CSS rule,\n * `name:value` joined by `;`, for a page that declares the tokens in a rule of its own. */\nexport function themeDeclarations(theme: Readonly<Record<string, string>>): string {\n return Object.entries(theme)\n .map(([name, value]) => `${name}:${value}`)\n .join(';');\n}\n","// Generated from tokens.css by scripts/gen-themes.mjs; `pnpm --filter @lace-cloud/design-tokens build`\n// rewrites it. Edit tokens.css, never this file.\n\n/**\n * The dark theme's semantic colours — every `--lace-color-*` of tokens.css's semantic tier, at the\n * value it resolves to in the default (dark) theme — for a consumer that cannot load tokens.css: a\n * server-rendered page declares them in its own `:root` and reads them by the names the\n * stylesheet uses.\n */\nexport const darkTheme = {\n '--lace-color-bg-canvas': '#161616',\n '--lace-color-bg-surface': '#1e1e1e',\n '--lace-color-bg-surface-alt': '#252526',\n '--lace-color-bg-input': '#0f0f0f',\n '--lace-color-bg-context-menu': '#1a1a1a',\n '--lace-color-border-default': 'rgba(255, 255, 255, 0.08)',\n '--lace-color-border-subtle': '#3c3c3c',\n '--lace-color-border-input': 'rgba(255, 255, 255, 0.15)',\n '--lace-color-border-control': '#757575',\n '--lace-color-border-input-hover': '#888888',\n '--lace-color-text-primary': '#ecefed',\n '--lace-color-text-label': '#e6e6e6',\n '--lace-color-text-muted': '#8f9691',\n '--lace-color-text-description': '#b3bab5',\n '--lace-color-text-danger': '#e5484d',\n '--lace-color-text-danger-soft': '#f87171',\n '--lace-color-row-hover': 'rgba(255, 255, 255, 0.025)',\n '--lace-color-accent': '#cefe65',\n '--lace-color-text-on-accent': '#111111',\n '--lace-color-accent-edge': '#cefe65',\n '--lace-color-ink': '#cefe65',\n '--lace-color-accent-alpha-subtle': 'rgba(206, 254, 101, 0.1)',\n '--lace-color-accent-alpha-medium': 'rgba(206, 254, 101, 0.2)',\n '--lace-color-accent-strong': '#e0ff8a',\n '--lace-color-blue-mark': '#60a5fa',\n '--lace-color-amber-mark': '#f5a623',\n '--lace-color-green-mark': '#4ade80',\n '--lace-color-success': '#4ade80',\n '--lace-color-success-hover': '#22c55e',\n '--lace-color-danger': '#e5484d',\n '--lace-color-danger-bg-soft': 'rgba(248, 113, 113, 0.12)',\n '--lace-color-danger-fg': '#f87171',\n '--lace-color-warning-bg': '#3b2507',\n '--lace-color-warning-fg': '#fbbf24',\n '--lace-color-info': '#9ecbff',\n '--lace-color-focus-ring': '#cefe65',\n '--lace-color-series-1': '#95e7ff',\n '--lace-color-series-2': '#b084f0',\n '--lace-color-series-3': '#f5a623',\n '--lace-color-series-4': '#f288c6',\n '--lace-color-series-5': '#ff8a4c',\n '--lace-color-series-6': '#cefe65',\n} as const;\n\n/**\n * The light theme's semantic colours — every `--lace-color-*` tokens.css's `[data-theme=\"light\"]`\n * block overrides, at the value it resolves to there — declared after `darkTheme` under the\n * page's own `[data-theme=\"light\"]`.\n */\nexport const lightTheme = {\n '--lace-color-bg-canvas': '#ffffff',\n '--lace-color-bg-surface': '#ffffff',\n '--lace-color-bg-surface-alt': '#f4f5f2',\n '--lace-color-bg-input': '#ffffff',\n '--lace-color-bg-context-menu': '#ffffff',\n '--lace-color-border-default': '#eef0f3',\n '--lace-color-border-subtle': '#dfe3ea',\n '--lace-color-border-input': 'rgba(22, 22, 22, 0.2)',\n '--lace-color-border-control': '#7a7a7a',\n '--lace-color-border-input-hover': '#4b5563',\n '--lace-color-text-primary': '#0f172a',\n '--lace-color-text-label': '#1f2937',\n '--lace-color-text-muted': '#606f85',\n '--lace-color-text-description': '#475569',\n '--lace-color-text-danger': '#dc2626',\n '--lace-color-text-danger-soft': '#ef4444',\n '--lace-color-row-hover': 'rgba(0, 0, 0, 0.02)',\n '--lace-color-ink': '#3d6600',\n '--lace-color-accent-alpha-subtle': '#f1fcd9',\n '--lace-color-accent-alpha-medium': 'rgba(132, 204, 22, 0.16)',\n '--lace-color-accent-strong': '#2d4a00',\n '--lace-color-blue-mark': '#2563eb',\n '--lace-color-amber-mark': '#8a5a10',\n '--lace-color-green-mark': '#047857',\n '--lace-color-success': '#047857',\n '--lace-color-success-hover': '#065f46',\n '--lace-color-danger': '#dc2626',\n '--lace-color-danger-bg-soft': '#fef2f2',\n '--lace-color-danger-fg': '#b91c1c',\n '--lace-color-warning-bg': '#fffbeb',\n '--lace-color-warning-fg': '#b45309',\n '--lace-color-info': '#2563eb',\n '--lace-color-focus-ring': '#3d6600',\n '--lace-color-series-1': '#268fa9',\n '--lace-color-series-2': '#5c3e9a',\n '--lace-color-series-3': '#8a5a10',\n '--lace-color-series-4': '#8a2e5c',\n '--lace-color-series-5': '#8a3a10',\n '--lace-color-series-6': '#5e8a1a',\n} as const;\n\n/**\n * The text roles in the default (compact) type set — each `--lace-text-<role>` `font` shorthand\n * and its `-size`, `-line`, `-weight`, `-family` and `-tracking`, resolved — for a consumer\n * that cannot load tokens.css: it declares them in its own `:root` and sets a run's type with\n * `font: var(--lace-text-<role>)` and `letter-spacing: var(--lace-text-<role>-tracking)`.\n */\nexport const textRoles = {\n '--lace-text-display-size': '22px',\n '--lace-text-display-line': '28px',\n '--lace-text-title-size': '16px',\n '--lace-text-title-line': '22px',\n '--lace-text-heading-size': '14px',\n '--lace-text-heading-line': '20px',\n '--lace-text-body-size': '13px',\n '--lace-text-body-line': '18px',\n '--lace-text-control-size': '12px',\n '--lace-text-control-line': '16px',\n '--lace-text-caption-size': '11px',\n '--lace-text-caption-line': '14px',\n '--lace-text-label-size': '10px',\n '--lace-text-label-line': '14px',\n '--lace-text-code-size': '12px',\n '--lace-text-code-line': '16px',\n '--lace-text-note-size': '14px',\n '--lace-text-note-line': '20px',\n '--lace-text-display-weight': '600',\n '--lace-text-display-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-display-tracking': '-0.01em',\n '--lace-text-title-weight': '600',\n '--lace-text-title-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title-tracking': '0',\n '--lace-text-heading-weight': '600',\n '--lace-text-heading-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading-tracking': '0',\n '--lace-text-body-weight': '400',\n '--lace-text-body-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body-tracking': '0',\n '--lace-text-control-weight': '500',\n '--lace-text-control-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control-tracking': '0',\n '--lace-text-caption-weight': '400',\n '--lace-text-caption-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption-tracking': '0',\n '--lace-text-label-weight': '500',\n '--lace-text-label-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-label-tracking': '0.06em',\n '--lace-text-code-weight': '400',\n '--lace-text-code-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code-tracking': '0',\n '--lace-text-note-weight': '400',\n '--lace-text-note-family': '\"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n '--lace-text-note-tracking': '0',\n '--lace-text-display': '600 22px / 28px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title': '600 16px / 22px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading': '600 14px / 20px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body': '400 13px / 18px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control': '500 12px / 16px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption': '400 11px / 14px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-label': '500 10px / 14px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code': '400 12px / 16px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-note': 'italic 400 14px / 20px \"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n} as const;\n","// The theme rule: which product theme a page draws, from the reader's stored choice and the\n// device's setting. Pure, with no DOM access at import: a build config and the API Worker import\n// it as well as the pages that apply it.\n\nimport type { THEMES } from './index';\n\n/** The themes product UI offers its reader, in the order its switch lists them; a host with\n * high-contrast themes of its own maps onto the rest. */\nexport const PRODUCT_THEMES = [\n 'light',\n 'dark',\n] as const satisfies readonly (typeof THEMES)[number][];\n\n/** A product theme, the value of `<html data-theme>` on a page that follows the rule. */\nexport type ProductTheme = (typeof PRODUCT_THEMES)[number];\n\n/** What a reader chose: `system` follows the device; a product theme is stored and wins over it. */\nexport type ThemeChoice = 'system' | ProductTheme;\n\n/** The theme choice a reader's switch stores in their browser, `light` or `dark`; absent, the\n * page follows the system. */\nexport const THEME_STORAGE_KEY = 'lace-theme';\n\n/** The media query that matches while the device asks for light. */\nexport const SYSTEM_LIGHT_QUERY = '(prefers-color-scheme: light)';\n\n/** The choice a stored value holds: a product theme is itself; anything else, absence included,\n * is `system`. */\nexport function choiceOf(stored: string | null): ThemeChoice {\n return PRODUCT_THEMES.find((theme) => theme === stored) ?? 'system';\n}\n\n/** The theme a page draws: a chosen product theme wins; `system` draws light while the device\n * asks for light, and dark otherwise. */\nexport function themeOf(choice: ThemeChoice, systemLight: boolean): ProductTheme {\n if (choice !== 'system') return choice;\n return systemLight ? 'light' : 'dark';\n}\n\nconst literal = JSON.stringify;\n\n/** The script a page's `<head>` runs before anything paints: it sets `<html data-theme>` to\n * `themeOf(choiceOf(stored), systemLight)`, its every value written from the rule above. It is\n * ES5 and self-contained, and it never throws: storage that refuses reads as no choice, and a\n * window without `matchMedia` as a device that does not ask for light. Its text is fixed at\n * load, so a CSP admits it by its hash. */\nexport const PRE_MOUNT_THEME_SCRIPT = `(function () {\n var stored = null;\n var systemLight = false;\n try { stored = localStorage.getItem(${literal(THEME_STORAGE_KEY)}); } catch (e) {}\n try { systemLight = window.matchMedia(${literal(SYSTEM_LIGHT_QUERY)}).matches; } catch (e) {}\n var theme = ${literal(PRODUCT_THEMES)}.indexOf(stored) < 0\n ? (systemLight ? ${literal(themeOf('system', true))} : ${literal(themeOf('system', false))})\n : stored;\n document.documentElement.setAttribute(\"data-theme\", theme);\n})();`;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAM,YAAY;AAAA,EACvB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,gCAAgC;AAAA,EAChC,+BAA+B;AAAA,EAC/B,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,+BAA+B;AAAA,EAC/B,mCAAmC;AAAA,EACnC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,iCAAiC;AAAA,EACjC,4BAA4B;AAAA,EAC5B,iCAAiC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iBAAiB,qBAAqB;AAUvE,IAAM,YAAY,CAAC,WAAW,eAAe,YAAY;AAMzD,IAAM,mBAAmB;AAKzB,IAAM,SAAS,CAAC,WAAW;AAO3B,SAAS,kBAAkB,OAAiD;AACjF,SAAO,OAAO,QAAQ,KAAK,EACxB,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,GAAG,IAAI,IAAI,KAAK,EAAE,EACzC,KAAK,GAAG;AACb;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/themes.gen.ts","../src/theme-choice.ts"],"sourcesContent":["// @lace-cloud/design-tokens — JS/TS token exports\n// Primary distribution is tokens.css; use this for JS/TS consumers that\n// need programmatic access to token values (e.g., pinColor.ts).\n\nexport const brand = {\n green: '#CEFE65',\n greenBright: '#e0ff8a',\n gunmetal: '#153238',\n gunmetalLight: '#1a3f47',\n night: '#161616',\n cyan: '#95E7FF',\n grey: '#ECEFED',\n} as const;\n\nexport const pin = {\n string: { fill: '#95E7FF', stroke: '#2C9DB9' },\n number: { fill: '#F5A623', stroke: '#8A5A10' },\n bool: { fill: '#B084F0', stroke: '#5C3E9A' },\n list: { fill: '#CEFE65', stroke: '#5E8A1A' },\n map: { fill: '#F288C6', stroke: '#8A2E5C' },\n object: { fill: '#FF8A4C', stroke: '#8A3A10' },\n any: { fill: '#9BA19E', stroke: '#4A4F4C' },\n} as const;\n\n// The themes' semantic colours and the compact text roles, generated from\n// tokens.css at build (`src/themes-source.ts`): `darkTheme`, `lightTheme` and\n// `textRoles`, for a consumer that cannot load the stylesheet.\nexport { darkTheme, lightTheme, textRoles } from './themes.gen';\n\nimport type { textRoles } from './themes.gen';\n\n/** A text role tokens.css declares, by the name in its `--lace-text-<role>` custom properties. */\nexport type TextRole = keyof typeof textRoles extends infer Name\n ? Name extends `--lace-text-${infer Role}-size`\n ? Role\n : never\n : never;\n\n/** The themes tokens.css declares, read through `data-theme` on <html>: `dark` is the default,\n * the rest are `[data-theme=\"<name>\"]` blocks. A host maps its own theme names onto these. */\nexport const THEMES = ['dark', 'light', 'high-contrast', 'high-contrast-light'] as const;\n\n// The themes product UI offers (`PRODUCT_THEMES`) and the rule that picks one from the reader's\n// choice and the device's setting.\nexport * from './theme-choice';\n\n/** The type sets tokens.css declares, read through `data-lace-type-set` on a region's root: each\n * sizes the text roles for one kind of region. `compact` is the default (`:root`) and the\n * canvas's own root; `comfortable` is product UI, the portal's document root; `expressive` is\n * prose, the editorial and article templates' prose regions. */\nexport const TYPE_SETS = ['compact', 'comfortable', 'expressive'] as const;\n\n/** A type set, the value of a region's `data-lace-type-set`. */\nexport type TypeSet = (typeof TYPE_SETS)[number];\n\n/** The type set product UI reads: the one the portal's document root declares. */\nexport const PRODUCT_TYPE_SET = 'comfortable' satisfies TypeSet;\n\n/** The papers tokens.css declares beside the paper of now (`:root`), read through\n * `data-lace-paper` on a region's root: `blueprint` is the paper a page drawn as of an earlier\n * revision is drawn on, its ground, threads and ink in one blue in every theme. */\nexport const PAPERS = ['blueprint'] as const;\n\n/** A paper, the value of a region's `data-lace-paper`. */\nexport type Paper = (typeof PAPERS)[number];\n\n/** Custom properties (a theme's colours, the text roles) as the declarations of one CSS rule,\n * `name:value` joined by `;`, for a page that declares the tokens in a rule of its own. */\nexport function themeDeclarations(theme: Readonly<Record<string, string>>): string {\n return Object.entries(theme)\n .map(([name, value]) => `${name}:${value}`)\n .join(';');\n}\n","// Generated from tokens.css by scripts/gen-themes.mjs; `pnpm --filter @lace-cloud/design-tokens build`\n// rewrites it. Edit tokens.css, never this file.\n\n/**\n * The dark theme's semantic colours — every `--lace-color-*` of tokens.css's semantic tier, at the\n * value it resolves to in the default (dark) theme — for a consumer that cannot load tokens.css: a\n * server-rendered page declares them in its own `:root` and reads them by the names the\n * stylesheet uses.\n */\nexport const darkTheme = {\n '--lace-color-bg-canvas': '#161616',\n '--lace-color-bg-surface': '#1e1e1e',\n '--lace-color-bg-surface-alt': '#252526',\n '--lace-color-bg-input': '#0f0f0f',\n '--lace-color-bg-context-menu': '#1a1a1a',\n '--lace-color-border-default': 'rgba(255, 255, 255, 0.08)',\n '--lace-color-border-subtle': '#3c3c3c',\n '--lace-color-border-input': 'rgba(255, 255, 255, 0.14)',\n '--lace-color-border-control': '#757575',\n '--lace-color-border-input-hover': '#888888',\n '--lace-color-text-primary': '#ecefed',\n '--lace-color-text-label': '#e6e6e6',\n '--lace-color-text-muted': '#8f9691',\n '--lace-color-text-description': '#b3bab5',\n '--lace-color-text-danger': '#e5484d',\n '--lace-color-text-danger-soft': '#f87171',\n '--lace-color-row-hover': 'rgba(255, 255, 255, 0.025)',\n '--lace-color-accent': '#cefe65',\n '--lace-color-text-on-accent': '#111111',\n '--lace-color-accent-edge': '#cefe65',\n '--lace-color-ink': '#cefe65',\n '--lace-color-accent-alpha-subtle': 'rgba(206, 254, 101, 0.1)',\n '--lace-color-accent-alpha-medium': 'rgba(206, 254, 101, 0.2)',\n '--lace-color-accent-strong': '#e0ff8a',\n '--lace-color-blue-mark': '#60a5fa',\n '--lace-color-blue-word': '#60a5fa',\n '--lace-color-amber-mark': '#f5a623',\n '--lace-color-green-mark': '#4ade80',\n '--lace-color-success': '#4ade80',\n '--lace-color-success-hover': '#22c55e',\n '--lace-color-danger': '#e5484d',\n '--lace-color-danger-bg-soft': 'rgba(248, 113, 113, 0.12)',\n '--lace-color-danger-fg': '#f87171',\n '--lace-color-warning-bg': '#3b2507',\n '--lace-color-warning-fg': '#fbbf24',\n '--lace-color-info': '#9ecbff',\n '--lace-color-focus-ring': '#cefe65',\n '--lace-color-series-1': '#95e7ff',\n '--lace-color-series-2': '#b084f0',\n '--lace-color-series-3': '#f5a623',\n '--lace-color-series-4': '#f288c6',\n '--lace-color-series-5': '#ff8a4c',\n '--lace-color-series-6': '#cefe65',\n} as const;\n\n/**\n * The light theme's semantic colours — every `--lace-color-*` tokens.css's `[data-theme=\"light\"]`\n * block overrides, at the value it resolves to there — declared after `darkTheme` under the\n * page's own `[data-theme=\"light\"]`.\n */\nexport const lightTheme = {\n '--lace-color-bg-canvas': '#f1f3f0',\n '--lace-color-bg-surface': '#ffffff',\n '--lace-color-bg-surface-alt': '#f6f8f5',\n '--lace-color-bg-input': '#ffffff',\n '--lace-color-bg-context-menu': '#ffffff',\n '--lace-color-border-default': 'rgba(0, 0, 0, 0.1)',\n '--lace-color-border-subtle': '#dfe3ea',\n '--lace-color-border-input': 'rgba(0, 0, 0, 0.18)',\n '--lace-color-border-control': '#7a7a7a',\n '--lace-color-border-input-hover': '#4b5563',\n '--lace-color-text-primary': '#161616',\n '--lace-color-text-label': '#1f2937',\n '--lace-color-text-muted': '#586059',\n '--lace-color-text-description': '#3f4642',\n '--lace-color-text-danger': '#dc2626',\n '--lace-color-text-danger-soft': '#ef4444',\n '--lace-color-row-hover': 'rgba(0, 0, 0, 0.02)',\n '--lace-color-ink': '#44680f',\n '--lace-color-accent-alpha-subtle': '#f1fcd9',\n '--lace-color-accent-alpha-medium': 'rgba(132, 204, 22, 0.16)',\n '--lace-color-accent-strong': '#2d4a00',\n '--lace-color-blue-mark': '#2563eb',\n '--lace-color-blue-word': '#1d4ed8',\n '--lace-color-amber-mark': '#8a5a10',\n '--lace-color-green-mark': '#047857',\n '--lace-color-success': '#157f3d',\n '--lace-color-success-hover': '#065f46',\n '--lace-color-danger': '#dc2626',\n '--lace-color-danger-bg-soft': '#fef2f2',\n '--lace-color-danger-fg': '#b91c1c',\n '--lace-color-warning-bg': '#fffbeb',\n '--lace-color-warning-fg': '#a14a09',\n '--lace-color-info': '#1d4ed8',\n '--lace-color-focus-ring': '#44680f',\n '--lace-color-series-1': '#268fa9',\n '--lace-color-series-2': '#5c3e9a',\n '--lace-color-series-3': '#8a5a10',\n '--lace-color-series-4': '#8a2e5c',\n '--lace-color-series-5': '#8a3a10',\n '--lace-color-series-6': '#5e8a1a',\n} as const;\n\n/**\n * The text roles in the default (compact) type set — each `--lace-text-<role>` `font` shorthand\n * and its `-size`, `-line`, `-weight`, `-family` and `-tracking`, resolved — for a consumer\n * that cannot load tokens.css: it declares them in its own `:root` and sets a run's type with\n * `font: var(--lace-text-<role>)` and `letter-spacing: var(--lace-text-<role>-tracking)`.\n */\nexport const textRoles = {\n '--lace-text-display-size': '22px',\n '--lace-text-display-line': '28px',\n '--lace-text-title-size': '16px',\n '--lace-text-title-line': '22px',\n '--lace-text-heading-size': '14px',\n '--lace-text-heading-line': '20px',\n '--lace-text-body-size': '13px',\n '--lace-text-body-line': '18px',\n '--lace-text-control-size': '12px',\n '--lace-text-control-line': '16px',\n '--lace-text-caption-size': '11px',\n '--lace-text-caption-line': '14px',\n '--lace-text-label-size': '10px',\n '--lace-text-label-line': '14px',\n '--lace-text-code-size': '12px',\n '--lace-text-code-line': '16px',\n '--lace-text-note-size': '14px',\n '--lace-text-note-line': '20px',\n '--lace-text-display-weight': '600',\n '--lace-text-display-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-display-tracking': '-0.01em',\n '--lace-text-title-weight': '600',\n '--lace-text-title-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title-tracking': '0',\n '--lace-text-heading-weight': '600',\n '--lace-text-heading-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading-tracking': '0',\n '--lace-text-body-weight': '400',\n '--lace-text-body-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body-tracking': '0',\n '--lace-text-control-weight': '500',\n '--lace-text-control-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control-tracking': '0',\n '--lace-text-caption-weight': '400',\n '--lace-text-caption-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption-tracking': '0',\n '--lace-text-label-weight': '500',\n '--lace-text-label-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-label-tracking': '0.06em',\n '--lace-text-code-weight': '400',\n '--lace-text-code-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code-tracking': '0',\n '--lace-text-note-weight': '400',\n '--lace-text-note-family': '\"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n '--lace-text-note-tracking': '0',\n '--lace-text-display': '600 22px / 28px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title': '600 16px / 22px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading': '600 14px / 20px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body': '400 13px / 18px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control': '500 12px / 16px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption': '400 11px / 14px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-label': '500 10px / 14px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code': '400 12px / 16px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-note': 'italic 400 14px / 20px \"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n} as const;\n","// The theme rule: which product theme a page draws, from the reader's stored choice and the\n// device's setting. Pure, with no DOM access at import: a build config and the API Worker import\n// it as well as the pages that apply it.\n\nimport type { THEMES } from './index';\n\n/** The themes product UI offers its reader, in the order its switch lists them; a host with\n * high-contrast themes of its own maps onto the rest. */\nexport const PRODUCT_THEMES = [\n 'light',\n 'dark',\n] as const satisfies readonly (typeof THEMES)[number][];\n\n/** A product theme, the value of `<html data-theme>` on a page that follows the rule. */\nexport type ProductTheme = (typeof PRODUCT_THEMES)[number];\n\n/** What a reader chose: `system` follows the device; a product theme is stored and wins over it. */\nexport type ThemeChoice = 'system' | ProductTheme;\n\n/** The theme choice a reader's switch stores in their browser, `light` or `dark`; absent, the\n * page follows the system. */\nexport const THEME_STORAGE_KEY = 'lace-theme';\n\n/** The media query that matches while the device asks for light. */\nexport const SYSTEM_LIGHT_QUERY = '(prefers-color-scheme: light)';\n\n/** The choice a stored value holds: a product theme is itself; anything else, absence included,\n * is `system`. */\nexport function choiceOf(stored: string | null): ThemeChoice {\n return PRODUCT_THEMES.find((theme) => theme === stored) ?? 'system';\n}\n\n/** The theme a page draws: a chosen product theme wins; `system` draws light while the device\n * asks for light, and dark otherwise. */\nexport function themeOf(choice: ThemeChoice, systemLight: boolean): ProductTheme {\n if (choice !== 'system') return choice;\n return systemLight ? 'light' : 'dark';\n}\n\nconst literal = JSON.stringify;\n\n/** The script a page's `<head>` runs before anything paints: it sets `<html data-theme>` to\n * `themeOf(choiceOf(stored), systemLight)`, its every value written from the rule above. It is\n * ES5 and self-contained, and it never throws: storage that refuses reads as no choice, and a\n * window without `matchMedia` as a device that does not ask for light. Its text is fixed at\n * load, so a CSP admits it by its hash. */\nexport const PRE_MOUNT_THEME_SCRIPT = `(function () {\n var stored = null;\n var systemLight = false;\n try { stored = localStorage.getItem(${literal(THEME_STORAGE_KEY)}); } catch (e) {}\n try { systemLight = window.matchMedia(${literal(SYSTEM_LIGHT_QUERY)}).matches; } catch (e) {}\n var theme = ${literal(PRODUCT_THEMES)}.indexOf(stored) < 0\n ? (systemLight ? ${literal(themeOf('system', true))} : ${literal(themeOf('system', false))})\n : stored;\n document.documentElement.setAttribute(\"data-theme\", theme);\n})();`;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA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Aa;AAAA,EACb,UAAU;AAAA,EACV,eAAe;AAAA,EACf,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AACR;AAEO,IAAM,MAAM;AAAA,EACjB,QAAQ,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC7C,QAAQ,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC7C,MAAM,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC3C,MAAM,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC3C,KAAK,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC1C,QAAQ,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC7C,KAAK,EAAE,MAAM,WAAW,QAAQ,UAAU;AAC5C;AAkBO,IAAM,SAAS,CAAC,QAAQ,SAAS,iBAAiB,qBAAqB;AAUvE,IAAM,YAAY,CAAC,WAAW,eAAe,YAAY;AAMzD,IAAM,mBAAmB;AAKzB,IAAM,SAAS,CAAC,WAAW;AAO3B,SAAS,kBAAkB,OAAiD;AACjF,SAAO,OAAO,QAAQ,KAAK,EACxB,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,GAAG,IAAI,IAAI,KAAK,EAAE,EACzC,KAAK,GAAG;AACb;","names":[]}
package/dist/index.d.cts CHANGED
@@ -12,7 +12,7 @@ declare const darkTheme: {
12
12
  readonly '--lace-color-bg-context-menu': "#1a1a1a";
13
13
  readonly '--lace-color-border-default': "rgba(255, 255, 255, 0.08)";
14
14
  readonly '--lace-color-border-subtle': "#3c3c3c";
15
- readonly '--lace-color-border-input': "rgba(255, 255, 255, 0.15)";
15
+ readonly '--lace-color-border-input': "rgba(255, 255, 255, 0.14)";
16
16
  readonly '--lace-color-border-control': "#757575";
17
17
  readonly '--lace-color-border-input-hover': "#888888";
18
18
  readonly '--lace-color-text-primary': "#ecefed";
@@ -30,6 +30,7 @@ declare const darkTheme: {
30
30
  readonly '--lace-color-accent-alpha-medium': "rgba(206, 254, 101, 0.2)";
31
31
  readonly '--lace-color-accent-strong': "#e0ff8a";
32
32
  readonly '--lace-color-blue-mark': "#60a5fa";
33
+ readonly '--lace-color-blue-word': "#60a5fa";
33
34
  readonly '--lace-color-amber-mark': "#f5a623";
34
35
  readonly '--lace-color-green-mark': "#4ade80";
35
36
  readonly '--lace-color-success': "#4ade80";
@@ -54,39 +55,40 @@ declare const darkTheme: {
54
55
  * page's own `[data-theme="light"]`.
55
56
  */
56
57
  declare const lightTheme: {
57
- readonly '--lace-color-bg-canvas': "#ffffff";
58
+ readonly '--lace-color-bg-canvas': "#f1f3f0";
58
59
  readonly '--lace-color-bg-surface': "#ffffff";
59
- readonly '--lace-color-bg-surface-alt': "#f4f5f2";
60
+ readonly '--lace-color-bg-surface-alt': "#f6f8f5";
60
61
  readonly '--lace-color-bg-input': "#ffffff";
61
62
  readonly '--lace-color-bg-context-menu': "#ffffff";
62
- readonly '--lace-color-border-default': "#eef0f3";
63
+ readonly '--lace-color-border-default': "rgba(0, 0, 0, 0.1)";
63
64
  readonly '--lace-color-border-subtle': "#dfe3ea";
64
- readonly '--lace-color-border-input': "rgba(22, 22, 22, 0.2)";
65
+ readonly '--lace-color-border-input': "rgba(0, 0, 0, 0.18)";
65
66
  readonly '--lace-color-border-control': "#7a7a7a";
66
67
  readonly '--lace-color-border-input-hover': "#4b5563";
67
- readonly '--lace-color-text-primary': "#0f172a";
68
+ readonly '--lace-color-text-primary': "#161616";
68
69
  readonly '--lace-color-text-label': "#1f2937";
69
- readonly '--lace-color-text-muted': "#606f85";
70
- readonly '--lace-color-text-description': "#475569";
70
+ readonly '--lace-color-text-muted': "#586059";
71
+ readonly '--lace-color-text-description': "#3f4642";
71
72
  readonly '--lace-color-text-danger': "#dc2626";
72
73
  readonly '--lace-color-text-danger-soft': "#ef4444";
73
74
  readonly '--lace-color-row-hover': "rgba(0, 0, 0, 0.02)";
74
- readonly '--lace-color-ink': "#3d6600";
75
+ readonly '--lace-color-ink': "#44680f";
75
76
  readonly '--lace-color-accent-alpha-subtle': "#f1fcd9";
76
77
  readonly '--lace-color-accent-alpha-medium': "rgba(132, 204, 22, 0.16)";
77
78
  readonly '--lace-color-accent-strong': "#2d4a00";
78
79
  readonly '--lace-color-blue-mark': "#2563eb";
80
+ readonly '--lace-color-blue-word': "#1d4ed8";
79
81
  readonly '--lace-color-amber-mark': "#8a5a10";
80
82
  readonly '--lace-color-green-mark': "#047857";
81
- readonly '--lace-color-success': "#047857";
83
+ readonly '--lace-color-success': "#157f3d";
82
84
  readonly '--lace-color-success-hover': "#065f46";
83
85
  readonly '--lace-color-danger': "#dc2626";
84
86
  readonly '--lace-color-danger-bg-soft': "#fef2f2";
85
87
  readonly '--lace-color-danger-fg': "#b91c1c";
86
88
  readonly '--lace-color-warning-bg': "#fffbeb";
87
- readonly '--lace-color-warning-fg': "#b45309";
88
- readonly '--lace-color-info': "#2563eb";
89
- readonly '--lace-color-focus-ring': "#3d6600";
89
+ readonly '--lace-color-warning-fg': "#a14a09";
90
+ readonly '--lace-color-info': "#1d4ed8";
91
+ readonly '--lace-color-focus-ring': "#44680f";
90
92
  readonly '--lace-color-series-1': "#268fa9";
91
93
  readonly '--lace-color-series-2': "#5c3e9a";
92
94
  readonly '--lace-color-series-3': "#8a5a10";
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ declare const darkTheme: {
12
12
  readonly '--lace-color-bg-context-menu': "#1a1a1a";
13
13
  readonly '--lace-color-border-default': "rgba(255, 255, 255, 0.08)";
14
14
  readonly '--lace-color-border-subtle': "#3c3c3c";
15
- readonly '--lace-color-border-input': "rgba(255, 255, 255, 0.15)";
15
+ readonly '--lace-color-border-input': "rgba(255, 255, 255, 0.14)";
16
16
  readonly '--lace-color-border-control': "#757575";
17
17
  readonly '--lace-color-border-input-hover': "#888888";
18
18
  readonly '--lace-color-text-primary': "#ecefed";
@@ -30,6 +30,7 @@ declare const darkTheme: {
30
30
  readonly '--lace-color-accent-alpha-medium': "rgba(206, 254, 101, 0.2)";
31
31
  readonly '--lace-color-accent-strong': "#e0ff8a";
32
32
  readonly '--lace-color-blue-mark': "#60a5fa";
33
+ readonly '--lace-color-blue-word': "#60a5fa";
33
34
  readonly '--lace-color-amber-mark': "#f5a623";
34
35
  readonly '--lace-color-green-mark': "#4ade80";
35
36
  readonly '--lace-color-success': "#4ade80";
@@ -54,39 +55,40 @@ declare const darkTheme: {
54
55
  * page's own `[data-theme="light"]`.
55
56
  */
56
57
  declare const lightTheme: {
57
- readonly '--lace-color-bg-canvas': "#ffffff";
58
+ readonly '--lace-color-bg-canvas': "#f1f3f0";
58
59
  readonly '--lace-color-bg-surface': "#ffffff";
59
- readonly '--lace-color-bg-surface-alt': "#f4f5f2";
60
+ readonly '--lace-color-bg-surface-alt': "#f6f8f5";
60
61
  readonly '--lace-color-bg-input': "#ffffff";
61
62
  readonly '--lace-color-bg-context-menu': "#ffffff";
62
- readonly '--lace-color-border-default': "#eef0f3";
63
+ readonly '--lace-color-border-default': "rgba(0, 0, 0, 0.1)";
63
64
  readonly '--lace-color-border-subtle': "#dfe3ea";
64
- readonly '--lace-color-border-input': "rgba(22, 22, 22, 0.2)";
65
+ readonly '--lace-color-border-input': "rgba(0, 0, 0, 0.18)";
65
66
  readonly '--lace-color-border-control': "#7a7a7a";
66
67
  readonly '--lace-color-border-input-hover': "#4b5563";
67
- readonly '--lace-color-text-primary': "#0f172a";
68
+ readonly '--lace-color-text-primary': "#161616";
68
69
  readonly '--lace-color-text-label': "#1f2937";
69
- readonly '--lace-color-text-muted': "#606f85";
70
- readonly '--lace-color-text-description': "#475569";
70
+ readonly '--lace-color-text-muted': "#586059";
71
+ readonly '--lace-color-text-description': "#3f4642";
71
72
  readonly '--lace-color-text-danger': "#dc2626";
72
73
  readonly '--lace-color-text-danger-soft': "#ef4444";
73
74
  readonly '--lace-color-row-hover': "rgba(0, 0, 0, 0.02)";
74
- readonly '--lace-color-ink': "#3d6600";
75
+ readonly '--lace-color-ink': "#44680f";
75
76
  readonly '--lace-color-accent-alpha-subtle': "#f1fcd9";
76
77
  readonly '--lace-color-accent-alpha-medium': "rgba(132, 204, 22, 0.16)";
77
78
  readonly '--lace-color-accent-strong': "#2d4a00";
78
79
  readonly '--lace-color-blue-mark': "#2563eb";
80
+ readonly '--lace-color-blue-word': "#1d4ed8";
79
81
  readonly '--lace-color-amber-mark': "#8a5a10";
80
82
  readonly '--lace-color-green-mark': "#047857";
81
- readonly '--lace-color-success': "#047857";
83
+ readonly '--lace-color-success': "#157f3d";
82
84
  readonly '--lace-color-success-hover': "#065f46";
83
85
  readonly '--lace-color-danger': "#dc2626";
84
86
  readonly '--lace-color-danger-bg-soft': "#fef2f2";
85
87
  readonly '--lace-color-danger-fg': "#b91c1c";
86
88
  readonly '--lace-color-warning-bg': "#fffbeb";
87
- readonly '--lace-color-warning-fg': "#b45309";
88
- readonly '--lace-color-info': "#2563eb";
89
- readonly '--lace-color-focus-ring': "#3d6600";
89
+ readonly '--lace-color-warning-fg': "#a14a09";
90
+ readonly '--lace-color-info': "#1d4ed8";
91
+ readonly '--lace-color-focus-ring': "#44680f";
90
92
  readonly '--lace-color-series-1': "#268fa9";
91
93
  readonly '--lace-color-series-2': "#5c3e9a";
92
94
  readonly '--lace-color-series-3': "#8a5a10";
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ var darkTheme = {
7
7
  "--lace-color-bg-context-menu": "#1a1a1a",
8
8
  "--lace-color-border-default": "rgba(255, 255, 255, 0.08)",
9
9
  "--lace-color-border-subtle": "#3c3c3c",
10
- "--lace-color-border-input": "rgba(255, 255, 255, 0.15)",
10
+ "--lace-color-border-input": "rgba(255, 255, 255, 0.14)",
11
11
  "--lace-color-border-control": "#757575",
12
12
  "--lace-color-border-input-hover": "#888888",
13
13
  "--lace-color-text-primary": "#ecefed",
@@ -25,6 +25,7 @@ var darkTheme = {
25
25
  "--lace-color-accent-alpha-medium": "rgba(206, 254, 101, 0.2)",
26
26
  "--lace-color-accent-strong": "#e0ff8a",
27
27
  "--lace-color-blue-mark": "#60a5fa",
28
+ "--lace-color-blue-word": "#60a5fa",
28
29
  "--lace-color-amber-mark": "#f5a623",
29
30
  "--lace-color-green-mark": "#4ade80",
30
31
  "--lace-color-success": "#4ade80",
@@ -44,39 +45,40 @@ var darkTheme = {
44
45
  "--lace-color-series-6": "#cefe65"
45
46
  };
46
47
  var lightTheme = {
47
- "--lace-color-bg-canvas": "#ffffff",
48
+ "--lace-color-bg-canvas": "#f1f3f0",
48
49
  "--lace-color-bg-surface": "#ffffff",
49
- "--lace-color-bg-surface-alt": "#f4f5f2",
50
+ "--lace-color-bg-surface-alt": "#f6f8f5",
50
51
  "--lace-color-bg-input": "#ffffff",
51
52
  "--lace-color-bg-context-menu": "#ffffff",
52
- "--lace-color-border-default": "#eef0f3",
53
+ "--lace-color-border-default": "rgba(0, 0, 0, 0.1)",
53
54
  "--lace-color-border-subtle": "#dfe3ea",
54
- "--lace-color-border-input": "rgba(22, 22, 22, 0.2)",
55
+ "--lace-color-border-input": "rgba(0, 0, 0, 0.18)",
55
56
  "--lace-color-border-control": "#7a7a7a",
56
57
  "--lace-color-border-input-hover": "#4b5563",
57
- "--lace-color-text-primary": "#0f172a",
58
+ "--lace-color-text-primary": "#161616",
58
59
  "--lace-color-text-label": "#1f2937",
59
- "--lace-color-text-muted": "#606f85",
60
- "--lace-color-text-description": "#475569",
60
+ "--lace-color-text-muted": "#586059",
61
+ "--lace-color-text-description": "#3f4642",
61
62
  "--lace-color-text-danger": "#dc2626",
62
63
  "--lace-color-text-danger-soft": "#ef4444",
63
64
  "--lace-color-row-hover": "rgba(0, 0, 0, 0.02)",
64
- "--lace-color-ink": "#3d6600",
65
+ "--lace-color-ink": "#44680f",
65
66
  "--lace-color-accent-alpha-subtle": "#f1fcd9",
66
67
  "--lace-color-accent-alpha-medium": "rgba(132, 204, 22, 0.16)",
67
68
  "--lace-color-accent-strong": "#2d4a00",
68
69
  "--lace-color-blue-mark": "#2563eb",
70
+ "--lace-color-blue-word": "#1d4ed8",
69
71
  "--lace-color-amber-mark": "#8a5a10",
70
72
  "--lace-color-green-mark": "#047857",
71
- "--lace-color-success": "#047857",
73
+ "--lace-color-success": "#157f3d",
72
74
  "--lace-color-success-hover": "#065f46",
73
75
  "--lace-color-danger": "#dc2626",
74
76
  "--lace-color-danger-bg-soft": "#fef2f2",
75
77
  "--lace-color-danger-fg": "#b91c1c",
76
78
  "--lace-color-warning-bg": "#fffbeb",
77
- "--lace-color-warning-fg": "#b45309",
78
- "--lace-color-info": "#2563eb",
79
- "--lace-color-focus-ring": "#3d6600",
79
+ "--lace-color-warning-fg": "#a14a09",
80
+ "--lace-color-info": "#1d4ed8",
81
+ "--lace-color-focus-ring": "#44680f",
80
82
  "--lace-color-series-1": "#268fa9",
81
83
  "--lace-color-series-2": "#5c3e9a",
82
84
  "--lace-color-series-3": "#8a5a10",
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/themes.gen.ts","../src/theme-choice.ts","../src/index.ts"],"sourcesContent":["// Generated from tokens.css by scripts/gen-themes.mjs; `pnpm --filter @lace-cloud/design-tokens build`\n// rewrites it. Edit tokens.css, never this file.\n\n/**\n * The dark theme's semantic colours — every `--lace-color-*` of tokens.css's semantic tier, at the\n * value it resolves to in the default (dark) theme — for a consumer that cannot load tokens.css: a\n * server-rendered page declares them in its own `:root` and reads them by the names the\n * stylesheet uses.\n */\nexport const darkTheme = {\n '--lace-color-bg-canvas': '#161616',\n '--lace-color-bg-surface': '#1e1e1e',\n '--lace-color-bg-surface-alt': '#252526',\n '--lace-color-bg-input': '#0f0f0f',\n '--lace-color-bg-context-menu': '#1a1a1a',\n '--lace-color-border-default': 'rgba(255, 255, 255, 0.08)',\n '--lace-color-border-subtle': '#3c3c3c',\n '--lace-color-border-input': 'rgba(255, 255, 255, 0.15)',\n '--lace-color-border-control': '#757575',\n '--lace-color-border-input-hover': '#888888',\n '--lace-color-text-primary': '#ecefed',\n '--lace-color-text-label': '#e6e6e6',\n '--lace-color-text-muted': '#8f9691',\n '--lace-color-text-description': '#b3bab5',\n '--lace-color-text-danger': '#e5484d',\n '--lace-color-text-danger-soft': '#f87171',\n '--lace-color-row-hover': 'rgba(255, 255, 255, 0.025)',\n '--lace-color-accent': '#cefe65',\n '--lace-color-text-on-accent': '#111111',\n '--lace-color-accent-edge': '#cefe65',\n '--lace-color-ink': '#cefe65',\n '--lace-color-accent-alpha-subtle': 'rgba(206, 254, 101, 0.1)',\n '--lace-color-accent-alpha-medium': 'rgba(206, 254, 101, 0.2)',\n '--lace-color-accent-strong': '#e0ff8a',\n '--lace-color-blue-mark': '#60a5fa',\n '--lace-color-amber-mark': '#f5a623',\n '--lace-color-green-mark': '#4ade80',\n '--lace-color-success': '#4ade80',\n '--lace-color-success-hover': '#22c55e',\n '--lace-color-danger': '#e5484d',\n '--lace-color-danger-bg-soft': 'rgba(248, 113, 113, 0.12)',\n '--lace-color-danger-fg': '#f87171',\n '--lace-color-warning-bg': '#3b2507',\n '--lace-color-warning-fg': '#fbbf24',\n '--lace-color-info': '#9ecbff',\n '--lace-color-focus-ring': '#cefe65',\n '--lace-color-series-1': '#95e7ff',\n '--lace-color-series-2': '#b084f0',\n '--lace-color-series-3': '#f5a623',\n '--lace-color-series-4': '#f288c6',\n '--lace-color-series-5': '#ff8a4c',\n '--lace-color-series-6': '#cefe65',\n} as const;\n\n/**\n * The light theme's semantic colours — every `--lace-color-*` tokens.css's `[data-theme=\"light\"]`\n * block overrides, at the value it resolves to there — declared after `darkTheme` under the\n * page's own `[data-theme=\"light\"]`.\n */\nexport const lightTheme = {\n '--lace-color-bg-canvas': '#ffffff',\n '--lace-color-bg-surface': '#ffffff',\n '--lace-color-bg-surface-alt': '#f4f5f2',\n '--lace-color-bg-input': '#ffffff',\n '--lace-color-bg-context-menu': '#ffffff',\n '--lace-color-border-default': '#eef0f3',\n '--lace-color-border-subtle': '#dfe3ea',\n '--lace-color-border-input': 'rgba(22, 22, 22, 0.2)',\n '--lace-color-border-control': '#7a7a7a',\n '--lace-color-border-input-hover': '#4b5563',\n '--lace-color-text-primary': '#0f172a',\n '--lace-color-text-label': '#1f2937',\n '--lace-color-text-muted': '#606f85',\n '--lace-color-text-description': '#475569',\n '--lace-color-text-danger': '#dc2626',\n '--lace-color-text-danger-soft': '#ef4444',\n '--lace-color-row-hover': 'rgba(0, 0, 0, 0.02)',\n '--lace-color-ink': '#3d6600',\n '--lace-color-accent-alpha-subtle': '#f1fcd9',\n '--lace-color-accent-alpha-medium': 'rgba(132, 204, 22, 0.16)',\n '--lace-color-accent-strong': '#2d4a00',\n '--lace-color-blue-mark': '#2563eb',\n '--lace-color-amber-mark': '#8a5a10',\n '--lace-color-green-mark': '#047857',\n '--lace-color-success': '#047857',\n '--lace-color-success-hover': '#065f46',\n '--lace-color-danger': '#dc2626',\n '--lace-color-danger-bg-soft': '#fef2f2',\n '--lace-color-danger-fg': '#b91c1c',\n '--lace-color-warning-bg': '#fffbeb',\n '--lace-color-warning-fg': '#b45309',\n '--lace-color-info': '#2563eb',\n '--lace-color-focus-ring': '#3d6600',\n '--lace-color-series-1': '#268fa9',\n '--lace-color-series-2': '#5c3e9a',\n '--lace-color-series-3': '#8a5a10',\n '--lace-color-series-4': '#8a2e5c',\n '--lace-color-series-5': '#8a3a10',\n '--lace-color-series-6': '#5e8a1a',\n} as const;\n\n/**\n * The text roles in the default (compact) type set — each `--lace-text-<role>` `font` shorthand\n * and its `-size`, `-line`, `-weight`, `-family` and `-tracking`, resolved — for a consumer\n * that cannot load tokens.css: it declares them in its own `:root` and sets a run's type with\n * `font: var(--lace-text-<role>)` and `letter-spacing: var(--lace-text-<role>-tracking)`.\n */\nexport const textRoles = {\n '--lace-text-display-size': '22px',\n '--lace-text-display-line': '28px',\n '--lace-text-title-size': '16px',\n '--lace-text-title-line': '22px',\n '--lace-text-heading-size': '14px',\n '--lace-text-heading-line': '20px',\n '--lace-text-body-size': '13px',\n '--lace-text-body-line': '18px',\n '--lace-text-control-size': '12px',\n '--lace-text-control-line': '16px',\n '--lace-text-caption-size': '11px',\n '--lace-text-caption-line': '14px',\n '--lace-text-label-size': '10px',\n '--lace-text-label-line': '14px',\n '--lace-text-code-size': '12px',\n '--lace-text-code-line': '16px',\n '--lace-text-note-size': '14px',\n '--lace-text-note-line': '20px',\n '--lace-text-display-weight': '600',\n '--lace-text-display-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-display-tracking': '-0.01em',\n '--lace-text-title-weight': '600',\n '--lace-text-title-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title-tracking': '0',\n '--lace-text-heading-weight': '600',\n '--lace-text-heading-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading-tracking': '0',\n '--lace-text-body-weight': '400',\n '--lace-text-body-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body-tracking': '0',\n '--lace-text-control-weight': '500',\n '--lace-text-control-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control-tracking': '0',\n '--lace-text-caption-weight': '400',\n '--lace-text-caption-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption-tracking': '0',\n '--lace-text-label-weight': '500',\n '--lace-text-label-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-label-tracking': '0.06em',\n '--lace-text-code-weight': '400',\n '--lace-text-code-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code-tracking': '0',\n '--lace-text-note-weight': '400',\n '--lace-text-note-family': '\"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n '--lace-text-note-tracking': '0',\n '--lace-text-display': '600 22px / 28px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title': '600 16px / 22px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading': '600 14px / 20px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body': '400 13px / 18px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control': '500 12px / 16px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption': '400 11px / 14px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-label': '500 10px / 14px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code': '400 12px / 16px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-note': 'italic 400 14px / 20px \"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n} as const;\n","// The theme rule: which product theme a page draws, from the reader's stored choice and the\n// device's setting. Pure, with no DOM access at import: a build config and the API Worker import\n// it as well as the pages that apply it.\n\nimport type { THEMES } from './index';\n\n/** The themes product UI offers its reader, in the order its switch lists them; a host with\n * high-contrast themes of its own maps onto the rest. */\nexport const PRODUCT_THEMES = [\n 'light',\n 'dark',\n] as const satisfies readonly (typeof THEMES)[number][];\n\n/** A product theme, the value of `<html data-theme>` on a page that follows the rule. */\nexport type ProductTheme = (typeof PRODUCT_THEMES)[number];\n\n/** What a reader chose: `system` follows the device; a product theme is stored and wins over it. */\nexport type ThemeChoice = 'system' | ProductTheme;\n\n/** The theme choice a reader's switch stores in their browser, `light` or `dark`; absent, the\n * page follows the system. */\nexport const THEME_STORAGE_KEY = 'lace-theme';\n\n/** The media query that matches while the device asks for light. */\nexport const SYSTEM_LIGHT_QUERY = '(prefers-color-scheme: light)';\n\n/** The choice a stored value holds: a product theme is itself; anything else, absence included,\n * is `system`. */\nexport function choiceOf(stored: string | null): ThemeChoice {\n return PRODUCT_THEMES.find((theme) => theme === stored) ?? 'system';\n}\n\n/** The theme a page draws: a chosen product theme wins; `system` draws light while the device\n * asks for light, and dark otherwise. */\nexport function themeOf(choice: ThemeChoice, systemLight: boolean): ProductTheme {\n if (choice !== 'system') return choice;\n return systemLight ? 'light' : 'dark';\n}\n\nconst literal = JSON.stringify;\n\n/** The script a page's `<head>` runs before anything paints: it sets `<html data-theme>` to\n * `themeOf(choiceOf(stored), systemLight)`, its every value written from the rule above. It is\n * ES5 and self-contained, and it never throws: storage that refuses reads as no choice, and a\n * window without `matchMedia` as a device that does not ask for light. Its text is fixed at\n * load, so a CSP admits it by its hash. */\nexport const PRE_MOUNT_THEME_SCRIPT = `(function () {\n var stored = null;\n var systemLight = false;\n try { stored = localStorage.getItem(${literal(THEME_STORAGE_KEY)}); } catch (e) {}\n try { systemLight = window.matchMedia(${literal(SYSTEM_LIGHT_QUERY)}).matches; } catch (e) {}\n var theme = ${literal(PRODUCT_THEMES)}.indexOf(stored) < 0\n ? (systemLight ? ${literal(themeOf('system', true))} : ${literal(themeOf('system', false))})\n : stored;\n document.documentElement.setAttribute(\"data-theme\", theme);\n})();`;\n","// @lace-cloud/design-tokens — JS/TS token exports\n// Primary distribution is tokens.css; use this for JS/TS consumers that\n// need programmatic access to token values (e.g., pinColor.ts).\n\nexport const brand = {\n green: '#CEFE65',\n greenBright: '#e0ff8a',\n gunmetal: '#153238',\n gunmetalLight: '#1a3f47',\n night: '#161616',\n cyan: '#95E7FF',\n grey: '#ECEFED',\n} as const;\n\nexport const pin = {\n string: { fill: '#95E7FF', stroke: '#2C9DB9' },\n number: { fill: '#F5A623', stroke: '#8A5A10' },\n bool: { fill: '#B084F0', stroke: '#5C3E9A' },\n list: { fill: '#CEFE65', stroke: '#5E8A1A' },\n map: { fill: '#F288C6', stroke: '#8A2E5C' },\n object: { fill: '#FF8A4C', stroke: '#8A3A10' },\n any: { fill: '#9BA19E', stroke: '#4A4F4C' },\n} as const;\n\n// The themes' semantic colours and the compact text roles, generated from\n// tokens.css at build (`src/themes-source.ts`): `darkTheme`, `lightTheme` and\n// `textRoles`, for a consumer that cannot load the stylesheet.\nexport { darkTheme, lightTheme, textRoles } from './themes.gen';\n\nimport type { textRoles } from './themes.gen';\n\n/** A text role tokens.css declares, by the name in its `--lace-text-<role>` custom properties. */\nexport type TextRole = keyof typeof textRoles extends infer Name\n ? Name extends `--lace-text-${infer Role}-size`\n ? Role\n : never\n : never;\n\n/** The themes tokens.css declares, read through `data-theme` on <html>: `dark` is the default,\n * the rest are `[data-theme=\"<name>\"]` blocks. A host maps its own theme names onto these. */\nexport const THEMES = ['dark', 'light', 'high-contrast', 'high-contrast-light'] as const;\n\n// The themes product UI offers (`PRODUCT_THEMES`) and the rule that picks one from the reader's\n// choice and the device's setting.\nexport * from './theme-choice';\n\n/** The type sets tokens.css declares, read through `data-lace-type-set` on a region's root: each\n * sizes the text roles for one kind of region. `compact` is the default (`:root`) and the\n * canvas's own root; `comfortable` is product UI, the portal's document root; `expressive` is\n * prose, the editorial and article templates' prose regions. */\nexport const TYPE_SETS = ['compact', 'comfortable', 'expressive'] as const;\n\n/** A type set, the value of a region's `data-lace-type-set`. */\nexport type TypeSet = (typeof TYPE_SETS)[number];\n\n/** The type set product UI reads: the one the portal's document root declares. */\nexport const PRODUCT_TYPE_SET = 'comfortable' satisfies TypeSet;\n\n/** The papers tokens.css declares beside the paper of now (`:root`), read through\n * `data-lace-paper` on a region's root: `blueprint` is the paper a page drawn as of an earlier\n * revision is drawn on, its ground, threads and ink in one blue in every theme. */\nexport const PAPERS = ['blueprint'] as const;\n\n/** A paper, the value of a region's `data-lace-paper`. */\nexport type Paper = (typeof PAPERS)[number];\n\n/** Custom properties (a theme's colours, the text roles) as the declarations of one CSS rule,\n * `name:value` joined by `;`, for a page that declares the tokens in a rule of its own. */\nexport function themeDeclarations(theme: Readonly<Record<string, string>>): string {\n return Object.entries(theme)\n .map(([name, value]) => `${name}:${value}`)\n .join(';');\n}\n"],"mappings":";AASO,IAAM,YAAY;AAAA,EACvB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,gCAAgC;AAAA,EAChC,+BAA+B;AAAA,EAC/B,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,+BAA+B;AAAA,EAC/B,mCAAmC;AAAA,EACnC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,iCAAiC;AAAA,EACjC,4BAA4B;AAAA,EAC5B,iCAAiC;AAAA,EACjC,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,+BAA+B;AAAA,EAC/B,4BAA4B;AAAA,EAC5B,oBAAoB;AAAA,EACpB,oCAAoC;AAAA,EACpC,oCAAoC;AAAA,EACpC,8BAA8B;AAAA,EAC9B,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,wBAAwB;AAAA,EACxB,8BAA8B;AAAA,EAC9B,uBAAuB;AAAA,EACvB,+BAA+B;AAAA,EAC/B,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,qBAAqB;AAAA,EACrB,2BAA2B;AAAA,EAC3B,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAAA,EACzB,yBAAyB;AAC3B;AAOO,IAAM,aAAa;AAAA,EACxB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,gCAAgC;AAAA,EAChC,+BAA+B;AAAA,EAC/B,8BAA8B;AAA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A,EACb,UAAU;AAAA,EACV,eAAe;AAAA,EACf,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AACR;AAEO,IAAM,MAAM;AAAA,EACjB,QAAQ,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC7C,QAAQ,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC7C,MAAM,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC3C,MAAM,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC3C,KAAK,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC1C,QAAQ,EAAE,MAAM,WAAW,QAAQ,UAAU;AAAA,EAC7C,KAAK,EAAE,MAAM,WAAW,QAAQ,UAAU;AAC5C;AAkBO,IAAM,SAAS,CAAC,QAAQ,SAAS,iBAAiB,qBAAqB;AAUvE,IAAM,YAAY,CAAC,WAAW,eAAe,YAAY;AAMzD,IAAM,mBAAmB;AAKzB,IAAM,SAAS,CAAC,WAAW;AAO3B,SAAS,kBAAkB,OAAiD;AACjF,SAAO,OAAO,QAAQ,KAAK,EACxB,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,GAAG,IAAI,IAAI,KAAK,EAAE,EACzC,KAAK,GAAG;AACb;","names":[]}
1
+ {"version":3,"sources":["../src/themes.gen.ts","../src/theme-choice.ts","../src/index.ts"],"sourcesContent":["// Generated from tokens.css by scripts/gen-themes.mjs; `pnpm --filter @lace-cloud/design-tokens build`\n// rewrites it. Edit tokens.css, never this file.\n\n/**\n * The dark theme's semantic colours — every `--lace-color-*` of tokens.css's semantic tier, at the\n * value it resolves to in the default (dark) theme — for a consumer that cannot load tokens.css: a\n * server-rendered page declares them in its own `:root` and reads them by the names the\n * stylesheet uses.\n */\nexport const darkTheme = {\n '--lace-color-bg-canvas': '#161616',\n '--lace-color-bg-surface': '#1e1e1e',\n '--lace-color-bg-surface-alt': '#252526',\n '--lace-color-bg-input': '#0f0f0f',\n '--lace-color-bg-context-menu': '#1a1a1a',\n '--lace-color-border-default': 'rgba(255, 255, 255, 0.08)',\n '--lace-color-border-subtle': '#3c3c3c',\n '--lace-color-border-input': 'rgba(255, 255, 255, 0.14)',\n '--lace-color-border-control': '#757575',\n '--lace-color-border-input-hover': '#888888',\n '--lace-color-text-primary': '#ecefed',\n '--lace-color-text-label': '#e6e6e6',\n '--lace-color-text-muted': '#8f9691',\n '--lace-color-text-description': '#b3bab5',\n '--lace-color-text-danger': '#e5484d',\n '--lace-color-text-danger-soft': '#f87171',\n '--lace-color-row-hover': 'rgba(255, 255, 255, 0.025)',\n '--lace-color-accent': '#cefe65',\n '--lace-color-text-on-accent': '#111111',\n '--lace-color-accent-edge': '#cefe65',\n '--lace-color-ink': '#cefe65',\n '--lace-color-accent-alpha-subtle': 'rgba(206, 254, 101, 0.1)',\n '--lace-color-accent-alpha-medium': 'rgba(206, 254, 101, 0.2)',\n '--lace-color-accent-strong': '#e0ff8a',\n '--lace-color-blue-mark': '#60a5fa',\n '--lace-color-blue-word': '#60a5fa',\n '--lace-color-amber-mark': '#f5a623',\n '--lace-color-green-mark': '#4ade80',\n '--lace-color-success': '#4ade80',\n '--lace-color-success-hover': '#22c55e',\n '--lace-color-danger': '#e5484d',\n '--lace-color-danger-bg-soft': 'rgba(248, 113, 113, 0.12)',\n '--lace-color-danger-fg': '#f87171',\n '--lace-color-warning-bg': '#3b2507',\n '--lace-color-warning-fg': '#fbbf24',\n '--lace-color-info': '#9ecbff',\n '--lace-color-focus-ring': '#cefe65',\n '--lace-color-series-1': '#95e7ff',\n '--lace-color-series-2': '#b084f0',\n '--lace-color-series-3': '#f5a623',\n '--lace-color-series-4': '#f288c6',\n '--lace-color-series-5': '#ff8a4c',\n '--lace-color-series-6': '#cefe65',\n} as const;\n\n/**\n * The light theme's semantic colours — every `--lace-color-*` tokens.css's `[data-theme=\"light\"]`\n * block overrides, at the value it resolves to there — declared after `darkTheme` under the\n * page's own `[data-theme=\"light\"]`.\n */\nexport const lightTheme = {\n '--lace-color-bg-canvas': '#f1f3f0',\n '--lace-color-bg-surface': '#ffffff',\n '--lace-color-bg-surface-alt': '#f6f8f5',\n '--lace-color-bg-input': '#ffffff',\n '--lace-color-bg-context-menu': '#ffffff',\n '--lace-color-border-default': 'rgba(0, 0, 0, 0.1)',\n '--lace-color-border-subtle': '#dfe3ea',\n '--lace-color-border-input': 'rgba(0, 0, 0, 0.18)',\n '--lace-color-border-control': '#7a7a7a',\n '--lace-color-border-input-hover': '#4b5563',\n '--lace-color-text-primary': '#161616',\n '--lace-color-text-label': '#1f2937',\n '--lace-color-text-muted': '#586059',\n '--lace-color-text-description': '#3f4642',\n '--lace-color-text-danger': '#dc2626',\n '--lace-color-text-danger-soft': '#ef4444',\n '--lace-color-row-hover': 'rgba(0, 0, 0, 0.02)',\n '--lace-color-ink': '#44680f',\n '--lace-color-accent-alpha-subtle': '#f1fcd9',\n '--lace-color-accent-alpha-medium': 'rgba(132, 204, 22, 0.16)',\n '--lace-color-accent-strong': '#2d4a00',\n '--lace-color-blue-mark': '#2563eb',\n '--lace-color-blue-word': '#1d4ed8',\n '--lace-color-amber-mark': '#8a5a10',\n '--lace-color-green-mark': '#047857',\n '--lace-color-success': '#157f3d',\n '--lace-color-success-hover': '#065f46',\n '--lace-color-danger': '#dc2626',\n '--lace-color-danger-bg-soft': '#fef2f2',\n '--lace-color-danger-fg': '#b91c1c',\n '--lace-color-warning-bg': '#fffbeb',\n '--lace-color-warning-fg': '#a14a09',\n '--lace-color-info': '#1d4ed8',\n '--lace-color-focus-ring': '#44680f',\n '--lace-color-series-1': '#268fa9',\n '--lace-color-series-2': '#5c3e9a',\n '--lace-color-series-3': '#8a5a10',\n '--lace-color-series-4': '#8a2e5c',\n '--lace-color-series-5': '#8a3a10',\n '--lace-color-series-6': '#5e8a1a',\n} as const;\n\n/**\n * The text roles in the default (compact) type set — each `--lace-text-<role>` `font` shorthand\n * and its `-size`, `-line`, `-weight`, `-family` and `-tracking`, resolved — for a consumer\n * that cannot load tokens.css: it declares them in its own `:root` and sets a run's type with\n * `font: var(--lace-text-<role>)` and `letter-spacing: var(--lace-text-<role>-tracking)`.\n */\nexport const textRoles = {\n '--lace-text-display-size': '22px',\n '--lace-text-display-line': '28px',\n '--lace-text-title-size': '16px',\n '--lace-text-title-line': '22px',\n '--lace-text-heading-size': '14px',\n '--lace-text-heading-line': '20px',\n '--lace-text-body-size': '13px',\n '--lace-text-body-line': '18px',\n '--lace-text-control-size': '12px',\n '--lace-text-control-line': '16px',\n '--lace-text-caption-size': '11px',\n '--lace-text-caption-line': '14px',\n '--lace-text-label-size': '10px',\n '--lace-text-label-line': '14px',\n '--lace-text-code-size': '12px',\n '--lace-text-code-line': '16px',\n '--lace-text-note-size': '14px',\n '--lace-text-note-line': '20px',\n '--lace-text-display-weight': '600',\n '--lace-text-display-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-display-tracking': '-0.01em',\n '--lace-text-title-weight': '600',\n '--lace-text-title-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title-tracking': '0',\n '--lace-text-heading-weight': '600',\n '--lace-text-heading-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading-tracking': '0',\n '--lace-text-body-weight': '400',\n '--lace-text-body-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body-tracking': '0',\n '--lace-text-control-weight': '500',\n '--lace-text-control-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control-tracking': '0',\n '--lace-text-caption-weight': '400',\n '--lace-text-caption-family': '\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption-tracking': '0',\n '--lace-text-label-weight': '500',\n '--lace-text-label-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-label-tracking': '0.06em',\n '--lace-text-code-weight': '400',\n '--lace-text-code-family': '\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code-tracking': '0',\n '--lace-text-note-weight': '400',\n '--lace-text-note-family': '\"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n '--lace-text-note-tracking': '0',\n '--lace-text-display': '600 22px / 28px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-title': '600 16px / 22px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-heading': '600 14px / 20px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-body': '400 13px / 18px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-control': '500 12px / 16px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-caption': '400 11px / 14px \"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif',\n '--lace-text-label': '500 10px / 14px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-code': '400 12px / 16px \"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n '--lace-text-note': 'italic 400 14px / 20px \"Instrument Serif\", Georgia, \"Times New Roman\", serif',\n} as const;\n","// The theme rule: which product theme a page draws, from the reader's stored choice and the\n// device's setting. Pure, with no DOM access at import: a build config and the API Worker import\n// it as well as the pages that apply it.\n\nimport type { THEMES } from './index';\n\n/** The themes product UI offers its reader, in the order its switch lists them; a host with\n * high-contrast themes of its own maps onto the rest. */\nexport const PRODUCT_THEMES = [\n 'light',\n 'dark',\n] as const satisfies readonly (typeof THEMES)[number][];\n\n/** A product theme, the value of `<html data-theme>` on a page that follows the rule. */\nexport type ProductTheme = (typeof PRODUCT_THEMES)[number];\n\n/** What a reader chose: `system` follows the device; a product theme is stored and wins over it. */\nexport type ThemeChoice = 'system' | ProductTheme;\n\n/** The theme choice a reader's switch stores in their browser, `light` or `dark`; absent, the\n * page follows the system. */\nexport const THEME_STORAGE_KEY = 'lace-theme';\n\n/** The media query that matches while the device asks for light. */\nexport const SYSTEM_LIGHT_QUERY = '(prefers-color-scheme: light)';\n\n/** The choice a stored value holds: a product theme is itself; anything else, absence included,\n * is `system`. */\nexport function choiceOf(stored: string | null): ThemeChoice {\n return PRODUCT_THEMES.find((theme) => theme === stored) ?? 'system';\n}\n\n/** The theme a page draws: a chosen product theme wins; `system` draws light while the device\n * asks for light, and dark otherwise. */\nexport function themeOf(choice: ThemeChoice, systemLight: boolean): ProductTheme {\n if (choice !== 'system') return choice;\n return systemLight ? 'light' : 'dark';\n}\n\nconst literal = JSON.stringify;\n\n/** The script a page's `<head>` runs before anything paints: it sets `<html data-theme>` to\n * `themeOf(choiceOf(stored), systemLight)`, its every value written from the rule above. It is\n * ES5 and self-contained, and it never throws: storage that refuses reads as no choice, and a\n * window without `matchMedia` as a device that does not ask for light. Its text is fixed at\n * load, so a CSP admits it by its hash. */\nexport const PRE_MOUNT_THEME_SCRIPT = `(function () {\n var stored = null;\n var systemLight = false;\n try { stored = localStorage.getItem(${literal(THEME_STORAGE_KEY)}); } catch (e) {}\n try { systemLight = window.matchMedia(${literal(SYSTEM_LIGHT_QUERY)}).matches; } catch (e) {}\n var theme = ${literal(PRODUCT_THEMES)}.indexOf(stored) < 0\n ? (systemLight ? ${literal(themeOf('system', true))} : ${literal(themeOf('system', false))})\n : stored;\n document.documentElement.setAttribute(\"data-theme\", theme);\n})();`;\n","// @lace-cloud/design-tokens — JS/TS token exports\n// Primary distribution is tokens.css; use this for JS/TS consumers that\n// need programmatic access to token values (e.g., pinColor.ts).\n\nexport const brand = {\n green: '#CEFE65',\n greenBright: '#e0ff8a',\n gunmetal: '#153238',\n gunmetalLight: '#1a3f47',\n night: '#161616',\n cyan: '#95E7FF',\n grey: '#ECEFED',\n} as const;\n\nexport const pin = {\n string: { fill: '#95E7FF', stroke: '#2C9DB9' },\n number: { fill: '#F5A623', stroke: '#8A5A10' },\n bool: { fill: '#B084F0', stroke: '#5C3E9A' },\n list: { fill: '#CEFE65', stroke: '#5E8A1A' },\n map: { fill: '#F288C6', stroke: '#8A2E5C' },\n object: { fill: '#FF8A4C', stroke: '#8A3A10' },\n any: { fill: '#9BA19E', stroke: '#4A4F4C' },\n} as const;\n\n// The themes' semantic colours and the compact text roles, generated from\n// tokens.css at build (`src/themes-source.ts`): `darkTheme`, `lightTheme` and\n// `textRoles`, for a consumer that cannot load the stylesheet.\nexport { darkTheme, lightTheme, textRoles } from './themes.gen';\n\nimport type { textRoles } from './themes.gen';\n\n/** A text role tokens.css declares, by the name in its `--lace-text-<role>` custom properties. */\nexport type TextRole = keyof typeof textRoles extends infer Name\n ? Name extends `--lace-text-${infer Role}-size`\n ? Role\n : never\n : never;\n\n/** The themes tokens.css declares, read through `data-theme` on <html>: `dark` is the default,\n * the rest are `[data-theme=\"<name>\"]` blocks. A host maps its own theme names onto these. */\nexport const THEMES = ['dark', 'light', 'high-contrast', 'high-contrast-light'] as const;\n\n// The themes product UI offers (`PRODUCT_THEMES`) and the rule that picks one from the reader's\n// choice and the device's setting.\nexport * from './theme-choice';\n\n/** The type sets tokens.css declares, read through `data-lace-type-set` on a region's root: each\n * sizes the text roles for one kind of region. `compact` is the default (`:root`) and the\n * canvas's own root; `comfortable` is product UI, the portal's document root; `expressive` is\n * prose, the editorial and article templates' prose regions. */\nexport const TYPE_SETS = ['compact', 'comfortable', 'expressive'] as const;\n\n/** A type set, the value of a region's `data-lace-type-set`. */\nexport type TypeSet = (typeof TYPE_SETS)[number];\n\n/** The type set product UI reads: the one the portal's document root declares. */\nexport const PRODUCT_TYPE_SET = 'comfortable' satisfies TypeSet;\n\n/** The papers tokens.css declares beside the paper of now (`:root`), read through\n * `data-lace-paper` on a region's root: `blueprint` is the paper a page drawn as of an earlier\n * revision is drawn on, its ground, threads and ink in one blue in every theme. */\nexport const PAPERS = ['blueprint'] as const;\n\n/** A paper, the value of a region's `data-lace-paper`. */\nexport type Paper = (typeof PAPERS)[number];\n\n/** Custom properties (a theme's colours, the text roles) as the declarations of one CSS rule,\n * `name:value` joined by `;`, for a page that declares the tokens in a rule of its own. */\nexport function themeDeclarations(theme: Readonly<Record<string, string>>): string {\n return Object.entries(theme)\n .map(([name, value]) => `${name}:${value}`)\n .join(';');\n}\n"],"mappings":";AASO,IAAM,YAAY;AAAA,EACvB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,+BAA+B;AAAA,EAC/B,yBAAyB;AAAA,EACzB,gCAAgC;AAAA,EAChC,+BAA+B;AAAA,EAC/B,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,+BAA+B;AAAA,EAC/B,mCAAmC;AAAA,EACnC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,iCAAiC;AAAA,EACjC,4BAA4B;AAAA,EAC5B,iCAAiC;AAAA,EACjC,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,+BAA+B;AAAA,EAC/B,4BAA4B;AAAA,EAC5B,oBAAoB;AAAA,EACpB,oCAAoC;AAAA,EACpC,oCAAoC;AAAA,EACpC,8BAA8B;AAAA,EAC9B,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA,EAC3B,wBAAwB;AAAA,EACxB,8BAA8B;AAAA,EAC9B,uBAAuB;AAAA,EACvB,+BAA+B;AAAA,EAC/B,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,2BAA2B;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
3
+ "version": "0.46.0",
4
4
  "lace": {
5
5
  "owner": "library"
6
6
  },
package/tokens.css CHANGED
@@ -29,6 +29,7 @@
29
29
  --lace-color-green-300: #e0ff8a;
30
30
  --lace-color-green-500: #cefe65;
31
31
  --lace-color-green-700: #5e8a1a;
32
+ --lace-color-green-800: #44680f;
32
33
  --lace-color-green-900: #3d6600;
33
34
  --lace-color-cyan-500: #95e7ff;
34
35
  --lace-color-cyan-700: #2c9db9;
@@ -70,10 +71,13 @@
70
71
  --lace-color-mascot-fur-dark: #a8d850;
71
72
 
72
73
  /* ── Palette: warm neutral ── */
74
+ --lace-color-warm-50: #f6f8f5;
73
75
  --lace-color-warm-75: #f4f5f2;
74
76
  --lace-color-warm-100: #f1f3f0;
75
77
  --lace-color-warm-400: #b3bab5;
76
78
  --lace-color-warm-500: #8f9691;
79
+ --lace-color-warm-600: #586059;
80
+ --lace-color-warm-700: #3f4642;
77
81
  --lace-color-warm-900: #1a1815;
78
82
 
79
83
  /* ── Palette: cool neutral ── the light theme's lines and inks, and the blueprint's grounds. */
@@ -114,11 +118,14 @@
114
118
  * direction in their theme block. */
115
119
  --lace-color-green-bright-500: #4ade80;
116
120
  --lace-color-green-bright-600: #22c55e;
121
+ --lace-color-green-deep-600: #157f3d;
117
122
  --lace-color-green-deep-700: #047857;
118
123
  --lace-color-green-deep-800: #065f46;
119
124
  --lace-color-amber-bright-400: #fbbf24;
120
125
  --lace-color-amber-deep-700: #b45309;
126
+ --lace-color-amber-deep-800: #a14a09;
121
127
  --lace-color-blue-bright-500: #60a5fa;
128
+ --lace-color-blue-deep-600: #1d4ed8;
122
129
  --lace-color-blue-deep-700: #2563eb;
123
130
 
124
131
  /* ── Palette: alpha variants ── */
@@ -134,15 +141,22 @@
134
141
  --lace-color-green-alpha-30: rgba(206, 254, 101, 0.3);
135
142
  --lace-color-green-900-alpha-30: rgba(61, 102, 0, 0.3);
136
143
  --lace-color-green-alpha-60: rgba(206, 254, 101, 0.6);
144
+ --lace-color-red-alpha-10: rgba(248, 113, 113, 0.1);
137
145
  --lace-color-red-alpha-12: rgba(248, 113, 113, 0.12);
138
146
  --lace-color-red-alpha-25: rgba(229, 72, 77, 0.25);
139
147
  --lace-color-red-alpha-30: rgba(248, 113, 113, 0.3);
140
148
  --lace-color-green-bright-alpha-15: rgba(74, 222, 128, 0.15);
141
149
  --lace-color-white-alpha-03: rgba(255, 255, 255, 0.03);
142
150
  --lace-color-white-alpha-08: rgba(255, 255, 255, 0.08);
151
+ --lace-color-white-alpha-14: rgba(255, 255, 255, 0.14);
143
152
  --lace-color-white-alpha-15: rgba(255, 255, 255, 0.15);
153
+ --lace-color-white-alpha-06: rgba(255, 255, 255, 0.06);
144
154
  --lace-color-white-alpha-40: rgba(255, 255, 255, 0.4);
155
+ --lace-color-terminal: #0d0d0d; /* the CLI sign-in panel's terminal: a black that sits under the page's dark ink */
145
156
  --lace-color-amber-alpha-25: rgba(255, 200, 80, 0.25);
157
+ --lace-color-black-alpha-10: rgba(0, 0, 0, 0.1);
158
+ --lace-color-black-alpha-18: rgba(0, 0, 0, 0.18);
159
+ --lace-color-black-alpha-50: rgba(0, 0, 0, 0.5);
146
160
  --lace-color-black-alpha-60: rgba(0, 0, 0, 0.6);
147
161
  --lace-color-blue-alpha-30: rgba(59, 130, 246, 0.3);
148
162
  --lace-color-green-alpha-03: rgba(206, 254, 101, 0.03);
@@ -151,6 +165,7 @@
151
165
  --lace-color-blue-deep-alpha-07: rgba(10, 98, 189, 0.07);
152
166
  --lace-color-blue-deep-alpha-14: rgba(10, 98, 189, 0.14);
153
167
  --lace-color-blue-deep-800: #0a62bd;
168
+ --lace-color-severity-medium: #d4b106; /* a medium finding's mark: between the amber of high and the blue of low */
154
169
 
155
170
  /* ── Scale: spacing (4px base) ── */
156
171
  --lace-space-0: 0;
@@ -165,6 +180,8 @@
165
180
  /* ── Scale: size ── */
166
181
  --lace-size-grid-fine: 20px;
167
182
  --lace-size-grid-major: 100px;
183
+ --lace-size-dialog-inset: 20px; /* a dialog's padding from its edge, on every side it draws */
184
+ --lace-size-dialog-close: 28px; /* a dialog's close control, a square */
168
185
  --lace-size-page-max: 1152px;
169
186
  --lace-size-measure: 70ch; /* a prose column's widest: about seventy characters of its body face */
170
187
  /* The viewport widths a fluid text role runs between: `@carbon/type`'s sm and max breakpoints.
@@ -173,32 +190,86 @@
173
190
  --lace-size-viewport-sm: 320px;
174
191
  --lace-size-target: 24px; /* a pointer target's least box: WCAG 2.2 SC 2.5.8 (Target Size, Minimum) asks 24 by 24 CSS px of every control */
175
192
  --lace-size-control-rung: 36px; /* resting height every admin control family shares, so siblings on one page sit at one height */
176
- --lace-size-control-sm: 28px; /* a control inside a section header or a row */
193
+ --lace-size-control-sm: 32px; /* a control inside a section header or a row */
177
194
  --lace-size-control-lg: 40px; /* a control a page stands on alone: a sign-in field and its primary */
178
- --lace-size-badge: 22px; /* a status badge, a mode tag */
195
+ --lace-size-badge: 24px; /* a status badge, a mode tag */
179
196
  --lace-size-kbd: 20px; /* a key cap, a stamp */
180
197
  --lace-size-field-inset: 10px; /* a text field's inline inset: where its text starts inside its border */
181
198
  --lace-size-field-toggle: 34px; /* a search field's trailing toggle, which its text stops short of */
182
199
  --lace-size-field-short: 176px; /* a short text field's width: a code, a count, a short identifier */
183
200
  --lace-size-dot: 6px; /* a status dot beside its label */
201
+ --lace-size-meter: 6px; /* a meter's track: the measured line under a value */
202
+ --lace-size-bar-min: 4px; /* the least width a bar segment draws */
184
203
  --lace-size-icon-tile: 40px; /* the square a card's leading icon sits in */
204
+ --lace-size-stage: 36px; /* a Run's stage mark on the stage track */
205
+ --lace-size-stage-sm: 28px; /* a stage mark in a small track, a list row's */
206
+ --lace-size-ribbon: 20px; /* a Stack's Run mark in the last-ten ribbon: its height */
185
207
  --lace-size-term: 112px; /* a term column beside its value: a record's fact names, a posture tag */
186
208
  --lace-size-aside: 360px; /* a detail page's side column beside its document: the install panel, a mechanism strip */
187
209
  --lace-size-aside-narrow: 280px; /* a side column over a table: the install card beside a versions list */
188
210
  --lace-size-popover: 320px; /* a floating panel's width: a stack of notices, a clipped value's full text */
189
- /* A glyph's own box: an icon (the steps beside `--lace-size-icon`) and an avatar, whose
190
- initials are a fixed fraction of it. Geometry, not type: no type set changes them. */
211
+ --lace-size-menu: 224px; /* a menu's narrowest: an item's name beside its radio, its mono line at the end */
212
+ --lace-size-mark: 8px; /* a tone square beside a counted tile's label */
213
+ --lace-size-tile-sm: 32px; /* a banner's or an access notice's symbol tile */
214
+ --lace-size-tile-lg: 48px; /* an empty state's symbol tile */
215
+ --lace-size-icon-hero: 26px; /* an empty state's symbol, drawn in its tile */
216
+ --lace-size-sentence: 520px; /* an empty state's sentence at its widest */
217
+ --lace-size-empty-inset: 64px; /* an empty state's top and foot inset */
218
+ --lace-size-access-card-min: 440px; /* an access notice card's narrowest */
219
+ --lace-size-access-card-max: 520px; /* its widest */
220
+ --lace-size-gap-fine: 2px; /* the least gap between two parts of one piece: a switch's knob inset, a rail heading's foot */
221
+ --lace-size-switch-track: 36px; /* a switch's track width */
222
+ --lace-size-switch-height: 20px; /* a switch's track height */
223
+ --lace-size-switch-knob: 16px; /* a switch's knob, a square inside the track */
224
+ --lace-size-rail-row: 28px; /* a side nav's row in the rail */
225
+ --lace-size-gate-avatar: 24px; /* a gate column's approver avatar, a square */
226
+ --lace-size-check-gap: 10px; /* a binding check card's gap and its inset */
227
+ --lace-size-flow-mark: 24px; /* a change flow's stage mark */
228
+ --lace-size-step-foot: 14px; /* a change flow's stage tile: its inset from the foot */
229
+ --lace-size-underline-offset: 3px; /* a row link's underline, drawn this far below its text */
230
+ --lace-size-strip-cell: 20px; /* a plan's strip cell, one Stack or one month: its width */
231
+ --lace-size-strip-cell-height: 12px; /* a plan's strip cell: its height */
232
+ --lace-size-hatch-clear: 3px; /* a hatched strip cell: where its stripe starts */
233
+ --lace-size-hatch-period: 5px; /* a hatched strip cell: where one repeat of its stripe ends */
234
+ --lace-size-count-figure: 56px; /* a count's figure beside its bar: the narrowest, so the counts of one table line up */
235
+ --lace-size-share-figure: 40px; /* a share's whole percent beside its bar: the width a two-digit percent with its sign takes */
236
+ --lace-size-stage-cell: 72px; /* a gated run's stage cell: its width on the stage track */
237
+ --lace-size-glyph-control: 20px; /* a control's glyph box: the copy control's square */
238
+ --lace-size-list-column: 200px; /* a list's fixed column: a status or a name beside its row */
239
+ --lace-size-list-column-narrow: 172px; /* a narrower fixed list column beside a name */
240
+ --lace-size-name-column: 268px; /* a name's column in a table: its longest, then it truncates */
241
+ --lace-size-column-run: 120px; /* a runs table's run column: the run's name */
242
+ --lace-size-column-status: 206px; /* a runs table's status column: its badge */
243
+ --lace-size-column-request: 146px; /* a runs table's change-request column: the request's id */
244
+ --lace-size-fact-label: 88px; /* a run fact's label column beside its value: the source's kind and name */
245
+ --lace-size-revision-glance: 168px; /* a revision's glance beside its row: the avatar, the time and the actor */
246
+ --lace-size-stack-overview: 268px; /* a Stack's overview: its canvas and its latest card, the least height they stand on */
247
+ --lace-size-column-kind-narrow: 90px; /* a Stack's runs table kind column: narrower than the runs list's */
248
+ --lace-size-column-created: 236px; /* a Stack's runs table created column: a time and its actor */
249
+ --lace-size-activity-cell: 232px; /* a change request's log: one entry's cell, the width of each column of the log */
250
+ --lace-size-activity-pen: 208px; /* a change request's log: the pen cell at the newest end, where the next comment is written */
251
+ --lace-size-activity-rule: 45px; /* a change request's log: the rule between entries, drawn at the height of each entry's mark */
252
+ --lace-size-activity-day: 20px; /* a change request's log: an entry's day line, one line tall */
253
+ --lace-size-activity-mark: 40px; /* a change request's log: an entry's mark well, which its avatar sits in */
254
+ --lace-size-activity-pen-mark: 36px; /* a change request's log: the pen's mark, a square */
255
+ --lace-size-verdict-ref: 148px; /* a binding verdict row's first column: the run it fired for */
256
+ --lace-size-stack-column: 230px; /* a change-requests table's stack column: a stack's name and its detail */
257
+ --lace-size-requirements-column: 144px; /* a change-requests table's requirements column: its marks and their words */
258
+ --lace-size-requester-column: 248px; /* a change-requests table's requested-by column: a person and their credential */
259
+ --lace-size-search-field: 240px; /* a list's search field: its width beside the filters */
260
+ /* A glyph's own box: an icon (the steps beside `--lace-size-icon`) and an avatar disc. */
191
261
  --lace-size-icon-xs: 10px;
262
+ --lace-size-icon-pill: 12px; /* the symbol inside a status pill */
192
263
  --lace-size-icon-sm: 14px;
193
264
  --lace-size-icon: 16px;
194
265
  --lace-size-icon-lg: 18px;
195
- --lace-size-avatar-sm: 24px;
196
- --lace-size-avatar-md: 36px;
197
- --lace-size-avatar-lg: 48px;
198
- --lace-size-avatar-square-sm: 28px;
199
- --lace-size-avatar-square-lg: 44px;
266
+ --lace-size-avatar-sm: 28px; /* a person in a list row */
267
+ --lace-size-avatar-md: 32px; /* a person in a detail table */
268
+ --lace-size-avatar-lg: 36px; /* a person in a member row */
269
+ --lace-size-avatar-xl: 48px; /* a person at the head of their own page */
200
270
  --lace-size-wordmark: 22px; /* the logo's name beside its mark */
201
271
  --lace-size-tab: 40px; /* a tab bar's row */
272
+ --lace-size-row: 64px; /* a data table's row at least: a name, its slug and a line of meta */
202
273
  --lace-size-topbar: 60px; /* the top bar's height, which what hangs under the bar offsets by */
203
274
  --lace-size-sidebar: 232px;
204
275
  --lace-size-drawer-min: 280px; /* a canvas drawer's narrowest: a form still reads at this width */
@@ -212,15 +283,133 @@
212
283
  var(--lace-border-width)
213
284
  ); /* the marketing bar: its tallest control with a step of air above and below, and its hairline; what sticks under the bar offsets by it */
214
285
  --lace-size-product-window: 480px; /* a product window's height on a marketing page: the pictured page's first rows */
215
- --lace-size-marquee-card: 288px; /* a card riding a marquee: an artifact's name beside its kind */
216
- --lace-size-choice-list: 288px; /* a list of choices that scrolls inside a form: it holds this height whatever opens in it */
217
286
  --lace-size-launcher: 64px; /* the assistant's launcher, a round button floated over a page's corner */
218
287
  --lace-size-launcher-clearance: calc(
219
288
  var(--lace-size-launcher) +
220
289
  var(--lace-space-5) +
221
290
  var(--lace-space-2)
222
291
  ); /* the room a page's foot leaves the launcher: the button, its inset from the corner and a step of air */
292
+ --lace-size-form-column-min: 520px; /* the shortest a form page's column stands, so a short form starts where a longer one does */
223
293
  --lace-size-form-column: 440px; /* a form a page stands on alone (a sign-in, a sign-up): its column's widest, which its controls fill */
294
+ --lace-size-plan-chip: 136px; /* a plan's chip on the plan ladder: its least width */
295
+ --lace-size-plan-side: 304px; /* a plan limit's side column: its grant and the slot under it */
296
+ --lace-size-col-plan: 184px; /* a contract list's plan column */
297
+ --lace-size-grant-check: 24px; /* a grant's checkbox column */
298
+ --lace-size-grant-scope: 192px; /* a grant's scope column: its widest name */
299
+ --lace-size-tick-gap: 3px; /* the gap between the small ticks of a strip */
300
+ --lace-size-initials-tile: 56px; /* a team's initials tile, a square */
301
+ --lace-size-list-max: 360px; /* a list that scrolls inside a dialog: its tallest */
302
+ --lace-size-field-medium: 200px; /* a text field of middling width: a name, a short identifier */
303
+ --lace-size-row-roster: 72px; /* a roster row while it loads */
304
+ --lace-size-chart-height: 120px; /* a column chart's plot height */
305
+ --lace-size-grant-name: 180px; /* a grant's name column, where the grant list is narrow */
306
+ --lace-size-fact-name: 132px; /* a fact's name column in a pair of facts */
307
+ --lace-size-key-minted: 150px; /* an API key's minted-by column */
308
+ --lace-size-key-used: 122px; /* an API key's last-used column */
309
+ --lace-size-key-lifetime: 114px; /* an API key's lifetime column */
310
+ --lace-size-key-ends: 198px; /* an API key's ends column */
311
+ --lace-size-foundation-chip: 28px; /* a foundation chip in the create-org strip: its height */
312
+ --lace-size-stack-gap: 20px; /* the gap between the sections of a stacked page or panel */
313
+ --lace-size-rule-top: 11px; /* a progress rule's top, where it crosses the step marks */
314
+ --lace-size-logo-slot: 96px; /* the square a logo is dropped into at the start of a register */
315
+ --lace-size-dialog-max: 720px; /* a dialog's widest: a flow's card on a page */
316
+ --lace-size-version-date: 184px; /* a version line's date column */
317
+ --lace-size-pub-artifact: 280px; /* a publishing table's artifact column: its least width */
318
+ --lace-size-pub-axis: 110px; /* a publishing table's axis column */
319
+ --lace-size-pub-status: 130px; /* a publishing table's status column */
320
+ --lace-size-term-narrow: 96px; /* a record's fact-name column, where its names are short */
321
+ --lace-size-col-kind: 140px; /* the kind column of an installed list */
322
+ --lace-size-col-version: 220px; /* the version column of an installed list */
323
+ --lace-size-option: 60px; /* a choice card's least height: an icon and its two lines */
324
+ --lace-size-row-tall: 144px; /* a list row that carries a card's full detail */
325
+ --lace-size-chip: 20px; /* a small chip beside a name: an axis tag, a plan */
326
+ --lace-size-count-label: 88px; /* a count's label column beside its bars: the widest kind word, so the bars of one card line up */
327
+ --lace-size-list-pane: 380px; /* the Inbox's list pane beside its panel: one row's width */
328
+ --lace-size-strip-width: 64px; /* a figure strip's width beside its count: the drift and severity strips */
329
+ --lace-size-footer-trail: 112px; /* a panel's footer inset from its right edge, where its acts stop short of the edge */
330
+ --lace-size-card-row: 56px; /* a card's row at least: a word, its address and a note */
331
+ --lace-size-run-aside: 320px; /* the side column beside a Run's track on a change request's panel */
332
+ --lace-size-segment: 10px; /* a drift bar's segment: one box per resource, drawn as tall as a glyph line */
333
+ --lace-size-step-mark: 26px; /* a setup step's number mark, a circle */
334
+ --lace-size-palette-row: 44px; /* the search palette's row beside one line: its 32px tile with a row's inset above and below */
335
+ --lace-size-palette-field-row: 52px; /* the search palette's field row: its glyph, its input and its Esc key */
336
+ --lace-size-palette: 640px; /* the search palette's tallest box before its list scrolls */
337
+ --lace-size-palette-top: 96px; /* the search palette's gap from the top of the window */
338
+ --lace-size-palette-bottom: 160px; /* the room the search palette leaves beneath it when the window is short */
339
+ --lace-size-palette-side: 208px; /* the room the search palette leaves beside it */
340
+ --lace-size-skel-title: 232px; /* a loading row's title line, its first */
341
+ --lace-size-skel-title-short: 168px; /* a loading row's second title line */
342
+ --lace-size-skel-meta: 120px; /* a loading row's meta line, its second */
343
+ --lace-size-skel-meta-short: 96px; /* a loading row's meta line, its first */
344
+ --lace-size-skel-pill: 88px; /* a loading row's trailing pill */
345
+ --lace-size-hint-max: 220px; /* a search row's hint at its widest before it truncates */
346
+ --lace-size-button-small: 28px; /* a small button in a notice: its resting height */
347
+ --lace-size-col-axis: 84px; /* the axis column of a publishing table */
348
+ --lace-size-col-status: 100px; /* the status column of a publishing table */
349
+ --lace-size-pick: 200px; /* a binding group's pick button: its width beside the group's name */
350
+ --lace-size-card-tile: 44px; /* a card's leading tile, a square: the artifact and installed cards */
351
+ --lace-size-pill: 22px; /* a pill chip's height: a count, a version, a state */
352
+ --lace-size-column-gutter: 96px; /* the signed-in column's trailing gutter: where a page's picture and its tabs stop short of the edge */
353
+ --lace-size-card-narrow: 480px; /* a card's narrow column: a search field and its list */
354
+ --lace-size-column-wide: 760px; /* a binding's form or detail column: its widest */
355
+ --lace-size-page-form: 880px;
356
+ --lace-size-copy-narrow: 340px; /* a short block of copy's column: a sign-in link's line, a prompt's text */
357
+ --lace-size-prompt-row: 52px; /* the assistant's prompt bubble's least height */
358
+ --lace-size-prompt-inset: 44px; /* the prompt's trailing inset, where its text stops short of its close control */
359
+ --lace-size-spark-inset-x: 13px; /* the launcher's spark: its inset from the right */
360
+ --lace-size-cli-window: 518px; /* the CLI sign-in panel's terminal window: its tallest */
361
+ --lace-size-cli-chrome: 210px; /* the room the CLI sign-in panel leaves for the page's chrome above and below */
362
+ --lace-size-cli-rule: 28px; /* the CLI sign-in panel's divider column between the terminal and the code box */
363
+ --lace-size-cli-caret: 15px; /* the terminal's caret, one line tall */
364
+ --lace-size-cli-dot-travel: 34px; /* how far the divider's dot travels along the rule */
365
+ --lace-size-status-line: 28px; /* a status line's row: a steps summary, the thinking line */
366
+ --lace-size-step-track: 36px; /* a steps summary's track: one segment per step */
367
+ --lace-size-hero-line: 36px; /* the chat page's title line */
368
+ --lace-size-list-person: 176px; /* a list column holding a person: avatar, name and a date */
369
+ --lace-size-role-select: 128px; /* the team roster's role select */
370
+ --lace-size-settings-rail: 256px; /* the settings side rail's width */
371
+ --lace-size-settings-collection: 888px; /* a settings collection's widest column */
372
+ --lace-size-closure-wide: 640px; /* the account close card while the close is refused: its widest */
373
+ --lace-size-life-track: 88px; /* a life track's width: the share of a window still to run */
374
+ --lace-size-access-rail: 31px; /* the access list's rail: its inset from the left */
375
+ --lace-size-access-top: 48px; /* where the access rail starts below the list's top */
376
+ --lace-size-access-indent: 64px; /* a team row's indent past the access rail */
377
+ --lace-size-action-row: 48px; /* a close section's action row: its least height */ /* a configure page's column: its widest */
378
+ --lace-size-aside-wide: 368px; /* a detail page's install panel beside its document, wider than the aside */
379
+ --lace-size-field-narrow: 280px; /* a search field in a version list's header */
380
+ --lace-size-filter-chip: 26px; /* a breakdown's filter chip: a chosen value, removed by a press on it */
381
+ --lace-size-day-columns: 176px; /* a breakdown's daily spend columns: the plot's height */
382
+ --lace-size-breakdown-list: 344px; /* a breakdown's list: its height before it scrolls */
383
+ --lace-size-count-tile: 180px; /* an Overview count tile's narrowest: the row of tiles wraps below it */
384
+ --lace-size-daily-spend: 168px; /* the Overview's daily spend columns: their plot's height */
385
+ --lace-size-drift-state: 168px; /* a drifting stack's state badge column beside its name */
386
+ --lace-size-drift-view: 104px; /* a drifting stack's link column, where "View drift" sits */
387
+ --lace-size-glyph-tile: 28px; /* an Overview row's glyph tile, a square */
388
+ --lace-size-kind-indent: 42px; /* a finding kind's rows, indented past the kind's chevron and tile */
389
+ --lace-size-finding-severity: 72px; /* a finding row's severity column */
390
+ --lace-size-finding-seen: 64px; /* a finding row's last-seen column */
391
+ --lace-size-detail-indent: 88px; /* a finding's or an incident's detail row, indented past its chevron and tile */
392
+ --lace-size-diff-gutter: 24px; /* a drift diff row's chevron column */
393
+ --lace-size-diff-key: 160px; /* a drift diff row's attribute name column, its widest */
394
+ --lace-size-diff-arrow: 16px; /* a drift diff row's arrow column between the two values */
395
+ --lace-size-stage-halo: 5px; /* a done stage mark's halo: the ring its fill draws round it */
396
+ --lace-size-stage-link-top: 28px; /* a stage track's connector: its distance from the track's top */
397
+ --lace-size-stage-link-inset: 26px; /* a stage track's connector: its distance from each mark's edge */
398
+ --lace-size-stage-dash: 8px; /* a waiting stage connector's dash */
399
+ --lace-size-stage-period: 14px; /* a waiting stage connector's repeat: one dash and its gap */
400
+ --lace-size-incident-detail-indent: 52px; /* an incident's finding detail, indented past its chevron */
401
+ --lace-size-coverage-side: 224px; /* the coverage panel's side column beside its figure, from the small breakpoint */
402
+ --lace-size-rule-severity-column: 116px; /* the drift rules table's severity column */
403
+ --lace-size-rule-actions-column: 190px; /* the drift rules table's actions column: its two buttons */
404
+ --lace-size-service-list: 384px; /* the cost page's service list: its height before it scrolls */
405
+ --lace-size-teamcode-changed: 112px; /* the allocation teamcode list's last-changed column */
406
+ --lace-size-cost-plot: 220px; /* the cost page's daily spend columns: the plot's height */
407
+ --lace-size-commit-plot: 96px; /* the cost page's commitment columns: the plot's height */
408
+ --lace-size-scan-findings: 76px; /* a scan row's findings column */
409
+ --lace-size-kind-preview-max: 320px; /* a Scanner's emitted kind rows as JSON: the height past which they scroll */
410
+ --lace-size-inventory-stack: 170px; /* the inventory table's Stack column */
411
+ --lace-size-stack-findings-status: 124px; /* a Stack's findings table: the status column */
412
+ --lace-size-drift-bar: 132px; /* a Stack's drift bar: its five cells' width */
224
413
 
225
414
  /* ── Scale: font size ── */
226
415
  --lace-font-size-xs: 10px;
@@ -252,6 +441,7 @@
252
441
  --lace-line-height-normal: 1.4;
253
442
  /* Absolute leadings a text role takes where no font-size step equals it. */
254
443
  --lace-line-height-18: 18px;
444
+ --lace-line-height-20: 20px;
255
445
  --lace-line-height-36: 36px;
256
446
 
257
447
  /* ── Scale: font weight ── */
@@ -268,6 +458,9 @@
268
458
  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
269
459
 
270
460
  /* ── Scale: radius ── */
461
+ --lace-radius-mark: 7px; /* a change flow's held stage mark */
462
+ --lace-radius-flow: 10px; /* a change flow's card corner */
463
+ --lace-radius-xs: 3px; /* a meter's track: the rounding a thin bar draws */
271
464
  --lace-radius-sm: 4px;
272
465
  --lace-radius-md: 6px;
273
466
  --lace-radius-lg: 8px;
@@ -286,6 +479,7 @@
286
479
  --lace-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
287
480
  --lace-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
288
481
  --lace-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
482
+ --lace-shadow-menu: 0 10px 30px rgba(0, 0, 0, 0.35); /* a menu or a picker's list that floats over the page */
289
483
  /* The accent glow a primary control rests on, and the same glow at nothing, the frame
290
484
  framer-motion blooms it from: each one value, so a keyframe reads it whole. */
291
485
  --lace-shadow-glow: 0 4px 16px var(--lace-color-green-alpha-30);
@@ -295,6 +489,7 @@
295
489
  --lace-blur-scrim: blur(8px);
296
490
  --lace-blur-scrim-soft: blur(2px);
297
491
  --lace-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.5);
492
+ --lace-shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.5);
298
493
 
299
494
  /* ── Scale: z-index ── */
300
495
  --lace-z-chrome: 10; /* action bar, toast, banner */
@@ -308,6 +503,7 @@
308
503
  --lace-duration-fast: 120ms;
309
504
  --lace-duration-medium: 200ms;
310
505
  --lace-duration-slow: 300ms;
506
+ --lace-duration-chevron: 160ms; /* a disclosure chevron's turn: between the fast and the medium step */
311
507
  --lace-easing-standard: ease;
312
508
  --lace-easing-out: ease-out;
313
509
  --lace-motion-hinge-perspective: 200px; /* how far off a glyph turning on one hinge is seen from: near enough to read as a turn, not a squash */
@@ -342,7 +538,7 @@
342
538
  /* ── Border ── */
343
539
  --lace-color-border-default: var(--lace-color-white-alpha-08);
344
540
  --lace-color-border-subtle: var(--lace-color-neutral-700);
345
- --lace-color-border-input: var(--lace-color-white-alpha-15);
541
+ --lace-color-border-input: var(--lace-color-white-alpha-14);
346
542
  /* The resting edge of a text control (an input, a textarea, a select, a combobox): the visual
347
543
  * boundary that identifies the control, held to 3:1 by WCAG 2.2 SC 1.4.11 (Non-text Contrast).
348
544
  * #757575 is 3.93:1 on bg-canvas, 3.62:1 on bg-surface, 3.32:1 on bg-surface-alt and 4.16:1 on
@@ -380,6 +576,7 @@
380
576
  * ground: the bright step on the dark surfaces, a deeper one on the light, where the bright
381
577
  * steps measure 1.7:1 to 2.5:1 on white. A tint of the hue keeps the bright step in both. */
382
578
  --lace-color-blue-mark: var(--lace-color-blue-bright-500);
579
+ --lace-color-blue-word: var(--lace-color-blue-bright-500);
383
580
  --lace-color-amber-mark: var(--lace-color-amber-400);
384
581
  --lace-color-green-mark: var(--lace-color-green-bright-500);
385
582
 
@@ -678,6 +875,7 @@
678
875
  --lace-btn-primary: var(--lace-color-green-500);
679
876
  --lace-btn-primary-dim: var(--lace-color-green-300);
680
877
  --lace-btn-primary-edge: var(--lace-btn-primary);
878
+ --lace-btn-primary-disabled: var(--lace-btn-primary-dim);
681
879
  --lace-btn-secondary-bg: #2d2d2d;
682
880
  --lace-btn-secondary-hover: #3a3a3a;
683
881
  --lace-btn-success-hover: var(--lace-color-success-hover);
@@ -689,8 +887,8 @@
689
887
  --lace-icon-btn-success-hover: var(--lace-color-green-bright-alpha-15);
690
888
 
691
889
  /* ── Modal / Overlay ── */
692
- --lace-modal-backdrop: var(--lace-color-black-alpha-60);
693
- --lace-modal-shadow: var(--lace-shadow-xl);
890
+ --lace-modal-backdrop: var(--lace-color-black-alpha-50);
891
+ --lace-modal-shadow: var(--lace-shadow-modal);
694
892
 
695
893
  /* ── Input ── */
696
894
  --lace-input-bg: var(--lace-color-bg-input);
@@ -827,28 +1025,27 @@
827
1025
  [data-theme="light"] [data-lace-paper="blueprint"],
828
1026
  [data-theme="high-contrast-light"] [data-lace-paper="blueprint"] {
829
1027
  /* ── Tier-2: Surface ── */
830
- --lace-color-bg-canvas: var(--lace-color-neutral-white);
1028
+ --lace-color-bg-canvas: var(--lace-color-warm-100);
831
1029
  --lace-color-bg-surface: var(--lace-color-neutral-white);
832
- --lace-color-bg-surface-alt: var(--lace-color-warm-75);
1030
+ --lace-color-bg-surface-alt: var(--lace-color-warm-50);
833
1031
  --lace-color-bg-input: var(--lace-color-neutral-white);
834
1032
  --lace-color-bg-context-menu: var(--lace-color-neutral-white);
835
1033
 
836
1034
  /* ── Tier-2: Border ── */
837
- --lace-color-border-default: var(--lace-color-cool-150);
1035
+ --lace-color-border-default: var(--lace-color-black-alpha-10);
838
1036
  --lace-color-border-subtle: var(--lace-color-cool-200);
839
- --lace-color-border-input: var(--lace-color-neutral-900-alpha-20);
1037
+ --lace-color-border-input: var(--lace-color-black-alpha-18);
840
1038
  /* A text control's resting edge, 3:1 by WCAG 2.2 SC 1.4.11: #7a7a7a is 4.29:1 on bg-canvas,
841
1039
  * bg-surface and bg-input, 3.92:1 on bg-surface-alt. Hover darkens it further. */
842
1040
  --lace-color-border-control: #7a7a7a;
843
1041
  --lace-color-border-input-hover: #4b5563;
844
1042
 
845
1043
  /* ── Tier-2: Text ── */
846
- --lace-color-text-primary: var(--lace-color-cool-875);
1044
+ --lace-color-text-primary: var(--lace-color-neutral-900);
847
1045
  --lace-color-text-label: var(--lace-color-cool-800);
848
- /* The quietest text, a slate dark enough to hold 4.5:1 on the darkest grounds it is set on:
849
- * 4.67:1 on bg-surface-alt, 4.58:1 on the chat surface. */
850
- --lace-color-text-muted: var(--lace-color-cool-500);
851
- --lace-color-text-description: var(--lace-color-cool-600);
1046
+ /* The quietest text, a slate dark enough to hold 4.5:1 on the darkest grounds it is set on. */
1047
+ --lace-color-text-muted: var(--lace-color-warm-600);
1048
+ --lace-color-text-description: var(--lace-color-warm-700);
852
1049
  --lace-color-text-danger: #dc2626;
853
1050
  --lace-color-text-danger-soft: #ef4444;
854
1051
 
@@ -856,7 +1053,7 @@
856
1053
  --lace-color-row-hover: rgba(0, 0, 0, 0.02);
857
1054
 
858
1055
  /* ── Tier-2: Accent (the fill stays lime; ink darkens to olive) ── */
859
- --lace-color-ink: var(--lace-color-green-900);
1056
+ --lace-color-ink: var(--lace-color-green-800);
860
1057
  --lace-color-accent-alpha-subtle: var(--lace-color-green-50);
861
1058
  --lace-color-accent-alpha-medium: rgba(132, 204, 22, 0.16);
862
1059
  --lace-color-accent-strong: #2d4a00;
@@ -866,11 +1063,12 @@
866
1063
 
867
1064
  /* ── Tier-2: Hue marks ── */
868
1065
  --lace-color-blue-mark: var(--lace-color-blue-deep-700);
1066
+ --lace-color-blue-word: var(--lace-color-blue-deep-600);
869
1067
  --lace-color-amber-mark: var(--lace-color-amber-600);
870
1068
  --lace-color-green-mark: var(--lace-color-green-deep-700);
871
1069
 
872
1070
  /* ── Tier-2: Status ── */
873
- --lace-color-success: var(--lace-color-green-deep-700);
1071
+ --lace-color-success: var(--lace-color-green-deep-600);
874
1072
  --lace-color-success-hover: var(--lace-color-green-deep-800);
875
1073
  --lace-color-danger: #dc2626;
876
1074
  --lace-color-danger-bg-soft: #fef2f2;
@@ -880,8 +1078,8 @@
880
1078
  * #fef2f2 chip; this clears both (6.18 / 5.91). */
881
1079
  --lace-color-danger-fg: #b91c1c;
882
1080
  --lace-color-warning-bg: #fffbeb;
883
- --lace-color-warning-fg: var(--lace-color-amber-deep-700);
884
- --lace-color-info: var(--lace-color-blue-deep-700);
1081
+ --lace-color-warning-fg: var(--lace-color-amber-deep-800);
1082
+ --lace-color-info: var(--lace-color-blue-deep-600);
885
1083
 
886
1084
  /* ── Tier-2: Forbidden state (fg and icon follow the text tokens) ── */
887
1085
  --lace-forbidden-bg: var(--lace-color-cool-100);
@@ -911,6 +1109,7 @@
911
1109
  --lace-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.08);
912
1110
  --lace-shadow-lg: 0 1px 3px rgba(0, 0, 0, 0.08);
913
1111
  --lace-shadow-xl: 0 4px 12px rgba(0, 0, 0, 0.12);
1112
+ --lace-shadow-menu: 0 10px 30px rgba(0, 0, 0, 0.35);
914
1113
 
915
1114
  /* ── Tier-3: Button (a near-black primary under a white label) ── */
916
1115
  --lace-btn-primary: var(--lace-color-neutral-925);
@@ -919,6 +1118,9 @@
919
1118
  --lace-btn-secondary-bg: var(--lace-color-neutral-white);
920
1119
  --lace-btn-secondary-hover: #e2e8f0;
921
1120
  --lace-btn-text-disabled: rgba(0, 0, 0, 0.35);
1121
+ /* The edge's neutral here is the blueprint's and high-contrast-light's; `[data-theme="light"]`
1122
+ * below takes the lime's own edge. */
1123
+ --lace-btn-primary-edge: var(--lace-color-neutral-925);
922
1124
 
923
1125
  /* ── Tier-3: Chat ── */
924
1126
  --lace-chat-surface: var(--lace-color-warm-100);
@@ -949,6 +1151,20 @@
949
1151
  --lace-group-bg: var(--lace-color-neutral-900-alpha-04);
950
1152
  }
951
1153
 
1154
+ /* The portal's light primary is the brand lime with the near-black label (16.18:1 on the fill).
1155
+ * Lime on the canvas (bg-canvas, warm-100) measures 1.05:1, so the edge is green-700, 3.67:1 on
1156
+ * the canvas. The hover fill is that same green-700: the near-black label on it is
1157
+ * 4.61:1 and it is 3.67:1 on the canvas, so the settings control's rank edge, drawn in this fill
1158
+ * (`PRIMARY_EDGE`), also holds 3:1. green-500 (1.05:1) and green-300 (1.00:1) would not. Only
1159
+ * `[data-theme="light"]` takes it: high-contrast-light keeps the near-black primary above. */
1160
+ [data-theme="light"] {
1161
+ --lace-btn-primary: var(--lace-color-green-500);
1162
+ --lace-btn-primary-dim: var(--lace-color-green-700);
1163
+ --lace-btn-primary-edge: var(--lace-color-green-700);
1164
+ --lace-btn-primary-disabled: var(--lace-btn-primary);
1165
+ --lace-btn-text-primary: var(--lace-color-neutral-925);
1166
+ }
1167
+
952
1168
  /* ══════════════════════════════════════════════════════════════════════
953
1169
  * BLUEPRINT
954
1170
  *