Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vostrik opened this issue Apr 11, 2024 · 0 comments
Open

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

vostrik opened this issue Apr 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vostrik
Copy link
Collaborator

vostrik commented Apr 11, 2024

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.
@vostrik vostrik added the enhancement New feature or request label Apr 11, 2024
@vostrik vostrik added this to UIF Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant