Skip to content

feat: clerk follow the dark theme - #140

Merged
Flash303 merged 1 commit into
mainfrom
dev
Oct 25, 2026
Merged

Flash303 merged 1 commit into
mainfrom
dev

Conversation

@Flash303

Copy link
Copy Markdown
Owner

This pull request improves theme support in the frontend by ensuring that both the application's UI and Clerk authentication components respond to the selected light or dark theme. The main changes involve integrating Clerk's shared UI theme handling, updating CSS for color scheme support, and adding the @clerk/ui dependency.

Theme integration and Clerk UI improvements:

  • Introduced a ThemedClerkProvider component in root.tsx to dynamically set Clerk's appearance theme based on the current app theme, ensuring Clerk's UI matches the selected light or dark mode.
  • Updated the main app layout in root.tsx to wrap the app with ThemedClerkProvider and ensure proper context provider order.
  • Added the @clerk/ui dependency to package.json to enable Clerk's shared UI theming.

CSS and color scheme support:

  • Updated index.css to set the color-scheme property for both light (:root) and dark (.dark) themes, improving native form control and scrollbar theming. [1] [2]

Code organization:

  • Refactored imports in root.tsx to include useTheme and dark theme from Clerk UI for theme detection and switching.

@Flash303
Flash303 merged commit 9aee06f into main Oct 25, 2026
4 checks passed
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