Skip to content

Commit 9b5eea6

Browse files
authoredFeb 10, 2025··
allow change nextThemes.forcedTheme prop (#4189)
1 parent d5947bf commit 9b5eea6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎.changeset/early-fishes-carry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nextra-theme-docs": patch
3+
---
4+
5+
allow change `nextThemes.forcedTheme` prop

‎packages/nextra-theme-docs/src/layout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const theme = z.strictObject({
5757
.default('class'),
5858
defaultTheme: z.string().optional(),
5959
disableTransitionOnChange: z.boolean().default(true),
60+
forcedTheme: z.string().optional(),
6061
storageKey: z.string().optional()
6162
})
6263
.default({}),

0 commit comments

Comments
 (0)
Please sign in to comment.