Skip to content

feat(theme): add a system, light and dark theme switch - #58

Merged
raferdev merged 2 commits into
mainfrom
feat/theme-switch
Sep 24, 2026
Merged

raferdev merged 2 commits into
mainfrom
feat/theme-switch

Conversation

@raferdev

Copy link
Copy Markdown
Owner
  • dark token set on :root[data-theme='dark']; components already use tokens
  • inline head script applies the saved or system theme before first paint and follows live system changes while no choice is saved
  • header toggle (System / Light / Dark) persisted under rafer.theme, synced across tabs, tracked as theme_change
  • browser theme-color follows manual choices; shadows get their own token
  • privacy policy discloses the rafer.theme key
  • Storybook toolbar to preview components in either theme
  • tests: theme behaviour, axe in both schemes, light and dark screenshots

- dark token set on :root[data-theme='dark']; components already use tokens
- inline head script applies the saved or system theme before first paint
  and follows live system changes while no choice is saved
- header toggle (System / Light / Dark) persisted under rafer.theme,
  synced across tabs, tracked as theme_change
- browser theme-color follows manual choices; shadows get their own token
- privacy policy discloses the rafer.theme key
- Storybook toolbar to preview components in either theme
- tests: theme behaviour, axe in both schemes, light and dark screenshots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f2b1e3e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Generated on CI with the Checks workflow's update_snapshots run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@raferdev
raferdev merged commit 3b5a76f into main Sep 24, 2026
8 checks passed
@raferdev
raferdev deleted the feat/theme-switch branch September 24, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant