Selectable accent colour #17

Closed
opened 2026-11-01 16:35:06 +01:00 by miko · 3 comments
Owner

Part of #1

Blocked by: #5, #16

What

Admins choose the instance's accent colour (glossary: Accent Colour) from the curated list defined in #16. See ADR-0010.

Acceptance criteria

  • Setting accentColor storing a semantic accent name; default blue
  • Picker on /admin/settings showing each curated accent with a light and dark preview
  • Root layout sets data-accent="<name>" on <html> from the setting (replacing the fixed blue from #16); no inline styles
  • Unknown or removed names fall back to blue

Vocabulary: GLOSSARY.md. Decisions: docs/adr/.

Part of #1 Blocked by: #5, #16 ## What Admins choose the instance's accent colour (glossary: Accent Colour) from the curated list defined in #16. See ADR-0010. ## Acceptance criteria - [ ] Setting `accentColor` storing a semantic accent name; default `blue` - [ ] Picker on `/admin/settings` showing each curated accent with a light and dark preview - [ ] Root layout sets `data-accent="<name>"` on `<html>` from the setting (replacing the fixed `blue` from #16); no inline styles - [ ] Unknown or removed names fall back to `blue` Vocabulary: GLOSSARY.md. Decisions: docs/adr/.
Author
Owner

Note from #16: with cacheComponents the root layout cannot read request data without making every route dynamic. Read the accentColor setting through a cached function ('use cache' + cache tag, revalidated when the setting is saved) and pass it to data-accent; resolveAccent() in src/theme/accent.ts handles unknown names.

Note from #16: with `cacheComponents` the root layout cannot read request data without making every route dynamic. Read the `accentColor` setting through a cached function (`'use cache'` + cache tag, revalidated when the setting is saved) and pass it to `data-accent`; `resolveAccent()` in `src/theme/accent.ts` handles unknown names.
miko referenced this issue from a commit 2026-11-02 12:00:50 +01:00
Author
Owner

Implemented in PR #32 (feature/17-accent-colour).

Implemented in PR #32 (feature/17-accent-colour).
miko closed this issue 2026-11-02 12:00:58 +01:00
Author
Owner

Changed after review: the accent colour can now be chosen freely and is adjusted for contrast automatically; the curated list stays as suggestions. See ADR-0012 and PR #32.

Changed after review: the accent colour can now be chosen freely and is adjusted for contrast automatically; the curated list stays as suggestions. See ADR-0012 and PR #32.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MassiveDynamic/kataba#17
No description provided.