A
Alokai•2y ago
espoge

Style repeated for every component

Hi there, in my inspect tool I notice that style il repeated for every component. Is it normal behavior?
7 Replies
rohrig
rohrig•2y ago
hi @espoge 👋 , Is this style separated in the final bundle as well?
espoge
espogeOP•2y ago
hi @rohrig , I don't know yet. But seems that every class, selector and so on is recalled for every component
espoge
espogeOP•2y ago
A my own class repeated
FRS
FRS•2y ago
Hey @espoge, can you set up a sample repo and/or answer few questions about your setup? Do you use any framework (like nuxt, quasar) or is this a pure Vue3 app? What versions of libraries do you use (framework/vue/@storefront-ui/vue/tailwindcss)?
espoge
espogeOP•2y ago
yes I'm using tailwind. I moved import of my style in default.vue and not in styles.scss (setted in nuxt.config.js). In this way it's working pretty well, I don''t know if it's the best solution
FRS
FRS•2y ago
I've just set up a local nuxt app following the getting started guide in SFUI2 docs (https://docs.storefrontui.io/v2/vue/getting-started.html) but no luck - none of the styles get duplicated
FRS
FRS•2y ago
The same on our stackblitz playground (https://stackblitz.com/edit/sfui-vue?file=src%2Fcomponents%2FImportComponents.vue) I will need more information about your setup to be able to help - maybe it is possbile for you to replicate the problem in stackblitz and share it with me?
Want results from more Discord servers?
Add your server