uif
uif copied to clipboard
Replace CSS-in-JS + Conthext API theming with vanilla CSS
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:
- design tokens defined as css-variables;
- theme switching by data attribute and cascade.