Skip to content

Theme light missing variable error if using @theme instead of @layer theme #237

Description

@Alvi24

if have setup my globals.css to use @theme as the default theme(light)
and @variant dakr for dark theme but i am getting this error
Theme light is missing variable --color-accent | Uniwind Error - All themes must have the same variables

i have tried also using @layer theme but i am currently facing this issues with that approach:
1.Tailwind extension intellisense not working
2. Getting Duplicate custom properties can lead to unexpected behavior and may override previous declarations unintentionally.
in globals.css

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions