-
I have a monorepo with a "shared" package that contains some types and shared svelte components. The components are styled with tailwind. From the shared package, I am exporting my components like so: import DefaultButton from './DefaultButton.svelte';
import IconButton from './IconButton.svelte';
import LinkButton from './LinkButton.svelte';
export { IconButton, DefaultButton, LinkButton }; for some reason the components loose all their styling in the extension but work as expected in my sveltekit app. Do you have any idea why this may be the case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have a similar setup for one of my projects and it works just fine, so there's something wrong with your setup. Are you importing/including the CSS file that loads tailwind? Are you properly listing the shared files in the |
Beta Was this translation helpful? Give feedback.
I have a similar setup for one of my projects and it works just fine, so there's something wrong with your setup.
Are you importing/including the CSS file that loads tailwind? Are you properly listing the shared files in the
content
field in yourtailwind.config.js
file?