@tangle-network/brand 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0 — 2026-05-04
4
+
5
+ - **Breaking:** stops shipping fonts (`src/styles/fonts.css` removed, `./styles/fonts.css` export removed). Consumer apps must now load fonts themselves via `@fontsource/*` (recommended) or HTML `<link>`. Reasoning:
6
+ - `@import url(...)` inside library CSS breaks downstream when CSS chain-imports get reordered (mirrors `tangle-network/sandbox-ui#28`).
7
+ - Library-shipped Google Fonts requests are privacy-hostile.
8
+ - Consumers cannot fall back when the network fails.
9
+ See README "Fonts" section for migration.
10
+ - Selection color updated to teal `rgba(56, 178, 172, 0.22)` for cross-package consistency with sandbox-ui.
11
+ - Added GitHub Actions release workflow (`.github/workflows/release.yml`) — auto-publishes to npm and GitHub Packages on `package.json` version bump merged to `main`.
12
+
13
+ ## 0.1.0 — 2026-04-24
14
+
15
+ Initial release. Extracted from `@tangle-network/sandbox-ui` as the single source of truth for Tangle brand across every app.
16
+
17
+ - Design tokens: MD3 + shadcn HSL bridge, dark (`:root`) + light (`[data-sandbox-theme="vault"]`)
18
+ - Depth stack, status colors, brand accent (indigo), code/syntax palette
19
+ - Fonts: Geist / Geist Mono / Outfit / Manrope / Inter via Google Fonts
20
+ - Tailwind v4 `@theme` preset: `bg-brand*`, `bg-depth-*`, `text-fg*`, `text-status-*`, font-family + radii
21
+ - Logo: `TangleKnot` SVG and `Logo` composed component, sizes `sm | md | lg | xl`, optional suffix
22
+ - Base styles + utilities: `.text-gradient-brand`, `.glow-brand`, `.surface-card`, `.bg-mesh`, `.noise`, `.status-dot-*`
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tangle Network
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,135 @@
1
+ # @tangle-network/brand
2
+
3
+ Single source of truth for the Tangle design system. Design tokens, logo, and a Tailwind v4 theme preset, shared across every Tangle app (`tangle-website`, `sandbox-ui`, `evals`, `agent-builder`, product surfaces).
4
+
5
+ **Scope:** tokens, not components. Components live in `@tangle-network/sandbox-ui`.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pnpm add @tangle-network/brand
11
+ ```
12
+
13
+ ## Use
14
+
15
+ ### Tailwind v4 app
16
+
17
+ ```css
18
+ /* app.css */
19
+ @import "@tangle-network/brand/styles";
20
+ @import "tailwindcss";
21
+ ```
22
+
23
+ That single import wires:
24
+
25
+ - CSS custom properties for dark (`:root`) and light (`[data-sandbox-theme="vault"]`)
26
+ - Tailwind v4 `@theme` block so `bg-brand`, `text-fg-muted`, `rounded-lg`, `font-display`, etc. just work
27
+ - Base styles and a handful of utility classes (`.text-gradient-brand`, `.depth-1..4`, `.status-dot-*`)
28
+
29
+ Fonts are **not** bundled — see [Fonts](#fonts) below.
30
+
31
+ ### Finer control
32
+
33
+ ```css
34
+ @import "@tangle-network/brand/styles/tokens";
35
+ @import "tailwindcss";
36
+ @import "@tangle-network/brand/styles/theme";
37
+ @import "@tangle-network/brand/styles/globals";
38
+ ```
39
+
40
+ ### Logo
41
+
42
+ ```tsx
43
+ import { Logo, TangleKnot } from "@tangle-network/brand";
44
+
45
+ <Logo size="lg" />
46
+ <Logo size="md" suffix="Sandbox" />
47
+ <TangleKnot size={48} />
48
+ ```
49
+
50
+ ## What's in the palette
51
+
52
+ - **Accent** — indigo `#6366F1` / `#818CF8` / `#A5AAFC`
53
+ - **Depth stack** — `#0C0B1D` → `#262448` (dark); `#f4f4f9` → `#dcdbe8` (light)
54
+ - **Status** — emerald / amber / coral for running / stopped / error
55
+ - **Radii** — 6/8/12/16px (dark); 2/4/6/8px (light/"vault")
56
+
57
+ Light theme activates via `data-sandbox-theme="vault"` on a parent element.
58
+
59
+ ## Fonts
60
+
61
+ brand references the following font families in its design tokens but does **not** bundle them — consumer apps must load the fonts themselves. This is deliberate:
62
+
63
+ - (a) `@import url(...)` inside library CSS breaks downstream when CSS chain-imports get reordered — once the dist CSS is inlined after any rule, the URL `@import` is no longer at the top of the merged stylesheet, the CSS spec disallows it, and PostCSS rejects the build. Mirrors `tangle-network/sandbox-ui#28`.
64
+ - (b) Shipping a third-party Google Fonts request from a library is privacy-hostile.
65
+ - (c) Consumers cannot fall back when the network fails.
66
+
67
+ | Family | Role | Used as CSS variable |
68
+ | ------------ | ----------------------------------- | -------------------- |
69
+ | Geist | UI body text (dark) | `--font-sans` |
70
+ | Geist Mono | Code, terminal | `--font-mono` |
71
+ | Outfit | Display / headings (dark) | `--font-display` |
72
+ | Manrope | Display / headings (vault) | `--font-display` |
73
+ | Inter | UI body text (vault) | `--font-sans` |
74
+
75
+ Pick one loading strategy that fits your app:
76
+
77
+ **1. Self-hosted via `@fontsource/*`** (recommended — no external network request):
78
+
79
+ ```bash
80
+ pnpm add @fontsource/geist-sans @fontsource/geist-mono @fontsource/outfit @fontsource/manrope @fontsource/inter
81
+ ```
82
+
83
+ ```tsx
84
+ // app entry
85
+ import "@fontsource/geist-sans/400.css";
86
+ import "@fontsource/geist-sans/500.css";
87
+ import "@fontsource/geist-sans/600.css";
88
+ import "@fontsource/geist-sans/700.css";
89
+ import "@fontsource/geist-mono/400.css";
90
+ import "@fontsource/geist-mono/500.css";
91
+ import "@fontsource/outfit/500.css";
92
+ import "@fontsource/outfit/700.css";
93
+ import "@fontsource/manrope/500.css";
94
+ import "@fontsource/manrope/700.css";
95
+ import "@fontsource/inter/400.css";
96
+ import "@fontsource/inter/600.css";
97
+ ```
98
+
99
+ **2. Google Fonts via HTML `<link>`:**
100
+
101
+ ```html
102
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
103
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
104
+ <link
105
+ rel="stylesheet"
106
+ href="https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap"
107
+ />
108
+ ```
109
+
110
+ Any family you omit falls back per the `--font-*` token chain.
111
+
112
+ ## Policy
113
+
114
+ - **No additions without a cross-app audit.** New tokens land here or nowhere; do not fork this into apps.
115
+ - **Version as a product.** Semver. Breaking token changes are major bumps.
116
+ - **Sandbox-ui as the stress-test surface.** Tokens ship here only after sandbox-ui has used them in anger.
117
+
118
+ ## Development
119
+
120
+ ```bash
121
+ pnpm install
122
+ pnpm build
123
+ ```
124
+
125
+ To iterate inside a consuming app, link locally:
126
+
127
+ ```bash
128
+ # in ~/webb/brand
129
+ pnpm link --global
130
+
131
+ # in the consumer
132
+ pnpm link --global @tangle-network/brand
133
+ ```
134
+
135
+ Or use a `file:` path dependency (`"@tangle-network/brand": "file:../brand"`).
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface LogoProps {
4
+ size?: "sm" | "md" | "lg" | "xl";
5
+ variant?: "full" | "icon";
6
+ suffix?: string | null;
7
+ className?: string;
8
+ }
9
+ declare function TangleKnot({ size, className, }: {
10
+ size?: number;
11
+ className?: string;
12
+ }): react_jsx_runtime.JSX.Element;
13
+ declare function Logo({ size, variant, suffix, className, }: LogoProps): react_jsx_runtime.JSX.Element;
14
+
15
+ export { Logo, type LogoProps, TangleKnot };
package/dist/index.js ADDED
@@ -0,0 +1,67 @@
1
+ // src/logo.tsx
2
+ import * as React from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ var sizeConfig = {
5
+ sm: { icon: 24, text: "text-base", suffix: "text-xs", gap: "gap-1.5" },
6
+ md: { icon: 28, text: "text-lg", suffix: "text-sm", gap: "gap-2" },
7
+ lg: { icon: 36, text: "text-2xl", suffix: "text-base", gap: "gap-2.5" },
8
+ xl: { icon: 48, text: "text-3xl", suffix: "text-lg", gap: "gap-3" }
9
+ };
10
+ function TangleKnot({
11
+ size = 32,
12
+ className
13
+ }) {
14
+ const uid = React.useId();
15
+ const g1 = `tk-a-${uid}`;
16
+ const g2 = `tk-b-${uid}`;
17
+ return /* @__PURE__ */ jsxs(
18
+ "svg",
19
+ {
20
+ width: size,
21
+ height: size,
22
+ viewBox: "20 45 156 140",
23
+ fill: "none",
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ className,
26
+ "aria-label": "Tangle",
27
+ children: [
28
+ /* @__PURE__ */ jsx("title", { children: "Tangle" }),
29
+ /* @__PURE__ */ jsxs("defs", { children: [
30
+ /* @__PURE__ */ jsxs("linearGradient", { id: g1, x1: "36.79", y1: "58.78", x2: "145.99", y2: "183.59", gradientUnits: "userSpaceOnUse", children: [
31
+ /* @__PURE__ */ jsx("stop", { stopColor: "#8E59FF" }),
32
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#6888F9" })
33
+ ] }),
34
+ /* @__PURE__ */ jsxs("linearGradient", { id: g2, x1: "36.78", y1: "169.38", x2: "145.99", y2: "44.57", gradientUnits: "userSpaceOnUse", children: [
35
+ /* @__PURE__ */ jsx("stop", { stopColor: "#8E59FF" }),
36
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#6888F9" })
37
+ ] })
38
+ ] }),
39
+ /* @__PURE__ */ jsx("path", { d: "M170.74 150.082C170.747 142.848 167.464 135.908 161.612 130.784C155.76 125.66 147.818 122.772 139.528 122.754L104.921 122.754C104.704 119.939 104.567 117.062 104.567 114.078C104.567 111.095 104.429 108.231 104.236 105.403L139.528 105.403C147.746 105.288 155.582 102.359 161.347 97.2467C167.112 92.135 170.343 85.2506 170.343 78.0787C170.343 70.9069 167.112 64.0225 161.347 58.9107C155.582 53.799 147.746 50.8696 139.528 50.7545L56.817 50.7545C48.5993 50.8696 40.7628 53.799 34.9981 58.9107C29.2334 64.0225 26.0025 70.9069 26.0025 78.0787C26.0025 85.2506 29.2334 92.135 34.9981 97.2467C40.7628 102.359 48.5993 105.288 56.817 105.403L89.3238 106.163C91.5854 106.163 91.7785 111.095 91.7785 114.078C91.7785 117.062 91.9156 119.925 92.1091 122.754L56.817 122.754C48.5993 122.869 40.7628 125.798 34.9981 130.91C29.2334 136.022 26.0025 142.906 26.0025 150.078C26.0025 157.25 29.2334 164.134 34.9981 169.246C40.7628 174.358 48.5993 177.287 56.817 177.402L139.528 177.402C147.816 177.384 155.757 174.497 161.609 169.374C167.461 164.252 170.745 157.314 170.74 150.082ZM157.952 78.0752C157.954 82.3443 156.016 86.4397 152.562 89.463C149.108 92.4863 144.42 94.1905 139.528 94.2017L102.881 94.2017C101.554 86.2073 99.0244 78.4005 95.3585 70.9829C93.7421 67.7691 91.6728 64.7438 89.1983 61.9769L139.528 61.9769C144.415 61.988 149.097 63.6884 152.55 66.7056C156.003 69.7228 157.946 73.811 157.952 78.0752ZM56.817 94.2017C51.9157 94.2017 47.2151 92.5027 43.7493 89.4784C40.2835 86.4541 38.3364 82.3522 38.3364 78.0752C38.3364 73.7982 40.2835 69.6964 43.7493 66.6721C47.2151 63.6478 51.9157 61.9487 56.817 61.9487L65.1139 61.9487C72.4433 61.9487 79.3856 67.0146 83.7074 75.5071C86.6658 81.491 88.77 87.7697 89.9724 94.2017L56.817 94.2017ZM38.3929 150.082C38.3907 145.812 40.3293 141.717 43.7834 138.694C47.2374 135.67 51.9248 133.966 56.817 133.955L93.4637 133.955C94.7912 141.949 97.3206 149.756 100.987 157.174C102.603 160.388 104.672 163.413 107.147 166.18L56.817 166.18C51.9304 166.169 47.2479 164.468 43.7948 161.451C40.3416 158.434 38.3993 154.346 38.3929 150.082ZM112.686 152.65C109.728 146.666 107.623 140.387 106.421 133.955L139.528 133.955C144.429 133.955 149.13 135.654 152.596 138.678C156.062 141.703 158.009 145.804 158.009 150.082C158.009 154.359 156.062 158.46 152.596 161.485C149.13 164.509 144.429 166.208 139.528 166.208L131.231 166.208C123.934 166.208 116.992 161.142 112.686 152.65Z", fill: `url(#${g1})` }),
40
+ /* @__PURE__ */ jsx("path", { opacity: "0.8", d: "M170.74 78.0752C170.747 85.3089 167.463 92.2492 161.612 97.3728C155.76 102.496 147.817 105.384 139.527 105.403L104.92 105.403C104.702 108.217 104.565 111.095 104.565 114.078C104.565 117.062 104.428 119.925 104.235 122.754L139.527 122.754C147.745 122.869 155.582 125.798 161.347 130.91C167.112 136.022 170.342 142.906 170.342 150.078C170.342 157.25 167.112 164.134 161.347 169.246C155.582 174.358 147.745 177.287 139.527 177.402L56.8149 177.402C48.597 177.287 40.7604 174.358 34.9956 169.246C29.2307 164.134 25.9998 157.25 25.9998 150.078C25.9998 142.906 29.2307 136.022 34.9956 130.91C40.7604 125.798 48.597 122.869 56.8149 122.754L89.3223 121.994C91.5839 121.994 91.777 117.062 91.777 114.078C91.777 111.095 91.9141 108.231 92.1076 105.403L56.8149 105.403C48.597 105.288 40.7604 102.359 34.9956 97.2468C29.2307 92.135 25.9998 85.2506 25.9998 78.0788C25.9998 70.9069 29.2307 64.0225 34.9956 58.9108C40.7604 53.799 48.597 50.8696 56.8149 50.7545L139.527 50.7545C147.816 50.7731 155.757 53.6602 161.609 58.7823C167.46 63.9043 170.744 70.8428 170.74 78.0752ZM157.952 150.082C157.954 145.812 156.015 141.717 152.561 138.694C149.107 135.67 144.42 133.966 139.527 133.955L102.88 133.955C101.552 141.949 99.023 149.756 95.3571 157.174C93.7406 160.388 91.6712 163.413 89.1968 166.18L139.527 166.18C144.414 166.169 149.097 164.468 152.55 161.451C156.003 158.434 157.945 154.346 157.952 150.082ZM56.8149 133.955C51.9134 133.955 47.2127 135.654 43.7469 138.678C40.2811 141.703 38.334 145.805 38.334 150.082C38.334 154.359 40.2811 158.46 43.7469 161.485C47.2127 164.509 51.9134 166.208 56.8149 166.208L65.1119 166.208C72.4414 166.208 79.3838 161.142 83.7057 152.65C86.6642 146.666 88.7684 140.387 89.9708 133.955L56.8149 133.955ZM38.3904 78.0752C38.3883 82.3443 40.3269 86.4398 43.781 89.4631C47.2351 92.4863 51.9226 94.1905 56.8149 94.2017L93.4622 94.2017C94.7898 86.2073 97.3192 78.4005 100.985 70.983C102.602 67.7692 104.671 64.7438 107.145 61.9769L56.8149 61.9769C51.9282 61.9881 47.2456 63.6884 43.7924 66.7056C40.3392 69.7228 38.3968 73.8111 38.3904 78.0752ZM112.685 75.5071C109.726 81.491 107.622 87.7697 106.42 94.2017L139.527 94.2017C144.429 94.2017 149.13 92.5027 152.595 89.4784C156.061 86.4541 158.008 82.3522 158.008 78.0752C158.008 73.7982 156.061 69.6964 152.595 66.6721C149.13 63.6478 144.429 61.9488 139.527 61.9488L131.23 61.9488C123.933 61.9488 116.991 67.0147 112.685 75.5071Z", fill: `url(#${g2})` })
41
+ ]
42
+ }
43
+ );
44
+ }
45
+ function Logo({
46
+ size = "md",
47
+ variant = "full",
48
+ suffix = null,
49
+ className
50
+ }) {
51
+ const cfg = sizeConfig[size];
52
+ if (variant === "icon") {
53
+ return /* @__PURE__ */ jsx(TangleKnot, { size: cfg.icon, className });
54
+ }
55
+ const cls = ["flex items-center", cfg.gap, className].filter(Boolean).join(" ");
56
+ return /* @__PURE__ */ jsxs("div", { className: cls, children: [
57
+ /* @__PURE__ */ jsx(TangleKnot, { size: cfg.icon, className: "shrink-0" }),
58
+ /* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-1", children: [
59
+ /* @__PURE__ */ jsx("span", { className: `font-bold tracking-tight ${cfg.text}`, children: "Tangle" }),
60
+ suffix ? /* @__PURE__ */ jsx("span", { className: `font-medium text-gradient-brand ${cfg.suffix}`, children: suffix }) : null
61
+ ] })
62
+ ] });
63
+ }
64
+ export {
65
+ Logo,
66
+ TangleKnot
67
+ };
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@tangle-network/brand",
3
+ "version": "0.2.0",
4
+ "description": "Tangle brand system — design tokens, logo, Tailwind v4 theme. Single source of truth for every Tangle app.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/tangle-network/brand"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/tangle-network/brand/issues"
13
+ },
14
+ "homepage": "https://github.com/tangle-network/brand",
15
+ "sideEffects": [
16
+ "./src/styles/*.css",
17
+ "./dist/styles/*.css"
18
+ ],
19
+ "files": [
20
+ "dist",
21
+ "src",
22
+ "README.md",
23
+ "CHANGELOG.md"
24
+ ],
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "./styles": {
32
+ "style": "./src/styles/index.css",
33
+ "default": "./src/styles/index.css"
34
+ },
35
+ "./styles/index.css": "./src/styles/index.css",
36
+ "./styles/tokens.css": "./src/styles/tokens.css",
37
+ "./styles/globals.css": "./src/styles/globals.css",
38
+ "./styles/theme.css": "./src/styles/theme.css"
39
+ },
40
+ "scripts": {
41
+ "build": "tsup src/index.ts --format esm --dts --clean",
42
+ "dev": "tsup src/index.ts --format esm --dts --watch",
43
+ "prepublishOnly": "pnpm build"
44
+ },
45
+ "peerDependencies": {
46
+ "react": ">=18"
47
+ },
48
+ "peerDependenciesMeta": {
49
+ "react": { "optional": true }
50
+ },
51
+ "devDependencies": {
52
+ "@types/react": "^19.0.0",
53
+ "react": "^19.0.0",
54
+ "tsup": "^8.3.5",
55
+ "typescript": "^5.6.0"
56
+ },
57
+ "keywords": [
58
+ "tangle",
59
+ "design-system",
60
+ "brand",
61
+ "tokens",
62
+ "tailwind"
63
+ ]
64
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { Logo, TangleKnot, type LogoProps } from "./logo.js";
package/src/logo.tsx ADDED
@@ -0,0 +1,80 @@
1
+ import * as React from "react";
2
+
3
+ export interface LogoProps {
4
+ size?: "sm" | "md" | "lg" | "xl";
5
+ variant?: "full" | "icon";
6
+ suffix?: string | null;
7
+ className?: string;
8
+ }
9
+
10
+ const sizeConfig = {
11
+ sm: { icon: 24, text: "text-base", suffix: "text-xs", gap: "gap-1.5" },
12
+ md: { icon: 28, text: "text-lg", suffix: "text-sm", gap: "gap-2" },
13
+ lg: { icon: 36, text: "text-2xl", suffix: "text-base", gap: "gap-2.5" },
14
+ xl: { icon: 48, text: "text-3xl", suffix: "text-lg", gap: "gap-3" },
15
+ } as const;
16
+
17
+ export function TangleKnot({
18
+ size = 32,
19
+ className,
20
+ }: {
21
+ size?: number;
22
+ className?: string;
23
+ }) {
24
+ const uid = React.useId();
25
+ const g1 = `tk-a-${uid}`;
26
+ const g2 = `tk-b-${uid}`;
27
+
28
+ return (
29
+ <svg
30
+ width={size}
31
+ height={size}
32
+ viewBox="20 45 156 140"
33
+ fill="none"
34
+ xmlns="http://www.w3.org/2000/svg"
35
+ className={className}
36
+ aria-label="Tangle"
37
+ >
38
+ <title>Tangle</title>
39
+ <defs>
40
+ <linearGradient id={g1} x1="36.79" y1="58.78" x2="145.99" y2="183.59" gradientUnits="userSpaceOnUse">
41
+ <stop stopColor="#8E59FF" />
42
+ <stop offset="1" stopColor="#6888F9" />
43
+ </linearGradient>
44
+ <linearGradient id={g2} x1="36.78" y1="169.38" x2="145.99" y2="44.57" gradientUnits="userSpaceOnUse">
45
+ <stop stopColor="#8E59FF" />
46
+ <stop offset="1" stopColor="#6888F9" />
47
+ </linearGradient>
48
+ </defs>
49
+ <path d="M170.74 150.082C170.747 142.848 167.464 135.908 161.612 130.784C155.76 125.66 147.818 122.772 139.528 122.754L104.921 122.754C104.704 119.939 104.567 117.062 104.567 114.078C104.567 111.095 104.429 108.231 104.236 105.403L139.528 105.403C147.746 105.288 155.582 102.359 161.347 97.2467C167.112 92.135 170.343 85.2506 170.343 78.0787C170.343 70.9069 167.112 64.0225 161.347 58.9107C155.582 53.799 147.746 50.8696 139.528 50.7545L56.817 50.7545C48.5993 50.8696 40.7628 53.799 34.9981 58.9107C29.2334 64.0225 26.0025 70.9069 26.0025 78.0787C26.0025 85.2506 29.2334 92.135 34.9981 97.2467C40.7628 102.359 48.5993 105.288 56.817 105.403L89.3238 106.163C91.5854 106.163 91.7785 111.095 91.7785 114.078C91.7785 117.062 91.9156 119.925 92.1091 122.754L56.817 122.754C48.5993 122.869 40.7628 125.798 34.9981 130.91C29.2334 136.022 26.0025 142.906 26.0025 150.078C26.0025 157.25 29.2334 164.134 34.9981 169.246C40.7628 174.358 48.5993 177.287 56.817 177.402L139.528 177.402C147.816 177.384 155.757 174.497 161.609 169.374C167.461 164.252 170.745 157.314 170.74 150.082ZM157.952 78.0752C157.954 82.3443 156.016 86.4397 152.562 89.463C149.108 92.4863 144.42 94.1905 139.528 94.2017L102.881 94.2017C101.554 86.2073 99.0244 78.4005 95.3585 70.9829C93.7421 67.7691 91.6728 64.7438 89.1983 61.9769L139.528 61.9769C144.415 61.988 149.097 63.6884 152.55 66.7056C156.003 69.7228 157.946 73.811 157.952 78.0752ZM56.817 94.2017C51.9157 94.2017 47.2151 92.5027 43.7493 89.4784C40.2835 86.4541 38.3364 82.3522 38.3364 78.0752C38.3364 73.7982 40.2835 69.6964 43.7493 66.6721C47.2151 63.6478 51.9157 61.9487 56.817 61.9487L65.1139 61.9487C72.4433 61.9487 79.3856 67.0146 83.7074 75.5071C86.6658 81.491 88.77 87.7697 89.9724 94.2017L56.817 94.2017ZM38.3929 150.082C38.3907 145.812 40.3293 141.717 43.7834 138.694C47.2374 135.67 51.9248 133.966 56.817 133.955L93.4637 133.955C94.7912 141.949 97.3206 149.756 100.987 157.174C102.603 160.388 104.672 163.413 107.147 166.18L56.817 166.18C51.9304 166.169 47.2479 164.468 43.7948 161.451C40.3416 158.434 38.3993 154.346 38.3929 150.082ZM112.686 152.65C109.728 146.666 107.623 140.387 106.421 133.955L139.528 133.955C144.429 133.955 149.13 135.654 152.596 138.678C156.062 141.703 158.009 145.804 158.009 150.082C158.009 154.359 156.062 158.46 152.596 161.485C149.13 164.509 144.429 166.208 139.528 166.208L131.231 166.208C123.934 166.208 116.992 161.142 112.686 152.65Z" fill={`url(#${g1})`} />
50
+ <path opacity="0.8" d="M170.74 78.0752C170.747 85.3089 167.463 92.2492 161.612 97.3728C155.76 102.496 147.817 105.384 139.527 105.403L104.92 105.403C104.702 108.217 104.565 111.095 104.565 114.078C104.565 117.062 104.428 119.925 104.235 122.754L139.527 122.754C147.745 122.869 155.582 125.798 161.347 130.91C167.112 136.022 170.342 142.906 170.342 150.078C170.342 157.25 167.112 164.134 161.347 169.246C155.582 174.358 147.745 177.287 139.527 177.402L56.8149 177.402C48.597 177.287 40.7604 174.358 34.9956 169.246C29.2307 164.134 25.9998 157.25 25.9998 150.078C25.9998 142.906 29.2307 136.022 34.9956 130.91C40.7604 125.798 48.597 122.869 56.8149 122.754L89.3223 121.994C91.5839 121.994 91.777 117.062 91.777 114.078C91.777 111.095 91.9141 108.231 92.1076 105.403L56.8149 105.403C48.597 105.288 40.7604 102.359 34.9956 97.2468C29.2307 92.135 25.9998 85.2506 25.9998 78.0788C25.9998 70.9069 29.2307 64.0225 34.9956 58.9108C40.7604 53.799 48.597 50.8696 56.8149 50.7545L139.527 50.7545C147.816 50.7731 155.757 53.6602 161.609 58.7823C167.46 63.9043 170.744 70.8428 170.74 78.0752ZM157.952 150.082C157.954 145.812 156.015 141.717 152.561 138.694C149.107 135.67 144.42 133.966 139.527 133.955L102.88 133.955C101.552 141.949 99.023 149.756 95.3571 157.174C93.7406 160.388 91.6712 163.413 89.1968 166.18L139.527 166.18C144.414 166.169 149.097 164.468 152.55 161.451C156.003 158.434 157.945 154.346 157.952 150.082ZM56.8149 133.955C51.9134 133.955 47.2127 135.654 43.7469 138.678C40.2811 141.703 38.334 145.805 38.334 150.082C38.334 154.359 40.2811 158.46 43.7469 161.485C47.2127 164.509 51.9134 166.208 56.8149 166.208L65.1119 166.208C72.4414 166.208 79.3838 161.142 83.7057 152.65C86.6642 146.666 88.7684 140.387 89.9708 133.955L56.8149 133.955ZM38.3904 78.0752C38.3883 82.3443 40.3269 86.4398 43.781 89.4631C47.2351 92.4863 51.9226 94.1905 56.8149 94.2017L93.4622 94.2017C94.7898 86.2073 97.3192 78.4005 100.985 70.983C102.602 67.7692 104.671 64.7438 107.145 61.9769L56.8149 61.9769C51.9282 61.9881 47.2456 63.6884 43.7924 66.7056C40.3392 69.7228 38.3968 73.8111 38.3904 78.0752ZM112.685 75.5071C109.726 81.491 107.622 87.7697 106.42 94.2017L139.527 94.2017C144.429 94.2017 149.13 92.5027 152.595 89.4784C156.061 86.4541 158.008 82.3522 158.008 78.0752C158.008 73.7982 156.061 69.6964 152.595 66.6721C149.13 63.6478 144.429 61.9488 139.527 61.9488L131.23 61.9488C123.933 61.9488 116.991 67.0147 112.685 75.5071Z" fill={`url(#${g2})`} />
51
+ </svg>
52
+ );
53
+ }
54
+
55
+ export function Logo({
56
+ size = "md",
57
+ variant = "full",
58
+ suffix = null,
59
+ className,
60
+ }: LogoProps) {
61
+ const cfg = sizeConfig[size];
62
+
63
+ if (variant === "icon") {
64
+ return <TangleKnot size={cfg.icon} className={className} />;
65
+ }
66
+
67
+ const cls = ["flex items-center", cfg.gap, className].filter(Boolean).join(" ");
68
+
69
+ return (
70
+ <div className={cls}>
71
+ <TangleKnot size={cfg.icon} className="shrink-0" />
72
+ <div className="flex items-baseline gap-1">
73
+ <span className={`font-bold tracking-tight ${cfg.text}`}>Tangle</span>
74
+ {suffix ? (
75
+ <span className={`font-medium text-gradient-brand ${cfg.suffix}`}>{suffix}</span>
76
+ ) : null}
77
+ </div>
78
+ </div>
79
+ );
80
+ }
@@ -0,0 +1,105 @@
1
+ /* Tangle brand — base styles + utilities.
2
+ Mirrors sandbox-ui's globals.css with sandbox-only @source rules stripped.
3
+ Consumers should @import this AFTER @import "tailwindcss". */
4
+
5
+ @layer base {
6
+ * {
7
+ border-color: hsl(var(--border));
8
+ }
9
+
10
+ body {
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ background-color: hsl(var(--background));
14
+ color: hsl(var(--foreground));
15
+ font-family: var(--font-sans);
16
+ font-feature-settings:
17
+ "rlig" 1,
18
+ "calt" 1,
19
+ "ss01" 1;
20
+ }
21
+
22
+ ::selection {
23
+ background: rgba(56, 178, 172, 0.22);
24
+ color: hsl(var(--hsl-foreground));
25
+ }
26
+
27
+ ::-webkit-scrollbar {
28
+ width: 6px;
29
+ height: 6px;
30
+ }
31
+
32
+ ::-webkit-scrollbar-track {
33
+ background: transparent;
34
+ }
35
+
36
+ ::-webkit-scrollbar-thumb {
37
+ background: hsl(var(--border) / 0.7);
38
+ border-radius: 3px;
39
+ }
40
+
41
+ ::-webkit-scrollbar-thumb:hover {
42
+ background: hsl(var(--muted-foreground) / 0.4);
43
+ }
44
+ }
45
+
46
+ @layer utilities {
47
+ .text-gradient-brand {
48
+ background-image: var(--tangle-gradient);
49
+ background-clip: text;
50
+ -webkit-background-clip: text;
51
+ color: transparent;
52
+ }
53
+
54
+ .glow-brand {
55
+ box-shadow: 0 0 48px -10px hsl(var(--primary) / 0.45);
56
+ }
57
+
58
+ .depth-1 { background-color: var(--depth-1); }
59
+ .depth-2 { background-color: var(--depth-2); }
60
+ .depth-3 { background-color: var(--depth-3); }
61
+ .depth-4 { background-color: var(--depth-4); }
62
+
63
+ .surface-card {
64
+ background: hsl(var(--card));
65
+ border: 1px solid hsl(var(--border));
66
+ transition: border-color var(--transition-default), box-shadow var(--transition-default);
67
+ }
68
+
69
+ .surface-card:hover {
70
+ border-color: hsl(var(--border));
71
+ }
72
+
73
+ .bg-mesh {
74
+ position: relative;
75
+ }
76
+
77
+ .bg-mesh::before {
78
+ content: '';
79
+ position: absolute;
80
+ inset: 0;
81
+ background:
82
+ radial-gradient(ellipse 80% 50% at 20% 40%, var(--mesh-teal), transparent),
83
+ radial-gradient(ellipse 60% 40% at 80% 20%, var(--mesh-violet), transparent),
84
+ radial-gradient(ellipse 50% 60% at 50% 80%, var(--mesh-blue), transparent);
85
+ pointer-events: none;
86
+ z-index: 0;
87
+ }
88
+
89
+ .noise {
90
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
91
+ pointer-events: none;
92
+ }
93
+
94
+ .status-dot {
95
+ width: 8px;
96
+ height: 8px;
97
+ border-radius: 50%;
98
+ display: inline-block;
99
+ flex-shrink: 0;
100
+ }
101
+
102
+ .status-dot-running { background: var(--status-running); box-shadow: var(--shadow-status-running); }
103
+ .status-dot-stopped { background: var(--status-stopped); }
104
+ .status-dot-error { background: var(--status-error); box-shadow: var(--shadow-status-error); }
105
+ }
@@ -0,0 +1,10 @@
1
+ /* One-line brand import — pulls tokens + globals + Tailwind v4 theme.
2
+ Usage in a Tailwind v4 app:
3
+ @import "@tangle-network/brand/styles";
4
+ @import "tailwindcss";
5
+ For finer control, import the individual files.
6
+ Fonts are NOT bundled — see README "Fonts" for consumer-loads-fonts strategy. */
7
+
8
+ @import "./tokens.css";
9
+ @import "./theme.css";
10
+ @import "./globals.css";
@@ -0,0 +1,50 @@
1
+ /* Tangle brand — Tailwind v4 @theme block.
2
+ Maps brand CSS custom properties into Tailwind's color/font/radius system
3
+ so utilities like `bg-brand-primary`, `text-text-muted`, `rounded-md`,
4
+ `font-display` work out of the box.
5
+
6
+ Consumers include this AFTER `@import "tailwindcss"` and
7
+ BEFORE their own project-local @theme overrides. */
8
+
9
+ @theme {
10
+ /* Typography */
11
+ --font-sans: "Geist", "DM Sans", ui-sans-serif, system-ui, sans-serif;
12
+ --font-display: "Outfit", "Geist", sans-serif;
13
+ --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
14
+
15
+ /* Radii (dark theme default — light theme overrides in tokens.css) */
16
+ --radius-sm: 6px;
17
+ --radius-md: 8px;
18
+ --radius-lg: 12px;
19
+ --radius-xl: 16px;
20
+ --radius-full: 999px;
21
+
22
+ /* Core brand accent (indigo) — use as `bg-brand`, `text-brand`, `ring-brand` */
23
+ --color-brand: #6366F1;
24
+ --color-brand-dim: #4F46E5;
25
+ --color-brand-cool: #818CF8;
26
+ --color-brand-glow: #A5AAFC;
27
+ --color-brand-emerald: #10B981;
28
+
29
+ /* Depth stack — use as `bg-depth-1` ... `bg-depth-4` */
30
+ --color-depth-1: #0C0B1D;
31
+ --color-depth-2: #141328;
32
+ --color-depth-3: #1D1B38;
33
+ --color-depth-4: #262448;
34
+
35
+ /* Semantic text — use as `text-fg`, `text-fg-muted`, `text-fg-dim` */
36
+ --color-fg: #fdfdfd;
37
+ --color-fg-muted: #8688B0;
38
+ --color-fg-dim: #606294;
39
+
40
+ /* Status — use as `text-status-running`, `bg-status-stopped` */
41
+ --color-status-running: #10B981;
42
+ --color-status-creating: #9B93F0;
43
+ --color-status-stopped: #FFB800;
44
+ --color-status-error: #FF4D6D;
45
+
46
+ /* Shadows — use as `shadow-card`, `shadow-glow` */
47
+ --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
48
+ --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
49
+ --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.18);
50
+ }
@@ -0,0 +1,492 @@
1
+ /* Tangle Sandbox UI design tokens */
2
+ /* Brand: warm purple palette, #5B4ED4 primary */
3
+
4
+ /* MD3 surface hierarchy */
5
+ :root,
6
+ [data-sandbox-ui] {
7
+ --md3-surface: #0a0a14;
8
+ --md3-surface-dim: #07070d;
9
+ --md3-surface-bright: #1b1a2c;
10
+ --md3-surface-container-lowest: #000001;
11
+ --md3-surface-container-low: #0d0c18;
12
+ --md3-surface-container: #11101e;
13
+ --md3-surface-container-high: #171624;
14
+ --md3-surface-container-highest: #1f1e30;
15
+ --md3-surface-variant: #1f1e30;
16
+ --md3-on-surface: #fdfdfd;
17
+ --md3-on-surface-variant: #aaa8b8;
18
+
19
+ --md3-primary: #818CF8;
20
+ --md3-primary-dim: #6366F1;
21
+ --md3-primary-container: #4F46E5;
22
+ --md3-on-primary: #ffffff;
23
+ --md3-on-primary-container: #E0E7FF;
24
+ --md3-primary-fixed: #A5AAFC;
25
+ --md3-primary-fixed-dim: #818CF8;
26
+
27
+ --md3-secondary: #C7D2FE;
28
+ --md3-secondary-dim: #A5B4FC;
29
+ --md3-secondary-container: #312E81;
30
+ --md3-on-secondary: #E8E5FF;
31
+ --md3-on-secondary-container: #E8E5FF;
32
+
33
+ --md3-tertiary: #10B981;
34
+ --md3-outline: #434260;
35
+ --md3-outline-variant: #2A293D;
36
+
37
+ --md3-error: #ff5277;
38
+ --md3-error-dim: #eb2855;
39
+ --md3-error-container: #82042b;
40
+ --md3-on-error: #ffffff;
41
+ --md3-on-error-container: #ffbdf2;
42
+
43
+ --md3-inverse-surface: #fdfdfd;
44
+ --md3-inverse-primary: #4F46E5;
45
+ --md3-inverse-on-surface: #000000;
46
+ --md3-surface-tint: #818CF8;
47
+
48
+ /* Semantic HSL bridge */
49
+ --hsl-background: 244 28% 5%;
50
+ --hsl-foreground: 240 18% 94%;
51
+ --hsl-card: 246 30% 11%;
52
+ --hsl-card-foreground: 240 18% 94%;
53
+ --hsl-popover: 246 28% 14%;
54
+ --hsl-popover-foreground: 240 18% 94%;
55
+ --hsl-primary: 239 84% 67%;
56
+ --hsl-primary-foreground: 0 0% 100%;
57
+ --hsl-secondary: 248 24% 18%;
58
+ --hsl-secondary-foreground: 240 16% 90%;
59
+ --hsl-muted: 246 22% 15%;
60
+ --hsl-muted-foreground: 240 14% 58%;
61
+ --hsl-accent: 248 26% 20%;
62
+ --hsl-accent-foreground: 240 16% 92%;
63
+ --hsl-destructive: 348 90% 60%;
64
+ --hsl-destructive-foreground: 0 0% 100%;
65
+ --hsl-border: 244 14% 22%;
66
+ --hsl-input: 246 28% 14%;
67
+ --hsl-ring: 239 84% 67%;
68
+ --hsl-success: 160 84% 39%;
69
+ --hsl-warning: 40 94% 56%;
70
+ --hsl-info: 200 88% 56%;
71
+
72
+ /* Tailwind/shadcn aliases */
73
+ --background: var(--hsl-background);
74
+ --foreground: var(--hsl-foreground);
75
+ --card: var(--hsl-card);
76
+ --card-foreground: var(--hsl-card-foreground);
77
+ --popover: var(--hsl-popover);
78
+ --popover-foreground: var(--hsl-popover-foreground);
79
+ --primary: var(--hsl-primary);
80
+ --primary-foreground: var(--hsl-primary-foreground);
81
+ --secondary: var(--hsl-secondary);
82
+ --secondary-foreground: var(--hsl-secondary-foreground);
83
+ --muted: var(--hsl-muted);
84
+ --muted-foreground: var(--hsl-muted-foreground);
85
+ --accent: var(--hsl-accent);
86
+ --accent-foreground: var(--hsl-accent-foreground);
87
+ --destructive: var(--hsl-destructive);
88
+ --destructive-foreground: var(--hsl-destructive-foreground);
89
+ --border: var(--hsl-border);
90
+ --input: var(--hsl-input);
91
+ --ring: var(--hsl-ring);
92
+ --success: var(--hsl-success);
93
+ --warning: var(--hsl-warning);
94
+ --error: var(--hsl-destructive);
95
+ --info: var(--hsl-info);
96
+
97
+ /* Sidebar tokens */
98
+ --sidebar-background: 244 28% 5%;
99
+ --sidebar-foreground: 240 18% 94%;
100
+ --sidebar-primary: 239 84% 67%;
101
+ --sidebar-primary-foreground: 0 0% 100%;
102
+ --sidebar-accent: 248 26% 20%;
103
+ --sidebar-accent-foreground: 240 16% 92%;
104
+ --sidebar-border: 244 14% 17%;
105
+ --sidebar-ring: 239 84% 67%;
106
+
107
+ /* Depth scale — Tangle deep purple surfaces */
108
+ --depth-1: #0C0B1D;
109
+ --depth-2: #141328;
110
+ --depth-3: #1D1B38;
111
+ --depth-4: #262448;
112
+
113
+ /* Status colors */
114
+ --status-running: #10B981;
115
+ --status-creating: #9B93F0;
116
+ --status-stopped: #FFB800;
117
+ --status-warm: #FF8A4C;
118
+ --status-cold: #4AABFF;
119
+ --status-error: #FF4D6D;
120
+ --status-deleted: #6B7094;
121
+
122
+ /* Status surface tokens — bg / border / text for each semantic color */
123
+ --surface-success-bg: #022c22;
124
+ --surface-success-border: #14532d;
125
+ --surface-success-text: #34D399;
126
+ --surface-warning-bg: #451a03;
127
+ --surface-warning-border: #78350f;
128
+ --surface-warning-text: #fbbf24;
129
+ --surface-danger-bg: #450a0a;
130
+ --surface-danger-border: #7f1d1d;
131
+ --surface-danger-text: #f87171;
132
+ --surface-info-bg: #082f49;
133
+ --surface-info-border: #0c4a6e;
134
+ --surface-info-text: #38bdf8;
135
+ --surface-teal-bg: #042f2e;
136
+ --surface-teal-border: #134e4a;
137
+ --surface-teal-text: #2dd4bf;
138
+ --surface-violet-bg: #1e1b4b;
139
+ --surface-violet-border: #3730a3;
140
+ --surface-violet-text: #B8B2F5;
141
+ --surface-orange-bg: #431407;
142
+ --surface-orange-border: #7c2d12;
143
+ --surface-orange-text: #fb923c;
144
+ --surface-neutral-bg: var(--depth-3);
145
+ --surface-neutral-border: var(--border-subtle);
146
+ --surface-neutral-text: var(--text-muted);
147
+
148
+ /* Legacy glass aliases — mapped to solid depth tokens */
149
+ --glass-bg: var(--depth-2);
150
+ --glass-bg-strong: var(--depth-3);
151
+ --glass-border: var(--border-subtle);
152
+ --glass-border-hover: var(--border-default);
153
+ --glass-blur: 0px;
154
+
155
+ /* Mesh gradient — Tangle brand glows */
156
+ --mesh-teal: rgba(16, 185, 129, 0.05);
157
+ --mesh-violet: rgba(99, 102, 241, 0.07);
158
+ --mesh-blue: rgba(129, 140, 248, 0.04);
159
+
160
+ /* Brand gradients — Tangle */
161
+ --tangle-gradient: linear-gradient(135deg, #6366F1, #818CF8);
162
+ --tangle-gradient-text: linear-gradient(135deg, #A5AAFC, #818CF8);
163
+ --accent-gradient-strong: linear-gradient(135deg, #6366F1, #818CF8);
164
+ --accent-surface-soft: rgba(99, 102, 241, 0.12);
165
+ --accent-surface-strong: rgba(99, 102, 241, 0.20);
166
+ --accent-text: #A5AAFC;
167
+
168
+ /* Surfaces */
169
+ --bg-root: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(99, 102, 241, 0.08), transparent),
170
+ radial-gradient(ellipse 50% 40% at 80% 10%, rgba(129, 140, 248, 0.06), transparent),
171
+ linear-gradient(180deg, var(--depth-1), #0D0C1E 100%);
172
+ --bg-dark: var(--depth-1);
173
+ --bg-card: hsl(var(--hsl-card));
174
+ --bg-elevated: hsl(246 28% 17%);
175
+ --bg-section: hsl(246 28% 9%);
176
+ --bg-input: hsl(var(--hsl-input));
177
+ --bg-hover: rgba(99, 102, 241, 0.08);
178
+ --bg-selection: rgba(99, 102, 241, 0.18);
179
+
180
+ /* Text */
181
+ --text-primary: hsl(var(--hsl-foreground));
182
+ --text-secondary: hsl(240 16% 85%);
183
+ --text-muted: #8688B0;
184
+ --text-dim: #606294;
185
+
186
+ /* Brand accents — Tangle */
187
+ --brand-primary: #6366F1;
188
+ --brand-strong: #2E2A5E;
189
+ --brand-strong-text: #ffffff;
190
+ --brand-strong-text-muted: rgba(255, 255, 255, 0.7);
191
+ --brand-strong-text-dim: rgba(255, 255, 255, 0.5);
192
+ --brand-cool: #818CF8;
193
+ --brand-glow: #A5AAFC;
194
+ --brand-purple: #C7D2FE;
195
+ --brand-vibrant: #6366F1;
196
+ --brand-emerald: #10B981;
197
+
198
+ /* Borders */
199
+ --border-subtle: rgba(100, 100, 148, 0.10);
200
+ --border-default: rgba(100, 100, 148, 0.18);
201
+ --border-hover: rgba(100, 100, 148, 0.28);
202
+ --border-accent: rgba(99, 102, 241, 0.18);
203
+ --border-accent-hover: rgba(99, 102, 241, 0.35);
204
+
205
+ /* Buttons */
206
+ --btn-primary-bg: #6366F1;
207
+ --btn-primary-hover: #818CF8;
208
+ --btn-primary-text: #ffffff;
209
+ --btn-cta-bg: #818CF8;
210
+ --btn-cta-text: #FFFFFF;
211
+
212
+ /* Code / runtime syntax */
213
+ --code-keyword: #A5AAFC;
214
+ --code-string: #34D399;
215
+ --code-function: #6D9FFF;
216
+ --code-number: #FFB347;
217
+ --code-success: #10B981;
218
+ --code-comment: #606294;
219
+ --code-error: #FF4D6D;
220
+
221
+ /* Shadows */
222
+ --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
223
+ --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
224
+ --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.18);
225
+ --shadow-accent: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
226
+ --shadow-status-running: 0 0 6px rgba(16, 185, 129, 0.5);
227
+ --shadow-status-creating: 0 0 6px rgba(99, 102, 241, 0.5);
228
+ --shadow-status-error: 0 0 6px rgba(255, 77, 109, 0.5);
229
+
230
+ /* Radii */
231
+ --radius-sm: 6px;
232
+ --radius-md: 8px;
233
+ --radius-lg: 12px;
234
+ --radius-xl: 16px;
235
+ --radius-pill: 999px;
236
+ --radius-full: 999px;
237
+ --radius: 0.625rem;
238
+
239
+ /* Density */
240
+ --control-height: 2.25rem;
241
+ --panel-padding: 1rem;
242
+ --content-max-width: 80rem;
243
+
244
+ /* Typography scale — override per-app for custom type hierarchy.
245
+ Components reference these instead of hardcoded pixel values. */
246
+ --font-size-xs: 0.6875rem; /* 11px — labels, timestamps */
247
+ --font-size-sm: 0.75rem; /* 12px — captions, meta */
248
+ --font-size-base: 0.9375rem; /* 15px — message body */
249
+ --font-size-lg: 1rem; /* 16px — emphasized text */
250
+ --font-size-xl: 1.25rem; /* 20px — section headers */
251
+ --line-height-tight: 1.3;
252
+ --line-height-base: 1.75; /* matches leading-7 */
253
+ --line-height-relaxed: 1.8;
254
+
255
+ /* Component spacing — override per-app for tighter/looser layouts */
256
+ --avatar-size: 2rem; /* 32px — chat avatars */
257
+ --timeline-dot-size: 0.625rem; /* 10px — timeline connector dots */
258
+ --indicator-dot-size: 0.25rem; /* 4px — thinking indicator dots */
259
+ --code-padding-x: 0.75rem;
260
+ --code-padding-y: 0.625rem;
261
+ --code-font-size: 0.8125rem;
262
+ --code-line-height: 1.5;
263
+ --chat-message-px: 0.875rem;
264
+ --chat-message-py: 0.5rem;
265
+ --chat-input-py: 0.625rem;
266
+ --card-padding: 1.25rem;
267
+ --tool-card-px: 0.75rem;
268
+ --tool-card-py: 0.5rem;
269
+ --tool-icon-size: 1.75rem;
270
+
271
+ /* Syntax highlighting — override per-theme in vault section */
272
+ --syntax-comment: #6B7094;
273
+ --syntax-keyword: #A78FFF;
274
+ --syntax-string: #10b981;
275
+ --syntax-function: #6D9FFF;
276
+ --syntax-number: #FFB347;
277
+ --syntax-meta: #8263FF;
278
+ --syntax-error: #FF4D6D;
279
+ --syntax-variable: #C4C0D8;
280
+ --syntax-foreground: #E8E6F6;
281
+
282
+ /* Transitions */
283
+ --transition-fast: 0.1s ease;
284
+ --transition-default: 0.16s ease;
285
+ --transition-medium: 0.24s ease;
286
+
287
+ /* Fonts */
288
+ --font-sans: "Geist", "DM Sans", ui-sans-serif, system-ui, sans-serif;
289
+ --font-display: "Outfit", "Geist", sans-serif;
290
+ --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
291
+ }
292
+
293
+ [data-sandbox-theme="vault"] {
294
+ /* Light theme — clean professional, warm purple accents */
295
+
296
+ /* MD3 surface hierarchy */
297
+ --md3-surface: #f8f9fb;
298
+ --md3-surface-dim: #d9dae0;
299
+ --md3-surface-bright: #f8f9fb;
300
+ --md3-surface-container-lowest: #ffffff;
301
+ --md3-surface-container-low: #f3f4f7;
302
+ --md3-surface-container: #edeef2;
303
+ --md3-surface-container-high: #e7e8ed;
304
+ --md3-surface-container-highest: #e1e2e8;
305
+ --md3-surface-variant: #e1e2e8;
306
+ --md3-on-surface: #191c24;
307
+ --md3-on-surface-variant: #464858;
308
+
309
+ --md3-primary: #3E349E;
310
+ --md3-primary-dim: #352B88;
311
+ --md3-primary-container: #352B88;
312
+ --md3-on-primary: #ffffff;
313
+ --md3-on-primary-container: #9B93F0;
314
+ --md3-primary-fixed: #E8E5FF;
315
+ --md3-primary-fixed-dim: #C5C0F0;
316
+
317
+ --md3-secondary: #524A78;
318
+ --md3-secondary-dim: #3E3660;
319
+ --md3-secondary-container: #E8E5FF;
320
+ --md3-on-secondary: #ffffff;
321
+ --md3-on-secondary-container: #524A78;
322
+
323
+ --md3-tertiary: #065F46;
324
+ --md3-tertiary-container: #D1FAE5;
325
+ --md3-outline: #6B6E8A;
326
+ --md3-outline-variant: #C7C6D6;
327
+
328
+ --md3-error: #ba1a1a;
329
+ --md3-error-dim: #93000a;
330
+ --md3-error-container: #ffdad6;
331
+ --md3-on-error: #ffffff;
332
+ --md3-on-error-container: #93000a;
333
+
334
+ --md3-inverse-surface: #2e2e3e;
335
+ --md3-inverse-primary: #A5AAFC;
336
+ --md3-inverse-on-surface: #f0f1f4;
337
+ --md3-surface-tint: #6366F1;
338
+
339
+ /* Semantic HSL bridge */
340
+ --hsl-background: 225 20% 97%;
341
+ --hsl-foreground: 228 20% 12%;
342
+ --hsl-card: 0 0% 100%;
343
+ --hsl-card-foreground: 228 20% 12%;
344
+ --hsl-popover: 0 0% 100%;
345
+ --hsl-popover-foreground: 228 20% 12%;
346
+ --hsl-primary: 239 84% 67%;
347
+ --hsl-primary-foreground: 0 0% 100%;
348
+ --hsl-secondary: 242 22% 42%;
349
+ --hsl-secondary-foreground: 0 0% 100%;
350
+ --hsl-muted: 240 14% 89%;
351
+ --hsl-muted-foreground: 240 10% 36%;
352
+ --hsl-accent: 248 22% 86%;
353
+ --hsl-accent-foreground: 248 38% 30%;
354
+ --hsl-destructive: 0 72% 41%;
355
+ --hsl-destructive-foreground: 0 0% 100%;
356
+ --hsl-border: 244 14% 78%;
357
+ --hsl-input: 244 12% 80%;
358
+ --hsl-ring: 239 84% 67%;
359
+ --hsl-success: 160 84% 30%;
360
+ --hsl-warning: 41 96% 50%;
361
+ --hsl-info: 212 80% 50%;
362
+
363
+ --depth-1: #f4f4f9;
364
+ --depth-2: #edecf4;
365
+ --depth-3: #e5e4ee;
366
+ --depth-4: #dcdbe8;
367
+
368
+ --status-running: #059669;
369
+ --status-creating: #3E349E;
370
+ --status-stopped: #B45309;
371
+ --status-warm: #C05621;
372
+ --status-cold: #1D6FA4;
373
+ --status-error: #ba1a1a;
374
+ --status-deleted: #6B6B82;
375
+
376
+ --glass-bg: var(--depth-2);
377
+ --glass-bg-strong: var(--depth-1);
378
+ --glass-border: var(--border-subtle);
379
+ --glass-border-hover: var(--border-default);
380
+
381
+ /* Status surface overrides — light values */
382
+ --surface-success-bg: #ecfdf5;
383
+ --surface-success-border: #a7f3d0;
384
+ --surface-success-text: #047857;
385
+ --surface-warning-bg: #fffbeb;
386
+ --surface-warning-border: #fde68a;
387
+ --surface-warning-text: #b45309;
388
+ --surface-danger-bg: #fff1f2;
389
+ --surface-danger-border: #fecdd3;
390
+ --surface-danger-text: #b91c1c;
391
+ --surface-info-bg: #f0f9ff;
392
+ --surface-info-border: #bae6fd;
393
+ --surface-info-text: #0369a1;
394
+ --surface-teal-bg: #f0fdfa;
395
+ --surface-teal-border: #99f6e4;
396
+ --surface-teal-text: #0f766e;
397
+ --surface-violet-bg: #F0EEFF;
398
+ --surface-violet-border: #C5C0F0;
399
+ --surface-violet-text: #3E349E;
400
+ --surface-orange-bg: #fff7ed;
401
+ --surface-orange-border: #fed7aa;
402
+ --surface-orange-text: #c2410c;
403
+ --surface-neutral-bg: var(--depth-3);
404
+ --surface-neutral-border: var(--border-subtle);
405
+ --surface-neutral-text: var(--text-muted);
406
+
407
+ /* Sidebar — light */
408
+ --sidebar-background: 232 18% 96%;
409
+ --sidebar-foreground: 228 20% 12%;
410
+ --sidebar-primary: 239 84% 67%;
411
+ --sidebar-primary-foreground: 0 0% 100%;
412
+ --sidebar-accent: 240 18% 90%;
413
+ --sidebar-accent-foreground: 240 38% 30%;
414
+ --sidebar-border: 244 14% 78%;
415
+ --sidebar-ring: 239 84% 67%;
416
+
417
+ --mesh-teal: rgba(5, 150, 105, 0.04);
418
+ --mesh-violet: rgba(99, 102, 241, 0.03);
419
+ --mesh-blue: rgba(129, 140, 248, 0.03);
420
+
421
+ --bg-root: #f4f4f9;
422
+ --bg-dark: #edecf4;
423
+ --bg-card: #ffffff;
424
+ --bg-elevated: #e5e4ee;
425
+ --bg-section: #edecf4;
426
+ --bg-input: #edecf4;
427
+ --bg-hover: rgba(99, 102, 241, 0.05);
428
+ --bg-selection: rgba(99, 102, 241, 0.10);
429
+
430
+ --text-primary: #191c24;
431
+ --text-secondary: #3a3a50;
432
+ --text-muted: #5E5E7A;
433
+ --text-dim: #A0A0B8;
434
+
435
+ --brand-primary: #6366F1;
436
+ --brand-strong: #2E2A5E;
437
+ --brand-strong-text: #ffffff;
438
+ --brand-strong-text-muted: rgba(255, 255, 255, 0.7);
439
+ --brand-strong-text-dim: rgba(255, 255, 255, 0.5);
440
+ --brand-cool: #818CF8;
441
+ --brand-glow: #A5AAFC;
442
+ --brand-purple: #6366F1;
443
+ --brand-vibrant: #6366F1;
444
+ --brand-emerald: #059669;
445
+
446
+ --border-subtle: rgba(110, 108, 148, 0.20);
447
+ --border-default: rgba(110, 108, 148, 0.35);
448
+ --border-hover: rgba(110, 108, 148, 0.50);
449
+ --border-accent: rgba(99, 102, 241, 0.15);
450
+ --border-accent-hover: rgba(99, 102, 241, 0.30);
451
+
452
+ --btn-primary-bg: #6366F1;
453
+ --btn-primary-hover: #4F46E5;
454
+ --btn-primary-text: #ffffff;
455
+ --btn-cta-bg: #6366F1;
456
+ --btn-cta-text: #ffffff;
457
+
458
+ --code-keyword: #3E349E;
459
+ --code-string: #059669;
460
+ --code-function: #352B88;
461
+ --code-number: #B45309;
462
+ --code-success: #059669;
463
+ --code-comment: #6B6E8A;
464
+ --code-error: #ba1a1a;
465
+
466
+ --shadow-card: 0 1px 3px rgba(25, 28, 36, 0.05), 0 0 0 1px rgba(200, 198, 218, 0.22);
467
+ --shadow-dropdown: 0 8px 32px rgba(25, 28, 36, 0.10), 0 0 0 1px rgba(200, 198, 218, 0.28);
468
+ --shadow-glow: none;
469
+ --shadow-accent: 0 1px 3px rgba(25, 28, 36, 0.05), 0 0 0 1px rgba(99, 102, 241, 0.15);
470
+
471
+ --tangle-gradient: linear-gradient(135deg, #6366F1, #818CF8);
472
+ --tangle-gradient-text: linear-gradient(135deg, #4F46E5, #6366F1);
473
+ --accent-gradient-strong: linear-gradient(135deg, #6366F1, #818CF8);
474
+ --accent-surface-soft: rgba(99, 102, 241, 0.06);
475
+ --accent-surface-strong: rgba(99, 102, 241, 0.12);
476
+ --accent-text: #4F46E5;
477
+
478
+ /* Typography — Manrope (headlines) + Inter (body/labels) */
479
+ --font-sans: "Inter", "Geist", ui-sans-serif, system-ui, sans-serif;
480
+ --font-display: "Manrope", "Inter", sans-serif;
481
+ --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
482
+
483
+ /* Tighter border radius for enterprise precision */
484
+ --radius: 0.375rem;
485
+ --radius-sm: 2px;
486
+ --radius-md: 4px;
487
+ --radius-lg: 6px;
488
+ --radius-xl: 8px;
489
+ --radius-pill: 999px;
490
+ --radius-full: 999px;
491
+ }
492
+