Spreadsheet is a shadcn/ui theme built around a muted indigo primary color (#5c5284) with muted violet accents (#755284). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#5c5284) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06050ablack |
| Foreground | #020104black | #f7f6f8whitesmoke |
| Card | #fcfcfcsnow | #08070dblack |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #06050ablack |
| Popover foreground | #020104black | #f7f6f8whitesmoke |
| Primary | #5c5284darkslateblue | #5c5284darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #526184dimgray | #526184dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dadfecgainsboro | #131925black |
| Muted foreground | #4b5262darkslategray | #9da4b4darkgray |
| Accent | #755284dimgray | #755284dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #be3513firebrick | #df3e16orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c5284darkslateblue | #5c5284darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.34:1 | AA |
| Destructive | 5.64:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 7.05:1 | AAA |
| Accent | 6.34:1 | AA |
| Destructive | 4.34:1 | AA Large |
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.078 0.017 294.566);
--muted: oklch(0.905 0.018 267.298);
--muted-foreground: oklch(0.439 0.027 266.944);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.078 0.017 294.566);
--card: oklch(0.992 0 161.565);
--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.471 0.079 292.278);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.495 0.058 266.371);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.496 0.086 315.361);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.534 0.179 34.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.471 0.079 292.278);
--chart-1: oklch(0.471 0.079 292.278);
--chart-2: oklch(0.495 0.058 266.371);
--chart-3: oklch(0.496 0.086 315.361);
--chart-4: oklch(0.52 0.062 266.36);
--chart-5: oklch(0.465 0.089 291.734);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.013 295.096);
--foreground: oklch(0.975 0.002 295.532);
--muted: oklch(0.212 0.025 266.348);
--muted-foreground: oklch(0.718 0.024 267.193);
--popover: oklch(0.122 0.013 295.096);
--popover-foreground: oklch(0.975 0.002 295.532);
--card: oklch(0.134 0.015 294.543);
--card-foreground: oklch(0.984 0.002 295.548);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.471 0.079 292.278);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.495 0.058 266.371);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.496 0.086 315.361);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.6 0.203 34.157);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.471 0.079 292.278);
--chart-1: oklch(0.471 0.079 292.278);
--chart-2: oklch(0.495 0.058 266.371);
--chart-3: oklch(0.496 0.086 315.361);
--chart-4: oklch(0.52 0.062 266.36);
--chart-5: oklch(0.465 0.089 291.734);
}