Skip to content

Commit

Permalink
fix(): Add sunk background variant.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Sep 30, 2024
1 parent 3d5c992 commit ede5602
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tailwindTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export const tailwindTheme = {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
background: {
DEFAULT: "hsl(var(--background))",
sunk: "hsl(var(--background-sunk))",
},
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
Expand Down
2 changes: 2 additions & 0 deletions src/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

color-scheme: light;
--background: 0 0% 100%;
--background-sunk: 0 0% 98%;
--foreground: 0 0% 3.9%;
--card: 0 0% 100%;
--card-foreground: 0 0% 3.9%;
Expand Down Expand Up @@ -37,6 +38,7 @@
:root [data-theme="dark"] {
color-scheme: dark;
--background: 0 0% 3.9%;
--background-sunk: 0 0% 0%;
--foreground: 0 0% 98%;
--card: 0 0% 3.9%;
--card-foreground: 0 0% 98%;
Expand Down

0 comments on commit ede5602

Please sign in to comment.