Open gigi opened 2 years ago
Thanks for reporting. I can reproduce and confirm the issue
Hello, is there any working workaround for this? Thanks
Hello, is there any working workaround for this? Thanks
Yes, you can create your own theme and add
{
"lumoImports": ["utility"]
}
to the theme.json file.
With Material theme, it's not possible to have custom themes, and therefore you're forced to use the @CssImport
hack which doesn't work. I mean sure, it can't be expected that LumoUtility
works outside of Lumo theme, but still :)
Description of the bug
Hi! Tried to import Lumo Utilities as described here: https://vaadin.com/docs/latest/ds/foundation/utility-classes/#usage
It seems that only theme.json approach works. Maybe we have to enable or whitelist something?
Expected behavior
Manual import should import styles to the DOM
Minimal reproducible example
Used this starter https://github.com/vaadin/skeleton-starter-flow-spring
Versions