Spreadsheet is a shadcn/ui theme built around a muted deep blue primary color (#1f2133) with muted deep yellow accents (#33311f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#1f2133) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #000000black | #f9f9fbghostwhite |
| Card | #ffffffwhite | #010204black |
| Card foreground | #000000black | #f9f9fbghostwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #000000black | #f9f9fbghostwhite |
| Primary | #1f2133darkslategray | #1f2133darkslategray |
| Primary foreground | #b3b6d1lightsteelblue | #b3b6d1lightsteelblue |
| Secondary | #33311fdarkslategray | #33311fdarkslategray |
| Secondary foreground | #d1ceb3silver | #d1ceb3silver |
| Muted | #e5e4d6gainsboro | #29271ablack |
| Muted foreground | #757257dimgray | #a8a58arosybrown |
| Accent | #33311fdarkslategray | #33311fdarkslategray |
| Accent foreground | #d1ceb3silver | #d1ceb3silver |
| Destructive | #c65310chocolate | #ed6c21chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f2133darkslategray | #1f2133darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 3.81:1 | AA Large |
| Accent | 8.25:1 | AAA |
| Destructive | 4.52:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.25:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Spreadsheet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.018 101.6);
--muted-foreground: oklch(0.548 0.041 102.343);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.253 0.035 278.722);
--primary-foreground: oklch(0.781 0.039 280.433);
--secondary: oklch(0.31 0.031 102.62);
--secondary-foreground: oklch(0.847 0.037 101.947);
--accent: oklch(0.31 0.031 102.62);
--accent-foreground: oklch(0.847 0.037 101.947);
--destructive: oklch(0.583 0.163 44.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.253 0.035 278.722);
--chart-1: oklch(0.253 0.035 278.722);
--chart-2: oklch(0.31 0.031 102.62);
--chart-3: oklch(0.31 0.031 102.62);
--chart-4: oklch(0.345 0.035 102.653);
--chart-5: oklch(0.25 0.039 278.322);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.011 277.305);
--foreground: oklch(0.982 0.003 281.241);
--muted: oklch(0.271 0.024 102.505);
--muted-foreground: oklch(0.718 0.039 102.081);
--popover: oklch(0.082 0.011 277.305);
--popover-foreground: oklch(0.982 0.003 281.241);
--card: oklch(0.082 0.011 277.305);
--card-foreground: oklch(0.982 0.003 281.241);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.253 0.035 278.722);
--primary-foreground: oklch(0.781 0.039 280.433);
--secondary: oklch(0.31 0.031 102.62);
--secondary-foreground: oklch(0.847 0.037 101.947);
--accent: oklch(0.31 0.031 102.62);
--accent-foreground: oklch(0.847 0.037 101.947);
--destructive: oklch(0.678 0.178 45.566);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.253 0.035 278.722);
--chart-1: oklch(0.253 0.035 278.722);
--chart-2: oklch(0.31 0.031 102.62);
--chart-3: oklch(0.31 0.031 102.62);
--chart-4: oklch(0.345 0.035 102.653);
--chart-5: oklch(0.25 0.039 278.322);
}