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.
This pull request introduces dark mode support across the application by integrating Tailwind CSS and
next-themes
. Key changes include the addition of aModeToggle
component, updates to various pages and components to support dark mode, and configuration adjustments to accommodate the theme changes.Dark Mode Implementation:
apps/_docs/content/docs/dark-mode.mdx
: Added documentation for dark mode implementation using Tailwind'sdarkMode: 'class'
strategy andnext-themes
.packages/design-system/components/mode-toggle.tsx
: CreatedModeToggle
component to allow users to switch between light, dark, and system themes.apps/app/app/(authenticated)/components/sidebar.tsx
: IntegratedModeToggle
component into the sidebar for authenticated users. [1] [2]apps/app/app/(unauthenticated)/sign-in/[[...sign-in]]/page.tsx
: AddedModeToggle
to the sign-in page. (apps/app/app/(unauthenticated)/sign-in/[[...sign-in]]/page.tsxR2, apps/app/app/(unauthenticated)/sign-in/[[...sign-in]]/page.tsxL11-R15)apps/app/app/(unauthenticated)/sign-up/[[...sign-up]]/page.tsx
: AddedModeToggle
to the sign-up page. (apps/app/app/(unauthenticated)/sign-up/[[...sign-up]]/page.tsxR2, apps/app/app/(unauthenticated)/sign-up/[[...sign-up]]/page.tsxL11-R15)Configuration and Styling Adjustments:
apps/app/app/layout.tsx
: UpdatedClerkProvider
to use a custom provider that supports dark mode. [1] [2] [3]packages/design-system/providers/clerk.tsx
: Created a customClerkProvider
to integrate with Tailwind CSS andnext-themes
.packages/design-system/lib/tailwind.ts
: Exported Tailwind configuration for use in customClerkProvider
.packages/design-system/tailwind.config.ts
: Removed unusedbackdrop
color variable.Documentation and Metadata:
apps/_docs/content/docs/meta.json
: Added dark mode documentation to the metadata.These changes collectively enable dark mode support throughout the application, providing a better user experience and visual consistency.