Merge pull request #17311 from fabioatcorreia/feature/default-theme

fix: set default theme according to preferred color scheme
This commit is contained in:
Norbert de Langen 2022-07-01 02:44:47 +02:00 committed by GitHub
commit 076f2f93a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import global from 'global';
import pick from 'lodash/pick';
import deepEqual from 'fast-deep-equal';
import { themes } from '@storybook/theming';
import { create } from '@storybook/theming';
import type { ThemeVars } from '@storybook/theming';
import { once } from '@storybook/client-logger';
import dedent from 'ts-dedent';
@ -84,7 +84,7 @@ const defaultState: SubState = {
showTabs: true,
},
selectedPanel: undefined,
theme: themes.light,
theme: create(),
};
export const focusableUIElements = {