mirror of https://github.com/ghostfolio/ghostfolio
committed by
Thomas Kaul
4 changed files with 43 additions and 1 deletions
@ -0,0 +1,20 @@ |
|||
import { withThemeByClassName } from '@storybook/addon-themes'; |
|||
|
|||
const preview = { |
|||
decorators: [ |
|||
withThemeByClassName({ |
|||
themes: { |
|||
light: 'theme-light', |
|||
dark: 'theme-dark' |
|||
}, |
|||
defaultTheme: 'light', |
|||
parentSelector: 'body' |
|||
}) |
|||
] |
|||
}; |
|||
|
|||
if (typeof document !== 'undefined') { |
|||
document.body.classList.add('mat-typography'); |
|||
} |
|||
|
|||
export default preview; |
|||
Loading…
Reference in new issue