perf: Add tailwind to editor and design system (#9032)

This commit is contained in:
Csaba Tuncsik
2024-05-09 14:12:13 +02:00
committed by GitHub
parent 5025d209ca
commit 1c1e4443f4
15 changed files with 354 additions and 220 deletions

View File

@@ -1,6 +1,8 @@
import { setup } from '@storybook/vue3';
import { withThemeByDataAttribute } from '@storybook/addon-themes';
import './storybook.scss';
import '../src/css/tailwind/index.css';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
@@ -59,7 +61,25 @@ export const parameters = {
},
options: {
storySort: {
order: ['Docs', 'Styleguide', ['Colors Primitives', 'Colors Tokens', 'Font', 'Spacing', 'Border'], 'Atoms', 'Modules'],
order: [
'Docs',
'Styleguide',
['Colors Primitives', 'Colors Tokens', 'Font', 'Spacing', 'Border'],
'Atoms',
'Modules',
],
},
},
};
export const decorators = [
withThemeByDataAttribute({
themes: {
light: 'light',
dark: 'dark',
},
defaultTheme: 'light',
attributeName: 'data-theme',
parentSelector: 'body',
}),
];