mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Resolve missing @angular/material styles * Add themes selector * Update changelog --------- Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>pull/6788/head^2
committed by
GitHub
5 changed files with 53 additions and 1 deletions
@ -0,0 +1,20 @@ |
|||||
|
import { withThemeByClassName } from '@storybook/addon-themes'; |
||||
|
|
||||
|
const preview = { |
||||
|
decorators: [ |
||||
|
withThemeByClassName({ |
||||
|
defaultTheme: 'Light', |
||||
|
parentSelector: 'body', |
||||
|
themes: { |
||||
|
Dark: 'theme-dark', |
||||
|
Light: 'theme-light' |
||||
|
} |
||||
|
}) |
||||
|
] |
||||
|
}; |
||||
|
|
||||
|
if (typeof document !== 'undefined') { |
||||
|
document.body.classList.add('mat-typography'); |
||||
|
} |
||||
|
|
||||
|
export default preview; |
||||
Loading…
Reference in new issue