@import "tailwindcss" source(none); @source "./"; /* Two looks of Deck's own. "Apple", the default (docs/design-apple.md), is a native Mac window: the system font, the system blue, hairline separators and a translucent sidebar. Tabletop (docs/plan.md, section 2) is warm ink, paper text and one amber lamp. The layout follows T3 Code (github.com/pingdotgg/t3code, MIT), and "T3" stays in the theme catalog. data-mode on picks light or dark: Deck's server theme (data-scheme), the system or the person's choice in Settings (appearance.ts). data-palette names the theme. Deck's theme still tints each agent kind (--kind-*); Apple and Tabletop give the kinds they know their own hues. */ @custom-variant light (&:is([data-mode="light"], [data-mode="light"] *)); /* Geist Sans and Geist Mono (SIL OFL 1.1), copied into fonts/. Vite bundles them into the build, so they load under font-src 'self'. */ @font-face { font-family: "Geist"; src: url("./fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; } @font-face { font-family: "Geist Mono"; src: url("./fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; } @theme { --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; --font-mono: "Geist Mono", ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; /* No weight above 500. */ --font-weight-semibold: 500; --font-weight-bold: 500; /* UI 13px, meta 11px and 10px, code 12.5px, prose 15px. */ --text-sm: 0.8125rem; --text-sm--line-height: calc(1.25 / 0.8125); --text-code: 0.78125rem; --text-code--line-height: 1.6; --text-prose: 0.9375rem; --text-prose--line-height: 1.6; --default-transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1); --default-transition-duration: 160ms; --animate-enter: deck-enter 180ms cubic-bezier(0.32, 0.72, 0, 1) both; } @theme inline { --text-2xs: 0.6875rem; --text-2xs--line-height: calc(1 / 0.6875); --text-3xs: 0.625rem; --text-3xs--line-height: calc(0.875 / 0.625); --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); --color-popover: var(--popover); --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground); --color-secondary-label: var(--secondary-label); --color-message-foreground: var(--foreground); --color-info-foreground: var(--info-foreground); --color-sidebar-foreground: var(--foreground); --color-sidebar-muted-foreground: var(--muted-foreground); --color-diff-addition-foreground: var(--diff-add-fg); --color-diff-deletion-foreground: var(--diff-del-fg); --color-accent: var(--accent); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); --color-message: var(--message); --color-sidebar: var(--sidebar); --color-sidebar-row-hover: var(--sidebar-row-hover); --color-sidebar-row-active: var(--sidebar-row-active); --color-destructive: var(--destructive); --color-destructive-foreground: var(--destructive-foreground); --color-success: var(--success); --color-success-foreground: var(--success-foreground); --color-warning: var(--warning); --color-warning-foreground: var(--warning-foreground); --color-info: var(--info); --color-code: var(--code); --color-diff-add: var(--diff-add); --color-diff-add-fg: var(--diff-add-fg); --color-diff-del: var(--diff-del); --color-diff-del-fg: var(--diff-del-fg); /* Tabletop's own names. */ --color-canvas: var(--canvas); --color-surface-1: var(--surface-1); --color-surface-2: var(--surface-2); --color-hairline: var(--hairline); --color-hairline-strong: var(--hairline-strong); --color-hover: var(--hover); --color-selected: var(--selected); --color-faint: var(--text-faint); --color-signal: var(--signal); --color-signal-foreground: var(--signal-foreground); --color-action: var(--action); --color-action-foreground: var(--action-foreground); --color-segment: var(--segment); --color-grouped: var(--grouped); --color-bubble: var(--bubble); /* The radius family: 6, 8, 12 and 16px (md, lg, xl, 2xl). */ --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); --radius-2xl: calc(var(--radius) + 8px); --radius-3xl: calc(var(--radius) + 12px); /* Raised controls get a 1px top highlight; only popovers cast a shadow. */ --inset-shadow-hl: inset 0 1px 0 0 var(--highlight); --shadow-popover: var(--elevation-popover); /* A raised card or the composer: Apple gives it a soft shadow, Tabletop none. */ --shadow-card: var(--elevation-card); } /* Tabletop, dark: the default. Neutrals sit on hue 70 with a little chroma. */ :root { color-scheme: dark; --radius: 8px; --control-radius: 6px; --chat-max: 48rem; --ease: cubic-bezier(0.32, 0.72, 0, 1); --elevation-popover: 0 16px 40px -16px rgb(0 0 0 / 0.55), 0 2px 6px -2px rgb(0 0 0 / 0.25); --elevation-card: 0 0 #0000; /* The chosen segment of a segmented control, and the person's bubble. */ --segment: var(--selected); --bubble: var(--surface-1); /* Behind grouped rows (Settings), as System Settings draws them. */ --grouped: var(--canvas); --canvas: oklch(0.145 0.005 70); --sidebar: oklch(0.12 0.005 70); --surface-1: oklch(0.175 0.006 70); --surface-2: oklch(0.215 0.007 70); --hairline: oklch(1 0 0 / 0.07); --hairline-strong: oklch(1 0 0 / 0.12); --hover: oklch(1 0 0 / 0.04); --selected: oklch(1 0 0 / 0.08); --highlight: oklch(1 0 0 / 0.05); --text: oklch(0.93 0.008 80); --text-muted: oklch(0.68 0.012 75); --text-faint: oklch(0.5 0.01 75); --signal: oklch(0.8 0.14 75); --signal-foreground: oklch(0.2 0.03 70); --agent-claude: oklch(0.7 0.13 40); --agent-codex: oklch(0.8 0.03 90); --agent-opencode: oklch(0.74 0.09 235); --agent-antigravity: oklch(0.72 0.1 300); --agent-pi: oklch(0.78 0.12 150); /* Solid buttons are paper; amber is spent on the send button and state. */ --action: var(--text); --action-foreground: var(--canvas); /* The names every component reads, mapped onto Tabletop's. */ --background: var(--canvas); --foreground: var(--text); --card: var(--surface-1); --popover: var(--surface-2); --primary: var(--signal); --primary-foreground: var(--signal-foreground); --secondary: oklch(1 0 0 / 0.05); --muted: var(--hover); --muted-foreground: var(--text-muted); --secondary-label: var(--text-muted); --info-foreground: var(--signal); --accent: var(--hover); --border: var(--hairline); --input: var(--hairline-strong); --ring: color-mix(in oklab, var(--primary) 40%, transparent); --link: var(--text); --message: var(--surface-1); --sidebar-row-hover: var(--hover); --sidebar-row-active: var(--surface-1); --destructive: oklch(0.64 0.19 27); --destructive-foreground: oklch(0.74 0.15 27); --success: oklch(0.7 0.13 150); --success-foreground: oklch(0.78 0.12 150); --warning: oklch(0.76 0.15 60); --warning-foreground: oklch(0.8 0.13 65); --info: var(--signal); --code: var(--sidebar); --diff-add: oklch(0.7 0.13 150 / 0.12); --diff-add-fg: oklch(0.83 0.1 150); --diff-del: oklch(0.64 0.19 27 / 0.13); --diff-del-fg: oklch(0.8 0.1 27); /* What kindColour() falls back to before a theme arrives. */ --p-fg-base: var(--foreground); --kind-claude: var(--agent-claude); --kind-codex: var(--agent-codex); --kind-opencode: var(--agent-opencode); --kind-antigravity: var(--agent-antigravity); --kind-pi: var(--agent-pi); --scrollbar: oklch(1 0 0 / 0.08); --scrollbar-hover: oklch(1 0 0 / 0.14); } /* Tabletop, light: the same hue and the same steps on warm paper. */ :root[data-mode="light"] { color-scheme: light; --canvas: oklch(0.975 0.006 80); --sidebar: oklch(0.95 0.006 80); --surface-1: oklch(0.99 0.004 80); --surface-2: oklch(0.998 0.002 80); --hairline: oklch(0.2 0.02 70 / 0.09); --hairline-strong: oklch(0.2 0.02 70 / 0.15); --hover: oklch(0.2 0.02 70 / 0.04); --selected: oklch(0.2 0.02 70 / 0.07); --highlight: oklch(1 0 0 / 0.7); --text: oklch(0.22 0.01 70); --text-muted: oklch(0.47 0.012 75); --text-faint: oklch(0.62 0.01 75); --signal: oklch(0.76 0.15 70); --signal-foreground: oklch(0.2 0.03 70); --agent-claude: oklch(0.58 0.14 40); --agent-codex: oklch(0.5 0.03 90); --agent-opencode: oklch(0.55 0.1 235); --agent-antigravity: oklch(0.55 0.12 300); --agent-pi: oklch(0.52 0.12 150); --secondary: oklch(0.2 0.02 70 / 0.05); --info-foreground: oklch(0.58 0.14 65); --destructive: oklch(0.6 0.2 27); --destructive-foreground: oklch(0.52 0.19 27); --success-foreground: oklch(0.5 0.12 150); --warning-foreground: oklch(0.55 0.14 60); --diff-add: oklch(0.7 0.13 150 / 0.14); --diff-add-fg: oklch(0.45 0.11 150); --diff-del: oklch(0.64 0.19 27 / 0.12); --diff-del-fg: oklch(0.5 0.17 27); --scrollbar: oklch(0.2 0.02 70 / 0.12); --scrollbar-hover: oklch(0.2 0.02 70 / 0.2); } /* The engine's theme sets --kind-* on itself. Tabletop keeps the hues it names, so the agents never compete with the amber. */ :root:not([data-palette]), :root[data-palette="tabletop"] { --kind-claude: var(--agent-claude) !important; --kind-codex: var(--agent-codex) !important; --kind-opencode: var(--agent-opencode) !important; --kind-antigravity: var(--agent-antigravity) !important; --kind-pi: var(--agent-pi) !important; } /* Apple, the default (docs/design-apple.md): the colours of a Mac window. The values follow the system's dynamic colours (labelColor, separatorColor, controlAccentColor and the system greens, oranges and reds); the agents take system hues too. It sets Tabletop's names, so every component reads it without a map. */ :root:is([data-palette="apple"], [data-palette="glass"])[data-mode] { --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", "Geist Mono", Menlo, Consolas, monospace; /* SF has a real semibold; headings and the selected row use it. */ --font-weight-semibold: 600; --font-weight-bold: 700; /* Messages read at 14px, a little above the 13px of the controls. */ --text-prose: 0.875rem; --text-prose--line-height: 1.55; /* Rounded rectangles: 6px controls, 10px cards and menus, 14px sheets. */ --radius: 10px; --control-radius: 6px; --ease: cubic-bezier(0.25, 0.1, 0.25, 1); --canvas: #1e1e1e; --sidebar: #29292b; --surface-1: #262628; --surface-2: #2c2c2e; --bubble: #2f2f31; --segment: rgb(255 255 255 / 0.17); --hairline: rgb(255 255 255 / 0.1); --hairline-strong: rgb(255 255 255 / 0.16); --hover: rgb(255 255 255 / 0.06); --selected: rgb(255 255 255 / 0.1); --highlight: rgb(255 255 255 / 0.06); --text: #e3e3e5; --text-muted: #a1a1a6; --text-faint: #8e8e93; --signal: #0a84ff; --signal-foreground: #fff; --agent-claude: #ff9f5a; --agent-codex: #a1a1a6; --agent-opencode: #64d2ff; --agent-antigravity: #bf5af2; --agent-pi: #30d158; --action: var(--primary); --action-foreground: var(--primary-foreground); --link: #409cff; --secondary: rgb(255 255 255 / 0.07); --info-foreground: #409cff; --ring: color-mix(in srgb, var(--primary) 55%, transparent); --sidebar-row-active: var(--selected); --destructive: #ff453a; --destructive-foreground: #ff6961; --success: #30d158; --success-foreground: #30d158; --warning: #ff9f0a; --warning-foreground: #ffb340; --code: #232325; --diff-add: rgb(48 209 88 / 0.14); --diff-add-fg: #5fe07f; --diff-del: rgb(255 69 58 / 0.14); --diff-del-fg: #ff7b72; --scrollbar: rgb(255 255 255 / 0.24); --scrollbar-hover: rgb(255 255 255 / 0.36); --elevation-popover: 0 0 0 0.5px rgb(0 0 0 / 0.6), 0 12px 32px -6px rgb(0 0 0 / 0.55), 0 2px 8px rgb(0 0 0 / 0.3); --elevation-card: 0 0 0 0.5px rgb(0 0 0 / 0.4), 0 1px 3px rgb(0 0 0 / 0.25); --kind-claude: var(--agent-claude) !important; --kind-codex: var(--agent-codex) !important; --kind-opencode: var(--agent-opencode) !important; --kind-antigravity: var(--agent-antigravity) !important; --kind-pi: var(--agent-pi) !important; } :root:is([data-palette="apple"], [data-palette="glass"])[data-mode="light"] { --canvas: #ffffff; --sidebar: #efeff1; --surface-1: #ffffff; --surface-2: #ffffff; --bubble: #ededf0; --segment: #ffffff; --grouped: #f5f5f7; --hairline: rgb(0 0 0 / 0.1); --hairline-strong: rgb(0 0 0 / 0.16); --hover: rgb(0 0 0 / 0.045); --selected: rgb(0 0 0 / 0.08); --highlight: transparent; --text: #1d1d1f; --text-muted: #636366; --text-faint: #78787d; --signal: #007aff; --signal-foreground: #fff; --agent-claude: #c4581b; --agent-codex: #6e6e73; --agent-opencode: #0077a8; --agent-antigravity: #8944ab; --agent-pi: #248a3d; --link: #0066cc; --secondary: rgb(0 0 0 / 0.05); --info-foreground: #0066cc; --destructive: #ff3b30; --destructive-foreground: #d70015; --success: #28cd41; --success-foreground: #248a3d; --warning: #ff9500; --warning-foreground: #c93400; --code: #f5f5f7; --diff-add: rgb(40 205 65 / 0.13); --diff-add-fg: #1a7f37; --diff-del: rgb(255 59 48 / 0.11); --diff-del-fg: #c4161c; --scrollbar: rgb(0 0 0 / 0.26); --scrollbar-hover: rgb(0 0 0 / 0.42); --elevation-popover: 0 0 0 0.5px rgb(0 0 0 / 0.12), 0 12px 32px -6px rgb(0 0 0 / 0.2), 0 2px 8px rgb(0 0 0 / 0.08); --elevation-card: 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.08); } /* ───────────────────────────── Liquid Glass ───────────────────────────── Deck's material, in every theme (docs/design-glass.md). A theme gives colours; the glass, the layout and the motion are the same for all. Three layers, back to front: 1. The backdrop: the window behind everything. A quiet field of the accent and the agents' hues over a deep tone of the theme's canvas, so the glass has light to bend. On a Mac with vibrancy the desktop's own material shows through it. 2. Sheets (`sheet`): opaque, rounded planes where text is read: the room, the side panel, pages. Text never sits on glass it has to fight. 3. Glass (`liquid`, `liquid-thick`, `liquid-clear`, `liquid-tint`): the sidebar, toolbar capsules, the composer, menus, sheets over the window, toasts. A tint, a blur that lifts saturation, a bright rim that catches light on the top edge, a sheen over the upper half and a shadow that floats it off what is behind. The glass tokens derive from each theme's own surfaces, so Tokyo Night's glass is Tokyo Night's colour. A theme can set any of them itself; the Liquid Glass theme does. A material is more than glass. Paper, felt and plain (data-material, the end of this file) turn the blur off and print their own surfaces, so a material also carries an edge (--material-edge, an outline drawn inside the panel by --material-edge-offset, such as a stitched seam) and its shadow, which may be a hard offset (--glass-shadow, --sheet-shadow). A texture (--material-texture, a background layer) is an aspect of its own (data-texture). The default of each is the plain glass below. */ @theme { /* The display face: hero headings and .headline. Each art direction sets its own (design-glass.md, "Art directions"). */ --font-display: "Inter Tight Variable", "Inter Tight", var(--font-sans); } /* A .look (the editor's swatch of a material) goes back to glass here. */ :root, .look[data-material="glass"] { --display-weight: 600; --display-tracking: -0.03em; --material-texture: none; --material-edge: none; --material-edge-offset: 0px; --sheet-edge: none; --tint-sheen: linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0) 55%); --panel-radius: 18px; --sheet-radius: 14px; --backdrop: color-mix(in oklab, var(--canvas) 62%, #000); --glass-fill: color-mix(in srgb, var(--surface-2) 56%, transparent); --glass-fill-thick: color-mix(in srgb, var(--surface-2) 80%, transparent); --glass-fill-clear: color-mix(in srgb, var(--text) 6%, transparent); --glass-blur: 26px; --glass-saturate: 1.8; --glass-rim: color-mix(in srgb, var(--text) 11%, transparent); --glass-spec: color-mix(in srgb, #fff 16%, transparent); --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0) 45%); --glass-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 14px 36px -14px rgb(0 0 0 / 0.7); --sheet-rim: color-mix(in srgb, var(--text) 7%, transparent); --sheet-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 24px 48px -24px rgb(0 0 0 / 0.6); --bubble: color-mix(in srgb, var(--primary) 20%, var(--surface-1)); /* The ambient light: the accent, then two agents' hues. Felt more than seen; it is there so the glass has something to bend. */ --ambient-1: color-mix(in srgb, var(--primary) 9%, transparent); --ambient-2: color-mix(in srgb, var(--kind-claude, var(--agent-claude)) 6%, transparent); --ambient-3: color-mix(in srgb, var(--kind-antigravity, var(--agent-antigravity)) 5%, transparent); } :root[data-mode="light"], .look[data-material="glass"][data-mode="light"] { --backdrop: color-mix(in oklab, var(--canvas) 84%, #8a90a0); --glass-fill: color-mix(in srgb, var(--surface-2) 52%, transparent); --glass-fill-thick: color-mix(in srgb, var(--surface-2) 78%, transparent); --glass-fill-clear: color-mix(in srgb, #fff 52%, transparent); --glass-rim: rgb(255 255 255 / 0.7); --glass-spec: rgb(255 255 255 / 0.95); --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 0.32), rgb(255 255 255 / 0) 50%); --glass-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.08), 0 1px 1px rgb(0 0 0 / 0.04), 0 14px 32px -14px rgb(0 0 0 / 0.22); --sheet-rim: rgb(0 0 0 / 0.07); --sheet-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 24px 48px -28px rgb(0 0 0 / 0.25); --bubble: color-mix(in srgb, var(--primary) 12%, var(--surface-1)); --ambient-1: color-mix(in srgb, var(--primary) 8%, transparent); --ambient-2: color-mix(in srgb, var(--kind-claude, var(--agent-claude)) 6%, transparent); --ambient-3: color-mix(in srgb, var(--kind-antigravity, var(--agent-antigravity)) 5%, transparent); } /* Liquid Glass, the default theme: Apple's colours (the blocks above name both) with glass tuned by hand. */ :root[data-palette="glass"][data-mode] { --radius: 12px; --control-radius: 8px; --chat-max: 46rem; --backdrop: #0c0c0f; --canvas: #19191b; --surface-1: #222225; --surface-2: #2a2a2d; --bubble: color-mix(in srgb, var(--primary) 22%, #232326); --code: #141416; --hover: rgb(255 255 255 / 0.065); --selected: rgb(255 255 255 / 0.11); --segment: rgb(255 255 255 / 0.16); --highlight: rgb(255 255 255 / 0.1); --glass-fill: rgb(38 38 42 / 0.5); --glass-fill-thick: rgb(40 40 44 / 0.74); --glass-fill-clear: rgb(255 255 255 / 0.055); --glass-saturate: 1.9; --glass-rim: rgb(255 255 255 / 0.11); --glass-spec: rgb(255 255 255 / 0.17); --elevation-popover: 0 1px 1px rgb(0 0 0 / 0.3), 0 22px 50px -12px rgb(0 0 0 / 0.7); } :root[data-palette="glass"][data-mode="light"] { --backdrop: #dcdee5; --canvas: #fbfbfd; --surface-1: #ffffff; --surface-2: #ffffff; --bubble: color-mix(in srgb, var(--primary) 13%, #f1f1f4); --code: #f3f3f6; --hover: rgb(0 0 0 / 0.045); --selected: rgb(0 0 0 / 0.075); --segment: #ffffff; --highlight: transparent; --glass-fill: rgb(255 255 255 / 0.5); --glass-fill-thick: rgb(252 252 254 / 0.76); --glass-fill-clear: rgb(255 255 255 / 0.55); --elevation-popover: 0 0 0 0.5px rgb(0 0 0 / 0.1), 0 22px 50px -14px rgb(0 0 0 / 0.28); } /* The materials, as utilities. They write Tailwind's shadow variables, so a focus ring or a shadow-* utility on the same element still adds up. */ @utility liquid { background-color: var(--glass-fill); background-image: var(--glass-sheen), var(--material-texture); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); border-color: transparent; outline: var(--material-edge); outline-offset: var(--material-edge-offset); --tw-inset-shadow: inset 0 1px 0 0 var(--glass-spec); --tw-inset-ring-shadow: inset 0 0 0 1px var(--glass-rim); --tw-shadow: var(--glass-shadow); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } /* Menus, the palette, sheets: more tint, so text on them reads as on paper. */ @utility liquid-thick { @apply liquid; background-color: var(--glass-fill-thick); --tw-shadow: var(--elevation-popover); } /* Controls that float over a sheet (toolbar capsules, chips): barely tinted, no lift of their own. */ @utility liquid-clear { @apply liquid; background-color: var(--glass-fill-clear); background-image: var(--glass-sheen); /* A chip is too small for a seam. */ outline: none; --tw-shadow: var(--glass-shadow-clear, 0 1px 2px rgb(0 0 0 / 0.12)); } /* The prominent control: the accent as tinted glass (send, the default button). No coloured shadow: it is a control, not a light. */ @utility liquid-tint { background-color: var(--primary); background-image: var(--tint-sheen); color: var(--primary-foreground); border-color: transparent; --tw-inset-shadow: inset 0 1px 0 0 rgb(255 255 255 / 0.3); --tw-inset-ring-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); --tw-shadow: 0 1px 2px rgb(0 0 0 / 0.25); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } /* The opaque plane text is read on. */ @utility sheet { background-color: var(--canvas); outline: var(--sheet-edge); outline-offset: var(--material-edge-offset); --tw-inset-ring-shadow: inset 0 0 0 1px var(--sheet-rim); --tw-shadow: var(--sheet-shadow); box-shadow: var(--tw-inset-shadow, 0 0 #0000), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } /* The backdrop. With the Mac's material (main.ts gives the window vibrancy) the desktop shows through a veil of it. */ body { background: radial-gradient(56rem 38rem at -8% -12%, var(--ambient-1), transparent 62%), radial-gradient(44rem 34rem at 108% 112%, var(--ambient-2), transparent 64%), radial-gradient(36rem 28rem at 12% 118%, var(--ambient-3), transparent 64%), var(--backdrop); } :root[data-vibrancy] body { background: radial-gradient(56rem 38rem at -8% -12%, var(--ambient-1), transparent 62%), radial-gradient(44rem 34rem at 108% 112%, var(--ambient-2), transparent 64%), color-mix(in srgb, var(--backdrop) 55%, transparent); } /* The theme's picture, printed through its process (ui/Backdrop.tsx), on a canvas behind the app. Once it has drawn (data-backdrop), the gradient gives way to a plain fill under it. The art shows behind the glass chrome and in the gutters between the panels; the room's sheet stays opaque over it. The first screens (Welcome, Connect) print the picture as a print on the page instead (ui/ArtFigure.tsx), on a plain ground. */ :root[data-backdrop] body, :root[data-backdrop][data-vibrancy] body { background: var(--backdrop); } .backdrop { position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; object-fit: cover; pointer-events: none; } body:has(:is(.welcome-screen, main.connect)) .backdrop { visibility: hidden; } /* In the shell the picture shows behind the sidebar's glass and nowhere else: the gutters between the panels are the plain ground, so no slice of a disc, a card or a dither runs down them (the shell's p-2 and the sidebar's --sidebar-w). With the sidebar hidden there is no glass to show it. A sidebar on the right sees the print mirrored, so the band held back for it, and the riso's and the stitch's clear band, follow it. */ :root { --sidebar-w: 256px; --gutter: calc(var(--spacing) * 2); } body:has(.shell) .backdrop { clip-path: inset(var(--gutter) calc(100% - var(--gutter) - var(--sidebar-w)) var(--gutter) var(--gutter) round var(--panel-radius)); } :root[data-sidebar="right"] body:has(.shell) .backdrop { transform: scaleX(-1); } body:has(.shell):not(:has(nav.sidebar)) .backdrop { visibility: hidden; } /* A print shows its ground until it has drawn. */ .art-print { background-color: var(--print-ground, var(--plate-lo, #1d2240)); } :root:is([data-process="halftone"], [data-process="stitch"]) .art-print { --print-ground: var(--backdrop); } /* A headline in two tones: the claim in the display face, the rest of the line quieter.

Deck runs your crew

. */ .headline { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.05; text-wrap: balance; color: var(--text); } .headline-quiet { color: var(--text-faint); } /* Every top heading takes the display face; a font utility on it wins. */ :where(h1) { font-family: var(--font-display); } /* Menus, popovers, the palette, sheets and toasts. */ .material { @apply liquid-thick; } .scrim { background-color: rgb(0 0 0 / 0.2); -webkit-backdrop-filter: none; backdrop-filter: none; } /* In a menu, the palette and the composer's pickers, the row under the pointer or the keys is a capsule of the accent with its text in white. */ .material :is([role="menuitem"], [role="option"]) { border-radius: 7px; } .material :is([role="menuitem"]:not(:disabled):hover, [role="menuitem"]:focus-visible, [role="option"].on) { background-color: var(--primary); color: var(--primary-foreground); } .material :is([role="menuitem"]:not(:disabled):hover, [role="menuitem"]:focus-visible, [role="option"].on) * { /* Over the accent, an agent's hue gives way to the white text too. */ color: inherit !important; } /* Overlay scrollbars: a thin thumb that shows while the pointer is over the list. */ ::-webkit-scrollbar-thumb { background-color: transparent; } :hover::-webkit-scrollbar-thumb { background-color: var(--scrollbar); } ::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-hover); } /* The person's turn: a bubble tinted with the accent, on the right. */ .msg-user { align-items: flex-end; } .msg-user .user-card { max-width: min(85%, 36rem); border-color: transparent; border-radius: 20px 20px 6px 20px; background: var(--bubble); box-shadow: inset 0 1px 0 0 var(--highlight); padding: 0.5625rem 1rem; } .msg-user .user-card::before { display: none; } /* Reduce transparency: every glass turns solid, and the backdrop plain. */ @media (prefers-reduced-transparency: reduce) { :root:root { --glass-fill: var(--surface-1); --glass-fill-thick: var(--surface-2); --glass-fill-clear: var(--surface-1); --glass-blur: 0px; --glass-sheen: none; } body, :root[data-vibrancy] body { background: var(--backdrop); } .backdrop { display: none; } } @layer base { * { border-color: var(--border); } html, body, #root { height: 100%; margin: 0; } body { background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow: hidden; } button { cursor: pointer; } ::selection { background: color-mix(in oklab, var(--primary) 30%, transparent); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); background-clip: content-box; border: 3px solid transparent; } ::-webkit-scrollbar-corner { background: transparent; } } /* The window's own title bar is hidden; these strips drag the window. */ .drag { -webkit-app-region: drag; } .drag button, .drag input, .drag [role="radiogroup"], .drag a, .no-drag { -webkit-app-region: no-drag; } @keyframes deck-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } @keyframes deck-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } } @keyframes deck-enter { from { opacity: 0; translate: 0 4px; } } /* Pulses step, so an idle window draws four frames a beat, not sixty. */ .animate-deck-pulse { animation: deck-pulse 1.6s steps(4, jump-none) infinite; } /* "Working…": the text shimmers while an agent writes. */ .shimmer { background: linear-gradient( 90deg, var(--muted-foreground) 0%, var(--muted-foreground) 40%, var(--foreground) 50%, var(--muted-foreground) 60%, var(--muted-foreground) 100% ); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: deck-shimmer 2.2s linear infinite; } /* Reduced motion: the person's choice in Settings, or the system's when they leave it to the system (appearance.ts writes data-motion). */ [data-motion="reduced"] .animate-deck-pulse, [data-motion="reduced"] .animate-spin, [data-motion="reduced"] .animate-pulse, [data-motion="reduced"] .animate-enter, [data-motion="reduced"] .shimmer { animation: none; } [data-motion="reduced"], [data-motion="reduced"] *, [data-motion="reduced"] ::before, [data-motion="reduced"] ::after { transition-duration: 0s !important; scroll-behavior: auto !important; } /* Yolo. The shockwave is a canvas over the window (ui/YoloFx.tsx). */ .yolo-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2147483000; } /* While a room is in yolo its mode chip keeps a rainbow border. It turns in 24 steps over 6s, so it costs four frames a second. */ @property --yolo-angle { syntax: ""; inherits: false; initial-value: 0deg; } @keyframes yolo-turn { to { --yolo-angle: 360deg; } } .mode-picker[data-mode="yolo"] { position: relative; } .mode-picker[data-mode="yolo"]::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: conic-gradient( from var(--yolo-angle), hsl(0 90% 62%), hsl(60 90% 58%), hsl(120 75% 52%), hsl(180 80% 55%), hsl(240 85% 66%), hsl(300 85% 64%), hsl(360 90% 62%) ); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: yolo-turn 6s steps(24) infinite; pointer-events: none; } [data-motion="reduced"] .mode-picker[data-mode="yolo"]::before { animation: none; } /* In place of the shockwave (reduced motion, or the effect off), the mode chip flashes amber once. */ @keyframes yolo-flash { from { background-color: color-mix(in oklab, var(--signal) 55%, transparent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--signal) 60%, transparent); } } .mode-picker[data-yolo-flash] { animation: yolo-flash 700ms var(--ease) 1; } /* The composer's glass floats over the timeline, so a message scrolls on under it; the timeline fades at its top edge, under the toolbar, and in the last few pixels under the capsule, where the sheet's edge is. */ .timeline { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 10px), transparent); } /* Agent prose: the shared markdown parser's node tree. */ .md { overflow-wrap: anywhere; line-height: 1.6; } .md > * + * { margin-top: 0.75em; } .md p { margin: 0; } .md strong, .md b { font-weight: var(--font-weight-semibold); } .md .md-h { font-weight: var(--font-weight-semibold); margin-top: 1.1em; } .md .md-h1 { font-size: 1.25em; } .md .md-h2 { font-size: 1.12em; } .md .md-h3, .md .md-h4 { font-size: 1em; } .md ul, .md ol { margin: 0; padding-left: 1.4em; } .md ul { list-style: disc; } .md ol { list-style: decimal; } .md li + li { margin-top: 0.2em; } .md li.depth1 { margin-left: 1.2em; } .md li.depth2 { margin-left: 2.4em; } .md li::marker { color: var(--muted-foreground); } .md a { color: var(--link, var(--primary)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--primary) 55%, transparent); transition: text-decoration-color 160ms var(--ease); } .md a:hover { text-decoration-color: var(--primary); } .md code { font-family: var(--font-mono); font-size: 0.86em; background: color-mix(in srgb, var(--text) 7%, transparent); border: 0; border-radius: 5px; padding: 0.12em 0.4em; } /* A code block is a quiet fill inside the sheet: rounded-xl, no rim. */ .md pre.codeblock { margin: 0; margin-top: 0.75em; background: var(--diff-bg, var(--hover)); color: var(--diff-fg, inherit); tab-size: 4; border: 0; border-radius: calc(var(--radius) + 4px); padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; } .md pre.codeblock code { background: none; border: 0; padding: 0; font-size: inherit; } .md blockquote { margin: 0; border-left: 2px solid var(--hairline-strong); padding-left: 12px; color: var(--muted-foreground); } .md hr { border: 0; border-top: 1px solid var(--border); } /* Unified diffs. */ .diff { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-x: auto; } .diff-line { white-space: pre; padding: 0 12px; min-width: max-content; } .diff-add { background: var(--diff-add); color: var(--diff-add-fg); } .diff-del { background: var(--diff-del); color: var(--diff-del-fg); } .diff-hunk { color: var(--muted-foreground); background: var(--muted); padding-top: 2px; padding-bottom: 2px; } .diff-meta { color: var(--muted-foreground); font-style: italic; } /* The sidebar's brand strip. Tabletop has no glow; the other themes keep T3 Code's blue one behind the wordmark. */ :root[data-palette]:not([data-palette="tabletop"]):not([data-palette="apple"]):not([data-palette="glass"]) .brand-glow { background: radial-gradient(120% 140% at 10% 0%, rgb(59 130 246 / 38%) 0%, rgb(37 99 235 / 14%) 45%, transparent 75%), linear-gradient(180deg, rgb(59 130 246 / 10%), transparent); } :root[data-palette]:not([data-palette="tabletop"]):not([data-palette="apple"]):not([data-palette="glass"])[data-mode="light"] .brand-glow { background: radial-gradient(120% 140% at 10% 0%, rgb(59 130 246 / 22%) 0%, rgb(37 99 235 / 8%) 45%, transparent 75%); } /* The diff panel: a gutter of line numbers and a bar for each added or removed line, as T3 Code's diff viewer draws them. The colours come from the diff theme (the end of this file). The whole file scrolls sideways as one, so every row is as wide as the widest. */ .diff-numbered { container-type: inline-size; background: var(--diff-bg, transparent); color: var(--diff-fg, inherit); } .diff-numbered .diff-body { width: max-content; min-width: 100%; } .diff-numbered .diff-row { display: grid; grid-template-columns: 3.25rem 1fr; } .diff-numbered .diff-gutter { position: sticky; left: 0; padding-right: 0.75rem; text-align: right; color: var(--diff-faint); background: var(--diff-gutter); border-left: 2px solid transparent; user-select: none; } .diff-numbered .diff-row.diff-add .diff-gutter, .diff-split .diff-gutter.is-add { border-left-color: var(--diff-add-fg); background: var(--diff-add); } .diff-numbered .diff-row.diff-del .diff-gutter, .diff-split .diff-gutter.is-del { border-left-color: var(--diff-del-fg); background: var(--diff-del); } /* The line comment's "+" sits in the gutter and shows on hover. */ .diff-numbered .diff-add-comment { position: absolute; top: 50%; left: 3px; display: grid; place-items: center; width: 16px; height: 16px; translate: 0 -50%; border-radius: 4px; color: var(--text-faint); background: var(--surface-2); cursor: pointer; opacity: 0; } .diff-numbered:not(.diff-split) .diff-row:hover .diff-add-comment, .diff-split .diff-gutter:hover .diff-add-comment, .diff-split .diff-gutter:has(+ .diff-code:hover) .diff-add-comment, .diff-numbered .diff-add-comment:focus-visible { opacity: 1; } .diff-numbered .diff-add-comment:hover { color: var(--foreground); } .diff-numbered .diff-code { white-space: pre; padding: 0 12px 0 4px; } .diff-numbered .diff-row.diff-add, .diff-numbered .diff-row.diff-del { color: var(--diff-fg, var(--foreground)); } .diff-numbered .diff-row.diff-add .diff-code, .diff-split .diff-code.is-add { background: var(--diff-add); } .diff-numbered .diff-row.diff-del .diff-code, .diff-split .diff-code.is-del { background: var(--diff-del); } /* Changed words inside a changed line. */ .diff-numbered .diff-row.diff-add .diff-word, .diff-split .diff-code.is-add .diff-word { background: var(--diff-add-word); border-radius: 2px; } .diff-numbered .diff-row.diff-del .diff-word, .diff-split .diff-code.is-del .diff-word { background: var(--diff-del-word); border-radius: 2px; } /* Wrap: long lines break and nothing scrolls sideways. */ .diff-wrap .diff-body { width: auto; } .diff-wrap .diff-code { white-space: pre-wrap; overflow-wrap: anywhere; } /* A hunk's header: the @@ range in faint mono, the function it is in, and how many lines it skips. It stays in view when the file scrolls. */ .diff-hunk-row, .diff-fold-row { position: sticky; left: 0; width: 100cqw; } .diff-hunk-row { display: flex; align-items: baseline; gap: 0.75rem; min-width: 0; margin-top: 0.25rem; padding: 0.125rem 0.75rem 0.125rem calc(3.25rem + 6px); white-space: nowrap; color: var(--diff-faint); border-block: 1px solid var(--hairline); } .diff-hunk-row:first-child { margin-top: 0; border-top: 0; } .diff-hunk-ctx { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--diff-muted); } .diff-hunk-skip { margin-left: auto; font-family: var(--font-sans); font-size: 11px; } .diff-fold { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.25rem 0.75rem; color: var(--muted-foreground); font-family: var(--font-sans); font-size: 11px; cursor: pointer; } .diff-fold:hover { color: var(--foreground); } .diff-fold::before, .diff-fold::after { content: ""; height: 1px; flex: 1; background: var(--border); } /* Every other theme defines the old names; Tabletop's names follow them. */ :root[data-palette]:not([data-palette="tabletop"]):not([data-palette="apple"]):not([data-palette="glass"]) { --canvas: var(--background); --surface-1: var(--card); --surface-2: var(--popover); --hairline: var(--border); --hairline-strong: var(--input); --hover: var(--sidebar-row-hover); --selected: var(--accent); --text: var(--foreground); --text-muted: var(--muted-foreground); --text-faint: color-mix(in oklab, var(--muted-foreground) 70%, var(--background)); --signal: var(--primary); --signal-foreground: var(--primary-foreground); --action: var(--primary); --action-foreground: var(--primary-foreground); --link: var(--primary); --info-foreground: var(--primary); } :root[data-palette]:not([data-palette="tabletop"]):not([data-palette="apple"]):not([data-palette="glass"])[data-mode="light"] { --highlight: transparent; } /* T3: the look the window had before Tabletop, after T3 Code. */ :root[data-palette="default"][data-mode] { --background: #0a0a0a; --foreground: #ededed; --card: color-mix(in srgb, var(--background) 96%, white); --popover: color-mix(in srgb, var(--background) 94%, white); --primary: oklch(0.571 0.21 264); --primary-foreground: #fff; --secondary: rgb(255 255 255 / 5%); --muted: rgb(255 255 255 / 4%); --muted-foreground: #9a9a9a; --secondary-label: #8a8a8a; --info-foreground: #60a5fa; --accent: rgb(255 255 255 / 6%); --border: rgb(255 255 255 / 8%); --input: rgb(255 255 255 / 10%); --ring: var(--primary); --message: rgb(255 255 255 / 7%); --sidebar: #050505; --sidebar-row-hover: rgb(255 255 255 / 5%); --sidebar-row-active: rgb(255 255 255 / 9%); --destructive: #f05252; --destructive-foreground: #f87171; --success: #10b981; --success-foreground: #34d399; --warning: #f59e0b; --warning-foreground: #fbbf24; --info: #3b82f6; --code: rgb(255 255 255 / 4%); --diff-add: rgb(16 185 129 / 12%); --diff-add-fg: #6ee7b7; --diff-del: rgb(239 68 68 / 12%); --diff-del-fg: #fca5a5; --highlight: transparent; --scrollbar: rgb(255 255 255 / 8%); --scrollbar-hover: rgb(255 255 255 / 14%); } :root[data-palette="default"][data-mode="light"] { --background: #fcfcfc; --foreground: #27272a; --card: #fff; --popover: #fff; --primary: oklch(0.488 0.217 264); --secondary: #f4f4f5; --muted: #f4f4f5; --muted-foreground: #71717a; --secondary-label: #71717a; --info-foreground: #1d4ed8; --accent: #f0f0f2; --border: #e4e4e7; --input: #d4d4d8; --message: #f0f0f2; --sidebar: #f7f7f8; --sidebar-row-hover: #efeff1; --sidebar-row-active: #fff; --destructive: #ef4444; --destructive-foreground: #b91c1c; --success-foreground: #047857; --warning-foreground: #b45309; --code: #f4f4f5; --diff-add: #e7f8ef; --diff-add-fg: #047857; --diff-del: #fdecec; --diff-del-fg: #b91c1c; --scrollbar: rgb(0 0 0 / 12%); --scrollbar-hover: rgb(0 0 0 / 20%); } /* Themes (themes.ts): each sets the tokens on top of its mode's defaults. The selectors carry data-mode too, so they outrank the light block. */ :root[data-palette="tokyo-night"][data-mode] { --background: #1a1b26; --foreground: #c0caf5; --card: #1f2133; --popover: #24283b; --primary: #7aa2f7; --primary-foreground: #1a1b26; --muted-foreground: #8089b3; --secondary-label: #737aa2; --accent: rgb(122 162 247 / 10%); --border: rgb(169 177 214 / 12%); --input: rgb(169 177 214 / 16%); --message: #292e42; --sidebar: #16161e; --sidebar-row-hover: rgb(122 162 247 / 8%); --sidebar-row-active: rgb(122 162 247 / 14%); --code: #16161e; --highlight: rgb(255 255 255 / 4%); } :root[data-palette="catppuccin"][data-mode] { --background: #1e1e2e; --foreground: #cdd6f4; --card: #232336; --popover: #313244; --primary: #cba6f7; --primary-foreground: #1e1e2e; --muted-foreground: #a6adc8; --secondary-label: #9399b2; --accent: rgb(203 166 247 / 10%); --border: rgb(205 214 244 / 10%); --input: rgb(205 214 244 / 14%); --message: #313244; --sidebar: #181825; --sidebar-row-hover: rgb(203 166 247 / 8%); --sidebar-row-active: rgb(203 166 247 / 14%); --code: #181825; --highlight: rgb(255 255 255 / 4%); } :root[data-palette="nord"][data-mode] { --background: #2e3440; --foreground: #eceff4; --card: #333a47; --popover: #3b4252; --primary: #88c0d0; --primary-foreground: #2e3440; --muted-foreground: #a7b1c2; --secondary-label: #9aa5b8; --accent: rgb(136 192 208 / 10%); --border: rgb(236 239 244 / 10%); --input: rgb(236 239 244 / 15%); --message: #3b4252; --sidebar: #292e39; --sidebar-row-hover: rgb(136 192 208 / 8%); --sidebar-row-active: rgb(136 192 208 / 14%); --code: #292e39; --highlight: rgb(255 255 255 / 4%); } :root[data-palette="rose-pine"][data-mode] { --background: #191724; --foreground: #e0def4; --card: #1f1d2e; --popover: #26233a; --primary: #ebbcba; --primary-foreground: #191724; --muted-foreground: #908caa; --secondary-label: #817c9c; --accent: rgb(235 188 186 / 9%); --border: rgb(224 222 244 / 9%); --input: rgb(224 222 244 / 14%); --message: #26233a; --sidebar: #16141f; --sidebar-row-hover: rgb(235 188 186 / 7%); --sidebar-row-active: rgb(235 188 186 / 13%); --code: #16141f; --highlight: rgb(255 255 255 / 4%); } :root[data-palette="dracula"][data-mode] { --background: #282a36; --foreground: #f8f8f2; --card: #2d2f3d; --popover: #343746; --primary: #bd93f9; --primary-foreground: #282a36; --muted-foreground: #a4a8c4; --secondary-label: #9599b8; --accent: rgb(189 147 249 / 10%); --border: rgb(248 248 242 / 9%); --input: rgb(248 248 242 / 14%); --message: #3a3d4e; --sidebar: #21222c; --sidebar-row-hover: rgb(189 147 249 / 8%); --sidebar-row-active: rgb(189 147 249 / 14%); --code: #21222c; --highlight: rgb(255 255 255 / 4%); } :root[data-palette="solarized-light"][data-mode] { --background: #fdf6e3; --foreground: #3b4c52; --card: #fffbf0; --popover: #fffbf0; --primary: #268bd2; --primary-foreground: #fdf6e3; --muted-foreground: #657b83; --secondary-label: #74888f; --accent: #eee8d5; --border: #e4dcc6; --input: #d6cfba; --message: #eee8d5; --sidebar: #f5eedb; --sidebar-row-hover: #eee8d5; --sidebar-row-active: #fffbf0; --code: #eee8d5; --secondary: #eee8d5; --muted: #eee8d5; } :root[data-palette="github-light"][data-mode] { --background: #ffffff; --foreground: #1f2328; --card: #ffffff; --popover: #ffffff; --primary: #0969da; --primary-foreground: #ffffff; --muted-foreground: #59636e; --secondary-label: #656d76; --accent: #f3f4f6; --border: #d1d9e0; --input: #c4cdd5; --message: #f6f8fa; --sidebar: #f6f8fa; --sidebar-row-hover: #eff2f5; --sidebar-row-active: #ffffff; --code: #f6f8fa; --secondary: #f3f4f6; --muted: #f3f4f6; } /* An accent overrides the theme's primary. */ :root[data-accent="amber"][data-mode] { --primary: oklch(0.8 0.14 75); --primary-foreground: oklch(0.2 0.03 70); } :root[data-accent="blue"][data-mode] { --primary: oklch(0.571 0.21 264); --primary-foreground: #fff; } :root[data-accent="violet"][data-mode] { --primary: oklch(0.58 0.22 295); --primary-foreground: #fff; } :root[data-accent="green"][data-mode] { --primary: oklch(0.62 0.16 155); --primary-foreground: #fff; } :root[data-accent="orange"][data-mode] { --primary: oklch(0.68 0.17 50); --primary-foreground: #fff; } :root[data-accent="pink"][data-mode] { --primary: oklch(0.64 0.2 350); --primary-foreground: #fff; } :root[data-accent="graphite"][data-mode] { --primary: #8c8c91; --primary-foreground: #fff; } /* The split view: old on the left, new on the right, aligned row by row, with a blank across from a line the other side lacks. Lines wrap, so both halves stay in view. */ .diff-split .diff-grid { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem minmax(0, 1fr); } .diff-split .diff-row.diff-pair { display: contents; } .diff-split .diff-gutter { position: relative; } .diff-split .diff-gutter[data-side="new"] { box-shadow: inset 1px 0 0 var(--hairline); } .diff-split .diff-code { white-space: pre-wrap; overflow-wrap: anywhere; } .diff-split .diff-code.is-empty, .diff-split .diff-gutter.is-empty { background: var(--diff-empty); } .diff-split .diff-hunk-row, .diff-split .diff-fold-row, .diff-split .diff-meta, .diff-split .diff-comment { grid-column: 1 / -1; } /* Syntax colour. Prism's tokens become spans with these classes (highlight.ts); the colours come from the diff theme. */ .syn-scope .syn-keyword { color: var(--syn-keyword); } .syn-scope .syn-string { color: var(--syn-string); } .syn-scope .syn-comment { color: var(--syn-comment); } .syn-scope .syn-number { color: var(--syn-number); } .syn-scope .syn-function { color: var(--syn-function); } .syn-scope .syn-type { color: var(--syn-type); } .syn-scope .syn-punct { color: var(--syn-punct); } .syn-scope .syn-variable { color: var(--syn-variable); } .syn-scope .syn-tag { color: var(--syn-tag); } .syn-scope .syn-attr { color: var(--syn-attr); } .syn-scope .syn-operator { color: var(--syn-operator); } .diff-preview { background: var(--canvas); } /* Diff themes (themes.ts DIFF_THEMES), on . "Match app theme" derives the added and removed tints from the theme's success and destructive colours over its canvas, as the terminal app does, and takes the syntax colours each theme sets below. Monochrome keeps the tints and drops the syntax colour. The named themes bring a background of their own, so their colours read the same in light and dark windows. */ .syn-scope { --diff-gutter: var(--background); --diff-faint: var(--text-faint); --diff-muted: var(--text-muted); --diff-empty: var(--hover); } :root:not([data-diff-theme]) .syn-scope, :root[data-diff-theme="match"] .syn-scope, :root[data-diff-theme="monochrome"] .syn-scope { --diff-add: color-mix(in oklab, var(--success) 20%, var(--canvas)); --diff-del: color-mix(in oklab, var(--destructive) 15%, var(--canvas)); --diff-add-word: color-mix(in oklab, var(--success) 40%, var(--canvas)); --diff-del-word: color-mix(in oklab, var(--destructive) 35%, var(--canvas)); } :root[data-diff-theme="monochrome"] .syn-scope { --syn-keyword: currentColor; --syn-string: currentColor; --syn-comment: currentColor; --syn-number: currentColor; --syn-function: currentColor; --syn-type: currentColor; --syn-punct: currentColor; --syn-variable: currentColor; --syn-tag: currentColor; --syn-attr: currentColor; --syn-operator: currentColor; } /* A named theme's faint and muted text, from its own text and background. */ :root[data-diff-theme]:not([data-diff-theme="match"]):not([data-diff-theme="monochrome"]) .syn-scope { --diff-gutter: var(--diff-bg); --diff-faint: color-mix(in oklab, var(--diff-fg) 42%, var(--diff-bg)); --diff-muted: color-mix(in oklab, var(--diff-fg) 68%, var(--diff-bg)); --diff-empty: color-mix(in oklab, var(--diff-fg) 4%, var(--diff-bg)); } /* Each window theme's syntax colours, for "Match app theme". Tabletop keeps them muted and leaves amber to state. */ :root { --syn-keyword: oklch(0.75 0.08 15); --syn-string: oklch(0.8 0.08 145); --syn-comment: oklch(0.56 0.012 75); --syn-number: oklch(0.79 0.07 200); --syn-function: oklch(0.8 0.07 255); --syn-type: oklch(0.8 0.07 175); --syn-punct: oklch(0.66 0.012 75); --syn-variable: oklch(0.88 0.01 80); --syn-tag: oklch(0.75 0.08 15); --syn-attr: oklch(0.78 0.06 320); --syn-operator: oklch(0.72 0.03 75); } :root[data-mode="light"] { --syn-keyword: oklch(0.5 0.13 20); --syn-string: oklch(0.48 0.11 145); --syn-comment: oklch(0.6 0.012 75); --syn-number: oklch(0.5 0.1 220); --syn-function: oklch(0.48 0.12 260); --syn-type: oklch(0.48 0.09 180); --syn-punct: oklch(0.5 0.012 75); --syn-variable: oklch(0.3 0.01 70); --syn-tag: oklch(0.5 0.13 20); --syn-attr: oklch(0.5 0.11 320); --syn-operator: oklch(0.45 0.03 75); } :root[data-palette="default"][data-mode] { --syn-keyword: #c586c0; --syn-string: #ce9178; --syn-comment: #6a9955; --syn-number: #b5cea8; --syn-function: #dcdcaa; --syn-type: #4ec9b0; --syn-punct: #a0a0a0; --syn-variable: #9cdcfe; --syn-tag: #569cd6; --syn-attr: #9cdcfe; --syn-operator: #d4d4d4; } :root[data-palette="default"][data-mode="light"] { --syn-keyword: #af00db; --syn-string: #a31515; --syn-comment: #008000; --syn-number: #098658; --syn-function: #795e26; --syn-type: #267f99; --syn-punct: #555555; --syn-variable: #001080; --syn-tag: #800000; --syn-attr: #e50000; --syn-operator: #000000; } :root:is([data-palette="apple"], [data-palette="glass"])[data-mode] { /* After Xcode's Default (Dark) and Default (Light). */ --syn-keyword: #ff7ab2; --syn-string: #ff8170; --syn-comment: #7f8c98; --syn-number: #d9c97c; --syn-function: #78c2b3; --syn-type: #dabaff; --syn-punct: #a1a1a6; --syn-variable: #e3e3e5; --syn-tag: #ff7ab2; --syn-attr: #6bdfff; --syn-operator: #c9c9cc; } :root:is([data-palette="apple"], [data-palette="glass"])[data-mode="light"] { --syn-keyword: #ad3da4; --syn-string: #c41a16; --syn-comment: #5d6c79; --syn-number: #272ad8; --syn-function: #3e8087; --syn-type: #6c36a9; --syn-punct: #636366; --syn-variable: #1d1d1f; --syn-tag: #ad3da4; --syn-attr: #0f68a0; --syn-operator: #3a3a3c; } :root[data-palette="tokyo-night"][data-mode] { --syn-keyword: #bb9af7; --syn-string: #9ece6a; --syn-comment: #565f89; --syn-number: #ff9e64; --syn-function: #7aa2f7; --syn-type: #2ac3de; --syn-punct: #a9b1d6; --syn-variable: #c0caf5; --syn-tag: #f7768e; --syn-attr: #7dcfff; --syn-operator: #89ddff; } :root[data-palette="catppuccin"][data-mode] { --syn-keyword: #cba6f7; --syn-string: #a6e3a1; --syn-comment: #7f849c; --syn-number: #fab387; --syn-function: #89b4fa; --syn-type: #f9e2af; --syn-punct: #9399b2; --syn-variable: #cdd6f4; --syn-tag: #f38ba8; --syn-attr: #89dceb; --syn-operator: #89dceb; } :root[data-palette="nord"][data-mode] { --syn-keyword: #81a1c1; --syn-string: #a3be8c; --syn-comment: #616e88; --syn-number: #b48ead; --syn-function: #88c0d0; --syn-type: #8fbcbb; --syn-punct: #eceff4; --syn-variable: #d8dee9; --syn-tag: #81a1c1; --syn-attr: #8fbcbb; --syn-operator: #81a1c1; } :root[data-palette="rose-pine"][data-mode] { --syn-keyword: #31748f; --syn-string: #f6c177; --syn-comment: #6e6a86; --syn-number: #c4a7e7; --syn-function: #ebbcba; --syn-type: #9ccfd8; --syn-punct: #908caa; --syn-variable: #e0def4; --syn-tag: #9ccfd8; --syn-attr: #c4a7e7; --syn-operator: #908caa; } :root[data-palette="dracula"][data-mode] { --syn-keyword: #ff79c6; --syn-string: #f1fa8c; --syn-comment: #6272a4; --syn-number: #bd93f9; --syn-function: #50fa7b; --syn-type: #8be9fd; --syn-punct: #f8f8f2; --syn-variable: #f8f8f2; --syn-tag: #ff79c6; --syn-attr: #50fa7b; --syn-operator: #ff79c6; } :root[data-palette="solarized-light"][data-mode] { --syn-keyword: #859900; --syn-string: #2aa198; --syn-comment: #93a1a1; --syn-number: #d33682; --syn-function: #268bd2; --syn-type: #b58900; --syn-punct: #657b83; --syn-variable: #586e75; --syn-tag: #268bd2; --syn-attr: #cb4b16; --syn-operator: #859900; } :root[data-palette="github-light"][data-mode] { --syn-keyword: #cf222e; --syn-string: #0a3069; --syn-comment: #6e7781; --syn-number: #0550ae; --syn-function: #8250df; --syn-type: #953800; --syn-punct: #1f2328; --syn-variable: #1f2328; --syn-tag: #116329; --syn-attr: #0550ae; --syn-operator: #cf222e; } /* The named diff themes. */ :root[data-diff-theme="github-dark"] .syn-scope { --diff-bg: #0d1117; --diff-fg: #e6edf3; --diff-add: color-mix(in srgb, #2ea043 15%, #0d1117); --diff-add-fg: #3fb950; --diff-add-word: color-mix(in srgb, #2ea043 40%, #0d1117); --diff-del: color-mix(in srgb, #f85149 12%, #0d1117); --diff-del-fg: #f85149; --diff-del-word: color-mix(in srgb, #f85149 38%, #0d1117); --syn-keyword: #ff7b72; --syn-string: #a5d6ff; --syn-comment: #8b949e; --syn-number: #79c0ff; --syn-function: #d2a8ff; --syn-type: #ffa657; --syn-punct: #c9d1d9; --syn-variable: #e6edf3; --syn-tag: #7ee787; --syn-attr: #79c0ff; --syn-operator: #ff7b72; } :root[data-diff-theme="github-light"] .syn-scope { --diff-bg: #ffffff; --diff-fg: #1f2328; --diff-add: #dafbe1; --diff-add-fg: #1a7f37; --diff-add-word: #aceebb; --diff-del: #ffebe9; --diff-del-fg: #cf222e; --diff-del-word: #ffcecb; --syn-keyword: #cf222e; --syn-string: #0a3069; --syn-comment: #6e7781; --syn-number: #0550ae; --syn-function: #8250df; --syn-type: #953800; --syn-punct: #1f2328; --syn-variable: #1f2328; --syn-tag: #116329; --syn-attr: #0550ae; --syn-operator: #cf222e; } :root[data-diff-theme="one-dark"] .syn-scope { --diff-bg: #282c34; --diff-fg: #abb2bf; --diff-add: color-mix(in srgb, #98c379 14%, #282c34); --diff-add-fg: #98c379; --diff-add-word: color-mix(in srgb, #98c379 34%, #282c34); --diff-del: color-mix(in srgb, #e06c75 14%, #282c34); --diff-del-fg: #e06c75; --diff-del-word: color-mix(in srgb, #e06c75 34%, #282c34); --syn-keyword: #c678dd; --syn-string: #98c379; --syn-comment: #7f848e; --syn-number: #d19a66; --syn-function: #61afef; --syn-type: #e5c07b; --syn-punct: #abb2bf; --syn-variable: #e06c75; --syn-tag: #e06c75; --syn-attr: #d19a66; --syn-operator: #56b6c2; } :root[data-diff-theme="dracula"] .syn-scope { --diff-bg: #282a36; --diff-fg: #f8f8f2; --diff-add: color-mix(in srgb, #50fa7b 12%, #282a36); --diff-add-fg: #50fa7b; --diff-add-word: color-mix(in srgb, #50fa7b 30%, #282a36); --diff-del: color-mix(in srgb, #ff5555 14%, #282a36); --diff-del-fg: #ff5555; --diff-del-word: color-mix(in srgb, #ff5555 34%, #282a36); --syn-keyword: #ff79c6; --syn-string: #f1fa8c; --syn-comment: #6272a4; --syn-number: #bd93f9; --syn-function: #50fa7b; --syn-type: #8be9fd; --syn-punct: #f8f8f2; --syn-variable: #f8f8f2; --syn-tag: #ff79c6; --syn-attr: #50fa7b; --syn-operator: #ff79c6; } :root[data-diff-theme="tokyo-night"] .syn-scope { --diff-bg: #1a1b26; --diff-fg: #c0caf5; --diff-add: #20303b; --diff-add-fg: #9ece6a; --diff-add-word: #2c5a66; --diff-del: #37222c; --diff-del-fg: #f7768e; --diff-del-word: #713137; --syn-keyword: #bb9af7; --syn-string: #9ece6a; --syn-comment: #565f89; --syn-number: #ff9e64; --syn-function: #7aa2f7; --syn-type: #2ac3de; --syn-punct: #a9b1d6; --syn-variable: #c0caf5; --syn-tag: #f7768e; --syn-attr: #7dcfff; --syn-operator: #89ddff; } :root[data-diff-theme="catppuccin-mocha"] .syn-scope { --diff-bg: #1e1e2e; --diff-fg: #cdd6f4; --diff-add: color-mix(in srgb, #a6e3a1 13%, #1e1e2e); --diff-add-fg: #a6e3a1; --diff-add-word: color-mix(in srgb, #a6e3a1 30%, #1e1e2e); --diff-del: color-mix(in srgb, #f38ba8 13%, #1e1e2e); --diff-del-fg: #f38ba8; --diff-del-word: color-mix(in srgb, #f38ba8 30%, #1e1e2e); --syn-keyword: #cba6f7; --syn-string: #a6e3a1; --syn-comment: #7f849c; --syn-number: #fab387; --syn-function: #89b4fa; --syn-type: #f9e2af; --syn-punct: #9399b2; --syn-variable: #cdd6f4; --syn-tag: #f38ba8; --syn-attr: #89dceb; --syn-operator: #89dceb; } /* Solarized follows the window: dark by default, light in a light one. */ :root[data-diff-theme="solarized"] .syn-scope { --diff-bg: #002b36; --diff-fg: #93a1a1; --diff-add: color-mix(in srgb, #859900 16%, var(--diff-bg)); --diff-add-fg: #859900; --diff-add-word: color-mix(in srgb, #859900 36%, var(--diff-bg)); --diff-del: color-mix(in srgb, #dc322f 14%, var(--diff-bg)); --diff-del-fg: #dc322f; --diff-del-word: color-mix(in srgb, #dc322f 34%, var(--diff-bg)); --syn-keyword: #859900; --syn-string: #2aa198; --syn-comment: #586e75; --syn-number: #d33682; --syn-function: #268bd2; --syn-type: #b58900; --syn-punct: #839496; --syn-variable: #93a1a1; --syn-tag: #268bd2; --syn-attr: #cb4b16; --syn-operator: #859900; } :root[data-diff-theme="solarized"][data-mode="light"] .syn-scope { --diff-bg: #fdf6e3; --diff-fg: #586e75; --syn-comment: #93a1a1; --syn-punct: #657b83; --syn-variable: #586e75; } /* ── Work Graph ── */ /* The Work Graph's canvas (ui/graph/, docs/design-glass.md section 7). Two things utilities cannot express: a dot grid that pans and zooms with the graph, from the view the canvas writes into --gx, --gy and --gk on each frame without a render; and the dash that flows along the edge to a file an agent edits now. Both live states stop under reduced motion and while the canvas is off screen (data-live="off"). */ .work-graph { /* The grid is barely there; an edge at rest is a quiet hairline; a card's rim is a step firmer than an edge's, so the cards lead. */ --graph-dot: color-mix(in srgb, var(--text) 5%, transparent); --graph-edge: color-mix(in srgb, var(--text) 24%, transparent); --graph-rim: color-mix(in srgb, var(--text) 15%, transparent); background-image: radial-gradient(circle, var(--graph-dot) 0.75px, transparent 1px); background-size: calc(24px * var(--gk, 1)) calc(24px * var(--gk, 1)); background-position: var(--gx, 0) var(--gy, 0); } /* A layer that moves under the pointer is a composited layer while it moves, and is drawn crisp again at its new scale when it stops. */ .work-graph[data-moving] .graph-layer { will-change: transform; } @keyframes graph-flow { to { stroke-dashoffset: -12; } } /* Stepped, as the pulses are: ten frames a second, not sixty. */ .graph-flow { stroke-dasharray: 6 6; animation: graph-flow 1.2s steps(12) infinite; } [data-motion="reduced"] .graph-flow, .work-graph[data-live="off"] .graph-flow, .work-graph[data-live="off"] .animate-deck-pulse, .work-graph[data-live="off"] .animate-spin { animation: none; } /* ── Shell ── The window's chrome (docs/design-glass.md, section 4), for what the utilities cannot say. */ /* Below 1100px the side panel floats over the room as thick glass. The glass is a layer under the panel's content, not the panel itself: a backdrop filter holds fixed descendants (its dialogs) and nested glass (its menus) to the element that carries it. The panel has a z-index there, so the layer stays inside it. */ @media (max-width: 1100px) { aside.panel { background-color: transparent; --tw-shadow: 0 0 #0000; } aside.panel::before { @apply liquid-thick; content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; } /* Floating on the left, its tabs clear a Mac's traffic lights. */ .shell[data-mac] aside.panel[data-side="left"] .panel-head { padding-left: 4.75rem; } } /* The same at any width, when the person floats the panel (Settings > Appearance > Layout). */ aside.panel[data-float] { background-color: transparent; --tw-shadow: 0 0 #0000; } aside.panel[data-float]::before { @apply liquid-thick; content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; } .shell[data-mac] aside.panel[data-float][data-side="left"] .panel-head { padding-left: 4.75rem; } /* The layout (Settings > Appearance > Layout, Shell's data-sidebar and data-dock): the sidebar on the left or the right, and the side panel on the side opposite it or beside it. The order in the DOM, and so the Tab order, stays sidebar, room, panel. */ .shell > nav.sidebar { order: 0; } .shell > .room-sheet { order: 2; } .shell > aside.panel { order: 3; } .shell[data-dock="beside"] > aside.panel { order: 1; } .shell[data-sidebar="right"] { flex-direction: row-reverse; } /* On a Mac the traffic lights sit at the window's top left (main.ts), so whichever panel the layout puts there clears them, and centres its bar on them as a unified title bar does (Shell's data-lights). The sidebar does it itself; the room's toolbar does too while the sidebar hides. */ .shell[data-lights="room"] .room-sheet .topbar, .shell[data-lights="panel"] aside.panel .panel-head { padding-left: 4.75rem; padding-bottom: 0.875rem; } /* The palette's rows are larger than a menu's, so their capsule is too. */ .palette [role="option"] { border-radius: 10px; } /* ── Room ── The room's own pieces that a utility cannot say: the composer's height for the timeline under it, the agents' hue in motion, and the glass the composer lends what stacks on it. */ .room-body { /* Until the dock measures itself (Room.tsx, useDockHeight). */ --composer-h: 8.5rem; } .md p, .md li { text-wrap: pretty; } /* A fenced block sits in a card (Markdown.tsx), which takes the spacing. */ .md .md-code pre.codeblock { margin-top: 0; } /* "Working": the word shimmers from muted text to the agent's hue (--hue, set on the message). */ .shimmer-hue { background-image: linear-gradient( 90deg, var(--muted-foreground) 0%, var(--muted-foreground) 38%, var(--hue, var(--foreground)) 50%, var(--muted-foreground) 62%, var(--muted-foreground) 100% ); } /* What stacks on the floating composer (the take-over and edit notices, from RoomVerbs) is glass too, so nothing opaque floats over the timeline. */ .composer .room-notice { @apply liquid-thick; margin-bottom: 0; border-radius: 16px; } /* The branch in the composer's bar is a capsule like its neighbours. */ .composer-bar .branch-picker { height: 2rem; border-radius: 999px; padding-inline: 0.625rem; color: var(--text-faint); } .composer-bar .branch-picker:hover, .composer-bar .branch-picker[aria-expanded="true"] { background-color: var(--hover); color: var(--foreground); } /* ── Pages ── The first screens and the pages (Welcome, Connect, Settings, Usage, Team, Inbox): only what a utility cannot say. */ /* A plate's two tones (ui/kit/plate.tsx): a dithered photograph printed in dusk navy and peach, in every theme and mode, as a print on the wall. The box shows the dark tone until the plate has drawn. A theme may set its own pair. */ .plate { --plate-lo: #1d2240; --plate-hi: #f3c9a8; background-color: var(--plate-lo); } /* ── Art directions ── Riso and Stitch (docs/design-glass.md, "Art directions"), as colours: their inks, stock and floss. Liquid Glass and its colourways are the blocks above. Each block sets T3's names, as every catalog theme does. What the panels are made of, the face and the texture are aspects of their own (the blocks after these, on data-material, data-face and data-texture), so Riso's inks go on glass and felt takes T3's colours. The backdrop's inks are in backdrop/inks.ts and follow these by hand. */ /* Riso, dark: black stock, one fluorescent pink, cream type. */ :root[data-palette="riso"][data-mode] { --spot: #ff48b0; --background: #161414; --foreground: #f3eee3; --card: #1d1a1a; --popover: #221f1f; --primary: var(--spot); --primary-foreground: #121111; --secondary: rgb(243 238 227 / 0.06); --muted: rgb(243 238 227 / 0.05); --muted-foreground: #b9b2a6; --secondary-label: #a39c90; --info-foreground: #ff7cc6; --accent: rgb(255 72 176 / 0.16); --border: rgb(243 238 227 / 0.14); --input: rgb(243 238 227 / 0.24); --ring: var(--spot); --message: #1d1a1a; --sidebar: #1a1818; --sidebar-row-hover: rgb(243 238 227 / 0.06); --sidebar-row-active: rgb(255 72 176 / 0.16); --code: #0f0e0e; --highlight: transparent; --scrollbar: rgb(243 238 227 / 0.2); --scrollbar-hover: rgb(243 238 227 / 0.34); --bubble: #2a1b24; --segment: rgb(243 238 227 / 0.12); --backdrop: #121111; /* The agents in the inks: pink, cream, and the two mixed. */ --kind-claude: var(--spot) !important; --kind-codex: #f3eee3 !important; --kind-opencode: #ffa3d6 !important; --kind-antigravity: #a59e93 !important; --kind-pi: #c9e6b4 !important; --syn-keyword: #ff48b0; --syn-string: #f3eee3; --syn-comment: #8a837a; --syn-number: #ff8fcf; --syn-function: #f3eee3; --syn-type: #ffb3dc; --syn-punct: #a59e93; --syn-variable: #e7e1d5; --syn-tag: #ff48b0; --syn-attr: #ffb3dc; --syn-operator: #b9b2a6; } /* Riso, light: the same press on warm paper. The pink is the accent and the agents. */ :root[data-palette="riso"][data-mode="light"] { --background: #f7f3ea; --foreground: #1d1b1b; --card: #fbf8f1; --popover: #fffdf8; --primary-foreground: #1d1b1b; --secondary: rgb(29 27 27 / 0.05); --muted: rgb(29 27 27 / 0.04); --muted-foreground: #5d5853; --secondary-label: #6e6862; --info-foreground: #c2006f; --accent: rgb(255 72 176 / 0.18); --border: rgb(29 27 27 / 0.16); --input: rgb(29 27 27 / 0.28); --message: #fbf8f1; --sidebar: #efe9dc; --sidebar-row-hover: rgb(29 27 27 / 0.05); --sidebar-row-active: rgb(255 72 176 / 0.2); --code: #efe9dc; --scrollbar: rgb(29 27 27 / 0.22); --scrollbar-hover: rgb(29 27 27 / 0.36); --bubble: #ffd9ee; --segment: #fffdf8; --backdrop: #f3eee3; --kind-claude: #e0128e !important; --kind-codex: #1d1b1b !important; --kind-opencode: #a3306f !important; --kind-antigravity: #6e6862 !important; --kind-pi: #4a6b35 !important; --syn-keyword: #d4007a; --syn-string: #1d1b1b; --syn-comment: #8a847c; --syn-number: #c2187a; --syn-function: #1d1b1b; --syn-type: #9a1360; --syn-punct: #6e6862; --syn-variable: #2d2a2a; --syn-tag: #d4007a; --syn-attr: #9a1360; --syn-operator: #5d5853; } /* T3's names map onto Tabletop's in a rule above that outranks a theme block (:root[data-palette]:not(...) ×3), and it makes links the accent. Pink text is too faint on paper, so riso's links print in black; the repeated attributes only match that rule's weight. */ :root[data-palette="riso"][data-palette][data-mode="light"][data-mode] { --link: #1d1b1b; --info-foreground: #c2006f; } /* Stitch, dark: indigo denim behind, felt in front, gold floss. */ :root[data-palette="stitch"][data-mode] { --background: #1b2036; --foreground: #efe6d2; --card: #222842; --popover: #262d4a; --primary: #e4b04a; --primary-foreground: #1b2036; --secondary: rgb(239 230 210 / 0.06); --muted: rgb(239 230 210 / 0.05); --muted-foreground: #b9b2a0; --secondary-label: #a29c8c; --info-foreground: #e9c172; --accent: rgb(228 176 74 / 0.14); --border: rgb(239 230 210 / 0.12); --input: rgb(239 230 210 / 0.2); --ring: #e4b04a; --message: #222842; --sidebar: #1e2440; --sidebar-row-hover: rgb(239 230 210 / 0.06); --sidebar-row-active: rgb(239 230 210 / 0.11); --code: #161a2d; --highlight: rgb(239 230 210 / 0.05); --scrollbar: rgb(239 230 210 / 0.2); --scrollbar-hover: rgb(239 230 210 / 0.32); --bubble: #33354a; --segment: rgb(239 230 210 / 0.13); --backdrop: #26335c; /* The agents in floss: rust, ecru, sky and plum. */ --kind-claude: #e0824c !important; --kind-codex: #e9dcc0 !important; --kind-opencode: #9fbad9 !important; --kind-antigravity: #c993c0 !important; --kind-pi: #a6d4a0 !important; --syn-keyword: #e4b04a; --syn-string: #a7c196; --syn-comment: #8c8a85; --syn-number: #f0a5b8; --syn-function: #9fbad9; --syn-type: #d7a35f; --syn-punct: #a8a294; --syn-variable: #efe6d2; --syn-tag: #e07a5f; --syn-attr: #c993c0; --syn-operator: #b9b2a0; } /* Stitch, light: oatmeal felt on natural linen, red floss for the accent. */ :root[data-palette="stitch"][data-mode="light"] { --background: #f4ecdc; --foreground: #2b2420; --card: #f8f2e6; --popover: #fbf7ee; --primary: #b8262d; --primary-foreground: #fff8ef; --secondary: rgb(43 36 32 / 0.05); --muted: rgb(43 36 32 / 0.04); --muted-foreground: #6b5f53; --secondary-label: #7c7064; --info-foreground: #9c1f26; --accent: rgb(184 38 45 / 0.1); --border: rgb(43 36 32 / 0.13); --input: rgb(43 36 32 / 0.22); --ring: #b8262d; --message: #f8f2e6; --sidebar: #ece2cd; --sidebar-row-hover: rgb(43 36 32 / 0.05); --sidebar-row-active: rgb(43 36 32 / 0.09); --code: #efe6d4; --highlight: rgb(255 255 255 / 0.4); --scrollbar: rgb(43 36 32 / 0.2); --scrollbar-hover: rgb(43 36 32 / 0.34); --bubble: #f0d9cf; --segment: #fbf7ee; --backdrop: #d9c8a7; --kind-claude: #c4581b !important; --kind-codex: #3a2a20 !important; --kind-opencode: #283a6b !important; --kind-antigravity: #8e4f7a !important; --kind-pi: #3f6b45 !important; --syn-keyword: #b8262d; --syn-string: #2f5d45; --syn-comment: #95897a; --syn-number: #8e4f7a; --syn-function: #283a6b; --syn-type: #a0522d; --syn-punct: #6b5f53; --syn-variable: #2b2420; --syn-tag: #b8262d; --syn-attr: #8e4f7a; --syn-operator: #4a3f37; } /* The stitch's ground, in the gutters round the panels: the cloth's own weave without the picture, denim's twill or linen's plain weave. It goes with the process, in any theme's colours. */ :root[data-process="stitch"][data-mode] body { background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.07) 0 1px, transparent 1px 4px), repeating-linear-gradient(45deg, rgb(0 0 0 / 0.12) 0 1px, transparent 1px 4px), var(--backdrop); } :root[data-process="stitch"][data-mode="light"] body { background: repeating-linear-gradient(0deg, rgb(80 60 40 / 0.1) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgb(255 255 255 / 0.16) 0 1px, transparent 1px 3px), var(--backdrop); } /* The pages' plates (ui/kit/plate.tsx) in each direction's inks: a riso prints its 1-bit plates in the spot colour, on black or on paper; the stitch charts them in ecru on denim or in brown floss on linen. */ :root[data-palette="riso"] .plate { --plate-lo: #121111; --plate-hi: #ff48b0; } :root[data-palette="riso"][data-mode="light"] .plate { --plate-lo: #ff48b0; --plate-hi: #f3eee3; } :root[data-palette="stitch"] .plate { --plate-lo: #26335c; --plate-hi: #dfe3e6; } :root[data-palette="stitch"][data-mode="light"] .plate { --plate-lo: #3a2f27; --plate-hi: #e6d7b8; } /* ── Materials ── What the panels are made of (themes.ts MATERIALS), on , in any theme's colours: each derives its tokens from the theme's surfaces, text and accent. Liquid glass is the default, the blocks under "Liquid Glass" above. These come after every theme, so a material outranks a theme's own glass. The editor's swatches (ui/LookEditor.tsx) wear a material on a .look of their own, so each block names .look too. */ /* Paper and vellum: square corners, a rule and a shadow a few pixels out of register in the spot colour: Riso's pink, or for colours with no spot ink a faint impression of the text's, since an accent there reads as a glitch, not a print. Nothing blurs and nothing glows. */ :is(:root, .look)[data-material="paper"][data-mode] { --radius: 4px; --control-radius: 3px; --panel-radius: 5px; --sheet-radius: 4px; --glass-fill: color-mix(in srgb, var(--surface-1) 90%, transparent); --glass-fill-thick: var(--surface-1); --glass-fill-clear: color-mix(in srgb, var(--text) 6%, transparent); --glass-blur: 0px; --glass-saturate: 1; --glass-rim: color-mix(in srgb, var(--text) 42%, transparent); --glass-spec: transparent; --glass-sheen: none; --glass-shadow: 3px 3px 0 0 var(--spot, color-mix(in srgb, var(--text) 16%, transparent)); --glass-shadow-clear: none; --sheet-rim: color-mix(in srgb, var(--text) 34%, transparent); --sheet-shadow: 3px 3px 0 0 var(--spot, color-mix(in srgb, var(--text) 16%, transparent)); --elevation-popover: 3px 3px 0 0 var(--spot, color-mix(in srgb, var(--text) 16%, transparent)); --elevation-card: 0 0 #0000; --tint-sheen: none; --material-edge: none; --sheet-edge: none; } /* On paper, black ink rules the panels. */ :is(:root, .look)[data-material="paper"][data-mode="light"] { --glass-fill: color-mix(in srgb, var(--surface-1) 86%, transparent); --glass-fill-clear: color-mix(in srgb, var(--surface-2) 70%, transparent); --glass-rim: var(--text); --sheet-rim: var(--text); } /* Felt: opaque and soft, each panel with a seam of running stitch just inside its edge. */ :is(:root, .look)[data-material="felt"][data-mode] { --radius: 10px; --control-radius: 6px; --panel-radius: 16px; --sheet-radius: 14px; --glass-fill: color-mix(in oklab, var(--surface-1) 70%, var(--canvas)); --glass-fill-thick: var(--surface-2); --glass-fill-clear: color-mix(in srgb, var(--text) 7%, transparent); --glass-blur: 0px; --glass-saturate: 1; --glass-rim: rgb(0 0 0 / 0.25); --glass-spec: color-mix(in srgb, var(--text) 6%, transparent); --glass-sheen: none; --glass-shadow: 0 1px 0 rgb(0 0 0 / 0.35), 0 14px 28px -14px rgb(0 0 0 / 0.7); --glass-shadow-clear: 0 1px 2px rgb(0 0 0 / 0.12); --sheet-rim: rgb(0 0 0 / 0.25); --sheet-shadow: 0 1px 0 rgb(0 0 0 / 0.35), 0 18px 36px -18px rgb(0 0 0 / 0.7); --elevation-popover: 0 1px 0 rgb(0 0 0 / 0.35), 0 18px 36px -14px rgb(0 0 0 / 0.7); --tint-sheen: none; --material-edge: 1.5px dashed color-mix(in srgb, var(--text) 42%, transparent); --material-edge-offset: -6px; --sheet-edge: 1.5px dashed color-mix(in srgb, var(--text) 30%, transparent); } :is(:root, .look)[data-material="felt"][data-mode="light"] { --glass-fill: color-mix(in oklab, var(--surface-1) 30%, var(--sidebar)); --glass-fill-thick: color-mix(in oklab, var(--surface-1) 60%, var(--sidebar)); --glass-fill-clear: color-mix(in srgb, var(--surface-2) 60%, transparent); --glass-rim: color-mix(in srgb, var(--text) 16%, transparent); --glass-spec: rgb(255 255 255 / 0.4); --glass-shadow: 0 1px 0 color-mix(in srgb, var(--text) 18%, transparent), 0 14px 28px -16px color-mix(in srgb, var(--text) 38%, transparent); --sheet-rim: color-mix(in srgb, var(--text) 16%, transparent); --sheet-shadow: 0 1px 0 color-mix(in srgb, var(--text) 18%, transparent), 0 18px 36px -20px color-mix(in srgb, var(--text) 38%, transparent); --elevation-popover: 0 1px 0 color-mix(in srgb, var(--text) 18%, transparent), 0 18px 36px -16px color-mix(in srgb, var(--text) 38%, transparent); --material-edge: 1.5px dashed color-mix(in srgb, var(--text) 38%, transparent); --sheet-edge: 1.5px dashed color-mix(in srgb, var(--text) 26%, transparent); } /* Plain: the panels are opaque surfaces with a hairline and their lift, and nothing shows through them. */ :is(:root, .look)[data-material="plain"][data-mode] { --glass-fill: var(--surface-1); --glass-fill-thick: var(--surface-2); --glass-fill-clear: color-mix(in srgb, var(--text) 6%, transparent); --glass-blur: 0px; --glass-saturate: 1; --glass-rim: color-mix(in srgb, var(--text) 10%, transparent); --glass-spec: transparent; --glass-sheen: none; --tint-sheen: none; --material-edge: none; --sheet-edge: none; } :is(:root, .look)[data-material="plain"][data-mode="light"] { --glass-rim: rgb(0 0 0 / 0.09); --glass-fill-clear: color-mix(in srgb, var(--text) 5%, transparent); } /* ── Textures ── The grain in the panels (themes.ts TEXTURES), on : a background layer of every glass. */ :is(:root, .look)[data-texture="none"] { --material-texture: none; } /* Fibre in the stock: pale specks on a dark one, grey on paper. */ :is(:root, .look)[data-texture="fibre"] { --material-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.5 0 0 0 -0.24'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); } :is(:root, .look)[data-texture="fibre"][data-mode="light"] { --material-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.16 0.5 0 0 0 -0.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); } /* Felt: matted fibres, a few light and a few dark. */ :is(:root, .look)[data-texture="felt"] { --material-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0 0 0 -0.3'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.45 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"); } :is(:root, .look)[data-texture="felt"][data-mode="light"] { --material-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0 0.14 0.5 0 0 0 -0.28'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.5 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"); } /* ── Display faces ── On (themes.ts FACES). Inter Tight is the default, in @theme above. Space Grotesk sets the UI and Martian Mono the code too; Pixelify Sans letters the headings only, as a sampler its title. */ :root[data-face="space-grotesk"][data-mode] { --font-sans: "Space Grotesk Variable", "Space Grotesk", "Geist", system-ui, sans-serif; --font-mono: "Martian Mono Variable", "Martian Mono", "Geist Mono", ui-monospace, monospace; --font-display: "Space Grotesk Variable", "Space Grotesk", system-ui, sans-serif; --font-weight-semibold: 600; --font-weight-bold: 700; --display-weight: 700; --display-tracking: -0.045em; --text-code: 0.75rem; } :root[data-face="pixelify"][data-mode] { --font-display: "Pixelify Sans", "Geist", system-ui, sans-serif; --display-weight: 500; --display-tracking: 0; } :root[data-face="system"][data-mode] { --font-display: var(--font-sans); --display-weight: 600; --display-tracking: -0.02em; } /* ── Knobs ── Corners (data-corners) and the glass's translucency (data-translucency) over whatever the material says; "auto" leaves it be. Last, so they outrank the materials. */ :root[data-corners="square"][data-mode] { --radius: 3px; --control-radius: 2px; --panel-radius: 4px; --sheet-radius: 3px; } :root[data-corners="soft"][data-mode] { --radius: 12px; --control-radius: 8px; --panel-radius: 18px; --sheet-radius: 14px; } :root[data-corners="round"][data-mode] { --radius: 16px; --control-radius: 10px; --panel-radius: 26px; --sheet-radius: 20px; } /* Paper prints square, and so do square corners: no capsule outlives the press, and the composer is a slip like the panels. */ :root:is([data-material="paper"], [data-corners="square"]) :is(.material, .composer-box, .composer-banner) { border-radius: var(--panel-radius); } :root:is([data-material="paper"], [data-corners="square"]) .plate { border-radius: 3px; } /* Reduce transparency still wins over a clearer glass. */ @media (prefers-reduced-transparency: no-preference) { :root[data-material="glass"][data-translucency="clear"][data-mode] { --glass-fill: color-mix(in srgb, var(--surface-2) 30%, transparent); --glass-fill-thick: color-mix(in srgb, var(--surface-2) 58%, transparent); --glass-blur: 14px; } :root[data-material="glass"][data-translucency="frosted"][data-mode] { --glass-fill: color-mix(in srgb, var(--surface-2) 76%, transparent); --glass-fill-thick: color-mix(in srgb, var(--surface-2) 90%, transparent); --glass-blur: 44px; --glass-saturate: 2; } } :root[data-material="glass"][data-translucency="solid"][data-mode] { --glass-fill: var(--surface-1); --glass-fill-thick: var(--surface-2); --glass-blur: 0px; --glass-sheen: none; } /* Compact: every Tailwind space (padding, gaps, heights) a tenth tighter; the type keeps its size. */ :root[data-density="compact"] { --spacing: 0.225rem; } /* ---- Project tiles (ui/ProjectIcon.tsx, projectIcon.ts) ---------------- A project's monogram in its own hue, as a quiet tint with a hairline of the same hue, so it tells projects apart without becoming a second accent. --tile-h and --tile-size come from the component. A repo's own logo sits bare, as a favicon in a tab. Unlayered, so a row's [&_svg]:size-* does not shrink the paired Deck's glyph. */ .project-tile { --tile-ink: oklch(0.8 0.11 var(--tile-h)); display: inline-grid; flex-shrink: 0; place-items: center; width: var(--tile-size); height: var(--tile-size); overflow: hidden; border-radius: calc(var(--tile-size) * 0.3); background: color-mix(in oklab, var(--tile-ink) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tile-ink) 30%, transparent); color: var(--tile-ink); font-weight: 650; font-size: calc(var(--tile-size) * 0.56); line-height: 1; letter-spacing: -0.03em; user-select: none; } :root[data-mode="light"] .project-tile { --tile-ink: oklch(0.5 0.13 var(--tile-h)); } .project-tile[data-letters="2"] { font-size: calc(var(--tile-size) * 0.42); } .project-tile > svg { width: 62%; height: 62%; } .project-tile[data-logo] { background: none; box-shadow: none; } .project-tile > img { width: 100%; height: 100%; object-fit: contain; } :root[data-material="paper"] .project-tile { border-radius: 1px; } /* The Work Graph's History (ui/graph/History.tsx). Zoomed far out, a card drops its text and reads as a block of its agent's hue, so a long history stays legible and cheap to paint. The canvas sets data-lod as the view moves, without a render, so this has to be a selector, not a utility. */ .history-graph[data-lod="far"] .hist-text { visibility: hidden; } .history-graph[data-lod="far"] .hist-card { background-color: color-mix(in srgb, var(--hue, var(--text)) 30%, var(--surface-1)); }