Add the Fluksio look, and make it the one a dashboard starts in

Two looks were somebody else's language spoken well, and neither was the
product's. A dashboard nobody has dressed yet should look like the rest
of the app, so there is now a third set that follows the root
DESIGN-GUIDELINES.md to the letter — `--card` surfaces told from the page
by a hairline and a low shadow rather than by colour, every control a
pill, 16px panels, frosted floating chrome, one slate-blue accent spent
on what a person can act on — and it is what `look` means when nothing
says otherwise.

That also turns the exemption the other way round. The dashboard is still
allowed to look unlike the product; it just no longer does so by default.
An existing dashboard, which has never named a look, lands on the design
it had before any of this.

Restraint is the style rather than an omission here: no ripple, no glow,
no lift, and a press answered by the colour changing. The one deliberate
departure is the selector, which holds its choice in `--primary` rather
than the `--accent` the segmented rule asks for — that is a decision
about the widget, not about the look, and a control must not change what
it signals when the drawing changes. All three sets hold it the same way.
This commit is contained in:
2026-08-24 14:25:13 +02:00
parent 856693110f
commit 3604e85efb
12 changed files with 1008 additions and 25 deletions
@@ -34,7 +34,7 @@ import { isLight, parsePalette, rolesOf } from "./ui/core/theme"
export const SETTING_DTYPES = {
theme: "str",
locked: "bool",
/** `glass` or `material`; anything else is material. */
/** `fluksio`, `material` or `glass`; anything else is `fluksio`. */
look: "str",
/** Hex colours, roles by position — see `ui/core/theme.ts`. */
palette: "list",
@@ -88,17 +88,18 @@ export function useSetting(
return live?.value ?? setting.value
}
/** What a dashboard is drawn as. Anything unrecorded is material. */
export type Look = "glass" | "material"
/** What a dashboard is drawn as. Anything unrecorded wears the app's own. */
export type Look = "fluksio" | "glass" | "material"
/** The looks, as the editor offers them. */
/** The looks, as the editor offers them. The dashboard's own comes first. */
export const LOOK_CHOICES = [
["fluksio", "Fluksio"],
["material", "Material"],
["glass", "Glass"],
] as const
export const lookOf = (value: unknown): Look =>
value === "glass" ? "glass" : "material"
value === "glass" ? "glass" : value === "material" ? "material" : "fluksio"
/** Which of the two component sets draws this dashboard. */
export const useDashboardLook = (