Reading List

Custom properties with defaults: 3+1 strategies from Lea Verou RSS feed.

Custom properties with defaults: 3+1 strategies

Reading Time: 4 minutes When developing customizable components, one often wants to expose various parameters of the styling as custom properties, and form a sort of CSS API. This is still underutlized, but there are libraries, e.g. Shoelace, that already list custom properties alongside other parts of each component’s API (even CSS parts!). Note: Iā€™m using “component” here broadly, […]