@storybook/theming#themes JavaScript Examples

The following examples show how to use @storybook/theming#themes. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: preview.js    From symphony-bdk-ui-toolkit-styles with Apache License 2.0 6 votes vote down vote up
addParameters({
  options: {
    storySort: {
      order: ['Welcome', 'Components', 'Utils', 'Validation'], 
    },
  },
  darkMode: {
    // Override the default dark theme
    dark: { ...themes.dark, appContentBg: appContentBgDark,  brandImage: 'https://theme.zdassets.com/theme_assets/643007/9ede1116ae6efc6e4fb12ba49e6315c803807d56.png', brandTitle: 'UIToolkit Components', },
    light: { ...themes.light, appBg: 'white', brandImage: 'https://symphony.com/wp-content/uploads/2019/06/logo.png', brandTitle: 'UIToolkit Components',}
  },
  themes: {
    list: [
      { name: 'Condensed', class: ['tk-theme-condensed', 'condensed']}
    ],
  },
});
Example #2
Source File: manager.js    From covid-trials-dashboard with MIT License 5 votes vote down vote up
addons.setConfig({
  theme: themes.dark,
});