Data is a shadcn/ui theme built around a muted deep cyan primary color (#080b0c) with neutral gray accents (#d3d8d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep cyan primary (#080b0c) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #030a0cblack | #ffffffwhite |
| Card | #fcfcfcsnow | #030608black |
| Card foreground | #020708black | #ffffffwhite |
| Popover | #ffffffwhite | #010304black |
| Popover foreground | #030a0cblack | #ffffffwhite |
| Primary | #080b0cblack | #080b0cblack |
| Primary foreground | #94acb3darkgray | #94acb3darkgray |
| Secondary | #d3d8d9lightgrey | #202a2cdarkslategray |
| Secondary foreground | #393f41darkslategray | #b5c5c9silver |
| Muted | #dde2e4gainsboro | #1b2122black |
| Muted foreground | #4d5456darkslategray | #a9b0b2darkgray |
| Accent | #d3d8d9lightgrey | #202a2cdarkslategray |
| Accent foreground | #393f41darkslategray | #b5c5c9silver |
| Destructive | #cf1a17firebrick | #cf1a17firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #080b0cblack | #080b0cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 5.52:1 | AA |
| Text on background | 20.64:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 8.28:1 | AAA |
| Destructive | 5.52:1 | AA |
Paste this into your globals.css to use Data in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.137 0.014 213.976);
--muted: oklch(0.91 0.007 217.784);
--muted-foreground: oklch(0.441 0.01 217.903);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.137 0.014 213.976);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.12 0.013 213.06);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.147 0.005 217.467);
--primary-foreground: oklch(0.727 0.029 218.06);
--secondary: oklch(0.878 0.005 217.776);
--secondary-foreground: oklch(0.364 0.009 217.925);
--accent: oklch(0.878 0.005 217.776);
--accent-foreground: oklch(0.364 0.009 217.925);
--destructive: oklch(0.545 0.211 28.486);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.147 0.005 217.467);
--chart-1: oklch(0.147 0.005 217.467);
--chart-2: oklch(0.878 0.005 217.776);
--chart-3: oklch(0.878 0.005 217.776);
--chart-4: oklch(0.901 0.004 217.769);
--chart-5: oklch(0.148 0.006 217.395);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.009 213.603);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.009 218.033);
--muted-foreground: oklch(0.752 0.009 217.817);
--popover: oklch(0.095 0.009 213.603);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.011 213.603);
--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.147 0.005 217.467);
--primary-foreground: oklch(0.727 0.029 218.06);
--secondary: oklch(0.275 0.014 218.209);
--secondary-foreground: oklch(0.812 0.018 217.898);
--accent: oklch(0.275 0.014 218.209);
--accent-foreground: oklch(0.812 0.018 217.898);
--destructive: oklch(0.545 0.211 28.486);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.147 0.005 217.467);
--chart-1: oklch(0.147 0.005 217.467);
--chart-2: oklch(0.275 0.014 218.209);
--chart-3: oklch(0.275 0.014 218.209);
--chart-4: oklch(0.307 0.016 218.239);
--chart-5: oklch(0.148 0.006 217.395);
}