mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Merge pull request #17311 from fabioatcorreia/feature/default-theme
fix: set default theme according to preferred color scheme
This commit is contained in:
commit
076f2f93a4
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user