Skip to content

Fix Tailwind bg-current/10 background flattening - #15715

Open
itzjonas wants to merge 1 commit into
darkreader:mainfrom
itzjonas:fix/tailwind-bg-current-color-mix
Open

Fix Tailwind bg-current/10 background flattening#15715
itzjonas wants to merge 1 commit into
darkreader:mainfrom
itzjonas:fix/tailwind-bg-current-color-mix

Conversation

@itzjonas

@itzjonas itzjonas commented Jul 8, 2026

Copy link
Copy Markdown

Summary

  • Skip Dark Reader modification of background-color: currentcolor declarations
  • Preserves Tailwind 4's nested @supports color-mix(...) progressive enhancement pattern
  • Fixes invisible text on bg-current/10 elements

Fixes #15243

Test plan

  • npm test (unit tests)
  • New inject test passes in ChromeHeadless
  • Manual repro confirms text stays visible with Dark Reader enabled

…des.

CSSOM exposes the currentcolor fallback while the effective style comes from
a nested @supports color-mix rule; skipping modification preserves that structure.

Fixes darkreader#15243

Co-authored-by: Cursor <cursoragent@cursor.com>
@Myshor

Myshor commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this fix... I requested Alexander to review as he is more detailed in the code than me. 😉

@alexanderby

Copy link
Copy Markdown
Member

Thank you for the PR. I need to look into the issue a bit more before merging this.

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.

[Bug] bad background for tailwind4 "bg-current/10" class

3 participants