Before Semicolon
Published in

Before Semicolon

How to Create a Theme Provider with Web Component?

Photo by Kasturi Roy on Unsplash

A theme provider is a special component that when wrapping your application content, will provide all the details your app needs to style itself like CSS variables and fonts.

It allows you to quickly change the way your website looks on-demand by simply changing some attribute values.

Why use Web Component?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store