Light theme: the terminal and code blocks sat on --crust, a mid grey there, so text was 2:1 to 3:1. They now use --code-bg, which keeps 95% of a light palette's background (58% of the dark one's, as before); scrims and shadows keep --crust. Dark --muted goes from 4.44:1 to 4.72:1 on --bg. The stored theme and motion overrides are set by a blocking boot script in the head (the page allows no inline script), so a light OS no longer paints light before the dark default; a test keeps its keys in step with the shell. color-scheme follows the palette, so native controls and scrollbars match a forced theme. Five infinite animations (dashboard banner, container icon, pending badge, warn banner, spinner) now honour reduced motion and the in-app motion setting, ConnectionDot uses the same three-rule shape as the others, and the hive-warn element honours the system preference. Keyboard focus gets a default ring, and the cancel button and pane divider keep a visible one.
32 lines
1.5 KiB
HTML
32 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>hyperhive swarm</title>
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<!-- PWA installability — design-guide.md's "Layout & viewport"
|
|
section already asserted swarm-ui is installable; this is what
|
|
actually backs it. `manifest.webmanifest` + icons are
|
|
nix-packaged (nix/packages/swarm-ui.nix), same as favicon.svg
|
|
above — not part of the plain npm build output. -->
|
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
<meta name="theme-color" content="#cba6f7" />
|
|
<!-- Safari ignores the manifest spec entirely — these are its own
|
|
"Add to Home Screen" affordances, same icon/name the manifest
|
|
already declares for every other browser. -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-title" content="swarm" />
|
|
<link rel="apple-touch-icon" href="/icon-192.png" />
|
|
<!-- Blocking on purpose: it sets the stored theme before the first paint. -->
|
|
<script src="/static/theme-boot.js"></script>
|
|
<link rel="stylesheet" href="/static/colors.css" />
|
|
<link rel="stylesheet" href="/static/theme.css" />
|
|
<link rel="stylesheet" href="/static/swarm-ui.css" />
|
|
<link rel="stylesheet" href="/static/main.css" />
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/static/main.js"></script>
|
|
</body>
|
|
</html>
|