Skip to content

Commit

Permalink
☀️ Make theme optional on provider (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Oct 5, 2023
1 parent d31527b commit 7520e66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-news-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/providers': patch
---

Make theme optional on ThemeProvider
4 changes: 2 additions & 2 deletions packages/providers/src/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ const prefersLightMQ = '(prefers-color-scheme: light)';

export function ThemeProvider({
children,
theme: startingTheme,
theme: startingTheme = Theme.light,
renderers,
Link,
top,
NavLink,
}: {
children: React.ReactNode;
theme: Theme | null;
theme?: Theme;
renderers?: Record<string, NodeRenderer>;
Link?: Link;
top?: number;
Expand Down

0 comments on commit 7520e66

Please sign in to comment.