Spreadsheet is a shadcn/ui theme built around a light yellow primary color (#ebdcb2) with light green accents (#deebb2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#ebdcb2) on a yellow-tinted background (#0b0904).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0904black |
| Foreground | #080602black | #faf9f4whitesmoke |
| Card | #ffffffwhite | #0b0904black |
| Card foreground | #080602black | #faf9f4whitesmoke |
| Popover | #ffffffwhite | #0b0904black |
| Popover foreground | #080602black | #faf9f4whitesmoke |
| Primary | #ebdcb2wheat | #ebdcb2wheat |
| Primary foreground | #554416darkolivegreen | #554416darkolivegreen |
| Secondary | #ebc0b2lightpink | #ebc0b2lightpink |
| Secondary foreground | #552516maroon | #552516maroon |
| Muted | #ebe3e0gainsboro | #1f1714black |
| Muted foreground | #605552dimgray | #ada29fdarkgray |
| Accent | #deebb2palegoldenrod | #deebb2palegoldenrod |
| Accent foreground | #465516darkolivegreen | #465516darkolivegreen |
| Destructive | #8e1801darkred | #fe340borangered |
| Destructive foreground | #ffccc2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebdcb2wheat | #ebdcb2wheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 6.41:1 | AA |
| Text on background | 18.84:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 6.44:1 | AA |
| Destructive | 3.68: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.124 0.014 94.998);
--muted: oklch(0.92 0.01 37.691);
--muted-foreground: oklch(0.461 0.015 37.622);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.014 94.998);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.014 94.998);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.895 0.057 90.427);
--primary-foreground: oklch(0.394 0.066 88.785);
--secondary: oklch(0.841 0.053 37.592);
--secondary-foreground: oklch(0.328 0.075 37.613);
--accent: oklch(0.915 0.075 118.566);
--accent-foreground: oklch(0.422 0.087 121.594);
--destructive: oklch(0.419 0.155 32.596);
--destructive-foreground: oklch(0.887 0.059 31.326);
--ring: oklch(0.895 0.057 90.427);
--chart-1: oklch(0.895 0.057 90.427);
--chart-2: oklch(0.841 0.053 37.592);
--chart-3: oklch(0.915 0.075 118.566);
--chart-4: oklch(0.866 0.044 37.598);
--chart-5: oklch(0.898 0.059 90.43);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.015 94.342);
--foreground: oklch(0.981 0.006 90.167);
--muted: oklch(0.212 0.015 37.592);
--muted-foreground: oklch(0.72 0.014 37.661);
--popover: oklch(0.142 0.015 94.342);
--popover-foreground: oklch(0.981 0.006 90.167);
--card: oklch(0.142 0.015 94.342);
--card-foreground: oklch(0.981 0.006 90.167);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.895 0.057 90.427);
--primary-foreground: oklch(0.394 0.066 88.785);
--secondary: oklch(0.841 0.053 37.592);
--secondary-foreground: oklch(0.328 0.075 37.613);
--accent: oklch(0.915 0.075 118.566);
--accent-foreground: oklch(0.422 0.087 121.594);
--destructive: oklch(0.645 0.239 32.126);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.057 90.427);
--chart-1: oklch(0.895 0.057 90.427);
--chart-2: oklch(0.841 0.053 37.592);
--chart-3: oklch(0.915 0.075 118.566);
--chart-4: oklch(0.866 0.044 37.598);
--chart-5: oklch(0.898 0.059 90.43);
}