Skip to content

Issue with layer generation in 8.5.25 #2128

Closed

Description

@VojtechVidra

I'm facing an issue with latest postcss 8.5.25 (works correctly in 8.5.24) that one of my layers is missing .dark generated class name completely. I've created minimal reproduction, with a bit more info in the readme, so you can try for yourself: https://github.com/VojtechVidra/postcss-issue

I'm not using postcss directly, I'm using pandacss which itself is using postcss to generate final stylesheet. But the issue is only with the latest postcss version, which makes me believe it's an issue with postcss itself.

I'm happy to provide any more info if needed.

Activity

  1. ai commented on Aug 6, 2026

    @ai
    Member

    Sorry, I never used pandacss.

    Why .dark should be in output CSS? What only file it generates?

  2. VojtechVidra commented on Aug 6, 2026

    @VojtechVidra
    Author

    It's a conditional style generated thanks to specifying _dark values in panda.config.ts semanticTokens. Under the hood it is mapped to .dark &, more info: https://panda-css.com/docs/concepts/conditional-styles#reference

    I've just pushed commit with _dark conditional style outside of semantic tokens and it works correctly. Only the tokens layer is behaving incorrectly.

  3. ai commented on Aug 6, 2026

    @ai
    Member

    The fix was released in 8.5.26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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