Skip to content

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

@vostrik

Description

@vostrik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions