-
Notifications
You must be signed in to change notification settings - Fork 2
hi #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
hi #28
Conversation
|
@mishratendancy is attempting to deploy a commit to the ankitkumar070456-8174's projects team on Vercel, but is not a member of this team. To resolve this issue, you can:
To read more about collaboration on Vercel, click here. |
WalkthroughAdds a dark mode system: global CSS variables and .dark utilities, a React DarkMode context/provider with persistence and root class toggling, a DarkModeToggle component, provider wiring in layout, and dark-theme styling updates across Navbar, ConceptInputForm, TypewriterText, and ShaderBackground with theme-aware gradients. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant App as RootLayout
participant Provider as DarkModeProvider
participant Storage as localStorage
participant System as matchMedia(prefers-color-scheme)
participant DOM as document.documentElement
participant UI as Child Components
App->>Provider: Mount Provider
Provider->>Storage: Read 'darkMode'
alt stored value exists
Provider->>Provider: set isDarkMode = stored
else no stored value
Provider->>System: Query system preference
System-->>Provider: true/false
Provider->>Provider: set isDarkMode = system
end
Provider->>DOM: Toggle 'dark' class per isDarkMode
Note over UI,DOM: Tailwind dark variants and CSS vars resolve for initial render
User->>UI: See themed UI
sequenceDiagram
autonumber
actor User
participant Toggle as DarkModeToggle
participant Ctx as useDarkMode (context)
participant Storage as localStorage
participant DOM as document.documentElement
participant UI as Themed Components
User->>Toggle: Click button
Toggle->>Ctx: toggleDarkMode()
Ctx->>Ctx: Flip isDarkMode
Ctx->>Storage: Persist 'darkMode'
Ctx->>DOM: Add/Remove 'dark' class
Note over UI: Components re-render using dark/light tokens and variants
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Free 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (8)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
theme
Summary by CodeRabbit
New Features
Style