Selectable accent colour #17
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
accentColorstoring a semantic accent name; defaultblue/admin/settingsshowing each curated accent with a light and dark previewdata-accent="<name>"on<html>from the setting (replacing the fixedbluefrom #16); no inline stylesblueVocabulary: GLOSSARY.md. Decisions: docs/adr/.
Note from #16: with
cacheComponentsthe root layout cannot read request data without making every route dynamic. Read theaccentColorsetting through a cached function ('use cache'+ cache tag, revalidated when the setting is saved) and pass it todata-accent;resolveAccent()insrc/theme/accent.tshandles unknown names.Implemented in PR #32 (feature/17-accent-colour).
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.