Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope styles per component #9

Open
ferrucc-io opened this issue Apr 14, 2024 · 1 comment
Open

Scope styles per component #9

ferrucc-io opened this issue Apr 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ferrucc-io
Copy link
Member

ferrucc-io commented Apr 14, 2024

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: vitejs/vite#1579

@ferrucc-io ferrucc-io added the enhancement New feature or request label Apr 14, 2024
@pyyding
Copy link
Contributor

pyyding commented May 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants