KasperskyLab / uif

Integration Platform to build UI and Web Services
https://kasperskylab.github.io/uif/components/
Apache License 2.0
35 stars 4 forks source link

Replace CSS-in-JS + Conthext API theming with vanilla CSS #41

Open vostrik opened 6 months ago

vostrik commented 6 months ago

Currently @kaspersky/components uses styled-components and Provider to switch between light and dark theme.

It would be the same quality and more perfomant to use css-only solution like so:

  1. design tokens defined as css-variables;
  2. theme switching by data attribute and cascade.