Stone for shadcn/ui

Stone is a shadcn/ui theme built around a deep cyan primary color (#1d4c59) with deep red accents (#592a1d). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the deep cyan primary (#1d4c59) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#030607black
Foreground
#020708black
#ffffffwhite
Card
#f7fbfdghostwhite
#030607black
Card foreground
#020708black
#ffffffwhite
Popover
#f7fbfdghostwhite
#030607black
Popover foreground
#020708black
#ffffffwhite
Primary
#1d4c59darkslategray
#1d4c59darkslategray
Primary foreground
#bee0eapowderblue
#bee0eapowderblue
Secondary
#592a1dsaddlebrown
#592a1dsaddlebrown
Secondary foreground
#eac7bepink
#eac7bepink
Muted
#e4dedcgainsboro
#231c1bblack
Muted foreground
#5f524edimgray
#b1a3a0darkgray
Accent
#592a1dsaddlebrown
#592a1dsaddlebrown
Accent foreground
#eac7bepink
#eac7bepink
Destructive
#a9450fsaddlebrown
#ee7c3fcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d4c59darkslategray
#1d4c59darkslategray

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button6.78:1AA
Secondary button7.59:1AAA
Muted text5.64:1AA
Accent7.59:1AAA
Destructive5.94:1AA
Dark mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.78:1AA
Secondary button7.59:1AAA
Muted text6.86:1AA
Accent7.59:1AAA
Destructive7.60:1AAA

CSS variables

Paste this into your globals.css to use Stone in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 216.032);
  --foreground: oklch(0.12 0.012 211.844);
  --muted: oklch(0.905 0.007 35.986);
  --muted-foreground: oklch(0.45 0.019 35.944);
  --popover: oklch(0.987 0.005 216.032);
  --popover-foreground: oklch(0.12 0.012 211.844);
  --card: oklch(0.987 0.005 216.032);
  --card-foreground: oklch(0.12 0.012 211.844);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.389 0.055 218.999);
  --primary-foreground: oklch(0.885 0.039 216.31);
  --secondary: oklch(0.345 0.073 36.392);
  --secondary-foreground: oklch(0.857 0.042 35.947);
  --accent: oklch(0.345 0.073 36.392);
  --accent-foreground: oklch(0.857 0.042 35.947);
  --destructive: oklch(0.517 0.145 43.325);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.389 0.055 218.999);
  --chart-1: oklch(0.389 0.055 218.999);
  --chart-2: oklch(0.345 0.073 36.392);
  --chart-3: oklch(0.345 0.073 36.392);
  --chart-4: oklch(0.374 0.081 36.394);
  --chart-5: oklch(0.392 0.057 219.308);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.008 213.129);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.235 0.01 35.944);
  --muted-foreground: oklch(0.727 0.017 35.954);
  --popover: oklch(0.118 0.008 213.129);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.008 213.129);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.389 0.055 218.999);
  --primary-foreground: oklch(0.885 0.039 216.31);
  --secondary: oklch(0.345 0.073 36.392);
  --secondary-foreground: oklch(0.857 0.042 35.947);
  --accent: oklch(0.345 0.073 36.392);
  --accent-foreground: oklch(0.857 0.042 35.947);
  --destructive: oklch(0.706 0.159 46.63);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.389 0.055 218.999);
  --chart-1: oklch(0.389 0.055 218.999);
  --chart-2: oklch(0.345 0.073 36.392);
  --chart-3: oklch(0.345 0.073 36.392);
  --chart-4: oklch(0.374 0.081 36.394);
  --chart-5: oklch(0.392 0.057 219.308);
}