These is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#020302). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-black primary (#030203) on a purple-tinted background (#0f060d).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #0f060dblack |
| Foreground | #140511black | #f9f6f8whitesmoke |
| Card | #faf5f9whitesmoke | #120710black |
| Card foreground | #10040dblack | #fbf9fbsnow |
| Popover | #faf5f9whitesmoke | #120710black |
| Popover foreground | #10040dblack | #fbf9fbsnow |
| Primary | #030203black | #030203black |
| Primary foreground | #c077afpalevioletred | #c077afpalevioletred |
| Secondary | #020302black | #020302black |
| Secondary foreground | #77c088darkseagreen | #77c088darkseagreen |
| Muted | #dcefe0gainsboro | #102314black |
| Muted foreground | #4d564fdarkslategray | #a9b2abdarkgray |
| Accent | #020302black | #020302black |
| Accent foreground | #77c088darkseagreen | #77c088darkseagreen |
| Destructive | #6f0c01maroon | #fd2e17orangered |
| Destructive foreground | #feada4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 9.50:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 9.50:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 9.50:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 9.50:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use These in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 333.331);
--foreground: oklch(0.15 0.037 336.283);
--muted: oklch(0.934 0.028 152.733);
--muted-foreground: oklch(0.444 0.017 152.587);
--popover: oklch(0.974 0.008 333.378);
--popover-foreground: oklch(0.137 0.033 335.571);
--card: oklch(0.974 0.008 333.378);
--card-foreground: oklch(0.137 0.033 335.571);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.088 0.012 333.752);
--primary-foreground: oklch(0.665 0.117 335.881);
--secondary: oklch(0.096 0.011 152.754);
--secondary-foreground: oklch(0.746 0.11 150.477);
--accent: oklch(0.096 0.011 152.754);
--accent-foreground: oklch(0.746 0.11 150.477);
--destructive: oklch(0.348 0.133 31.218);
--destructive-foreground: oklch(0.824 0.097 26.368);
--ring: oklch(0.088 0.012 333.752);
--chart-1: oklch(0.088 0.012 333.752);
--chart-2: oklch(0.096 0.011 152.754);
--chart-3: oklch(0.096 0.011 152.754);
--chart-4: oklch(0.153 0.018 152.195);
--chart-5: oklch(0.087 0.013 333.795);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.023 334.958);
--foreground: oklch(0.975 0.005 333.326);
--muted: oklch(0.235 0.038 150.128);
--muted-foreground: oklch(0.755 0.015 152.908);
--popover: oklch(0.151 0.026 335.579);
--popover-foreground: oklch(0.984 0.003 333.297);
--card: oklch(0.151 0.026 335.579);
--card-foreground: oklch(0.984 0.003 333.297);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.088 0.012 333.752);
--primary-foreground: oklch(0.665 0.117 335.881);
--secondary: oklch(0.096 0.011 152.754);
--secondary-foreground: oklch(0.746 0.11 150.477);
--accent: oklch(0.096 0.011 152.754);
--accent-foreground: oklch(0.746 0.11 150.477);
--destructive: oklch(0.64 0.241 30.51);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.088 0.012 333.752);
--chart-1: oklch(0.088 0.012 333.752);
--chart-2: oklch(0.096 0.011 152.754);
--chart-3: oklch(0.096 0.011 152.754);
--chart-4: oklch(0.153 0.018 152.195);
--chart-5: oklch(0.087 0.013 333.795);
}