mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 01:07:08 +00:00
- @hanzo/appearance 0.2.14: bootScript({ base: { theme: 'system' } }) in <head> (byte-identical to
the script in live hanzo.ai's HTML) replays localStorage hanzo.appearance.painted before the first
paint, else follows prefers-color-scheme; it sets light/t_light or dark/t_dark, color-scheme and
data-scheme. components/Appearance.jsx calls useAppearance({ install: { theme: 'system' } }) once
at the root (Hanzo's README), so the person's saved choice (hanzo.appearance, kept in Hanzo IAM)
wins over the device, and "system" follows the device live. No visible switch: live shows none.
- <html> is served as live serves it, class="t_dark" (the hard-coded "light t_light" is gone); React
never writes the classes, so hydration and navigation keep them.
- @hanzo/design 0.5.39 tokens/colors.css imported; every dark value of ours is now a reference to
Hanzo's token (--ink: var(--foreground), --bg: var(--background), --card: var(--muted), ... ),
under Hanzo's own :not(.light) selector, in globals.css, system.css and the shared light-dark()
greys and scrims. No colour of ours in dark; light values unchanged.
- react/react-dom 19.1.1 -> 19.2.8: @hanzo/appearance's peer range (>=19.2.8); Next 15.5.4 accepts it.
- docs/DARK-MODE.md rewritten for the package: how it works, how to test like live, the token map,
how a page chat converts its pages (darkcheck.mjs / lightcheck.mjs).
Measured: saved dark on a light device -> dark, saved light on a dark device -> light (survives a
device flip), nothing saved -> follows the device and flips live; right class at first paint and
after hydration, 0 page errors. Bright mode 0 computed-colour diffs vs 3c802582 on / /pricing /chat
/enso /models /about at 1470 and 375. / /pricing /chat in both modes at 1470x801 and 375x812:
0 console errors, no sideways scroll. Build exits 0 (HZ_LIVE_OFFLINE=1: hanzo.ai is blocked here).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdxPteCvBL7f74SauJt
26 lines
2.3 KiB
CSS
26 lines
2.3 KiB
CSS
/* LaunchClose: "Get X" grows to its moment beside the page's own Sigil, framed as a flat art tile */
|
|
.lx-close { position: relative; padding: clamp(72px, 11vw, 188px) 0; border-top: 1px solid var(--line); }
|
|
.lx-close-in { position: relative; display: grid; grid-template-columns: 8fr 5fr; column-gap: clamp(32px, 5vw, 72px); align-items: center; }
|
|
.lx-close-copy { min-width: 0; }
|
|
.lx-close-h { margin: 0; font-weight: 497; font-size: 64px; line-height: 1.02; letter-spacing: -.04em; color: var(--ink); transform-origin: 0 100%; text-wrap: balance; }
|
|
.lx-close-tag { margin-top: 20px; color: var(--ink); }
|
|
.lx-close-acts { display: flex; gap: 10px 24px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
|
|
.lx-close-pull { display: inline-block; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
|
|
.lx-close-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font: 500 13px/1.4 var(--mono); color: var(--faint); }
|
|
.lx-close-facts li { display: flex; align-items: center; min-height: 44px; gap: 6px; }
|
|
.lx-close-repo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 3px; transition: text-decoration-color .15s cubic-bezier(0, 0, .2, 1); }
|
|
.lx-close-repo em { font-style: normal; color: var(--faint); }
|
|
@media (hover: hover) { .lx-close-repo:hover { text-decoration-color: currentColor; } }
|
|
/* the art: the page's living contour field, drawn from its own figures, in ink on a flat tile */
|
|
.lx-close-art { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: light-dark(#f5f5f5, var(--muted)); }
|
|
.lx-close-sigil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; color: #0a0a0a; opacity: .8; }
|
|
.lx-close-mark { position: absolute; left: 24px; bottom: 22px; right: 24px; margin: 0; display: flex; justify-content: space-between; align-items: baseline; font: 500 13px/1 var(--mono); color: var(--ink); }
|
|
.lx-close-mark b { font: 497 26px/1 var(--sans); letter-spacing: -.02em; }
|
|
@media (max-width: 899px) {
|
|
.lx-close-in { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
|
|
.lx-close-h { font-size: 44px; }
|
|
.lx-close-art { aspect-ratio: 5 / 4; order: -1; }
|
|
.lx-close-tag { margin-top: 14px; }
|
|
.lx-close-acts { margin-top: 24px; }
|
|
}
|