Shadowy is a shadcn/ui theme built around a muted light green primary color (#dadfce) with muted light violet accents (#d2cedf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#dadfce) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #060802black | #fafbf9snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #060802black | #fafbf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #060802black | #fafbf9snow |
| Primary | #dadfcegainsboro | #dadfcegainsboro |
| Primary foreground | #434a30darkslategray | #434a30darkslategray |
| Secondary | #d2cedflightgrey | #d2cedflightgrey |
| Secondary foreground | #38304adarkslategray | #38304adarkslategray |
| Muted | #ebe7f3lavender | #0f0c18black |
| Muted foreground | #5e5969dimgray | #9b96a6darkgray |
| Accent | #d2cedflightgrey | #d2cedflightgrey |
| Accent foreground | #38304adarkslategray | #38304adarkslategray |
| Destructive | #cf500cchocolate | #e75a0dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dadfcegainsboro | #dadfcegainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 5.56:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.35:1 | AA Large |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.72:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Shadowy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.021 119.275);
--muted: oklch(0.935 0.016 299.017);
--muted-foreground: oklch(0.474 0.025 298.387);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.021 119.275);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.021 119.275);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.895 0.024 119.758);
--primary-foreground: oklch(0.395 0.042 121.203);
--secondary: oklch(0.859 0.024 298.824);
--secondary-foreground: oklch(0.33 0.046 296.846);
--accent: oklch(0.859 0.024 298.824);
--accent-foreground: oklch(0.33 0.046 296.846);
--destructive: oklch(0.594 0.174 42.097);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.024 119.758);
--chart-1: oklch(0.895 0.024 119.758);
--chart-2: oklch(0.859 0.024 298.824);
--chart-3: oklch(0.859 0.024 298.824);
--chart-4: oklch(0.886 0.019 298.929);
--chart-5: oklch(0.897 0.027 119.82);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.003 119.359);
--muted: oklch(0.165 0.024 296.705);
--muted-foreground: oklch(0.683 0.023 298.725);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.003 119.359);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.003 119.359);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.895 0.024 119.758);
--primary-foreground: oklch(0.395 0.042 121.203);
--secondary: oklch(0.859 0.024 298.824);
--secondary-foreground: oklch(0.33 0.046 296.846);
--accent: oklch(0.859 0.024 298.824);
--accent-foreground: oklch(0.33 0.046 296.846);
--destructive: oklch(0.644 0.19 41.9);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.024 119.758);
--chart-1: oklch(0.895 0.024 119.758);
--chart-2: oklch(0.859 0.024 298.824);
--chart-3: oklch(0.859 0.024 298.824);
--chart-4: oklch(0.886 0.019 298.929);
--chart-5: oklch(0.897 0.027 119.82);
}