Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 29, 2025

This PR implements the color scheme dropdown in the Header component. It is implemented using a ColorSchemeState context class which reads and writes the selected value from/to local storage and uses a mediaquery if the system value is used. This roughly matches the implementation of the Ember.js application.

This PR also introduces a "decorator" for the Storybook setup, which automatically sets up the context for all storybook pages.

Related

Adds reactive color scheme management with localStorage persistence
and system preference detection via `MediaQuery` from svelte/reactivity.
@Turbo87 Turbo87 added the C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works label Dec 29, 2025
@Turbo87 Turbo87 requested a review from a team December 29, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-svelte C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants