Skip to content

Adjust SVG icons' stroke color for the dark theme #1380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

leejhlouis
Copy link

The SVG icons blend with the background color when the theme is dark, as shown in the image below. To avoid this, I added dark:stroke-white class for those two SVG icons.
image

Why dark:stroke-white?

As you can see from ShowcaseLayout.js, the title's div wrapper contains text-slate-900 dark:text-white classes. So, I assume that, in this case, white might be the best-suited dark theme variant of slate-900.

@vercel
Copy link

vercel bot commented Oct 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
tailwindcss-com ✅ Ready (Inspect) Visit Preview Oct 9, 2022 at 2:21PM (UTC)

@bradlc
Copy link

bradlc commented Oct 10, 2022

Thank you!

@bradlc bradlc merged commit 66e820b into tailwindlabs:master Oct 10, 2022
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.

2 participants