Replies: 1 comment
-
Also, the only things that would work, although not a practical solution is to include my components' classes inside of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm setting up a project that combines storybook, tailwindcss and vue.
My goal is to create a library of components that I want to use in a few other projects.
So far, I am able to write components and document stories within my storybook project just fine: the styles are being computed on the fly inside of storybook, and that's really nice already :-)
But when I try to use those components in another project, everything works fine, except for those classes that have been extracted using
@apply
inside of my components'<style>
blocks.So to be clear, if I have some Vue component, with a
<style>
section like this:... all the styles in the
class
attribute of my component will be generated but those that are specified for themy-component
class.Another issue: I am using rollup to generate the library for my components, and I haven't figured out how to include the tailwind-generated css automatically alongside the generated js code. So I'm using the command line (via npm) like so:
which is a bit cumbersome, even if I can live with that.
Your help will be greatly appreciated. I already spent a few hours on this. Really can't figure it out.
Best
Beta Was this translation helpful? Give feedback.
All reactions