juneHQ / ui

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

Scope styles per component #9

Open ferrucc-io opened 4 months ago

ferrucc-io commented 4 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 4 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