2 ms·
You can consider Cami as the light dom sibling of Lit (which uses shadow dom). Cami loses out on slots & style encapsulation, but you can style Cami components
by kennyfrc 3y ago
You can consider Cami as the light dom sibling of Lit (which uses shadow dom).
Cami loses out on slots & style encapsulation, but you can style Cami components with normal / global css like it’s part of the normal dom. And since there’s no shadow dom overhead, it’s more performant and there is no FOUC if you load CSS in <head>.
- Valord 3y agoI just nope out of the Shadow dom in lit to get external css using createRenderRoot. Mentioned here https://stackoverflow.com/questions/55400222/how-do-you-use-bootstrap-with-lit-element#55427496 https://stackoverflow.com/questions/55400222/how-do-you-use-...