Skip to content

feat(client): add light/dark/system theme toggle (#99) - #115

Open
Kushagragoel-code wants to merge 1 commit into
SahinurDEV:mainfrom
Kushagragoel-code:feat/dark-mode-toggle
Open

Kushagragoel-code wants to merge 1 commit into
SahinurDEV:mainfrom
Kushagragoel-code:feat/dark-mode-toggle

Conversation

@Kushagragoel-code

Copy link
Copy Markdown

Summary

  • Added ThemeContext (light / dark / system) with localStorage persistence and prefers-color-scheme support.
  • Added an inline script in client/index.html to prevent a white flash on reload.
  • Added ThemeToggle to BaseLayout, AuthLayout, and GeneratedForm.
  • Added :root / .dark CSS variables in globals.css + tailwind.config.ts and updated hardcoded light classes across the builder, forms, and public views.
  • Added Vitest tests for ThemeContext and ThemeToggle.
  • Note: Moved <CookiesProvider> above <AuthProvider> in client/src/main.tsx to fix a Missing <CookiesProvider> crash on startup.

Related issues

Closes #99

Type of change

  • New feature

Checklist

  • pnpm -F @form-builder/client test passes
  • pnpm -F @form-builder/client lint passes
  • pnpm -F @form-builder/client build passes

@netlify

netlify Bot commented Nov 25, 2026

Copy link
Copy Markdown

👷 Deploy request for frolicking-cascaron-4fab1f pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d3d9f57

This branch has not been deployed

No deployments
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.

Add a dark mode toggle

1 participant