Skip to content

Add-on resets var(--color-primary) if set in tailwind config #1

@avocadesign

Description

@avocadesign

When we put this into our setup it appears to reset the var(--color-primary) in some circumstances, breaking design output and reseting anything that uses it to an incorrect colour (as we use color-primary extensively, we've set it in our tailwind config).

It seems to be coming from this CSS in the add-on here:

@layer addon-theme {
:root, :host {
--color-primary: var(--theme-color-primary);
}
}

We could put a project specific fix in place, However, as I'd imagine that color-primary is a common var for a lot of setups, perhaps using something else more specific like --color-feedback-action or similar would elevate this without having to work around it.

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