Spreadsheet is a shadcn/ui theme built around a vivid deep green primary color (#077430) with muted light green accents (#b8d1c1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#077430) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a07black |
| Foreground | #010904black | #f5faf7whitesmoke |
| Card | #fcfcfcsnow | #060e09black |
| Card foreground | #010502black | #f8fbfamintcream |
| Popover | #ffffffwhite | #050a07black |
| Popover foreground | #010904black | #f5faf7whitesmoke |
| Primary | #077430forestgreen | #077430forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d5ddd8gainsboro | #202221black |
| Secondary foreground | #39473edarkslategray | #b7bdbasilver |
| Muted | #e7f4echoneydew | #0b1810black |
| Muted foreground | #505853darkslategray | #a7afaadarkgray |
| Accent | #b8d1c1silver | #354139darkslategray |
| Accent foreground | #223429darkslategray | #cfd8d3lightgrey |
| Destructive | #852800saddlebrown | #ff5005orangered |
| Destructive foreground | #ffcdb8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #077430forestgreen | #077430forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 3.27: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.126 0.024 159.23);
--muted: oklch(0.954 0.018 159.052);
--muted-foreground: oklch(0.453 0.013 158.788);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.024 159.23);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.019 159.23);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.488 0.135 148.965);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.89 0.011 159.18);
--secondary-foreground: oklch(0.382 0.023 158.033);
--accent: oklch(0.837 0.034 158.538);
--accent-foreground: oklch(0.307 0.031 156.939);
--destructive: oklch(0.416 0.134 38.729);
--destructive-foreground: oklch(0.887 0.064 44.394);
--ring: oklch(0.488 0.135 148.965);
--chart-1: oklch(0.488 0.135 148.965);
--chart-2: oklch(0.89 0.011 159.18);
--chart-3: oklch(0.837 0.034 158.538);
--chart-4: oklch(0.912 0.009 159.245);
--chart-5: oklch(0.493 0.138 148.716);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.014 159.34);
--foreground: oklch(0.98 0.006 159.33);
--muted: oklch(0.196 0.025 156.167);
--muted-foreground: oklch(0.746 0.012 159.108);
--popover: oklch(0.138 0.014 159.34);
--popover-foreground: oklch(0.98 0.006 159.33);
--card: oklch(0.153 0.016 158.305);
--card-foreground: oklch(0.987 0.004 159.377);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.488 0.135 148.965);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.251 0.005 159.023);
--secondary-foreground: oklch(0.793 0.008 159.251);
--accent: oklch(0.36 0.02 158.185);
--accent-foreground: oklch(0.874 0.012 159.164);
--destructive: oklch(0.671 0.221 37.381);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.488 0.135 148.965);
--chart-1: oklch(0.488 0.135 148.965);
--chart-2: oklch(0.251 0.005 159.023);
--chart-3: oklch(0.36 0.02 158.185);
--chart-4: oklch(0.283 0.006 158.996);
--chart-5: oklch(0.493 0.138 148.716);
}