Skip to content

fix: do not apply hardcoded description color on custom themes#754

Open
moritzbehnke wants to merge 1 commit intoemilkowalski:mainfrom
moritzbehnke:fix-hardcoded-description-color
Open

fix: do not apply hardcoded description color on custom themes#754
moritzbehnke wants to merge 1 commit intoemilkowalski:mainfrom
moritzbehnke:fix-hardcoded-description-color

Conversation

@moritzbehnke
Copy link
Copy Markdown

Problem

I use sonner in combination with a custom theme (without richColors).

Whilst [data-title] uses color: inherit;, [data-description] uses #3f3f3f.

Solution

Explicitly use the hardcoded value #3f3f3f when [data-sonner-theme='light'] and therefore inherit the color value when theme is anything else except light or dark.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sonner Error Error Mar 25, 2026 0:07am

Request Review

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.

1 participant