You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/customizing-clerk/appearance-prop/themes.mdx
+52-52Lines changed: 52 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ To use the simple theme, set `theme` to `simple`:
106
106
107
107
### Apply a theme to all Clerk components
108
108
109
-
To apply a theme to all Clerk components, pass the `appearance` prop to the [`<ClerkProvider>`](/docs/reference/components/clerk-provider) component. The `appearance` prop accepts the property `baseTheme`, which can be set to a theme.
109
+
To apply a theme to all Clerk components, pass the `appearance` prop to the [`<ClerkProvider>`](/docs/reference/components/clerk-provider) component. The `appearance` prop accepts the property `theme`, which can be set to a theme.
110
110
111
111
In the following example, the "Dark" theme is applied to all Clerk components.
112
112
@@ -121,7 +121,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
121
121
return (
122
122
<ClerkProvider
123
123
appearance={{
124
-
baseTheme: dark,
124
+
theme: dark,
125
125
}}
126
126
>
127
127
<htmllang="en">
@@ -141,7 +141,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
141
141
return (
142
142
<ClerkProvider
143
143
appearance={{
144
-
baseTheme: dark,
144
+
theme: dark,
145
145
}}
146
146
>
147
147
<Component{...pageProps} />
@@ -170,7 +170,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
170
170
return (
171
171
<ClerkProvider
172
172
appearance={{
173
-
baseTheme: dark,
173
+
theme: dark,
174
174
}}
175
175
publishableKey={clerkPubKey}
176
176
>
@@ -192,7 +192,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
192
192
integrations: [
193
193
clerk({
194
194
appearance: {
195
-
baseTheme: dark,
195
+
theme: dark,
196
196
},
197
197
}),
198
198
],
@@ -238,7 +238,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
238
238
239
239
exportdefaultClerkApp(App, {
240
240
appearance: {
241
-
baseTheme: dark,
241
+
theme: dark,
242
242
},
243
243
})
244
244
```
@@ -254,7 +254,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
254
254
const app =createApp(App)
255
255
app.use(clerkPlugin, {
256
256
appearance: {
257
-
baseTheme: dark,
257
+
theme: dark,
258
258
},
259
259
})
260
260
app.mount('#app')
@@ -269,7 +269,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
269
269
modules: ['@clerk/nuxt'],
270
270
clerk: {
271
271
appearance: {
272
-
baseTheme: dark,
272
+
theme: dark,
273
273
},
274
274
},
275
275
})
@@ -279,7 +279,7 @@ In the following example, the "Dark" theme is applied to all Clerk components.
279
279
280
280
### Apply multiple themes
281
281
282
-
You can also stack themes by passing an array of themes to the `baseTheme` property of the `appearance` prop. The themes will be applied in the order they are listed. If styles overlap, the last defined theme will take precedence.
282
+
You can also stack themes by passing an array of themes to the `theme` property of the `appearance` prop. The themes will be applied in the order they are listed. If styles overlap, the last defined theme will take precedence.
283
283
284
284
In the following example, the "Dark" theme is applied first, then the "Neobrutalism" theme is applied on top of it.
285
285
@@ -294,7 +294,7 @@ In the following example, the "Dark" theme is applied first, then the "Neobrutal
294
294
return (
295
295
<ClerkProvider
296
296
appearance={{
297
-
baseTheme: [dark, neobrutalism],
297
+
theme: [dark, neobrutalism],
298
298
}}
299
299
>
300
300
<htmllang="en">
@@ -314,7 +314,7 @@ In the following example, the "Dark" theme is applied first, then the "Neobrutal
314
314
return (
315
315
<ClerkProvider
316
316
appearance={{
317
-
baseTheme: [dark, neobrutalism],
317
+
theme: [dark, neobrutalism],
318
318
}}
319
319
>
320
320
<Component{...pageProps} />
@@ -343,7 +343,7 @@ In the following example, the "Dark" theme is applied first, then the "Neobrutal
343
343
return (
344
344
<ClerkProvider
345
345
appearance={{
346
-
baseTheme: [dark, neobrutalism],
346
+
theme: [dark, neobrutalism],
347
347
}}
348
348
publishableKey={clerkPubKey}
349
349
>
@@ -365,7 +365,7 @@ In the following example, the "Dark" theme is applied first, then the "Neobrutal
365
365
integrations: [
366
366
clerk({
367
367
appearance: {
368
-
baseTheme: [dark, neobrutalism],
368
+
theme: [dark, neobrutalism],
369
369
},
370
370
}),
371
371
],
@@ -411,7 +411,7 @@ In the following example, the "Dark" theme is applied first, then the "Neobrutal
411
411
412
412
exportdefaultClerkApp(App, {
413
413
appearance: {
414
-
baseTheme: [dark, neobrutalism],
414
+
theme: [dark, neobrutalism],
415
415
},
416
416
})
417
417
```
@@ -427,7 +427,7 @@ In the following example, the "Dark" theme is applied first, then the "Neobrutal
427
427
const app =createApp(App)
428
428
app.use(clerkPlugin, {
429
429
appearance: {
430
-
baseTheme: [dark, neobrutalism],
430
+
theme: [dark, neobrutalism],
431
431
},
432
432
})
433
433
app.mount('#app')
@@ -442,7 +442,7 @@ In the following example, the "Dark" theme is applied first, then the "Neobrutal
442
442
modules: ['@clerk/nuxt'],
443
443
clerk: {
444
444
appearance: {
445
-
baseTheme: [dark, neobrutalism],
445
+
theme: [dark, neobrutalism],
446
446
},
447
447
},
448
448
})
@@ -467,8 +467,8 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
467
467
return (
468
468
<ClerkProvider
469
469
appearance={{
470
-
baseTheme: dark,
471
-
signIn: { baseTheme: neobrutalism },
470
+
theme: dark,
471
+
signIn: { theme: neobrutalism },
472
472
}}
473
473
>
474
474
<htmllang="en">
@@ -488,8 +488,8 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
488
488
return (
489
489
<ClerkProvider
490
490
appearance={{
491
-
baseTheme: dark,
492
-
signIn: { baseTheme: neobrutalism },
491
+
theme: dark,
492
+
signIn: { theme: neobrutalism },
493
493
}}
494
494
>
495
495
<Component{...pageProps} />
@@ -518,8 +518,8 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
518
518
return (
519
519
<ClerkProvider
520
520
appearance={{
521
-
baseTheme: dark,
522
-
signIn: { baseTheme: neobrutalism },
521
+
theme: dark,
522
+
signIn: { theme: neobrutalism },
523
523
}}
524
524
publishableKey={clerkPubKey}
525
525
>
@@ -541,8 +541,8 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
541
541
integrations: [
542
542
clerk({
543
543
appearance: {
544
-
baseTheme: dark,
545
-
signIn: { baseTheme: neobrutalism },
544
+
theme: dark,
545
+
signIn: { theme: neobrutalism },
546
546
},
547
547
}),
548
548
],
@@ -588,8 +588,8 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
588
588
589
589
exportdefaultClerkApp(App, {
590
590
appearance: {
591
-
baseTheme: dark,
592
-
signIn: { baseTheme: neobrutalism },
591
+
theme: dark,
592
+
signIn: { theme: neobrutalism },
593
593
},
594
594
})
595
595
```
@@ -605,8 +605,8 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
605
605
const app =createApp(App)
606
606
app.use(clerkPlugin, {
607
607
appearance: {
608
-
baseTheme: dark,
609
-
signIn: { baseTheme: neobrutalism },
608
+
theme: dark,
609
+
signIn: { theme: neobrutalism },
610
610
},
611
611
})
612
612
app.mount('#app')
@@ -621,8 +621,8 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
621
621
modules: ['@clerk/nuxt'],
622
622
clerk: {
623
623
appearance: {
624
-
baseTheme: dark,
625
-
signIn: { baseTheme: neobrutalism },
624
+
theme: dark,
625
+
signIn: { theme: neobrutalism },
626
626
},
627
627
},
628
628
})
@@ -632,7 +632,7 @@ In the following example, the "Neobrutalism" theme is applied to all instances o
632
632
633
633
### Apply a theme to a single Clerk component
634
634
635
-
To apply a theme to a single Clerk component, pass the `appearance` prop to the component. The `appearance` prop accepts the property `baseTheme`, which can be set to a theme.
635
+
To apply a theme to a single Clerk component, pass the `appearance` prop to the component. The `appearance` prop accepts the property `theme`, which can be set to a theme.
0 commit comments