Spreadsheet for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.90:1AA
Secondary button7.62:1AAA
Muted text5.66:1AA
Accent6.44:1AA
Destructive6.41:1AA
Dark mode
Text on background18.84:1AAA
Text on card18.84:1AAA
Primary button6.90:1AA
Secondary button7.62:1AAA
Muted text7.11:1AAA
Accent6.44:1AA
Destructive3.68:1AA Large

CSS variables

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);
}