Skip to content

Commit 0c6798a

Browse files
authored
fix(): Dark mode destructive constrast ratio improvement.
* fix(): Dark mode red constrast ratio. * Use tailwind color. * Fix button foreground color. --------- Co-authored-by: aidanCQ <aidan.keay@quantinuum.com>
1 parent c7e60c7 commit 0c6798a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tokens.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
--accent: 240 3.7% 15.9%;
5555
--accent-foreground: 0 0% 98%;
5656

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

6060
--border: 240 3.7% 15.9%;
6161
--input: 240 3.7% 15.9%;

stories/shadcn/button.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const meta: Meta<typeof Button> = {
88
export default meta;
99

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

0 commit comments

Comments
 (0)