Skip to content

Commit 1acbda5

Browse files
committed
fix: make Clerk style compatible with Tailwind css v4
1 parent 5236128 commit 1acbda5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/app/[locale]/(auth)/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export default async function AuthLayout(props: {
3131
signInFallbackRedirectUrl={dashboardUrl}
3232
signUpFallbackRedirectUrl={dashboardUrl}
3333
afterSignOutUrl={afterSignOutUrl}
34+
appearance={{
35+
cssLayerName: 'clerk', // Ensure Clerk is compatible with Tailwind CSS v4
36+
}}
3437
>
3538
{props.children}
3639
</ClerkProvider>

src/styles/global.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
@layer theme, base, clerk, components, utilities; /* Ensure Clerk is compatible with Tailwind CSS v4 */
2+
13
@import 'tailwindcss';

0 commit comments

Comments
 (0)