Skip to content

Conversation

@mishratendancy
Copy link
Collaborator

@mishratendancy mishratendancy commented Aug 31, 2025

theme

Summary by CodeRabbit

  • New Features

    • Added full dark mode across the app with a toggle in the Navbar.
    • Theme respects system preference and remembers your choice.
    • Animated toggle with Sun/Moon icons and subtle effects.
    • Background shader, headers, inputs, buttons, and typewriter text adapt to dark mode.
  • Style

    • Introduced a refined purple color palette and dark theme tokens for consistent theming.
    • Improved contrast and readability with new dark utilities for backgrounds, text, and borders.

hi
@vercel
Copy link

vercel bot commented Aug 31, 2025

@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:

  • Make your repository public. Collaboration is free for open source and public repositories.
  • Upgrade to pro and add @mishratendancy as a member. A Pro subscription is required to access Vercel's collaborative features.
    • If you're the owner of the team, click here to upgrade and add @mishratendancy as a member.
    • If you're the user who initiated this build request, click here to request access.
    • If you're already a member of the ankitkumar070456-8174's projects team, make sure that your Vercel account is connected to your GitHub account.

To read more about collaboration on Vercel, click here.

@coderabbitai
Copy link

coderabbitai bot commented Aug 31, 2025

Walkthrough

Adds 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

Cohort / File(s) Summary of edits
Theme tokens and CSS vars
src/app/globals.css
Added purple palette and dark-theme CSS custom properties; refactored dark media vars to use tokens; introduced .dark class hook and dark utilities (.bg-surface, .text-dark-secondary, .border-dark); body continues to use --background/--foreground.
Dark mode context & app wiring
src/contexts/DarkModeContext.tsx, src/app/layout.tsx
New DarkModeProvider with localStorage + system preference init, root .dark class toggle, and useDarkMode hook; layout wraps children in provider.
Toggle control & Navbar integration
src/components/DarkModeToggle.tsx, src/components/Navbar.tsx
New client toggle button (animated, accessible) consuming context; Navbar imports and renders toggle; applied dark variant classes to buttons, title, and icons.
Component styling updates (dark variants)
src/components/ConceptInputForm.tsx, src/components/TypewriterText.tsx
Added dark text colors, caret fallback var, and button dark styles in ConceptInputForm; TypewriterText gains dark purple text/cursor. No logic changes.
Theme-aware background
src/components/ShaderBackground.tsx
Consumes isDarkMode; switches gradients, mesh colors, and overlay based on theme; logic otherwise unchanged.

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
Loading
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
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

In moonlit CSS I twitch my ear,
I flip a switch—now stars appear. ✨
Purple dreams on velvet night,
I nibble bytes of dusky light.
At dawn I hop, the sun aglow—
One toggle tap, and off we go! 🐇🌙☀️

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 details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Free

💡 Knowledge Base configuration:

  • Jira integration is disabled
  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 46e87d1 and 1b1b53e.

📒 Files selected for processing (8)
  • src/app/globals.css (2 hunks)
  • src/app/layout.tsx (2 hunks)
  • src/components/ConceptInputForm.tsx (3 hunks)
  • src/components/DarkModeToggle.tsx (1 hunks)
  • src/components/Navbar.tsx (6 hunks)
  • src/components/ShaderBackground.tsx (3 hunks)
  • src/components/TypewriterText.tsx (2 hunks)
  • src/contexts/DarkModeContext.tsx (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

Your 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.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Join our Discord community for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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