Skip to content

Commit 888a5ad

Browse files
authored
fix(shadcn-ui): update color of cards in dark mode (#271)
1 parent d99b992 commit 888a5ad

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.changeset/purple-dryers-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn-ui": patch
3+
---
4+
5+
fix card color

apps/www/content/docs/installation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ Add the following to your `styles/globals.css` file. You can learn more about us
217217
--popover: 224 71% 4%;
218218
--popover-foreground: 215 20.2% 65.1%;
219219

220-
--card: 0 0% 100%;
221-
--card-foreground: 222.2 47.4% 11.2%;
220+
--card: 224 71% 4%;
221+
--card-foreground: 213 31% 91%;
222222

223223
--border: 216 34% 17%;
224224
--input: 216 34% 17%;

packages/cli/src/utils/templates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export const STYLES = `@tailwind base;
4646
--popover: 224 71% 4%;
4747
--popover-foreground: 215 20.2% 65.1%;
4848
49-
--card: 0 0% 100%;
50-
--card-foreground: 222.2 47.4% 11.2%;
49+
--card: 224 71% 4%;
50+
--card-foreground: 213 31% 91%;
5151
5252
--border: 216 34% 17%;
5353
--input: 216 34% 17%;

0 commit comments

Comments
 (0)