Files
Claude 17d5afe589 dark tokens: selected tabs and chips readable in dark on 12 app and cloud pages
/automations, /billing, /chrome, /cli, /commerce, /edge, /gateway, /idv, /ledger,
/operative, /playground, /pubsub. /billing's Issued chip lost its solid fill in dark
(now var(--primary) / var(--primary-foreground)). On the others the selected label
sits on a sliding pill drawn by a sibling element; the label now carries the pill's
own colour in dark, so it reads the same and James's darkcheck measures it correctly.
Every rule is under html:not(.light): light mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
2026-11-08 14:01:19 +00:00

233 lines
20 KiB
CSS

/* PubSub (Cloud 3), on the deck (docs/build-notes/MASTER.md §3). Grey only: delivery reads by fill, weight, dash and a shape,
never by hue. The hero is the page's one black room (#000). Surfaces are a flat fill or a 1px hairline, never both;
nothing here casts a shadow. Type rests at the kit's sizes; this file only sets the objects. */
.ps { --fill: light-dark(#f2f2f2, var(--surface-2)); --rule: light-dark(rgba(0, 0, 0, .16), var(--border-control)); }
/* hero: the black room. Name, line and one ask left (5); the globe and its bus right (8) */
.ps-hero { background: #000; min-height: calc(100svh - 60px); display: flex; align-items: center; }
.ps-hero-in { display: grid; grid-template-columns: 5fr 8fr; gap: 32px clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 4svh, 48px) 0; }
.ps-hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 8px; }
.ps-h1 { color: #fafafa; }
.ps-tag { color: rgba(255, 255, 255, .78); max-width: 22ch; }
.ps-hero-title .lx-cta { margin-top: 8px; }
/* the object's own toolbar: what it is, the place or replay under the pointer, the pause */
.ps-busw { position: relative; min-width: 0; }
.ps-bar { position: relative; display: flex; align-items: center; gap: 18px; height: 48px; padding-right: 58px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ps-bar-k { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fafafa; white-space: nowrap; }
.ps-bar-k::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fafafa; }
.ps-rp { margin: 0 0 0 auto; min-width: 0; overflow: hidden; white-space: nowrap; font: 500 13px/1 var(--mono); color: #a3a3a3; }
.ps-rp span { display: inline-block; }
.ps-pause { top: 2px; right: 0; }
/* the globe: a fixed-height canvas the hand spins; vertical drags stay the page's scroll on touch */
.ps-globe { position: relative; height: clamp(300px, 44svh, 380px); margin: 0 0 8px; }
.ps-globe canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.ps-globe canvas:active { cursor: grabbing; }
/* the stream: an outlined tray of sequences, the newest one lit */
.ps-tray { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 10px; }
.ps-k { margin: 0; font: 500 13px/1 var(--mono); color: #a3a3a3; white-space: nowrap; }
.ps-seqs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); }
.ps-seqs span { display: grid; place-items: center; height: 40px; border-radius: 10px; background: #171717; font: 500 14px/1 var(--mono); color: #a3a3a3; font-variant-numeric: tabular-nums; cursor: default; transition: background-color .3s cubic-bezier(.4, 0, .2, 1), color .3s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(0, 0, .2, 1); }
.ps-seqs span.new { background: #fafafa; color: #0a0a0a; }
/* a replay from the sequence under the pointer: it and every later one light, the start ringed */
.ps-seqs span.rp { background: #404040; color: #fafafa; }
.ps-seqs span.rp.new { background: #fafafa; color: #0a0a0a; }
.ps-seqs span.from { box-shadow: inset 0 0 0 2px #fafafa; }
/* the subscribers: outlined until a copy lands, then a graphite fill; redelivery is a dashed edge */
.ps-subs { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; margin-bottom: 10px; }
.ps-sub { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; height: 64px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); min-width: 0; transition: border-color .3s cubic-bezier(.4, 0, .2, 1), background-color .3s cubic-bezier(.4, 0, .2, 1); }
.ps-sub b { font: 500 14px/1 var(--mono); color: #fafafa; white-space: nowrap; }
.ps-sub span { font: 500 13px/1 var(--mono); color: #a3a3a3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-sub.got { border-color: transparent; background: #171717; }
.ps-sub.ack > span:not(.ps-one) { color: #fafafa; font-weight: 606; }
.ps-sub.ack > span:not(.ps-one)::before { content: '✓ '; }
.ps-sub.wait { background: transparent; border: 1px dashed #fafafa; }
.ps-sub.wait span { color: #fafafa; }
.ps-sub.wait span::before { content: '↻ '; }
.ps-one { display: inline-flex; gap: 6px; }
.ps-one i { width: 16px; height: 16px; border-radius: 5px; background: #262626; transition: background-color .3s cubic-bezier(.4, 0, .2, 1); }
.ps-one i.on { background: #fafafa; }
/* the ack switch: the pressed pill glides between Hanzo's three choices */
.ps-switch-b { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-switch-b button { position: relative; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; font: 500 14px/1 var(--mono); color: #a3a3a3; cursor: pointer; transition: border-color .15s cubic-bezier(0, 0, .2, 1), color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); touch-action: manipulation; }
.ps-switch-b button span:not(.ps-pill) { position: relative; }
.ps-switch-b button[aria-pressed='true'] { color: #0a0a0a; border-color: #fafafa; }
.ps-switch-b .ps-pill { position: absolute; inset: -1px; border-radius: 999px; background: #fafafa; }
.ps-switch-b button:active { transform: scale(.97); transition-duration: .09s; }
.ps-switch-b button:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
@media (hover: hover) { .ps-switch-b button[aria-pressed='false']:hover { border-color: #fafafa; color: #fafafa; } }
/* put it between your services: the words left (5), events.go right (8), both from the top. events.go is walked once
as it arrives (connect, stream, publish, consume): the beat's lines stay in ink, the rest step back, then all return */
.ps-walk { padding: clamp(72px, 11vw, 188px) 0 clamp(56px, 6vw, 96px); }
.ps-walk-in { display: grid; grid-template-columns: 5fr 8fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ps-walk-l { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 8px; }
.ps-walk h2 { max-width: 12ch; }
.ps-walk .lx-lede { color: var(--ink); }
.ps-mori { align-self: stretch; margin-top: 24px; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #000; }
.ps-mori img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.ps-codew { min-width: 0; }
.ps-codew .cf-ln { transition: opacity .4s cubic-bezier(.4, 0, .2, 1); }
.ps-codew[data-step] .cf-ln { opacity: .28; }
.ps-codew[data-step='conn'] .cf-ln:nth-child(-n+2),
.ps-codew[data-step='stream'] .cf-ln:nth-child(n+4):nth-child(-n+10),
.ps-codew[data-step='pub'] .cf-ln:nth-child(n+12):nth-child(-n+13),
.ps-codew[data-step='sub'] .cf-ln:nth-child(n+15) { opacity: 1; }
/* more than pub/sub: the heading and one drawing held left (5) while the six facts pass right (8). The fact at the
middle of the screen (or under the pointer) is in ink and the drawing draws it; the others step back to grey */
.ps-facts { padding-top: clamp(56px, 6vw, 96px); }
.ps-facts-in { display: grid; grid-template-columns: 5fr 8fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ps-facts-l { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 32px; }
.ps-facts-h { font-size: 44px; line-height: 1.05; letter-spacing: -.03em; max-width: 8ch; }
.ps-figw { position: relative; border-radius: 24px; background: light-dark(#f5f5f5, var(--surface-2)); padding: 52px 20px 20px; }
.ps-fign { position: absolute; top: 20px; left: 24px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: light-dark(#737373, var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.ps-figin { aspect-ratio: 340 / 210; }
.ps-fig { display: block; width: 100%; height: auto; overflow: visible; }
.ps-fig text { font: 500 13px/1 var(--mono); fill: light-dark(#525252, var(--muted-foreground)); }
.ps-fig .t-ink { fill: light-dark(#0a0a0a, var(--foreground)); }
.ps-fig .t-inv { fill: light-dark(#fafafa, var(--background)); }
.ps-fig .f-ink { fill: light-dark(#0a0a0a, var(--foreground)); }
.ps-fig .f-cell { fill: light-dark(#fff, var(--surface-1)); stroke: light-dark(#d4d4d4, var(--border-control)); stroke-width: 1; }
.ps-fig .f-sw { fill: light-dark(#fff, var(--surface-1)); stroke: light-dark(#0a0a0a, var(--foreground)); stroke-width: 1; transition: fill .3s cubic-bezier(.4, 0, .2, 1); }
.ps-fig .f-sw.on { fill: light-dark(#0a0a0a, var(--foreground)); }
.ps-fig .f-out { fill: none; stroke: light-dark(#0a0a0a, var(--foreground)); stroke-width: 1.5; }
.ps-fig .f-ring { fill: light-dark(#fff, var(--surface-1)); stroke: light-dark(#0a0a0a, var(--foreground)); stroke-width: 1.5; }
.ps-fig .f-hist { fill: light-dark(#e5e5e5, var(--surface-3)); }
.ps-fig .s-ink { fill: none; stroke: light-dark(#0a0a0a, var(--foreground)); stroke-width: 1.5; }
.ps-fig .s-faint { fill: none; stroke: light-dark(#d4d4d4, var(--border-control)); stroke-width: 1; }
.ps-fig .s-wall { stroke: light-dark(#0a0a0a, var(--foreground)); stroke-width: 3; stroke-linecap: round; }
.ps-fig .dash { stroke-dasharray: 4 4; }
.ps-fig .f-cell.dash, .ps-fig .f-out.dash { stroke: light-dark(#a3a3a3, var(--text-tertiary)); }
.ps-figm { display: none; }
.ps-flist { list-style: none; margin: 0; padding: 0; }
.ps-flist li { position: relative; padding: 28px 0 32px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.ps-flist li::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: light-dark(#0a0a0a, var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
.ps-flist li.on::before { transform: scaleX(1); }
.ps-fk { color: light-dark(#737373, var(--muted-foreground)); transition: color .3s cubic-bezier(.4, 0, .2, 1); }
.ps-ft { margin: 0; font-size: 21px; font-weight: 497; line-height: 1.3; color: light-dark(#737373, var(--muted-foreground)); transition: color .3s cubic-bezier(.4, 0, .2, 1); }
.ps-fd { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: light-dark(#737373, var(--muted-foreground)); transition: color .3s cubic-bezier(.4, 0, .2, 1); }
.ps-flist li.on .ps-fk, .ps-flist li.on .ps-ft { color: light-dark(#0a0a0a, var(--foreground)); }
.ps-flist li.on .ps-fd { color: light-dark(#525252, var(--text-secondary)); }
/* the quiet room: the heading left (5), the prompt right (8); then the 4222 spec */
.ps-room { background: light-dark(#f5f5f5, var(--surface-2)); padding: clamp(72px, 11vw, 188px) 0; }
.ps-room-top { display: grid; grid-template-columns: 5fr 8fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-bottom: clamp(56px, 7vw, 112px); }
.ps-room-top .lx-headline { max-width: 10ch; }
.ps .lx-paste .cf-paste-t { font-size: 21px; }
.ps-spec .lx-spec-v { font-family: var(--sans); font-size: 44px; letter-spacing: -.03em; }
/* Frame's Paste and Code on the deck: the prompt a flat graphite tile, events.go a white tile with a hairline */
.ps .cf-paste-box { background: light-dark(#171717, var(--surface-1)); color: #fafafa; border: 0; border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .5), inset 0 0 0 1px light-dark(transparent, var(--border)); }
.ps .cf-paste-bar { border-color: rgba(255, 255, 255, .1); }
.ps .cf-paste-bar .x-copy { background: #262626; border-color: rgba(255, 255, 255, .1); color: #fafafa; }
.ps .cf-paste-k { color: #a3a3a3; }
.ps .cf-caret { background: #fafafa; }
.ps .cf-paste-code, .ps .cf-code pre { font-size: 13.5px; line-height: 1.65; }
.ps .cf-code.lt { background: light-dark(#fff, var(--surface-1)); color: light-dark(#0a0a0a, var(--foreground)); border: 1px solid var(--line); border-radius: 24px; }
.ps .cf-code.lt .cf-code-bar > i { background: light-dark(#e4e4e7, var(--surface-3)); }
.ps .cf-code.lt .cf-code-k { color: light-dark(#525252, var(--text-secondary)); }
.ps .cf-code.lt .c { color: light-dark(#737373, var(--muted-foreground)) !important; }
.ps .lx-close { padding-top: clamp(44px, 5vw, 72px); }
/* text links answer a press too (the kit's lx-text has a hover but no press) */
.ps .lx-text, .ps .lx-close-repo { transition: text-decoration-color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
.ps .lx-text:active, .ps .lx-close-repo:active { transform: scale(.97); transition-duration: .09s; }
@media (max-width: 899px) {
.ps-hero { min-height: 0; display: block; }
.ps-hero-in { grid-template-columns: minmax(0, 1fr); padding: 28px 0 40px; gap: 24px; }
.ps-hero-title { gap: 16px; padding: 0; }
.ps-hero-title .lx-cta { margin-top: 0; }
.ps-bar { padding-right: 54px; }
.ps-rp { font-size: 13px; }
.ps-globe { height: 300px; margin: 0 -8px 4px; }
.ps-tray { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ps-k, .ps-sub span { font-size: 14px; }
.ps-seqs { padding: 4px; gap: 4px; border-radius: 14px; }
.ps-seqs span { height: 40px; border-radius: 10px; }
/* two subscribers side by side, the queue group a full-width row under them: every state fits whole, nothing cut */
.ps-subs { grid-template-columns: 1fr 1fr; gap: 6px; }
.ps-sub { gap: 8px; height: 64px; padding: 0 14px; border-radius: 12px; }
.ps-sub.ps-grp { grid-column: 1 / -1; height: 48px; flex-direction: row; align-items: center; justify-content: space-between; }
.ps-one { gap: 4px; }
.ps-one i { width: 14px; height: 14px; border-radius: 4px; }
.ps-switch-b { gap: 6px; flex-wrap: nowrap; }
.ps-switch-b button { padding: 0 12px; flex: 1 1 auto; white-space: nowrap; min-width: 0; }
.ps-walk-in, .ps-facts-in, .ps-room-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.ps-walk-l { gap: 20px; }
.ps-mori { margin-top: 8px; aspect-ratio: 16 / 10; border-radius: 20px; }
.ps-facts-l { position: static; }
.ps-facts-h { font-size: 32px; }
.ps-figw { display: none; }
.ps-figm { display: block; aspect-ratio: 340 / 210; margin-bottom: 8px; padding: 16px; border-radius: 20px; background: light-dark(#f5f5f5, var(--surface-2)); box-sizing: content-box; }
.ps-figm .ps-fig text { font-size: 14px; }
.ps-ft { font-size: 19px; }
.ps-fd { font-size: 16px; }
.ps-flist li { padding: 24px 0 28px; }
.ps-room-top { margin-bottom: 48px; }
.ps-spec .lx-spec-v { font-size: 32px; }
.ps .cf-paste-code, .ps .cf-code pre { font-size: 14px; }
.ps .x-copy, .ps .x-copy-t, .ps .cf-code-k, .ps .cf-paste-k, .ps .lx-close-facts, .ps .lx-close-mark { font-size: 14px; }
}
@media (max-width: 359px) { .ps-switch-b button { padding: 0 8px; font-size: 13px; } .ps-sub { padding: 0 8px; } }
/* ---------- the five entrances (pubsub/PsEnter.jsx), each once; final state with JS off or reduced motion ---------- */
/* 1. line-draw: the tray's and subscribers' outlines draw themselves on first paint, then the cells and cards fill */
.ps-seqs, .ps-sub { position: relative; }
.ps-ol { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
.ps-ol rect { x: .5px; y: .5px; width: calc(100% - 1px); height: calc(100% - 1px); rx: 15px; fill: none; stroke: #fafafa; stroke-width: 1; stroke-dasharray: 1 1; opacity: 0; }
.ps-sub .ps-ol rect { rx: 14px; }
@media (prefers-reduced-motion: no-preference) {
.ps-ol rect { animation: ps-draw 1.1s cubic-bezier(.4, 0, .2, 1) var(--d, 0s) backwards; }
.ps-sub { animation: ps-fill .45s cubic-bezier(0, 0, .2, 1) var(--fd, .6s) backwards; }
.ps-seqs { animation: ps-fill .45s cubic-bezier(0, 0, .2, 1) .9s backwards; }
.ps-seqs > span { animation: ps-cell .3s cubic-bezier(0, 0, .2, 1) calc(.8s + var(--k, 0) * 60ms) backwards; }
}
@keyframes ps-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ps-fill { from { background-color: transparent; border-color: transparent; } }
@keyframes ps-cell { from { opacity: 0; transform: scale(.9); } }
/* 2. cursor-trail: events.go is uncovered up to a crossing cursor and its trail; later a mouse leaves the same trail */
.ps-trail { position: relative; overflow: clip; }
.ps-trail[data-trail='armed'] .ps-walk-in { clip-path: inset(0 100% 0 0); }
.ps-trail[data-trail='play'] .ps-walk-in { clip-path: inset(0 calc(100% - var(--tx, 0%)) 0 0); }
.ps-trail-dots { position: absolute; inset: 0; pointer-events: none; }
.ps-trail-dots i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: light-dark(#0a0a0a, var(--primary)); opacity: 0; will-change: transform; }
/* 3. spring-snap: each fact snaps in from the right with a small overshoot; the held drawing from the left */
[data-snap='armed'] { opacity: 0; transform: translateX(56px); }
[data-snap='armed'][data-from='l'] { transform: translateX(-56px); }
[data-snap='play'] { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .3s cubic-bezier(0, 0, .2, 1); }
/* 4. cover-slide: the quiet room overlaps the facts' empty bottom padding and rides up over it */
.ps-facts { padding-bottom: clamp(140px, 13vw, 200px); }
.ps-cover { position: relative; z-index: 1; margin-top: -112px; border-radius: 32px 32px 0 0; }
/* 5. pixel-resolve: coarse grey pixels over the close's art break into finer ones, then clear */
.ps-px { position: relative; }
.ps-px-veil { position: absolute; z-index: 2; border-radius: 20px; overflow: hidden; pointer-events: none; }
.ps-px-l { position: absolute; inset: 0; display: grid; }
.ps-px-l i { display: block; }
.ps-px-l i.g0 { background: light-dark(#f5f5f5, var(--surface-2)); } .ps-px-l i.g1 { background: light-dark(#ededed, var(--surface-2)); } .ps-px-l i.g2 { background: light-dark(#e5e5e5, var(--surface-3)); } .ps-px-l i.g3 { background: light-dark(#d4d4d4, var(--surface-3)); } .ps-px-l i.g4 { background: light-dark(#a3a3a3, var(--surface-3)); }
.ps-px[data-px='play'] .ps-px-l i { animation: ps-pxo .22s cubic-bezier(0, 0, .2, 1) var(--t, 0s) forwards; }
@keyframes ps-pxo { to { opacity: 0; } }
@media (max-width: 899px) { .ps-cover { margin-top: -80px; border-radius: 24px 24px 0 0; } .ps-facts { padding-bottom: 120px; } }
/* ---------- dark mode (docs/DARK-MODE.md): the kit's .lx tokens are literal values, so this page gives them Hanzo's
dark ones (light values unchanged); the black room keeps its own (.lx-dark) ---------- */
.lx.ps { --ink: light-dark(#0a0a0a, var(--foreground)); --acc: light-dark(#0a0a0a, var(--foreground)); --acc-soft: light-dark(#f2f2f2, var(--surface-2)); --muted: light-dark(#525252, var(--text-secondary)); --soft: light-dark(#525252, var(--muted-foreground)); --faint: light-dark(#737373, var(--text-tertiary)); --silver: light-dark(#d4d4d4, var(--surface-3)); --card: light-dark(#f5f5f5, var(--surface-2)); --line: light-dark(rgba(0, 0, 0, .1), var(--border)); --bg: light-dark(#fff, var(--background)); }
.ps .lx-ghost { border-color: light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
.ps .lx-dark .lx-ghost { border-color: rgba(255, 255, 255, .22); }
/* the kit's ask in a black room reads var(--x-sunk), which is a dark grey in dark mode: keep Hanzo's white primary */
.ps .lx-dark .lx-cta { background: light-dark(#fafafa, var(--primary)); }
@media (hover: hover) { .ps .lx-dark .lx-cta:hover { background: light-dark(#fff, var(--primary)); } }
.ps .cf-code.lt .cf-code-bar .x-copy { background: light-dark(#fff, var(--surface-1)); }
/* shared fills whose dark half reads var(--muted): under the kit's .lx root that name is a text grey, so name the fill */
.ps .lx-close-art, .ps .lx-rel-card { background: light-dark(#f5f5f5, var(--surface-2)); }
/* dark: the selected tab's text sits on a sibling motion pill; its label carries the pill's own colour (after the pill has slid in) so the ancestor walk sees what the eye sees. Light untouched. */
html:not(.light) .ps-switch-b button[aria-pressed='true'] > span:not(.ps-pill) { background: #fafafa; transition: background-color 0s .3s; }