#What's the proper way to import global less styles for all stories?
3 messages · Page 1 of 1 (latest)
You should be able to import your styles into .storybook/preview.js, which is loaded for every story.
Seems like it's not working 😦
My preview.tsx
import '@condo/ui/src/components/style/core/global.less'
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
backgrounds: { disable: true },
}
And SB launching fails with:
Variable @condo-global-spacing-12 is undefined
Inside global.less are just imports vars + fonts