How do I use CSS Modules in cargo-leptos as enabled by LightningCSS? #1967
Replies: 1 comment 5 replies
-
Aren't CSS modules kind of a JavaScript concept? Per the LightningCSS docs:
If you're just looking for some kind of scoped CSS support in general you could look at something like stylers |
Beta Was this translation helpful? Give feedback.
-
I see that cargo-leptos has in-built support for Lightning CSS. How would I use the CSS Modules feature from LightningCSS in a Leptos component?
I have a folder structure like this:
CSS that looks like this:
And a component that looks like this:
How do I get the Leptos component to use the styles from the CSS module?
Beta Was this translation helpful? Give feedback.
All reactions