Comment

Comment by c_s_guy

One of the biggest problems I run into with Web Components is how to share common CSS styles between them. I understand that goes against the idea that each web component should be encapsulated, but sometimes this is desirable.

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?

parent c_s_guy 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton