Shadow is a shadcn/ui theme built around a pink primary color (#86416e) with blue accents (#416e86). The light mode uses a neutral background (#fefbfd). Dark mode keeps the pink primary (#86416e) on a neutral background (#080206).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #080206black |
| Foreground | #040103black | #ffffffwhite |
| Card | #fefbfdsnow | #080206black |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #fefbfdsnow | #080206black |
| Popover foreground | #040103black | #ffffffwhite |
| Primary | #86416edimgray | #86416edimgray |
| Primary foreground | #fdfcfdwhite | #fdfcfdwhite |
| Secondary | #6e8641olivedrab | #6e8641olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0e4d8gainsboro | #23271bblack |
| Muted foreground | #515747darkolivegreen | #b2b8a8darkgray |
| Accent | #416e86dimgray | #416e86dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a02d0ebrown | #e14014orangered |
| Destructive foreground | #fde8e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #86416edimgray | #86416edimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 4.06:1 | AA Large |
| Muted text | 5.78:1 | AA |
| Accent | 5.53:1 | AA |
| Destructive | 6.20:1 | AA |
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 4.06:1 | AA Large |
| Muted text | 7.47:1 | AAA |
| Accent | 5.53:1 | AA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Shadow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 338.052);
--foreground: oklch(0.084 0.019 338.352);
--muted: oklch(0.912 0.017 122.5);
--muted-foreground: oklch(0.447 0.026 123.143);
--popover: oklch(0.991 0.003 338.052);
--popover-foreground: oklch(0.084 0.019 338.352);
--card: oklch(0.991 0.003 338.052);
--card-foreground: oklch(0.084 0.019 338.352);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.478 0.111 342.481);
--primary-foreground: oklch(0.991 0.002 338.036);
--secondary: oklch(0.585 0.1 125.303);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.063 233.376);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.472 0.155 35.056);
--destructive-foreground: oklch(0.947 0.023 35.952);
--ring: oklch(0.478 0.111 342.481);
--chart-1: oklch(0.478 0.111 342.481);
--chart-2: oklch(0.585 0.1 125.303);
--chart-3: oklch(0.515 0.063 233.376);
--chart-4: oklch(0.618 0.106 125.329);
--chart-5: oklch(0.478 0.12 342.852);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.023 338.332);
--foreground: oklch(1 0 180);
--muted: oklch(0.265 0.022 123.57);
--muted-foreground: oklch(0.773 0.023 122.68);
--popover: oklch(0.107 0.023 338.332);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.023 338.332);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.478 0.111 342.481);
--primary-foreground: oklch(0.991 0.002 338.036);
--secondary: oklch(0.585 0.1 125.303);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.063 233.376);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.606 0.204 34.753);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.478 0.111 342.481);
--chart-1: oklch(0.478 0.111 342.481);
--chart-2: oklch(0.585 0.1 125.303);
--chart-3: oklch(0.515 0.063 233.376);
--chart-4: oklch(0.618 0.106 125.329);
--chart-5: oklch(0.478 0.12 342.852);
}