Skip to content

Theming is not accurate #19

@jvalkeal

Description

@jvalkeal

As clarity doesn't have builtin support to switch theme dynamically, we've used this hack to just inject various variables to :root when switching theme. This for example uses white background in a stepper while we set:

'--clr-accordion-content-background-color': 'hsl(198, 28%, 18%)'

clarity-theme-stepper

It looks like we need to add global css with:

.clr-accordion-content {
  background: var(--clr-accordion-content-background-color, white);
}

and then clr-accordion-content-background-color will work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions