Skip to content

custom dark: classes should not be inverted #71

@szamanr

Description

@szamanr

tailwind: v3.3.0
nightwind: v1.1.13
i believe this behaviour changed after a recent tailwind upgrade (v3.3?).
i'm using darkMode: "class", in my tailwind config.

given an element like this:

<div class="bg-red-200 dark:bg-blue-600">
  foo
</div>

expected result

the background in dark mode should be bg-blue-600.

actual result

the custom background in dark mode gets inverted and is bg-blue-200.

this is what gets computed:
dark css

i believe the first one (.dark :is(...)) is nightwind - if i disable that, i see bg-blue-600 correctly.

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