27 lines
528 B
JavaScript
27 lines
528 B
JavaScript
import '../src/assets/styles/global.scss';
|
|
|
|
export const globalTypes = {
|
|
theme: {
|
|
description: 'Global color theme',
|
|
defaultValue: 'light',
|
|
toolbar: {
|
|
icon: 'paintbrush',
|
|
items: ['light', 'dark'],
|
|
dynamicTitle: true,
|
|
},
|
|
},
|
|
};
|
|
|
|
export const decorators = [
|
|
(story, context) => {
|
|
document.documentElement.dataset.theme = context.globals.theme;
|
|
return story();
|
|
},
|
|
];
|
|
|
|
export const parameters = {
|
|
controls: { expanded: true },
|
|
a11y: { test: 'error' },
|
|
layout: 'fullscreen',
|
|
};
|