8000 fix(site): responsive landing page + dark theme by dmux · Pull Request #9 · dmux/minilake · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ python3 -m http.server 4599 --directory site
# http://localhost:4599
```

## Theming

The page ships light and dark. Colours live as CSS custom properties on `:root`;
dark redefines only the tokens that change, in two places that must stay in
sync — `@media (prefers-color-scheme:dark)` (guarded so an explicit light choice
still wins, and the only rule that applies without JS) and `[data-theme="dark"]`
(what the toggle sets). A script in `<head>` stamps `data-theme` before the
first paint, so switching never flashes; the choice is kept in `localStorage`
under `minilake-theme`, and while nothing is stored the OS setting leads.

When adding colour, use a token — a literal hex is only correct for something
that sits on a permanently dark surface (`.band`, `.cta`, `.window`, and the
white buttons on them). The architecture diagram is themed the same way: its
styles live in the main stylesheet under `.arch svg`, not inside the SVG, since
an inline `<svg><style>` applies to the whole document.

## Assets

| File | What it is |
Expand Down
Loading
Loading
0