oddbird / cascading-color-system

CSS Custom Property color-theming
Other
71 stars 2 forks source link

Should this be a Web Component? #7

Open duggiemitchell opened 4 years ago

duggiemitchell commented 4 years ago

Description

Web Components (or custom elements) are a set of standards that enable the creation of user defined HTML elements, available in all modern browsers, and are essentially a collection of HTML, CSS and JavaScript abstracted behind a custom tag to be used in any web project.

Proposal

I think CCS's architecture is a perfect fit for being a Web Component and I propose we try that. And since building them from scratch is hard, I propose we use the Stenciljs compiler.

Links

See custom-element branch An Introduction to Web Components Why We Use Web Components webcomponents.org