storybook-vue / storybook-nuxt

Deprecated in favor of https://github.com/nuxt-modules/storybook/
https://github.com/nuxt-modules/storybook/
132 stars 20 forks source link

Configuration with UnoCSS #67

Closed perreta closed 1 year ago

perreta commented 1 year ago

I am working on a project and am trying to integrate Storybook into it as a sort of design library. I am using UnoCSS as my CSS engine, but my 'story' components, despite having the relevant uno classes, do not inherit the styling that I am expecting. Is there guidance for hooking up Uno to work with Storybook?

perreta commented 1 year ago

Seems I was able to do it by adding these imports to my preview.ts

import '../assets/styles/<your-style-sheet>';

import '@unocss/reset/tailwind.css';

import 'uno.css';