feat(design): OcAppearanceMenu — one control for mode + theme (0.4.0)#21
Merged
Conversation
Single header dropdown consolidating BOTH appearance axes so every family site carries exactly one control instead of two: • mode — light / dark / system (next-themes) • theme — the registered skins (data-oc-theme, persisted .ochk.io) One Palette icon → dropdown with a segmented light/dark/system row + the theme list. Self-contained (no Radix); requires OcThemeProvider + next-themes ThemeProvider (already on every site). Patterns/App Chrome story updated to use it in place of separate ThemeToggle + OcThemePicker (both kept for standalone use / mobile drawer). 73 stories, all browser-verified render+styled. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Single header dropdown for BOTH light/dark/system mode AND theme/skin choice — one Palette icon, one menu, so every site has one appearance control instead of two. Self-contained; composes useTheme + useOcSkin. Patterns/App Chrome updated to use it. ThemeToggle + OcThemePicker kept for standalone/mobile use. 73 stories, all verified.