Skip to content

Fix dark variant with custom variant#47

Open
ttoino wants to merge 1 commit intocatppuccin:mainfrom
ttoino:fix/dark-variant
Open

Fix dark variant with custom variant#47
ttoino wants to merge 1 commit intocatppuccin:mainfrom
ttoino:fix/dark-variant

Conversation

@ttoino
Copy link
Copy Markdown

@ttoino ttoino commented Jan 23, 2026

Closes #37.

As discussed in this comment, sass outputs the @variant dark and :root blocks in the wrong order. To fix this, I added a postbuild script to the package that uses sed to swap these lines. It's not the most elegant solution, and it doesn't work with the watch script, but it's the best I could come up with.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The dark variant is not correctly applied when setting a custom variant

1 participant