Spreadsheet for shadcn/ui

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

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.54:1AAA
Primary button6.97:1AA
Secondary button6.15:1AA
Muted text5.89:1AA
Accent6.34:1AA
Destructive5.64:1AA
Dark mode
Text on background18.83:1AAA
Text on card19.11:1AAA
Primary button6.97:1AA
Secondary button6.15:1AA
Muted text7.05:1AAA
Accent6.34:1AA
Destructive4.34: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.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);
}