Files
CatoandClaude Sonnet 5.5 0f9f57ddeb feat: optional accounts and the fleet's security automation, from templates/app (#17)
* feat: optional accounts and the fleet's security automation, from templates/app

Accounts (better-auth on Drizzle/pg: password, link, passkey, 2FA, OrangeCat,
shared sign-in) in five languages, optional: reading a report needs none and
no health data is stored. Adds format check, integration tests against
Postgres, CodeQL, dependency audit, secret scan, dependabot, and /api/health
that checks the database.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzP8kyUAz5uhKE3mt87Yi7

* fix(deps): sharp 0.35.5, the patched librsvg

The audit job (prod, high) failed on sharp <0.35.5; the lockfile carried over
from the starter predated main's Dependabot bump.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzP8kyUAz5uhKE3mt87Yi7

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 07:37:03 -07:00

136 lines
5.1 KiB
CSS

/**
* Diplodoctor's look. This is the ONE file that decides it.
*
* Everything visual — colour, faces, corner radius, whether a headline is a
* serif in sentence case or a sans in capitals — is a value here, read by the
* shared token package (@bitbaum/design-tokens) and by the few shapes in
* globals.css. No component sets a colour, a face or a radius of its own, so
* changing the look is editing this file and nothing else:
*
* "make it red and white" → change --public-accent (and its dark twin)
* "make it more gothic" → --theme-headline-font, --theme-headline-case,
* and --radius-* to 0
* "a different typeface" → --font-display / --font-sans
* "warmer / cooler greys" → the hue (first number) of the hsl() triples
*
* The values are HSL triples without the hsl() wrapper, because the token
* package composes alpha onto them (`bg-surface-raised/50`).
*
* `lib/theme.test.ts` reads this file and fails if a change makes text
* unreadable (WCAG AA, 4.5:1) in either mode, so a look can be tried freely.
*
* Why it differs from OrangeCat, Loki and Solon: they are tools for people
* who build, black with one orange accent. This is for someone holding a
* result they may be afraid of, so it is warm paper and a deep pine green,
* light by default, rounded, and dark only when they ask or their device does.
* Not clinical blue: that is every hospital's, and the one colour a health
* product cannot be remembered by. Amber and red are kept clear for flagging a
* value, so the brand never competes with them. The structure, the tokens and
* the primitives are the same as the fleet's, so the products still sit together.
*/
:root {
/* — Faces. The display face is for headlines of 1.5rem and up only. ——— */
--font-display: "Instrument Serif", Georgia, serif;
--font-sans: "Inter", system-ui, -apple-system, sans-serif;
--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
/* — How a headline is set. Read by .headline and .headline-caps. ————— */
--theme-headline-font: var(--font-display);
--theme-headline-weight: var(--font-display-weight);
--theme-headline-case: none;
--theme-headline-tracking: -0.01em;
--theme-headline-leading: 1.04;
/* Calls to action: square and capitalised, or soft and sentence case. */
--theme-action-case: none;
--theme-action-tracking: 0.01em;
--theme-action-weight: 600;
/* — Geometry ——————————————————————————————————————————————————————— */
--radius-control: 0.5rem;
--radius-surface: 0.875rem;
--radius-pill: 9999px;
/* — Light. The action colour is a calm clinical blue. —————————————— */
--public-accent: #1c5f4e;
--on-accent: 0 0% 100%;
--accent-hover: #15473b;
--accent-muted: 165 55% 24% / 0.08;
--accent-text: 165 55% 20%;
--surface-public: 40 38% 95%; /* the marketing band; paper here */
--surface-page: 40 33% 97%;
--surface-base: 40 40% 99%;
--surface-raised: 38 26% 94%;
--surface-overlay: 38 22% 91%;
--surface-modal: 40 40% 99%;
--surface-drawer: 40 33% 97%;
--surface-hover: 38 22% 92%;
--text-primary: 24 28% 11%;
--text-secondary: 24 12% 31%;
--text-tertiary: 24 9% 38%;
--text-muted: 24 8% 60%;
--text-inverted: 40 40% 99%;
--border-subtle: 36 20% 88%;
--border-default: 36 16% 80%;
--border-strong: 36 13% 68%;
--border-interactive: 24 12% 31%;
--status-positive: 150 60% 26%;
--status-positive-subtle: 150 60% 26% / 0.08;
--status-warning: 28 90% 30%;
--status-warning-subtle: 28 90% 30% / 0.1;
--status-negative: 0 68% 42%;
--status-negative-subtle: 0 68% 42% / 0.08;
--status-neutral: 24 9% 38%;
}
/* — Dark. Only what differs from light. ——————————————————————————————— */
.dark {
--public-accent: #70cdb5;
--on-accent: 165 40% 9%;
--accent-hover: #95dac9;
--accent-muted: 165 48% 62% / 0.12;
--accent-text: 165 48% 78%;
--surface-public: 24 10% 7%;
--surface-page: 24 9% 8%;
--surface-base: 24 8% 11%;
--surface-raised: 24 8% 14%;
--surface-overlay: 24 7% 17%;
--surface-modal: 24 8% 11%;
--surface-drawer: 24 9% 9.5%;
--surface-hover: 24 7% 15%;
--text-primary: 36 25% 92%;
--text-secondary: 30 10% 68%;
--text-tertiary: 30 8% 60%;
--text-muted: 30 6% 38%;
--text-inverted: 24 10% 8%;
--border-subtle: 24 8% 15%;
--border-default: 24 7% 22%;
--border-strong: 24 6% 28%;
--border-interactive: 30 10% 62%;
--status-positive: 150 55% 52%;
--status-positive-subtle: 150 55% 52% / 0.12;
--status-warning: 38 92% 60%;
--status-warning-subtle: 38 92% 60% / 0.12;
--status-negative: 0 80% 70%;
--status-negative-subtle: 0 80% 70% / 0.12;
--status-neutral: 30 8% 60%;
}
/* The glow and the grid over the marketing band, in the accent's own hue. */
.public-backdrop {
--public-glow-accent: hsl(165 55% 24% / 0.09);
--public-grid-stroke: hsl(24 20% 30% / 0.05);
}
.dark .public-backdrop {
--public-glow-accent: hsl(165 48% 62% / 0.1);
--public-grid-stroke: hsl(36 25% 92% / 0.04);
}