Web is a shadcn/ui theme built around a muted deep purple primary color (#2d242e) with muted deep pink accents (#2e2429). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#2d242e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040104black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040104black | #fdfcfdwhite |
| Primary | #2d242edarkslategray | #2d242edarkslategray |
| Primary foreground | #c8bac9silver | #c8bac9silver |
| Secondary | #28242edarkslategray | #28242edarkslategray |
| Secondary foreground | #c1bac9silver | #c1bac9silver |
| Muted | #dddbe1gainsboro | #211e24black |
| Muted foreground | #4f4e50darkslategray | #b0afb1darkgray |
| Accent | #2e2429darkslategray | #2e2429darkslategray |
| Accent foreground | #c9bac3silver | #c9bac3silver |
| Destructive | #a80000darkred | #ff0505red |
| Destructive foreground | #ffdbdbmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d242edarkslategray | #2d242edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Web in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.018 325.204);
--muted: oklch(0.894 0.009 305.598);
--muted-foreground: oklch(0.426 0.003 305.655);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.086 0.018 325.204);
--card: oklch(1 0 180);
--card-foreground: oklch(0.086 0.018 325.204);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.274 0.022 324.04);
--primary-foreground: oklch(0.806 0.025 323.798);
--secondary: oklch(0.269 0.019 304.804);
--secondary-foreground: oklch(0.8 0.022 305.381);
--accent: oklch(0.273 0.018 343.286);
--accent-foreground: oklch(0.805 0.02 342.395);
--destructive: oklch(0.46 0.189 29.234);
--destructive-foreground: oklch(0.922 0.04 17.896);
--ring: oklch(0.274 0.022 324.04);
--chart-1: oklch(0.274 0.022 324.04);
--chart-2: oklch(0.269 0.019 304.804);
--chart-3: oklch(0.273 0.018 343.286);
--chart-4: oklch(0.298 0.022 304.763);
--chart-5: oklch(0.273 0.028 324.136);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.003 323.652);
--muted: oklch(0.24 0.013 305.012);
--muted-foreground: oklch(0.756 0.002 305.698);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.003 323.652);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.003 323.652);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.274 0.022 324.04);
--primary-foreground: oklch(0.806 0.025 323.798);
--secondary: oklch(0.269 0.019 304.804);
--secondary-foreground: oklch(0.8 0.022 305.381);
--accent: oklch(0.273 0.018 343.286);
--accent-foreground: oklch(0.805 0.02 342.395);
--destructive: oklch(0.629 0.257 29.107);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.274 0.022 324.04);
--chart-1: oklch(0.274 0.022 324.04);
--chart-2: oklch(0.269 0.019 304.804);
--chart-3: oklch(0.273 0.018 343.286);
--chart-4: oklch(0.298 0.022 304.763);
--chart-5: oklch(0.273 0.028 324.136);
}