Skip to content
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

style: 🎨 improve contrast for destructive color in dark mode #3775

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flixlix
Copy link
Contributor

@flixlix flixlix commented May 19, 2024

Related to #282, but it was closed and not fixed

Before

Not enough contrast with background

Screenshot 2024-05-19 at 14 41 38

After

Screenshot 2024-05-19 at 14 40 41

Copy link

vercel bot commented May 19, 2024

@flixlix is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@@ -249,7 +249,7 @@
--accent: 215 27.9% 16.9%;
--accent-foreground: 210 20% 98%;

--destructive: 0 62.8% 30.6%;
--destructive: 0 72.8% 47%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check if the red color is passing the contrast color for accessibility? I saw your example and I didn't test it but I think the red should be brightner. You can use this website to verifiy if is passing or not.

https://webaim.org/resources/contrastchecker/

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.

None yet

2 participants