feat: dark mode toggle with localStorage persistence#82
Open
opensecretsauce wants to merge 2 commits intosorosave-protocol:mainfrom
Open
feat: dark mode toggle with localStorage persistence#82opensecretsauce wants to merge 2 commits intosorosave-protocol:mainfrom
opensecretsauce wants to merge 2 commits intosorosave-protocol:mainfrom
Conversation
- Add WalletAdapter interface (src/lib/wallets/index.ts) - Add FreighterAdapter, xBullAdapter, AlbedoAdapter - Refactor providers.tsx to support multiple wallets + localStorage persistence - Update ConnectWallet.tsx with wallet selection modal - Create src/lib/sdk.ts as local stub for @sorosave/sdk - Create src/lib/wallet.ts with multi-wallet signTransaction routing - Fix all @sorosave/sdk missing module errors — build passes clean
…ol#31) - Enable Tailwind darkMode: 'class' strategy - Add DarkModeToggle component (sun/moon icon, localStorage) - Respects prefers-color-scheme on first visit - Update Navbar to include toggle + dark: variants - Update layout.tsx body with dark:bg-gray-950 + suppressHydrationWarning - transition-colors for smooth theme switching
Author
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.
Closes #31
Changes
darkMode: 'class'strategyDarkModeTogglecomponent with sun/moon icon, localStorage persistence, andprefers-color-schemedetection on first visitNavbarto include toggle with dark: class variantslayout.tsxbody withdark:bg-gray-950+suppressHydrationWarningtransition-colorsbetween themesBuild
pnpm build✅