juneHQ / ui

The charts you see in June
https://ui.june.so
MIT License
13 stars 1 forks source link

Scope styles per component #9

Open ferrucc-io opened 7 months ago

ferrucc-io commented 7 months ago

Would be nice if styles were scoped per component in a smart way

Not sure what's the best approach - but ideally we could rely on the tailwind setup of the parent project (?)

There's a huge discussion around this here, and there seems to be no straightforward answer: https://github.com/vitejs/vite/issues/1579

pyyding commented 6 months ago

Could think about defining component css in layers https://tailwindcss.com/docs/functions-and-directives#using-apply-with-per-component-css

but it makes the components less copy-pasteable