@lace-cloud/design-tokens 0.0.1-bootstrap.0 → 0.6.4-next.25705814731

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/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Proprietary — Lace Cloud Inc.
2
+
3
+ Copyright (c) 2026 Lace Cloud Inc. All rights reserved.
4
+
5
+ This source code and its compiled artifacts are proprietary to Lace
6
+ Cloud Inc. Use is permitted only as part of authorized Lace Cloud
7
+ products and services, under separate terms.
8
+
9
+ The following are NOT permitted without prior written permission
10
+ from Lace Cloud Inc.:
11
+
12
+ - Redistribution of source code or binaries
13
+ - Modification or derivative works
14
+ - Reverse-engineering beyond the legal minimum
15
+ - Hosting, embedding, or resale as a service
16
+
17
+ No warranties are made; use is at your own risk.
18
+
19
+ Subject to legal review.
package/README.md CHANGED
@@ -1,11 +1,54 @@
1
- # @lace-cloud/design-tokens (bootstrap placeholder)
1
+ # @lace-cloud/design-tokens
2
2
 
3
- This `0.0.1-bootstrap.0` version is a one-time placeholder used to claim
4
- the `@lace-cloud/design-tokens` name on npmjs.org so that OIDC trusted publishing can be
5
- configured for subsequent releases.
3
+ CSS tokens for Lace Cloud's design system. Three-tier architecture:
4
+ Primitive → Semantic → Component. Single source of truth for colors,
5
+ spacing, typography, radii, shadows.
6
6
 
7
- **Do not install this version.** Real releases are tagged `@next`
8
- (prerelease, from the develop branch) or `@latest` (stable, from tagged
9
- releases on main).
7
+ Consumed by `@lace-cloud/canvas`, `@lace-cloud/chat-webview`,
8
+ `@lace-cloud/ui`, and Storybook setups.
10
9
 
11
- Source: https://github.com/lace-cloud/lace/tree/main/packages/design-tokens
10
+ ## Install
11
+
12
+ ```bash
13
+ npm install @lace-cloud/design-tokens
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ Import the tokens stylesheet once at your app's entry:
19
+
20
+ ```ts
21
+ import '@lace-cloud/design-tokens/tokens.css';
22
+ ```
23
+
24
+ Then reference tokens via CSS custom properties:
25
+
26
+ ```css
27
+ .my-component {
28
+ background: var(--lace-bg-surface);
29
+ color: var(--lace-text-primary);
30
+ padding: var(--lace-space-4);
31
+ border-radius: var(--lace-radius-md);
32
+ }
33
+ ```
34
+
35
+ For programmatic access from JS/TS (e.g. canvas's `pinColor.ts`):
36
+
37
+ ```ts
38
+ import { brand, pin, ui } from '@lace-cloud/design-tokens';
39
+
40
+ console.log(brand.green); // '#CEFE65'
41
+ ```
42
+
43
+ ## Conventions
44
+
45
+ - **Tokens first.** No raw hex in consumer code. If a color isn't in
46
+ tokens, add a token here first.
47
+ - **Three tiers:** primitives (concrete values, e.g. `--lace-color-green-500`),
48
+ semantic (purpose-named, e.g. `--lace-bg-surface`), component
49
+ (component-scoped overrides where needed).
50
+ - **CSS custom property naming:** `--lace-{category}-{role}-{variant?}`.
51
+
52
+ ## License
53
+
54
+ Proprietary — see [LICENSE](https://github.com/lace-cloud/lace/blob/main/LICENSE).
package/dist/index.cjs ADDED
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ brand: () => brand,
24
+ pin: () => pin,
25
+ ui: () => ui
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+ var brand = {
29
+ green: "#CEFE65",
30
+ greenBright: "#e0ff8a",
31
+ gunmetal: "#153238",
32
+ gunmetalLight: "#1a3f47",
33
+ night: "#161616",
34
+ cyan: "#95E7FF",
35
+ grey: "#ECEFED"
36
+ };
37
+ var pin = {
38
+ string: { fill: "#95E7FF", stroke: "#2C9DB9" },
39
+ number: { fill: "#F5A623", stroke: "#8A5A10" },
40
+ bool: { fill: "#B084F0", stroke: "#5C3E9A" },
41
+ list: { fill: "#CEFE65", stroke: "#5E8A1A" },
42
+ map: { fill: "#F288C6", stroke: "#8A2E5C" },
43
+ object: { fill: "#FF8A4C", stroke: "#8A3A10" },
44
+ any: { fill: "#9BA19E", stroke: "#4A4F4C" }
45
+ };
46
+ var ui = {
47
+ btnPrimary: "#1f6feb",
48
+ btnPrimaryDim: "#1a4d8f",
49
+ btnSuccess: "#1a7f37",
50
+ btnSuccessHover: "#3ab653",
51
+ btnDangerBg: "#6e2b2b",
52
+ textDanger: "#e5484d",
53
+ textDangerLight: "#f87171",
54
+ bgSurface: "#1e1e1e",
55
+ bgSurfaceAlt: "#252526",
56
+ bgInput: "#0f0f0f",
57
+ borderDefault: "#333333",
58
+ borderInput: "#555555",
59
+ borderSubtle: "#3c3c3c"
60
+ };
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ brand,
64
+ pin,
65
+ ui
66
+ });
67
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.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\nexport const ui = {\n btnPrimary: '#1f6feb',\n btnPrimaryDim: '#1a4d8f',\n btnSuccess: '#1a7f37',\n btnSuccessHover: '#3ab653',\n btnDangerBg: '#6e2b2b',\n textDanger: '#e5484d',\n textDangerLight: '#f87171',\n bgSurface: '#1e1e1e',\n bgSurfaceAlt: '#252526',\n bgInput: '#0f0f0f',\n borderDefault: '#333333',\n borderInput: '#555555',\n borderSubtle: '#3c3c3c',\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,QAAQ;AAAA,EACnB,OAAO;AAAA,EACP,aAAa;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;AAEO,IAAM,KAAK;AAAA,EAChB,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,SAAS;AAAA,EACT,eAAe;AAAA,EACf,aAAa;AAAA,EACb,cAAc;AAChB;","names":[]}
@@ -0,0 +1,56 @@
1
+ declare const brand: {
2
+ readonly green: "#CEFE65";
3
+ readonly greenBright: "#e0ff8a";
4
+ readonly gunmetal: "#153238";
5
+ readonly gunmetalLight: "#1a3f47";
6
+ readonly night: "#161616";
7
+ readonly cyan: "#95E7FF";
8
+ readonly grey: "#ECEFED";
9
+ };
10
+ declare const pin: {
11
+ readonly string: {
12
+ readonly fill: "#95E7FF";
13
+ readonly stroke: "#2C9DB9";
14
+ };
15
+ readonly number: {
16
+ readonly fill: "#F5A623";
17
+ readonly stroke: "#8A5A10";
18
+ };
19
+ readonly bool: {
20
+ readonly fill: "#B084F0";
21
+ readonly stroke: "#5C3E9A";
22
+ };
23
+ readonly list: {
24
+ readonly fill: "#CEFE65";
25
+ readonly stroke: "#5E8A1A";
26
+ };
27
+ readonly map: {
28
+ readonly fill: "#F288C6";
29
+ readonly stroke: "#8A2E5C";
30
+ };
31
+ readonly object: {
32
+ readonly fill: "#FF8A4C";
33
+ readonly stroke: "#8A3A10";
34
+ };
35
+ readonly any: {
36
+ readonly fill: "#9BA19E";
37
+ readonly stroke: "#4A4F4C";
38
+ };
39
+ };
40
+ declare const ui: {
41
+ readonly btnPrimary: "#1f6feb";
42
+ readonly btnPrimaryDim: "#1a4d8f";
43
+ readonly btnSuccess: "#1a7f37";
44
+ readonly btnSuccessHover: "#3ab653";
45
+ readonly btnDangerBg: "#6e2b2b";
46
+ readonly textDanger: "#e5484d";
47
+ readonly textDangerLight: "#f87171";
48
+ readonly bgSurface: "#1e1e1e";
49
+ readonly bgSurfaceAlt: "#252526";
50
+ readonly bgInput: "#0f0f0f";
51
+ readonly borderDefault: "#333333";
52
+ readonly borderInput: "#555555";
53
+ readonly borderSubtle: "#3c3c3c";
54
+ };
55
+
56
+ export { brand, pin, ui };
@@ -0,0 +1,56 @@
1
+ declare const brand: {
2
+ readonly green: "#CEFE65";
3
+ readonly greenBright: "#e0ff8a";
4
+ readonly gunmetal: "#153238";
5
+ readonly gunmetalLight: "#1a3f47";
6
+ readonly night: "#161616";
7
+ readonly cyan: "#95E7FF";
8
+ readonly grey: "#ECEFED";
9
+ };
10
+ declare const pin: {
11
+ readonly string: {
12
+ readonly fill: "#95E7FF";
13
+ readonly stroke: "#2C9DB9";
14
+ };
15
+ readonly number: {
16
+ readonly fill: "#F5A623";
17
+ readonly stroke: "#8A5A10";
18
+ };
19
+ readonly bool: {
20
+ readonly fill: "#B084F0";
21
+ readonly stroke: "#5C3E9A";
22
+ };
23
+ readonly list: {
24
+ readonly fill: "#CEFE65";
25
+ readonly stroke: "#5E8A1A";
26
+ };
27
+ readonly map: {
28
+ readonly fill: "#F288C6";
29
+ readonly stroke: "#8A2E5C";
30
+ };
31
+ readonly object: {
32
+ readonly fill: "#FF8A4C";
33
+ readonly stroke: "#8A3A10";
34
+ };
35
+ readonly any: {
36
+ readonly fill: "#9BA19E";
37
+ readonly stroke: "#4A4F4C";
38
+ };
39
+ };
40
+ declare const ui: {
41
+ readonly btnPrimary: "#1f6feb";
42
+ readonly btnPrimaryDim: "#1a4d8f";
43
+ readonly btnSuccess: "#1a7f37";
44
+ readonly btnSuccessHover: "#3ab653";
45
+ readonly btnDangerBg: "#6e2b2b";
46
+ readonly textDanger: "#e5484d";
47
+ readonly textDangerLight: "#f87171";
48
+ readonly bgSurface: "#1e1e1e";
49
+ readonly bgSurfaceAlt: "#252526";
50
+ readonly bgInput: "#0f0f0f";
51
+ readonly borderDefault: "#333333";
52
+ readonly borderInput: "#555555";
53
+ readonly borderSubtle: "#3c3c3c";
54
+ };
55
+
56
+ export { brand, pin, ui };
package/dist/index.mjs ADDED
@@ -0,0 +1,40 @@
1
+ // src/index.ts
2
+ var brand = {
3
+ green: "#CEFE65",
4
+ greenBright: "#e0ff8a",
5
+ gunmetal: "#153238",
6
+ gunmetalLight: "#1a3f47",
7
+ night: "#161616",
8
+ cyan: "#95E7FF",
9
+ grey: "#ECEFED"
10
+ };
11
+ var pin = {
12
+ string: { fill: "#95E7FF", stroke: "#2C9DB9" },
13
+ number: { fill: "#F5A623", stroke: "#8A5A10" },
14
+ bool: { fill: "#B084F0", stroke: "#5C3E9A" },
15
+ list: { fill: "#CEFE65", stroke: "#5E8A1A" },
16
+ map: { fill: "#F288C6", stroke: "#8A2E5C" },
17
+ object: { fill: "#FF8A4C", stroke: "#8A3A10" },
18
+ any: { fill: "#9BA19E", stroke: "#4A4F4C" }
19
+ };
20
+ var ui = {
21
+ btnPrimary: "#1f6feb",
22
+ btnPrimaryDim: "#1a4d8f",
23
+ btnSuccess: "#1a7f37",
24
+ btnSuccessHover: "#3ab653",
25
+ btnDangerBg: "#6e2b2b",
26
+ textDanger: "#e5484d",
27
+ textDangerLight: "#f87171",
28
+ bgSurface: "#1e1e1e",
29
+ bgSurfaceAlt: "#252526",
30
+ bgInput: "#0f0f0f",
31
+ borderDefault: "#333333",
32
+ borderInput: "#555555",
33
+ borderSubtle: "#3c3c3c"
34
+ };
35
+ export {
36
+ brand,
37
+ pin,
38
+ ui
39
+ };
40
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.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\nexport const ui = {\n btnPrimary: '#1f6feb',\n btnPrimaryDim: '#1a4d8f',\n btnSuccess: '#1a7f37',\n btnSuccessHover: '#3ab653',\n btnDangerBg: '#6e2b2b',\n textDanger: '#e5484d',\n textDangerLight: '#f87171',\n bgSurface: '#1e1e1e',\n bgSurfaceAlt: '#252526',\n bgInput: '#0f0f0f',\n borderDefault: '#333333',\n borderInput: '#555555',\n borderSubtle: '#3c3c3c',\n} as const;\n"],"mappings":";AAIO,IAAM,QAAQ;AAAA,EACnB,OAAO;AAAA,EACP,aAAa;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;AAEO,IAAM,KAAK;AAAA,EAChB,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,SAAS;AAAA,EACT,eAAe;AAAA,EACf,aAAa;AAAA,EACb,cAAc;AAChB;","names":[]}
package/package.json CHANGED
@@ -1,16 +1,38 @@
1
1
  {
2
2
  "name": "@lace-cloud/design-tokens",
3
- "version": "0.0.1-bootstrap.0",
4
- "description": "Bootstrap placeholder to claim the @lace-cloud/design-tokens name on npmjs.org. Not functional. Install @next or @latest for real releases.",
5
- "main": "index.js",
6
- "license": "BUSL-1.1",
3
+ "version": "0.6.4-next.25705814731",
4
+ "main": "./dist/index.cjs",
5
+ "types": "./dist/index.d.ts",
6
+ "devDependencies": {
7
+ "tsup": "^8.5.0",
8
+ "typescript": "^5.6.3"
9
+ },
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org",
12
+ "access": "public"
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "tokens.css",
17
+ "README.md"
18
+ ],
7
19
  "repository": {
8
20
  "type": "git",
9
21
  "url": "https://github.com/lace-cloud/lace.git",
10
22
  "directory": "packages/design-tokens"
11
23
  },
12
- "publishConfig": {
13
- "registry": "https://registry.npmjs.org",
14
- "access": "public"
24
+ "scripts": {
25
+ "build": "tsup",
26
+ "clean": "rm -rf dist"
27
+ },
28
+ "module": "./dist/index.mjs",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.mjs",
33
+ "require": "./dist/index.cjs"
34
+ },
35
+ "./tokens.css": "./tokens.css",
36
+ "./package.json": "./package.json"
15
37
  }
16
- }
38
+ }
package/tokens.css ADDED
@@ -0,0 +1,640 @@
1
+ /*
2
+ * Lace Design Tokens
3
+ * ===================
4
+ *
5
+ * Three-tier architecture (Primitive → Semantic → Component).
6
+ * Consumers should reference the *highest* layer that expresses intent:
7
+ * - Composites reach for semantic (`--lace-color-text`, `--lace-space-3`)
8
+ * - Component styles reach for component tokens (`--lace-btn-primary-bg`)
9
+ * - Primitives are rarely referenced directly — they exist so the
10
+ * semantic + component layers can all swap with one edit.
11
+ *
12
+ * Import via: @import '@lace-cloud/design-tokens/tokens.css';
13
+ *
14
+ * Rule for new code: no raw hex literals, no raw px values for spacing,
15
+ * font-size, shadow, or radius. If a token doesn't exist for your use
16
+ * case, add it here first — don't bypass the system.
17
+ */
18
+
19
+ /* ══════════════════════════════════════════════════════════════════════
20
+ * TIER 1 — PRIMITIVES
21
+ *
22
+ * Raw values. Named descriptively (color/number), never by usage. These
23
+ * are the only tokens allowed to contain hex / rgba / px values.
24
+ * ══════════════════════════════════════════════════════════════════════ */
25
+
26
+ :root {
27
+ /* ── Palette: brand ── */
28
+ --lace-color-green-300: #e0ff8a;
29
+ --lace-color-green-500: #cefe65;
30
+ --lace-color-green-700: #5e8a1a;
31
+ --lace-color-cyan-500: #95e7ff;
32
+ --lace-color-cyan-700: #2c9db9;
33
+
34
+ /* ── Palette: neutral ── */
35
+ --lace-color-neutral-100: #ecefed;
36
+ --lace-color-neutral-200: #e6e6e6;
37
+ --lace-color-neutral-300: #cccccc;
38
+ --lace-color-neutral-400: #9ca3af;
39
+ --lace-color-neutral-500: #999999;
40
+ --lace-color-neutral-600: #555555;
41
+ --lace-color-neutral-700: #3c3c3c;
42
+ --lace-color-neutral-750: #333333;
43
+ --lace-color-neutral-800: #252526;
44
+ --lace-color-neutral-850: #1e1e1e;
45
+ --lace-color-neutral-900: #161616;
46
+ --lace-color-neutral-950: #0f0f0f;
47
+ --lace-color-neutral-black: #000000;
48
+
49
+ /* ── Palette: semantic accents ── */
50
+ --lace-color-teal-700: #153238;
51
+ --lace-color-teal-600: #1a3f47;
52
+ --lace-color-blue-500: #1f6feb;
53
+ --lace-color-blue-700: #1a4d8f;
54
+ --lace-color-blue-accent: #4fc1ff;
55
+ --lace-color-red-400: #f87171;
56
+ --lace-color-red-500: #e5484d;
57
+ --lace-color-red-700: #6e2b2b;
58
+ --lace-color-red-800: #3a1518;
59
+ --lace-color-red-900: #2a1414;
60
+ --lace-color-amber-400: #f5a623;
61
+ --lace-color-amber-600: #8a5a10;
62
+ --lace-color-purple-400: #b084f0;
63
+ --lace-color-purple-700: #5c3e9a;
64
+ --lace-color-pink-400: #f288c6;
65
+ --lace-color-pink-700: #8a2e5c;
66
+ --lace-color-orange-400: #ff8a4c;
67
+ --lace-color-orange-700: #8a3a10;
68
+ --lace-color-tag-blue-bg: #0b1f3a;
69
+ --lace-color-tag-blue-border: #2b4a7a;
70
+ --lace-color-tag-blue-text: #9ecbff;
71
+
72
+ /* ── Palette: contrast variants ──
73
+ * Two directions for legibility against theme surfaces:
74
+ * bright-* — lighter hues that pop on DARK surfaces (used by
75
+ * status semantics in :root / dark theme)
76
+ * deep-* — darker, more saturated hues that pop on LIGHT
77
+ * surfaces (used by status semantics in
78
+ * [data-theme="light"])
79
+ * Tier-2 success/warning/text-link tokens reach for the matching
80
+ * direction in their theme block. */
81
+ --lace-color-green-bright-500: #4ade80;
82
+ --lace-color-green-bright-600: #22c55e;
83
+ --lace-color-green-bright-700: #16a34a;
84
+ --lace-color-green-deep-700: #047857;
85
+ --lace-color-green-deep-800: #065f46;
86
+ --lace-color-green-deep-900: #064e3b;
87
+ --lace-color-amber-bright-400: #fbbf24;
88
+ --lace-color-amber-deep-700: #b45309;
89
+ --lace-color-blue-bright-500: #60a5fa;
90
+ --lace-color-blue-deep-700: #2563eb;
91
+
92
+ /* ── Palette: alpha variants ── */
93
+ --lace-color-green-alpha-04: rgba(206, 254, 101, 0.04);
94
+ --lace-color-green-alpha-10: rgba(206, 254, 101, 0.1);
95
+ --lace-color-green-alpha-15: rgba(206, 254, 101, 0.15);
96
+ --lace-color-green-alpha-18: rgba(206, 254, 101, 0.18);
97
+ --lace-color-green-alpha-20: rgba(206, 254, 101, 0.2);
98
+ --lace-color-green-alpha-50: rgba(206, 254, 101, 0.5);
99
+ --lace-color-green-alpha-60: rgba(206, 254, 101, 0.6);
100
+ --lace-color-red-alpha-12: rgba(248, 113, 113, 0.12);
101
+ --lace-color-red-alpha-20: rgba(229, 72, 77, 0.2);
102
+ --lace-color-red-alpha-25: rgba(229, 72, 77, 0.25);
103
+ --lace-color-red-alpha-30: rgba(248, 113, 113, 0.3);
104
+ --lace-color-red-alpha-35: rgba(229, 72, 77, 0.35);
105
+ --lace-color-green-bright-alpha-12: rgba(74, 222, 128, 0.12);
106
+ --lace-color-green-bright-alpha-15: rgba(74, 222, 128, 0.15);
107
+ --lace-color-green-bright-alpha-35: rgba(74, 222, 128, 0.35);
108
+ --lace-color-white-alpha-03: rgba(255, 255, 255, 0.03);
109
+ --lace-color-white-alpha-04: rgba(255, 255, 255, 0.04);
110
+ --lace-color-white-alpha-06: rgba(255, 255, 255, 0.06);
111
+ --lace-color-white-alpha-08: rgba(255, 255, 255, 0.08);
112
+ --lace-color-white-alpha-40: rgba(255, 255, 255, 0.4);
113
+ --lace-color-amber-alpha-08: rgba(255, 200, 80, 0.08);
114
+ --lace-color-black-alpha-30: rgba(0, 0, 0, 0.3);
115
+ --lace-color-black-alpha-35: rgba(0, 0, 0, 0.35);
116
+ --lace-color-black-alpha-40: rgba(0, 0, 0, 0.4);
117
+ --lace-color-black-alpha-50: rgba(0, 0, 0, 0.5);
118
+ --lace-color-black-alpha-60: rgba(0, 0, 0, 0.6);
119
+ --lace-color-blue-alpha-30: rgba(59, 130, 246, 0.3);
120
+ --lace-color-purple-alpha-08: rgba(176, 132, 240, 0.08);
121
+ --lace-color-purple-alpha-12: rgba(176, 132, 240, 0.12);
122
+ --lace-color-purple-alpha-25: rgba(176, 132, 240, 0.25);
123
+ --lace-color-purple-alpha-35: rgba(176, 132, 240, 0.35);
124
+ --lace-color-neutral-100-alpha-85: rgba(236, 239, 237, 0.85);
125
+ --lace-color-teal-600-alpha-60: rgba(21, 50, 56, 0.6);
126
+ --lace-color-grey-fog-alpha-15: rgba(155, 161, 158, 0.15);
127
+ --lace-color-grey-fog-alpha-40: rgba(155, 161, 158, 0.4);
128
+ --lace-color-grey-fog: #9ba19e;
129
+ --lace-color-group-collapsed-bg: #1a2a20;
130
+ --lace-color-green-alpha-03: rgba(206, 254, 101, 0.03);
131
+
132
+ /* ── Scale: spacing (4px base) ── */
133
+ --lace-space-0: 0;
134
+ --lace-space-1: 4px;
135
+ --lace-space-2: 8px;
136
+ --lace-space-3: 12px;
137
+ --lace-space-4: 16px;
138
+ --lace-space-5: 24px;
139
+ --lace-space-6: 32px;
140
+ --lace-space-7: 48px;
141
+
142
+ /* ── Scale: font size ── */
143
+ --lace-font-size-xs: 10px;
144
+ --lace-font-size-sm: 11px;
145
+ --lace-font-size-md: 12px;
146
+ --lace-font-size-lg: 13px;
147
+ --lace-font-size-xl: 14px;
148
+ --lace-font-size-2xl: 16px;
149
+
150
+ /* ── Scale: line height ── */
151
+ --lace-line-height-tight: 1.2;
152
+ --lace-line-height-normal: 1.4;
153
+ --lace-line-height-relaxed: 1.6;
154
+
155
+ /* ── Scale: font weight ── */
156
+ --lace-font-weight-regular: 400;
157
+ --lace-font-weight-medium: 500;
158
+ --lace-font-weight-semibold: 600;
159
+ --lace-font-weight-bold: 700;
160
+
161
+ /* ── Font family ── */
162
+ --lace-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
163
+ --lace-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
164
+
165
+ /* ── Scale: radius ── */
166
+ --lace-radius-sm: 4px;
167
+ --lace-radius-md: 6px;
168
+ --lace-radius-lg: 8px;
169
+ --lace-radius-pill: 999px;
170
+
171
+ /* ── Scale: shadow (elevation) ── */
172
+ --lace-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
173
+ --lace-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
174
+ --lace-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
175
+ --lace-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.5);
176
+
177
+ /* ── Scale: z-index ── */
178
+ --lace-z-canvas: 0;
179
+ --lace-z-chrome: 10; /* action bar, toast, banner */
180
+ --lace-z-scrim: 40; /* context-menu dismiss overlay */
181
+ --lace-z-overlay: 50; /* context menu, modal */
182
+ --lace-z-tooltip: 60;
183
+
184
+ /* ── Motion ── */
185
+ --lace-duration-fast: 120ms;
186
+ --lace-duration-medium: 200ms;
187
+ --lace-duration-slow: 300ms;
188
+ --lace-easing-standard: ease;
189
+ --lace-easing-out: ease-out;
190
+ }
191
+
192
+ /* ══════════════════════════════════════════════════════════════════════
193
+ * TIER 2 — SEMANTIC
194
+ *
195
+ * Use-case-named tokens that alias primitives. Composites should prefer
196
+ * these over primitives so a future palette change re-themes everything
197
+ * with one edit.
198
+ * ══════════════════════════════════════════════════════════════════════ */
199
+
200
+ :root {
201
+ /* ── Surface (background layers) ── */
202
+ --lace-color-bg-canvas: var(--lace-color-neutral-900);
203
+ --lace-color-bg-surface: var(--lace-color-neutral-850);
204
+ --lace-color-bg-surface-alt: var(--lace-color-neutral-800);
205
+ --lace-color-bg-input: var(--lace-color-neutral-950);
206
+ --lace-color-bg-context-menu: #1a1a1a;
207
+
208
+ /* ── Border ── */
209
+ --lace-color-border-default: var(--lace-color-neutral-750);
210
+ --lace-color-border-subtle: var(--lace-color-neutral-700);
211
+ --lace-color-border-input: var(--lace-color-neutral-600);
212
+ --lace-color-border-input-hover: #888888;
213
+
214
+ /* ── Text ── */
215
+ --lace-color-text-primary: var(--lace-color-neutral-100);
216
+ --lace-color-text-label: var(--lace-color-neutral-200);
217
+ --lace-color-text-muted: var(--lace-color-neutral-500);
218
+ --lace-color-text-description: var(--lace-color-neutral-400);
219
+ --lace-color-text-accent: var(--lace-color-green-500);
220
+ --lace-color-text-link: var(--lace-color-blue-bright-500);
221
+ --lace-color-text-danger: var(--lace-color-red-500);
222
+ --lace-color-text-danger-soft: var(--lace-color-red-400);
223
+
224
+ /* ── Accent ── */
225
+ --lace-color-accent: var(--lace-color-green-500);
226
+ --lace-color-accent-alpha-subtle: var(--lace-color-green-alpha-10);
227
+ --lace-color-accent-alpha-medium: var(--lace-color-green-alpha-20);
228
+ --lace-color-accent-strong: var(--lace-color-green-bright, var(--lace-color-green-300));
229
+
230
+ /* ── Status ── */
231
+ --lace-color-success: var(--lace-color-green-bright-500);
232
+ --lace-color-success-hover: var(--lace-color-green-bright-600);
233
+ --lace-color-success-strong: var(--lace-color-green-bright-700);
234
+ --lace-color-danger: var(--lace-color-red-500);
235
+ --lace-color-danger-bg-soft: var(--lace-color-red-alpha-12);
236
+ --lace-color-warning-bg: #3b2507;
237
+ --lace-color-warning-fg: var(--lace-color-amber-bright-400);
238
+
239
+ /* ── Scope chip ──
240
+ * Three intent-distinguished chip kinds for the role-aware
241
+ * scope-switcher. Org = blue (platform-wide), Team = green-bright
242
+ * (your scope), Aggregate = purple (spans multiple things).
243
+ * Reusing Badge status palette would conflate scope with state. */
244
+ --lace-scope-org-bg: var(--lace-color-tag-blue-bg);
245
+ --lace-scope-org-fg: var(--lace-color-tag-blue-text);
246
+ --lace-scope-org-border: var(--lace-color-tag-blue-border);
247
+ --lace-scope-team-bg: var(--lace-color-green-bright-alpha-12);
248
+ --lace-scope-team-fg: var(--lace-color-green-bright-500);
249
+ --lace-scope-team-border: var(--lace-color-green-bright-alpha-35);
250
+ --lace-scope-aggregate-bg: var(--lace-color-purple-alpha-12);
251
+ --lace-scope-aggregate-fg: var(--lace-color-purple-400);
252
+ --lace-scope-aggregate-border: var(--lace-color-purple-alpha-35);
253
+
254
+ /* ── Forbidden state ──
255
+ * Explicit Access Denied surfaces (PageGuard card; sidebar tooltip).
256
+ * Muted slate — reads "not for you" without conflating with danger
257
+ * (red, destructive) or warning (amber, caution). */
258
+ --lace-forbidden-bg: var(--lace-color-neutral-800);
259
+ --lace-forbidden-fg: var(--lace-color-text-description);
260
+ --lace-forbidden-border: var(--lace-color-neutral-700);
261
+ --lace-forbidden-icon: var(--lace-color-text-muted);
262
+
263
+ /* ── Aggregate banner ──
264
+ * Persistent banner under page header on multi-team aggregate views.
265
+ * Wide form of the scope-aggregate chip; subtler alpha so it doesn't
266
+ * compete with page content. */
267
+ --lace-banner-aggregate-bg: var(--lace-color-purple-alpha-08);
268
+ --lace-banner-aggregate-fg: var(--lace-color-purple-400);
269
+ --lace-banner-aggregate-border: var(--lace-color-purple-alpha-25);
270
+
271
+ /* ── Focus ring ── */
272
+ --lace-color-focus-ring: var(--lace-color-accent);
273
+ }
274
+
275
+ /* ══════════════════════════════════════════════════════════════════════
276
+ * TIER 3 — COMPONENT
277
+ *
278
+ * Specific-to-component tokens. Retained names match what composites
279
+ * reference today so the migration is additive. New components should
280
+ * prefer semantic tokens unless they need component-specific colors.
281
+ * ══════════════════════════════════════════════════════════════════════ */
282
+
283
+ :root {
284
+ /* ── Brand aliases (legacy — prefer semantic) ── */
285
+ --lace-green: var(--lace-color-green-500);
286
+ --lace-green-bright: var(--lace-color-green-300);
287
+ --lace-gunmetal: var(--lace-color-teal-700);
288
+ --lace-gunmetal-light: var(--lace-color-teal-600);
289
+ --lace-night: var(--lace-color-neutral-900);
290
+ --lace-cyan: var(--lace-color-cyan-500);
291
+ --lace-grey: var(--lace-color-neutral-100);
292
+
293
+ /* ── Surface aliases (legacy) ── */
294
+ --lace-bg-surface: var(--lace-color-bg-surface);
295
+ --lace-bg-surface-alt: var(--lace-color-bg-surface-alt);
296
+ --lace-bg-input: var(--lace-color-bg-input);
297
+ --lace-bg-context-menu: var(--lace-color-bg-context-menu);
298
+ --lace-border-default: var(--lace-color-border-default);
299
+ --lace-border-input: var(--lace-color-border-input);
300
+ --lace-border-input-hover: var(--lace-color-border-input-hover);
301
+ --lace-border-subtle: var(--lace-color-border-subtle);
302
+
303
+ /* ── Text aliases (legacy) ── */
304
+ --lace-text-danger: var(--lace-color-text-danger);
305
+ --lace-text-danger-light: var(--lace-color-text-danger-soft);
306
+ --lace-text-link: var(--lace-color-text-link);
307
+ --lace-text-muted: var(--lace-color-text-muted);
308
+ --lace-text-label: var(--lace-color-text-label);
309
+ --lace-text-description: var(--lace-color-text-description);
310
+
311
+ /* ── Alpha variants (legacy) ── */
312
+ --lace-green-alpha-10: var(--lace-color-green-alpha-10);
313
+ --lace-green-alpha-15: var(--lace-color-green-alpha-15);
314
+ --lace-green-alpha-20: var(--lace-color-green-alpha-20);
315
+ --lace-green-alpha-60: var(--lace-color-green-alpha-60);
316
+
317
+ /* ── Button ── */
318
+ --lace-btn-primary: var(--lace-color-blue-500);
319
+ --lace-btn-primary-dim: var(--lace-color-blue-700);
320
+ --lace-btn-secondary-bg: #2d2d2d;
321
+ --lace-btn-secondary-hover: #3a3a3a;
322
+ --lace-btn-success: var(--lace-color-success-strong);
323
+ --lace-btn-success-hover: var(--lace-color-success-hover);
324
+ --lace-btn-danger-bg: var(--lace-color-red-700);
325
+ --lace-btn-danger-hover: #8a3535;
326
+ --lace-btn-ghost-hover: var(--lace-color-accent-alpha-subtle);
327
+ --lace-btn-text-primary: #ffffff;
328
+ --lace-btn-text-disabled: var(--lace-color-white-alpha-40);
329
+ --lace-icon-btn-hover: var(--lace-color-accent-alpha-subtle);
330
+ --lace-icon-btn-danger-hover: var(--lace-color-red-alpha-30);
331
+ --lace-icon-btn-success-hover: var(--lace-color-green-bright-alpha-15);
332
+
333
+ /* ── Modal / Overlay ── */
334
+ --lace-modal-backdrop: var(--lace-color-black-alpha-60);
335
+ --lace-modal-shadow: var(--lace-shadow-xl);
336
+
337
+ /* ── Panel ── */
338
+ --lace-panel-shadow: 0 2px 12px var(--lace-color-black-alpha-35);
339
+
340
+ /* ── ActionBar ── */
341
+ --lace-action-bar-bg: rgba(30, 30, 30, 0.8);
342
+ --lace-action-bar-separator: #444444;
343
+ --lace-action-bar-shadow: var(--lace-shadow-md);
344
+ --lace-action-bar-generate-bg: var(--lace-color-success);
345
+ --lace-action-bar-generate-bg-hover: var(--lace-color-success-hover);
346
+
347
+ /* ── Input ── */
348
+ --lace-input-bg: var(--lace-color-bg-input);
349
+ --lace-input-border: var(--lace-color-border-default);
350
+ --lace-input-border-hover: var(--lace-color-border-input-hover);
351
+ --lace-input-border-focus: var(--lace-color-focus-ring);
352
+ --lace-input-border-error: var(--lace-color-danger);
353
+ --lace-input-text: var(--lace-color-text-primary);
354
+ --lace-input-placeholder: var(--lace-color-text-muted);
355
+
356
+ /* ── ModeToggle ── */
357
+ --lace-mode-toggle-active-bg: var(--lace-btn-primary);
358
+ --lace-mode-toggle-active-border: var(--lace-btn-primary);
359
+ --lace-mode-toggle-active-text: var(--lace-btn-text-primary);
360
+ --lace-mode-toggle-inactive-bg: transparent;
361
+ --lace-mode-toggle-inactive-border: var(--lace-color-border-input);
362
+ --lace-mode-toggle-inactive-text: var(--lace-color-text-muted);
363
+ --lace-mode-toggle-inactive-hover-border: var(--lace-color-border-input-hover);
364
+ --lace-mode-toggle-inactive-hover-text: var(--lace-color-text-primary);
365
+
366
+ /* ── Toast ── */
367
+ --lace-toast-success-bg: var(--lace-color-teal-700);
368
+ --lace-toast-success-border: var(--lace-color-accent-alpha-medium);
369
+ --lace-toast-error-bg: var(--lace-color-red-800);
370
+ --lace-toast-error-border: var(--lace-color-red-alpha-30);
371
+
372
+ /* ── Badge ── */
373
+ --lace-badge-neutral-bg: transparent;
374
+ --lace-badge-neutral-border: var(--lace-color-border-default);
375
+ --lace-badge-neutral-text: var(--lace-color-text-muted);
376
+ --lace-badge-info-bg: var(--lace-color-tag-blue-bg);
377
+ --lace-badge-info-border: var(--lace-color-tag-blue-border);
378
+ --lace-badge-info-text: var(--lace-color-tag-blue-text);
379
+ --lace-badge-success-bg: var(--lace-color-green-bright-alpha-12);
380
+ --lace-badge-success-border: var(--lace-color-green-bright-alpha-35);
381
+ --lace-badge-success-text: var(--lace-color-success);
382
+ --lace-badge-danger-bg: transparent;
383
+ --lace-badge-danger-border: var(--lace-color-danger);
384
+ --lace-badge-danger-text: var(--lace-color-danger);
385
+ --lace-badge-warning-bg: var(--lace-color-warning-bg);
386
+ --lace-badge-warning-border: transparent;
387
+ --lace-badge-warning-text: var(--lace-color-warning-fg);
388
+ --lace-badge-purple-bg: rgba(176, 132, 240, 0.1);
389
+ --lace-badge-purple-border: rgba(176, 132, 240, 0.35);
390
+ --lace-badge-purple-text: var(--lace-color-purple-400);
391
+ --lace-badge-gy-bg: var(--lace-color-green-500);
392
+ --lace-badge-gy-border: transparent;
393
+ --lace-badge-gy-text: #111;
394
+
395
+ /* ── Canvas nodes (inline-styled; tokens listed for completeness) ── */
396
+ --lace-node-default-border: var(--lace-color-green-alpha-18);
397
+ --lace-node-error-border: var(--lace-color-red-500);
398
+ --lace-node-error-shadow-color: var(--lace-color-red-alpha-30);
399
+ --lace-node-new-border: #3b82f6;
400
+ --lace-node-new-shadow-color: var(--lace-color-blue-alpha-30);
401
+
402
+ /* ── Canvas pin colors (Blender-style type handles) ── */
403
+ --lace-pin-string-fill: var(--lace-color-cyan-500);
404
+ --lace-pin-string-stroke: var(--lace-color-cyan-700);
405
+ --lace-pin-number-fill: var(--lace-color-amber-400);
406
+ --lace-pin-number-stroke: var(--lace-color-amber-600);
407
+ --lace-pin-bool-fill: var(--lace-color-purple-400);
408
+ --lace-pin-bool-stroke: var(--lace-color-purple-700);
409
+ --lace-pin-list-fill: var(--lace-color-green-500);
410
+ --lace-pin-list-stroke: var(--lace-color-green-700);
411
+ --lace-pin-map-fill: var(--lace-color-pink-400);
412
+ --lace-pin-map-stroke: var(--lace-color-pink-700);
413
+ --lace-pin-object-fill: var(--lace-color-orange-400);
414
+ --lace-pin-object-stroke: var(--lace-color-orange-700);
415
+ --lace-pin-any-fill: #9ba19e;
416
+ --lace-pin-any-stroke: #4a4f4c;
417
+
418
+ /* ── Canvas controls + minimap ── */
419
+ --lace-canvas-controls-bg: var(--lace-gunmetal);
420
+ --lace-canvas-controls-bg-hover: var(--lace-gunmetal-light);
421
+ --lace-canvas-controls-icon: var(--lace-color-accent);
422
+ --lace-canvas-controls-icon-hover: var(--lace-color-accent-strong);
423
+ --lace-canvas-controls-border: var(--lace-color-accent-alpha-medium);
424
+ --lace-canvas-minimap-bg: #111111;
425
+ --lace-canvas-minimap-border: var(--lace-color-border-default);
426
+ --lace-canvas-minimap-mask: var(--lace-color-black-alpha-60);
427
+ --lace-canvas-edge-stroke: var(--lace-color-green-alpha-50);
428
+ --lace-canvas-edge-stroke-hover: var(--lace-color-accent-strong);
429
+ --lace-canvas-edge-stroke-selected: var(--lace-color-accent-strong);
430
+ --lace-canvas-edge-stroke-width: 1.5px;
431
+ --lace-canvas-edge-stroke-width-selected: 2.5px;
432
+ --lace-canvas-grid-dot: var(--lace-color-green-alpha-04);
433
+
434
+ /* ── Module detail panel ── */
435
+ --lace-accent-blue: var(--lace-color-blue-accent);
436
+ --lace-accent-green: var(--lace-color-success);
437
+ --lace-warning-bg: var(--lace-color-warning-bg);
438
+ --lace-warning-fg: var(--lace-color-warning-fg);
439
+
440
+ /* ── Policy sidebar ── */
441
+ --lace-policy-preview-badge-bg: var(--lace-color-white-alpha-06);
442
+ --lace-policy-section-divider: var(--lace-color-white-alpha-08);
443
+ --lace-policy-rule-fired-bg: var(--lace-color-amber-alpha-08);
444
+ --lace-policy-rule-default-bg: var(--lace-color-white-alpha-03);
445
+ --lace-policy-predicate-eval-bg: var(--lace-color-white-alpha-04);
446
+
447
+ /* ── Tag pill (legacy — prefer Badge primitive) ── */
448
+ --lace-tag-border: var(--lace-color-tag-blue-border);
449
+ --lace-tag-bg: var(--lace-color-tag-blue-bg);
450
+ --lace-tag-text: var(--lace-color-tag-blue-text);
451
+ }
452
+
453
+ /* ══════════════════════════════════════════════════════════════════════
454
+ * LIGHT THEME
455
+ *
456
+ * Override Tier-2 semantic + Tier-3 component tokens for light surfaces.
457
+ * Tier-1 primitives (raw palette + alpha variants) stay theme-neutral.
458
+ * Apps opt in via `<html data-theme="light">`; otherwise the `:root`
459
+ * dark defaults apply.
460
+ * ══════════════════════════════════════════════════════════════════════ */
461
+
462
+ [data-theme="light"] {
463
+ /* ── Tier-2: Surface ── */
464
+ --lace-color-bg-canvas: #ffffff;
465
+ --lace-color-bg-surface: #f8fafc;
466
+ --lace-color-bg-surface-alt: #f1f5f9;
467
+ --lace-color-bg-input: #ffffff;
468
+ --lace-color-bg-context-menu: #ffffff;
469
+
470
+ /* ── Tier-2: Border ── */
471
+ --lace-color-border-default: #cbd5e1;
472
+ --lace-color-border-subtle: #e2e8f0;
473
+ --lace-color-border-input: #cbd5e1;
474
+ --lace-color-border-input-hover: #94a3b8;
475
+
476
+ /* ── Tier-2: Text ── */
477
+ --lace-color-text-primary: #0f172a;
478
+ --lace-color-text-label: #1f2937;
479
+ --lace-color-text-muted: #64748b;
480
+ --lace-color-text-description: #475569;
481
+ --lace-color-text-accent: #3d6600;
482
+ --lace-color-text-link: var(--lace-color-blue-deep-700);
483
+ --lace-color-text-danger: #dc2626;
484
+ --lace-color-text-danger-soft: #ef4444;
485
+
486
+ /* ── Tier-2: Accent ──
487
+ * Two-color brand system in light: --lace-color-green-500 (Tier-1,
488
+ * theme-neutral #cefe65) stays bright lime for brand stamps / glow
489
+ * effects on dark text-on-lime patches; --lace-color-accent (this
490
+ * Tier-2) darkens to #3d6600 for icons / accent text where neon lime
491
+ * would be illegible on white. Both are intentional. */
492
+ --lace-color-accent: #3d6600;
493
+ --lace-color-accent-alpha-subtle: rgba(132, 204, 22, 0.08);
494
+ --lace-color-accent-alpha-medium: rgba(132, 204, 22, 0.16);
495
+ --lace-color-accent-strong: #2d4a00;
496
+
497
+ /* ── Tier-2: Status ── */
498
+ --lace-color-success: var(--lace-color-green-deep-700);
499
+ --lace-color-success-hover: var(--lace-color-green-deep-800);
500
+ --lace-color-success-strong: var(--lace-color-green-deep-900);
501
+ --lace-color-danger: #dc2626;
502
+ --lace-color-danger-bg-soft: #fef2f2;
503
+ --lace-color-warning-bg: #fffbeb;
504
+ --lace-color-warning-fg: var(--lace-color-amber-deep-700);
505
+
506
+ /* ── Tier-2: Scope chip ── */
507
+ --lace-scope-org-bg: #eff6ff;
508
+ --lace-scope-org-fg: var(--lace-color-blue-deep-700);
509
+ --lace-scope-org-border: #bfdbfe;
510
+ --lace-scope-team-bg: #ecfdf5;
511
+ --lace-scope-team-fg: var(--lace-color-green-deep-700);
512
+ --lace-scope-team-border: #a7f3d0;
513
+ --lace-scope-aggregate-bg: #faf5ff;
514
+ --lace-scope-aggregate-fg: var(--lace-color-purple-700);
515
+ --lace-scope-aggregate-border: #e9d5ff;
516
+
517
+ /* ── Tier-2: Forbidden state ── */
518
+ --lace-forbidden-bg: #f1f5f9;
519
+ --lace-forbidden-fg: #475569;
520
+ --lace-forbidden-border: #cbd5e1;
521
+ --lace-forbidden-icon: #64748b;
522
+
523
+ /* ── Tier-2: Aggregate banner ── */
524
+ --lace-banner-aggregate-bg: #faf5ff;
525
+ --lace-banner-aggregate-fg: var(--lace-color-purple-700);
526
+ --lace-banner-aggregate-border: #e9d5ff;
527
+
528
+ /* ── Tier-2: Focus ── */
529
+ --lace-color-focus-ring: var(--lace-color-accent);
530
+
531
+ /* ── Tier-3: Shadows (lighter elevation) ── */
532
+ --lace-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
533
+ --lace-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.08);
534
+ --lace-shadow-lg: 0 1px 3px rgba(0, 0, 0, 0.08);
535
+ --lace-shadow-xl: 0 4px 12px rgba(0, 0, 0, 0.12);
536
+
537
+ /* ── Tier-3: Button ── */
538
+ --lace-btn-primary: var(--lace-color-blue-deep-700);
539
+ --lace-btn-primary-dim: #1d4ed8;
540
+ --lace-btn-secondary-bg: #f1f5f9;
541
+ --lace-btn-secondary-hover: #e2e8f0;
542
+ --lace-btn-danger-bg: #fef2f2;
543
+ --lace-btn-danger-hover: #fee2e2;
544
+ --lace-btn-text-disabled: rgba(0, 0, 0, 0.35);
545
+ /* btn-success points at success base (deep-700, ~7:1 with white)
546
+ * rather than success-strong (deep-900, too dark). Dark theme uses
547
+ * success-strong for white-text contrast on dark surfaces; light
548
+ * gets the conventional emerald-700 success-action hue. */
549
+ --lace-btn-success: var(--lace-color-success);
550
+ /* btn-success-hover cascades correctly via success-hover */
551
+
552
+ /* ── Tier-3: Toast (alpha-over-dark won't work on light) ── */
553
+ --lace-toast-success-bg: #ecfdf5;
554
+ --lace-toast-success-border: #a7f3d0;
555
+ --lace-toast-error-bg: #fef2f2;
556
+ --lace-toast-error-border: #fecaca;
557
+
558
+ /* ── Tier-3: Badge (light-friendly bg/border) ──
559
+ * Success/danger text cascade from Tier-2; only the bg/border
560
+ * pairs need explicit light values (alpha-over-dark would be
561
+ * invisible on white). */
562
+ --lace-badge-neutral-text: #64748b;
563
+ --lace-badge-info-bg: #eff6ff;
564
+ --lace-badge-info-border: #bfdbfe;
565
+ --lace-badge-info-text: var(--lace-color-blue-deep-700);
566
+ --lace-badge-success-bg: #ecfdf5;
567
+ --lace-badge-success-border: #a7f3d0;
568
+ --lace-badge-danger-bg: transparent;
569
+ --lace-badge-warning-bg: var(--lace-color-warning-bg);
570
+ --lace-badge-warning-border: var(--lace-color-amber-deep-700);
571
+ --lace-badge-warning-text: var(--lace-color-amber-deep-700);
572
+ --lace-badge-purple-bg: #faf5ff;
573
+ --lace-badge-purple-border: #e9d5ff;
574
+ --lace-badge-purple-text: var(--lace-color-purple-700);
575
+ --lace-badge-gy-bg: var(--lace-color-green-500);
576
+ --lace-badge-gy-border: transparent;
577
+ --lace-badge-gy-text: #111;
578
+
579
+ /* ── Tier-3: ActionBar ──
580
+ * Generate bg / hover cascade from Tier-2 success / success-hover. */
581
+ --lace-action-bar-bg: rgba(248, 250, 252, 0.95);
582
+ --lace-action-bar-separator: #cbd5e1;
583
+
584
+ /* ── Tier-3: ModeToggle (cascades from --lace-btn-primary above) ── */
585
+
586
+ /* ── Tier-3: Canvas controls + minimap ── */
587
+ --lace-canvas-controls-bg: #f8fafc;
588
+ --lace-canvas-controls-bg-hover: #e2e8f0;
589
+ --lace-canvas-controls-icon: #3d6600;
590
+ --lace-canvas-controls-icon-hover: #2d4a00;
591
+ --lace-canvas-controls-border: rgba(132, 204, 22, 0.24);
592
+ --lace-canvas-minimap-bg: #ffffff;
593
+ --lace-canvas-minimap-border: #cbd5e1;
594
+ --lace-canvas-minimap-mask: rgba(0, 0, 0, 0.08);
595
+ --lace-canvas-edge-stroke: rgba(132, 204, 22, 0.55);
596
+ --lace-canvas-edge-stroke-hover: #2d4a00;
597
+ --lace-canvas-edge-stroke-selected: #2d4a00;
598
+ --lace-canvas-grid-dot: rgba(0, 0, 0, 0.06);
599
+
600
+ /* ── Tier-3: Module detail panel ──
601
+ * --lace-accent-green cascades from Tier-2 success. Blue accent
602
+ * shifts from canvas brand-cyan to deep blue for legibility. */
603
+ --lace-accent-blue: var(--lace-color-blue-deep-700);
604
+
605
+ /* ── Tier-3: Tag pill ── */
606
+ --lace-tag-border: #bfdbfe;
607
+ --lace-tag-bg: #eff6ff;
608
+ --lace-tag-text: var(--lace-color-blue-deep-700);
609
+
610
+ /* ── Tier-3: Policy sidebar (alpha-over-white instead of alpha-over-black) ── */
611
+ --lace-policy-preview-badge-bg: rgba(0, 0, 0, 0.05);
612
+ --lace-policy-section-divider: rgba(0, 0, 0, 0.08);
613
+ --lace-policy-rule-fired-bg: rgba(245, 166, 35, 0.1);
614
+ --lace-policy-rule-default-bg: rgba(0, 0, 0, 0.03);
615
+ --lace-policy-predicate-eval-bg: rgba(0, 0, 0, 0.04);
616
+ }
617
+
618
+ /* ══════════════════════════════════════════════════════════════════════
619
+ * GLOBAL DEFAULTS
620
+ *
621
+ * Applied at the root so every webview / Storybook iframe picks them up
622
+ * without requiring each component to restate them.
623
+ * ══════════════════════════════════════════════════════════════════════ */
624
+
625
+ html,
626
+ body {
627
+ font-family: var(--lace-font-sans);
628
+ font-size: var(--lace-font-size-md);
629
+ line-height: var(--lace-line-height-normal);
630
+ color: var(--lace-color-text-primary);
631
+ background: var(--lace-color-bg-canvas);
632
+ -webkit-font-smoothing: antialiased;
633
+ -moz-osx-font-smoothing: grayscale;
634
+ }
635
+
636
+ *,
637
+ *::before,
638
+ *::after {
639
+ box-sizing: border-box;
640
+ }
package/index.js DELETED
@@ -1 +0,0 @@
1
- module.exports = {};