mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-03 23:27:52 +01:00
* wip: front page redesign, CH/LI/US markets, five locales (translations in progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * i18n: German and French for the new front page; one word under budget Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * i18n: Spanish, and the sample case in Italian and Spanish Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * wip: Italian (in progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * feat: a new front page, Switzerland, Liechtenstein and the US, five languages Front page (inspired by what Harvey and Laine do well, for a person rather than a firm): an invented letter worked through as an animation (the name hidden, the deadline with its source, a draft, the person's decision), two calendars (days without, minutes with), the anonymisation drawn, an honest comparison with a chatbot and a lawyer, markets counted from the data, the common problems linking straight into a matter. Headlines in sentence case with an italic accent (one edit in theme.css). The OrangeCat section is gone: no account elsewhere is needed, and the page no longer suggests one. Markets: Liechtenstein and the fifty states join the cantons; one grouping (JURISDICTION_GROUPS) feeds every picker; the agent keeps cantonal, state and federal law apart and Liechtenstein's own order distinct. Languages: Italian and Spanish, whole (site, accounts, mail, sample). The locale list is one SSOT; three hard-coded copies are gone. A letter can be translated into nineteen languages, the same list helpers choose from. Sign-up asks who the account is for (needs help / helps others). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud --------- Co-authored-by: Claude <noreply@anthropic.com>
140 lines
5.4 KiB
CSS
140 lines
5.4 KiB
CSS
/**
|
|
* Causius's look. This is the ONE file that decides it.
|
|
*
|
|
* Everything visual — colour, faces, corner radius, whether a headline is a
|
|
* serif in capitals or a sans in sentence case — 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 (a blackletter face),
|
|
* --theme-headline-case, tracking and weight
|
|
* "a different typeface" → --font-display / --font-sans
|
|
* "warmer / cooler greys" → the hue (first number) of the hsl() triples
|
|
* "rounder" → --radius-control / --radius-surface
|
|
*
|
|
* 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
|
|
* letter that has a deadline in it, so it is the look of a document that
|
|
* deserves to be taken seriously: warm paper, a deep ink-indigo, headlines
|
|
* set like a good book. Light by default, dark when they ask or their
|
|
* device does. Amber and red are kept clear for flagging a deadline or a
|
|
* problem, 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);
|
|
/* Sentence case, as an editor sets a serif: calmer than capitals, and the
|
|
italic of the same face carries the emphasis (`.headline em`). */
|
|
--theme-headline-case: none;
|
|
--theme-headline-tracking: -0.01em;
|
|
--theme-headline-leading: 1.02;
|
|
/* Calls to action: square and capitalised, or soft and sentence case. */
|
|
--theme-action-case: none;
|
|
--theme-action-tracking: 0;
|
|
--theme-action-weight: 600;
|
|
|
|
/* — Geometry. Near-square: a document, not an app. ——————————————— */
|
|
--radius-control: 0.1875rem;
|
|
--radius-surface: 0.25rem;
|
|
--radius-pill: 9999px;
|
|
|
|
/* — Light. Ink-indigo on warm paper. ——————————————————————————————— */
|
|
--public-accent: #2b3a67;
|
|
--on-accent: 0 0% 100%;
|
|
--accent-hover: #1e2a50;
|
|
--accent-muted: 223 41% 28% / 0.08;
|
|
--accent-text: 223 41% 24%;
|
|
|
|
--surface-public: 42 30% 94%; /* the marketing band; paper here */
|
|
--surface-page: 42 30% 96.5%;
|
|
--surface-base: 42 38% 99%;
|
|
--surface-raised: 40 24% 93%;
|
|
--surface-overlay: 40 20% 90%;
|
|
--surface-modal: 42 38% 99%;
|
|
--surface-drawer: 42 30% 96.5%;
|
|
--surface-hover: 40 20% 91.5%;
|
|
|
|
--text-primary: 230 28% 12%;
|
|
--text-secondary: 228 12% 30%;
|
|
--text-tertiary: 228 9% 38%;
|
|
--text-muted: 228 7% 60%;
|
|
--text-inverted: 42 38% 99%;
|
|
|
|
--border-subtle: 38 18% 87%;
|
|
--border-default: 38 14% 79%;
|
|
--border-strong: 36 11% 67%;
|
|
--border-interactive: 228 12% 30%;
|
|
|
|
--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: 228 9% 38%;
|
|
}
|
|
|
|
/* — Dark. Only what differs from light. ——————————————————————————————— */
|
|
.dark {
|
|
--public-accent: #a3b2e8;
|
|
--on-accent: 228 34% 10%;
|
|
--accent-hover: #c0cbf2;
|
|
--accent-muted: 227 62% 76% / 0.13;
|
|
--accent-text: 227 62% 82%;
|
|
|
|
--surface-public: 228 24% 8%;
|
|
--surface-page: 228 22% 9.5%;
|
|
--surface-base: 228 20% 12.5%;
|
|
--surface-raised: 228 18% 15.5%;
|
|
--surface-overlay: 228 16% 19%;
|
|
--surface-modal: 228 20% 12.5%;
|
|
--surface-drawer: 228 22% 10.5%;
|
|
--surface-hover: 228 16% 17%;
|
|
|
|
--text-primary: 40 25% 92%;
|
|
--text-secondary: 228 12% 72%;
|
|
--text-tertiary: 228 10% 64%;
|
|
--text-muted: 228 8% 40%;
|
|
--text-inverted: 228 28% 9%;
|
|
|
|
--border-subtle: 228 14% 17%;
|
|
--border-default: 228 12% 24%;
|
|
--border-strong: 228 10% 31%;
|
|
--border-interactive: 228 14% 66%;
|
|
|
|
--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: 228 10% 64%;
|
|
}
|
|
|
|
/* The glow and the grid over the marketing band, in the accent's own hue. */
|
|
.public-backdrop {
|
|
--public-glow-accent: hsl(223 41% 28% / 0.08);
|
|
--public-grid-stroke: hsl(228 20% 30% / 0.05);
|
|
}
|
|
.dark .public-backdrop {
|
|
--public-glow-accent: hsl(227 62% 76% / 0.1);
|
|
--public-grid-stroke: hsl(40 25% 92% / 0.04);
|
|
}
|