Best practice for importing / exporting styles from a lib you create: Svelte / SvelteKit / Tailwind 4 #17213
Unanswered
ReturnXDev
asked this question in
Help
Replies: 1 comment
-
In the library, have a CSS file that has the relevant |
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
-
I'm working on a datepicker uses Svelte Tailwind 4.
I npm run package, publish to npm and install into my test project.
If I add
@source "../node_modules/@company/datepicker/"
toapp.css
it works BUT this doesn't seem ideal, asking users to do two steps etc.What is the ideal solution here?
Before I found that step I could inspect and see that the various elements had tailwind classes but they weren't getting processed I guess.
Please tell me how to solve this properly.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions