@sanity/ui 2.3.6-canary.3 → 2.3.6-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.compiled.mjs +2 -2
- package/dist/index.compiled.mjs.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/theme/themeProvider.tsx +2 -2
package/package.json
CHANGED
|
@@ -27,8 +27,8 @@ export function ThemeProvider(props: ThemeProviderProps): React.ReactElement {
|
|
|
27
27
|
const {children} = props
|
|
28
28
|
const parentTheme = useContext(ThemeContext)
|
|
29
29
|
const scheme = props.scheme ?? (parentTheme?.scheme || 'light')
|
|
30
|
-
const rootTheme = parentTheme?.theme || null
|
|
31
|
-
const tone = parentTheme?.tone || 'default'
|
|
30
|
+
const rootTheme = props.theme ?? (parentTheme?.theme || null)
|
|
31
|
+
const tone = props.tone ?? (parentTheme?.tone || 'default')
|
|
32
32
|
|
|
33
33
|
const themeContext: ThemeContextValue | null = useMemo(() => {
|
|
34
34
|
if (!rootTheme) return null
|