The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | /* ============================================================ |
| 2 | Alchemy Design System — Colors & Type |
| 3 | Sunny-forest palette: warm cream parchment, muted moss green, |
| 4 | terracotta accents, walnut browns. Light mode, earthy, calm. |
| 5 | ============================================================ */ |
| 6 | |
| 7 | @import "@fontsource-variable/inter"; |
| 8 | @import "@fontsource-variable/source-serif-4/opsz.css"; |
| 9 | @import "@fontsource-variable/source-serif-4/opsz-italic.css"; |
| 10 | @import "@fontsource-variable/jetbrains-mono"; |
| 11 | @import "@fontsource-variable/caveat"; |
| 12 | |
| 13 | /* iOS Safari enlarges text in blocks it judges too wide to read ("text |
| 14 | autosizing"). Code lines wider than their card got a bigger font than the |
| 15 | lines around them. Keep every font at its declared size. */ |
| 16 | html { |
| 17 | -webkit-text-size-adjust: 100%; |
| 18 | text-size-adjust: 100%; |
| 19 | } |
| 20 | |
| 21 | /* Thin hairline scrollbars everywhere. `scrollbar-width` doesn't inherit, |
| 22 | so it's set on every element; per-component `scrollbar-width: none` |
| 23 | still wins on specificity. */ |
| 24 | * { |
| 25 | scrollbar-width: thin; |
| 26 | scrollbar-color: var(--alc-hairline-3) transparent; |
| 27 | } |
| 28 | |
| 29 | :root { |
| 30 | /* ---------- Brand: muted forest greens ---------- */ |
| 31 | --alc-accent: #5c7a3e; /* moss — primary brand */ |
| 32 | --alc-accent-deep: #38511f; /* deep forest — pressed/emphasis (AAA ≥7:1 on parchment) */ |
| 33 | --alc-accent-warm: #7a9a5e; /* sage — lighter, sunny */ |
| 34 | --alc-accent-bright: #8fb15e; /* lit leaves — accents on cream */ |
| 35 | /* Translucent so surfaces using `accent-soft` (hero CTA cards, asides, |
| 36 | selection) let the underlying texture show through — same approach |
| 37 | as the dark-mode token below. */ |
| 38 | --alc-accent-soft: color-mix(in srgb, #5c7a3e 18%, transparent); |
| 39 | --alc-accent-60: color-mix(in srgb, #5c7a3e 60%, transparent); |
| 40 | --alc-accent-40: color-mix(in srgb, #5c7a3e 40%, transparent); |
| 41 | --alc-accent-12: color-mix(in srgb, #5c7a3e 12%, transparent); |
| 42 | /* Moss for small text and filled markers on the page: ≥7:1 (WCAG AAA). */ |
| 43 | --alc-accent-text: #38511f; |
| 44 | |
| 45 | /* Bindu (yantra centroid dot). Kept in sync with YANTRA_THEMES in |
| 46 | src/brand/yantra.ts, which paints the generated favicons and app icons. */ |
| 47 | --alc-yantra-dot: #9a4f27; |
| 48 | |
| 49 | /* ---------- Secondary: warm terracotta ---------- */ |
| 50 | --alc-terracotta: #c56e3c; |
| 51 | --alc-terracotta-deep: #9a4f27; |
| 52 | --alc-terracotta-soft: color-mix(in srgb, #c56e3c 18%, transparent); |
| 53 | |
| 54 | /* ---------- Surfaces (warm cream / parchment) ---------- */ |
| 55 | --alc-bg: #f5efe3; /* page — parchment */ |
| 56 | --alc-bg-nav: #efe7d6; /* nav, sidebar — a touch deeper */ |
| 57 | --alc-bg-elev-1: #fbf6ea; /* cards, panels — lifted, paper */ |
| 58 | --alc-bg-elev-2: #fffaf0; /* hover / nested */ |
| 59 | --alc-bg-code: #2a2620; /* terminal / code blocks — walnut */ |
| 60 | --alc-bg-sunk: #ebe3d0; /* insets */ |
| 61 | |
| 62 | /* ---------- Neutrals (warm walnut scale) ---------- */ |
| 63 | --alc-walnut-50: #faf6ec; |
| 64 | --alc-walnut-100: #f1ead8; |
| 65 | --alc-walnut-200: #e2d7bc; |
| 66 | --alc-walnut-300: #c7b795; |
| 67 | --alc-walnut-400: #a89572; |
| 68 | --alc-walnut-500: #85714f; |
| 69 | --alc-walnut-600: #68573c; |
| 70 | --alc-walnut-700: #4e402c; |
| 71 | --alc-walnut-800: #363022; |
| 72 | --alc-walnut-900: #2a2620; |
| 73 | --alc-walnut-950: #1a1813; |
| 74 | |
| 75 | /* ---------- Text ---------- */ |
| 76 | --alc-fg-1: #2a2620; /* primary — walnut */ |
| 77 | --alc-fg-2: #4e402c; /* body — deep tan */ |
| 78 | --alc-fg-3: #52442e; /* muted — dark mushroom (AAA ≥7:1 incl. footer bg) */ |
| 79 | --alc-fg-4: #564733; /* tertiary / captions (AAA ≥7:1 incl. footer bg) */ |
| 80 | --alc-fg-invert: #fbf6ea; /* on dark (code/term) */ |
| 81 | --alc-fg-on-accent: #fbf6ea; /* on moss */ |
| 82 | |
| 83 | /* ---------- Hairlines / borders ---------- */ |
| 84 | --alc-hairline: rgba(42, 38, 32, 0.08); |
| 85 | --alc-hairline-2: rgba(42, 38, 32, 0.14); |
| 86 | --alc-hairline-3: rgba(42, 38, 32, 0.22); |
| 87 | |
| 88 | /* ---------- Semantic (status) — earthy ---------- */ |
| 89 | --alc-success: #5c7a3e; /* plan: create — moss */ |
| 90 | --alc-warn: #d49a2a; /* plan: update — honey */ |
| 91 | --alc-danger: #b3462e; /* plan: replace / destroy — brick */ |
| 92 | --alc-info: #4a7a8a; /* info — slate teal */ |
| 93 | --alc-muted: #a89572; /* dim text */ |
| 94 | |
| 95 | /* ---------- Syntax (on walnut bg, SUNRISE — bright & distinct) ---------- */ |
| 96 | --alc-code-keyword: #d4f26a; /* electric spring green — keywords, export, const */ |
| 97 | --alc-code-string: #ffe38a; /* bright honey — strings */ |
| 98 | --alc-code-fn: #ffb968; /* sunrise amber — function calls */ |
| 99 | --alc-code-type: #7ddfff; /* sky cyan — types */ |
| 100 | --alc-code-comment: #b3a27a; /* bright readable tan */ |
| 101 | --alc-code-var: #faf5e3; /* near-white parchment — identifiers */ |
| 102 | --alc-code-literal: #ff9a6b; /* coral sunrise — numbers/literals */ |
| 103 | /* RGB triples for hairlines (`edge`) and raised fills (`lift`) drawn on |
| 104 | the code surface, used as rgba(var(--alc-code-edge), alpha). Marketing |
| 105 | pages swap them in light mode, where the code surface is light. */ |
| 106 | --alc-code-edge: 232, 220, 192; |
| 107 | --alc-code-lift: 255, 255, 255; |
| 108 | /* Window-chrome dots: decorative, the same in both themes. */ |
| 109 | --alc-dot-red: #e0654f; |
| 110 | --alc-dot-yellow: #e8b04a; |
| 111 | --alc-dot-green: #8fb15e; |
| 112 | --alc-code-sink: 0, 0, 0; /* recessed fills: tab bars, inset logs */ |
| 113 | --alc-code-shadow: rgba(0, 0, 0, 0.28); |
| 114 | |
| 115 | /* ---------- Type ---------- */ |
| 116 | --alc-font-sans: |
| 117 | "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; |
| 118 | --alc-font-serif: |
| 119 | "Source Serif 4 Variable", "Source Serif Pro", Georgia, "Times New Roman", serif; |
| 120 | --alc-font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace; |
| 121 | --alc-font-hand: "Caveat Variable", "Comic Sans MS", cursive; /* hand-drawn diagram labels */ |
| 122 | |
| 123 | /* ---------- Radius ---------- */ |
| 124 | --alc-radius-xs: 2px; |
| 125 | --alc-radius-sm: 4px; |
| 126 | --alc-radius: 8px; |
| 127 | --alc-radius-md: 10px; |
| 128 | --alc-radius-lg: 12px; |
| 129 | --alc-radius-xl: 16px; |
| 130 | |
| 131 | /* ---------- Spacing (4px grid) ---------- */ |
| 132 | --alc-space-1: 4px; |
| 133 | --alc-space-2: 8px; |
| 134 | --alc-space-3: 12px; |
| 135 | --alc-space-4: 16px; |
| 136 | --alc-space-5: 24px; |
| 137 | --alc-space-6: 32px; |
| 138 | --alc-space-7: 48px; |
| 139 | --alc-space-8: 64px; |
| 140 | --alc-space-9: 96px; |
| 141 | |
| 142 | /* ---------- Shadows (warm, soft) ---------- */ |
| 143 | --alc-shadow-sm: 0 1px 2px rgba(78, 64, 44, 0.08); |
| 144 | --alc-shadow: 0 4px 14px rgba(78, 64, 44, 0.1); |
| 145 | --alc-shadow-lg: 0 20px 40px rgba(78, 64, 44, 0.14); |
| 146 | --alc-glow: 0 0 0 1px var(--alc-accent-40), 0 0 24px -4px var(--alc-accent-40); |
| 147 | |
| 148 | /* ---------- Motion ---------- */ |
| 149 | --alc-ease: cubic-bezier(0.2, 0, 0, 1); |
| 150 | --alc-dur-fast: 120ms; |
| 151 | --alc-dur: 180ms; |
| 152 | --alc-dur-slow: 320ms; |
| 153 | } |
| 154 | |
| 155 | /* ============================================================ |
| 156 | Dark mode — "night forest, walnut interior". |
| 157 | Same warm/earthy logic as light, inverted around the walnut |
| 158 | scale. The page joins the dark code-block surface; cream |
| 159 | becomes the text scale; moss & terracotta lift one step so |
| 160 | they read on dark. |
| 161 | ============================================================ */ |
| 162 | |
| 163 | [data-theme="dark"] { |
| 164 | /* Brand: lifted moss for emphasis on dark walnut */ |
| 165 | --alc-accent: #7a9a5e; |
| 166 | --alc-accent-deep: #a3c473; /* emphasis / text-accent — lifted, not darkened */ |
| 167 | --alc-accent-warm: #8fb15e; |
| 168 | --alc-accent-bright: #b3d188; |
| 169 | --alc-accent-soft: color-mix(in srgb, #7a9a5e 22%, transparent); |
| 170 | --alc-accent-60: color-mix(in srgb, #a3c473 60%, transparent); |
| 171 | --alc-accent-40: color-mix(in srgb, #a3c473 40%, transparent); |
| 172 | --alc-accent-12: color-mix(in srgb, #a3c473 18%, transparent); |
| 173 | |
| 174 | /* Bindu, lifted for the dark page. */ |
| 175 | --alc-yantra-dot: #d8835a; |
| 176 | |
| 177 | --alc-accent-text: #b9d68d; |
| 178 | |
| 179 | /* Secondary: warm terracotta — lifted */ |
| 180 | --alc-terracotta: #d8835a; |
| 181 | --alc-terracotta-deep: #e89a72; |
| 182 | --alc-terracotta-soft: color-mix(in srgb, #d8835a 20%, transparent); |
| 183 | |
| 184 | /* Surfaces — page joins the code-block aesthetic. In dark mode the |
| 185 | code surface LIFTS above the page (vs. light mode where it sinks), |
| 186 | so terminal/code chrome still reads as a distinct card on the page. */ |
| 187 | --alc-bg: #14110d; |
| 188 | --alc-bg-nav: #1a1613; |
| 189 | --alc-bg-elev-1: #221e18; |
| 190 | --alc-bg-elev-2: #2a2620; |
| 191 | --alc-bg-code: #2a2620; /* same as light-mode code surface — chrome/syntax tuning carries over */ |
| 192 | --alc-bg-sunk: #100c08; |
| 193 | |
| 194 | /* Text — cream scale */ |
| 195 | --alc-fg-1: #faf6ec; /* primary — parchment */ |
| 196 | --alc-fg-2: #e2d7bc; /* body — washed parchment */ |
| 197 | --alc-fg-3: #c0af89; /* muted — lifted walnut (AAA ≥7:1 on elevated cards) */ |
| 198 | --alc-fg-4: #b9a881; /* tertiary / captions (AAA ≥7:1 on elevated cards) */ |
| 199 | /* `--alc-fg-invert` is text on the dark code surface, which stays dark in |
| 200 | both modes — so this token is the same in light and dark. */ |
| 201 | --alc-fg-invert: #fbf6ea; |
| 202 | --alc-fg-on-accent: #fbf6ea; |
| 203 | |
| 204 | /* Hairlines — cream over walnut */ |
| 205 | --alc-hairline: rgba(250, 246, 236, 0.08); |
| 206 | --alc-hairline-2: rgba(250, 246, 236, 0.14); |
| 207 | --alc-hairline-3: rgba(250, 246, 236, 0.22); |
| 208 | |
| 209 | /* Semantic — lifted on dark for AA contrast */ |
| 210 | --alc-success: #8fb15e; |
| 211 | --alc-warn: #e8b04a; |
| 212 | --alc-danger: #d76a4e; |
| 213 | --alc-info: #6da4b4; |
| 214 | --alc-muted: #85714f; |
| 215 | |
| 216 | /* Shadows — heavier black, less warmth shows through */ |
| 217 | --alc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); |
| 218 | --alc-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); |
| 219 | --alc-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6); |
| 220 | --alc-glow: 0 0 0 1px var(--alc-accent-40), 0 0 24px -4px var(--alc-accent-40); |
| 221 | } |
| 222 | |
| 223 | /* ============================================================ |
| 224 | Semantic text styles |
| 225 | ============================================================ */ |
| 226 | |
| 227 | .alc-display { |
| 228 | font-family: var(--alc-font-serif); |
| 229 | font-size: 76px; |
| 230 | line-height: 1.02; |
| 231 | letter-spacing: -0.02em; |
| 232 | font-weight: 500; |
| 233 | color: var(--alc-fg-1); |
| 234 | } |
| 235 | |
| 236 | .alc-h1 { |
| 237 | font-family: var(--alc-font-serif); |
| 238 | font-size: 52px; |
| 239 | line-height: 1.06; |
| 240 | letter-spacing: -0.015em; |
| 241 | font-weight: 500; |
| 242 | color: var(--alc-fg-1); |
| 243 | } |
| 244 | |
| 245 | .alc-h2 { |
| 246 | font-family: var(--alc-font-serif); |
| 247 | font-size: 34px; |
| 248 | line-height: 1.15; |
| 249 | letter-spacing: -0.01em; |
| 250 | font-weight: 500; |
| 251 | color: var(--alc-fg-1); |
| 252 | } |
| 253 | |
| 254 | .alc-h3 { |
| 255 | font-family: var(--alc-font-sans); |
| 256 | font-size: 22px; |
| 257 | line-height: 1.25; |
| 258 | letter-spacing: -0.01em; |
| 259 | font-weight: 600; |
| 260 | color: var(--alc-fg-1); |
| 261 | } |
| 262 | |
| 263 | .alc-h4 { |
| 264 | font-family: var(--alc-font-sans); |
| 265 | font-size: 17px; |
| 266 | line-height: 1.35; |
| 267 | font-weight: 600; |
| 268 | color: var(--alc-fg-1); |
| 269 | } |
| 270 | |
| 271 | .alc-eyebrow { |
| 272 | font-family: var(--alc-font-mono); |
| 273 | font-size: 12px; |
| 274 | line-height: 1; |
| 275 | letter-spacing: 0.12em; |
| 276 | text-transform: uppercase; |
| 277 | font-weight: 500; |
| 278 | color: var(--alc-accent-deep); |
| 279 | } |
| 280 | |
| 281 | .alc-body-lg { |
| 282 | font-family: var(--alc-font-sans); |
| 283 | font-size: 18px; |
| 284 | line-height: 1.6; |
| 285 | font-weight: 400; |
| 286 | color: var(--alc-fg-2); |
| 287 | } |
| 288 | |
| 289 | .alc-body { |
| 290 | font-family: var(--alc-font-sans); |
| 291 | font-size: 15px; |
| 292 | line-height: 1.6; |
| 293 | font-weight: 400; |
| 294 | color: var(--alc-fg-2); |
| 295 | } |
| 296 | |
| 297 | .alc-small { |
| 298 | font-family: var(--alc-font-sans); |
| 299 | font-size: 13px; |
| 300 | line-height: 1.5; |
| 301 | color: var(--alc-fg-3); |
| 302 | } |
| 303 | |
| 304 | .alc-caption { |
| 305 | font-family: var(--alc-font-sans); |
| 306 | font-size: 12px; |
| 307 | line-height: 1.4; |
| 308 | color: var(--alc-fg-4); |
| 309 | } |
| 310 | |
| 311 | .alc-code { |
| 312 | font-family: var(--alc-font-mono); |
| 313 | font-size: 14px; |
| 314 | line-height: 1.55; |
| 315 | font-variant-ligatures: none; |
| 316 | color: var(--alc-fg-invert); |
| 317 | } |
| 318 | |
| 319 | .alc-code-inline { |
| 320 | font-family: var(--alc-font-mono); |
| 321 | font-size: 0.9em; |
| 322 | padding: 0.12em 0.38em; |
| 323 | border-radius: var(--alc-radius-sm); |
| 324 | background: var(--alc-bg-sunk); |
| 325 | border: 1px solid var(--alc-hairline); |
| 326 | color: var(--alc-fg-1); |
| 327 | white-space: nowrap; |
| 328 | vertical-align: baseline; |
| 329 | } |
| 330 | |
| 331 | /* In large headings the inline-code pill's padding + border makes the box |
| 332 | taller than the heading's line-height, so it visually clips into adjacent |
| 333 | lines. Shrink it slightly and align to baseline so it sits cleanly. */ |
| 334 | h1 .alc-code-inline, |
| 335 | h2 .alc-code-inline, |
| 336 | h3 .alc-code-inline { |
| 337 | font-size: 0.78em; |
| 338 | padding: 0.08em 0.34em; |
| 339 | vertical-align: 0.04em; |
| 340 | line-height: 1; |
| 341 | } |
| 342 | |
| 343 | .alc-hand { |
| 344 | font-family: var(--alc-font-hand); |
| 345 | font-size: 40px; |
| 346 | line-height: 1; |
| 347 | font-weight: 600; |
| 348 | color: var(--alc-accent-deep); |
| 349 | } |
| 350 | |
| 351 | .alc-text-accent { |
| 352 | color: var(--alc-accent-deep); |
| 353 | font-style: italic; |
| 354 | font-family: var(--alc-font-serif); |
| 355 | font-weight: 500; |
| 356 | } |
| 357 | |
| 358 | /* ============================================================ |
| 359 | Body defaults |
| 360 | ============================================================ */ |
| 361 | |
| 362 | body.alc-root, |
| 363 | .alc-root { |
| 364 | background: var(--alc-bg); |
| 365 | color: var(--alc-fg-2); |
| 366 | font-family: var(--alc-font-sans); |
| 367 | font-size: 15px; |
| 368 | line-height: 1.6; |
| 369 | -webkit-font-smoothing: antialiased; |
| 370 | -moz-osx-font-smoothing: grayscale; |
| 371 | } |
| 372 | |
| 373 | ::selection { |
| 374 | background: var(--alc-accent-soft); |
| 375 | color: var(--alc-fg-1); |
| 376 | } |
| 377 | |
| 378 | /* Code surfaces stay dark walnut in BOTH themes, but the global selection |
| 379 | foreground follows the page (--alc-fg-1 is dark walnut in light mode) — |
| 380 | selecting code text would paint dark-on-dark. Pin selection inside code |
| 381 | surfaces to the dark-surface palette instead. */ |
| 382 | .expressive-code ::selection, |
| 383 | .alc-term ::selection, |
| 384 | .alc-code::selection, |
| 385 | .alc-code ::selection { |
| 386 | background: #5c7a3e66; /* editor.selectionBackground from the walnut EC theme */ |
| 387 | color: var(--alc-code-var); |
| 388 | } |
| 389 | |
| 390 | /* ---------- Reduced motion (site-wide) ---------- |
| 391 | Visitors who ask for less motion get every CSS animation and transition |
| 392 | jumped to its end state (entrance animations land on their final frame, |
| 393 | looping pulses and spinners stop) and instant scrolling. Canvas and |
| 394 | scripted demos check the same media query in JS. */ |
| 395 | @media (prefers-reduced-motion: reduce) { |
| 396 | *, |
| 397 | *::before, |
| 398 | *::after { |
| 399 | animation-duration: 0.01ms !important; |
| 400 | animation-delay: 0s !important; |
| 401 | animation-iteration-count: 1 !important; |
| 402 | transition-duration: 0.01ms !important; |
| 403 | transition-delay: 0s !important; |
| 404 | } |
| 405 | html, |
| 406 | * { |
| 407 | scroll-behavior: auto !important; |
| 408 | } |
| 409 | } |