(no title)
c_s_guy | 1 year ago
Say you have a component library where each component depends on a base set of styles and you don't want to load duplicate styles for each component.
Is there a best practice around this yet?
c_s_guy | 1 year ago
Say you have a component library where each component depends on a base set of styles and you don't want to load duplicate styles for each component.
Is there a best practice around this yet?
gitaarik|1 year ago
https://lit.dev/docs/components/styles/#inheriting-styles-fr...
https://lit.dev/docs/components/styles/#sharing-styles
Already quite some time ago I made a little library which makes this easy:
https://github.com/gitaarik/lit-style
virtualbluesky|1 year ago