We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b764dc4 commit 7fbb50bCopy full SHA for 7fbb50b
src/index.tsx
@@ -137,7 +137,7 @@ export const JsonViewer = function JsonViewer<Value> (props: JsonViewerProps<Val
137
}
138
const isAutoDarkTheme = useThemeDetector()
139
const themeType = useMemo(() => props.theme === 'auto'
140
- ? (isAutoDarkTheme ? 'light' : 'dark')
+ ? (isAutoDarkTheme ? 'dark' : 'light')
141
: props.theme ?? 'light', [isAutoDarkTheme, props.theme])
142
const theme = useMemo(() => {
143
const backgroundColor = typeof themeType === 'object'
0 commit comments