Skip to content

Light theme tokens not working as expected #131

@marcus-quincy

Description

@marcus-quincy

I am theming an existing component library using the component tokens. The dark theme works as expected, however when I switch the app to light theme some of the components still have dark theme styling. For example, I am using the variable --select-color-background for my select component and this stays as color #101923 in both light and dark mode. Looking at the CSS files in the dist directory, it looks like the value of --select-color-background is set directly to the dark mode variant, instead of being set based on the theme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions