Skip to content

Commit

Permalink
fix(): Dark mode destructive constrast ratio improvement.
Browse files Browse the repository at this point in the history
* fix(): Dark mode red constrast ratio.

* Use tailwind color.

* Fix button foreground color.

---------

Co-authored-by: aidanCQ <[email protected]>
  • Loading branch information
aidanCQ and aidanCQ authored Apr 16, 2024
1 parent c7e60c7 commit 0c6798a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--destructive: 0, 84%, 60%;
--destructive-foreground: 240 10% 3.9%;

--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
Expand Down
2 changes: 1 addition & 1 deletion stories/shadcn/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ const meta: Meta<typeof Button> = {
export default meta;

export const Default: StoryObj<typeof Button> = {
args: { children: "Button Text" },
args: { children: "Button Text", variant: "destructive" },
};

0 comments on commit 0c6798a

Please sign in to comment.