Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for prefers-color-scheme #4380

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
fix empty theme not displaying dark
carolinebridge committed May 24, 2024
commit be0a99566d406c59cfe8086e333a1292619b393b
3 changes: 3 additions & 0 deletions packages/core/ui/theme.ts
Original file line number Diff line number Diff line change
@@ -474,6 +474,9 @@ export function createJBrowseTheme(
themeName = 'default',
mode = 'light',
) {
if (Object.keys(configTheme).length === 0) {
configTheme = defaultThemes.default
}
let theme =
mode === 'light'
? configTheme?.light