Spreadsheet is a shadcn/ui theme built around a blue primary color (#6588e2) with green accents (#88e265). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#6588e2) on a blue-tinted background (#07090d).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #07090dblack |
| Foreground | #000000black | #f9fafbghostwhite |
| Card | #f7f9fdghostwhite | #090b11black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fbfcfewhite | #07090dblack |
| Popover foreground | #000000black | #f9fafbghostwhite |
| Primary | #6588e2cornflowerblue | #6588e2cornflowerblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #e26588palevioletred | #e26588palevioletred |
| Secondary foreground | #110307black | #110307black |
| Muted | #e8dee1gainsboro | #21171ablack |
| Muted foreground | #4c4346darkslategray | #bcb3b6silver |
| Accent | #88e265lightgreen | #88e265lightgreen |
| Accent foreground | #071103black | #071103black |
| Destructive | #ab120dfirebrick | #ee1e17red |
| Destructive foreground | #feedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6588e2cornflowerblue | #6588e2cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 7.25:1 | AAA |
| Accent | 11.98:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 8.53:1 | AAA |
| Accent | 11.98:1 | AAA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Spreadsheet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 268.772);
--foreground: oklch(0 0 0);
--muted: oklch(0.909 0.012 358.08);
--muted-foreground: oklch(0.393 0.012 358.596);
--popover: oklch(0.991 0.003 268.772);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.005 268.752);
--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.642 0.14 266.261);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.668 0.159 4.622);
--secondary-foreground: oklch(0.132 0.031 359.38);
--accent: oklch(0.828 0.183 137.705);
--accent-foreground: oklch(0.163 0.034 135.487);
--destructive: oklch(0.472 0.184 29.008);
--destructive-foreground: oklch(0.958 0.018 19.881);
--ring: oklch(0.642 0.14 266.261);
--chart-1: oklch(0.642 0.14 266.261);
--chart-2: oklch(0.668 0.159 4.622);
--chart-3: oklch(0.828 0.183 137.705);
--chart-4: oklch(0.692 0.145 3.671);
--chart-5: oklch(0.639 0.146 266.118);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 265.89);
--foreground: oklch(0.984 0.002 268.78);
--muted: oklch(0.218 0.017 359.865);
--muted-foreground: oklch(0.776 0.01 358.093);
--popover: oklch(0.139 0.011 265.89);
--popover-foreground: oklch(0.984 0.002 268.78);
--card: oklch(0.15 0.013 267.594);
--card-foreground: oklch(0.992 0.001 268.785);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.642 0.14 266.261);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.668 0.159 4.622);
--secondary-foreground: oklch(0.132 0.031 359.38);
--accent: oklch(0.828 0.183 137.705);
--accent-foreground: oklch(0.163 0.034 135.487);
--destructive: oklch(0.604 0.235 29.007);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.642 0.14 266.261);
--chart-1: oklch(0.642 0.14 266.261);
--chart-2: oklch(0.668 0.159 4.622);
--chart-3: oklch(0.828 0.183 137.705);
--chart-4: oklch(0.692 0.145 3.671);
--chart-5: oklch(0.639 0.146 266.118);
}