Buckwheat for shadcn/ui

Buckwheat is a shadcn/ui theme built around a neutral gray primary color (#e6e5e5) with neutral gray accents (#e5e5e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#e6e5e5) on an orange-tinted background (#100804).

Color palette

TokenLightDark
Background
#ffffffwhite
#100804black
Foreground
#040201black
#ffffffwhite
Card
#ffffffwhite
#100804black
Card foreground
#040201black
#ffffffwhite
Popover
#ffffffwhite
#100804black
Popover foreground
#040201black
#ffffffwhite
Primary
#e6e5e5gainsboro
#e6e5e5gainsboro
Primary foreground
#4d4c4cdarkslategray
#4d4c4cdarkslategray
Secondary
#e5e6e5gainsboro
#e5e6e5gainsboro
Secondary foreground
#4c4d4cdarkslategray
#4c4d4cdarkslategray
Muted
#d1e0d6gainsboro
#1f2e23darkslategray
Muted foreground
#3e4c42darkslategray
#b3c1b7silver
Accent
#e5e5e6gainsboro
#e5e5e6gainsboro
Accent foreground
#4c4c4ddarkslategray
#4c4c4ddarkslategray
Destructive
#ca150cfirebrick
#f33e35tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6e5e5gainsboro
#e6e5e5gainsboro

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button6.82:1AA
Secondary button6.77:1AA
Muted text6.62:1AA
Accent6.82:1AA
Destructive5.77:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button6.82:1AA
Secondary button6.77:1AA
Muted text7.65:1AAA
Accent6.82:1AA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.09 0.013 55.157);
  --muted: oklch(0.893 0.021 155.42);
  --muted-foreground: oklch(0.4 0.024 154.681);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.09 0.013 55.157);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.09 0.013 55.157);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.923 0 44.978);
  --primary-foreground: oklch(0.418 0.002 44.942);
  --secondary: oklch(0.924 0.001 155.853);
  --secondary-foreground: oklch(0.419 0.003 155.748);
  --accent: oklch(0.923 0.001 300.025);
  --accent-foreground: oklch(0.417 0.003 299.934);
  --destructive: oklch(0.534 0.21 29.446);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.923 0 44.978);
  --chart-1: oklch(0.923 0 44.978);
  --chart-2: oklch(0.924 0.001 155.853);
  --chart-3: oklch(0.923 0.001 300.025);
  --chart-4: oklch(0.947 0.001 155.858);
  --chart-5: oklch(0.923 0.002 44.963);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.018 50.301);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.282 0.027 153.879);
  --muted-foreground: oklch(0.798 0.02 155.378);
  --popover: oklch(0.144 0.018 50.301);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.018 50.301);
  --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.923 0 44.978);
  --primary-foreground: oklch(0.418 0.002 44.942);
  --secondary: oklch(0.924 0.001 155.853);
  --secondary-foreground: oklch(0.419 0.003 155.748);
  --accent: oklch(0.923 0.001 300.025);
  --accent-foreground: oklch(0.417 0.003 299.934);
  --destructive: oklch(0.637 0.219 28.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.923 0 44.978);
  --chart-1: oklch(0.923 0 44.978);
  --chart-2: oklch(0.924 0.001 155.853);
  --chart-3: oklch(0.923 0.001 300.025);
  --chart-4: oklch(0.947 0.001 155.858);
  --chart-5: oklch(0.923 0.002 44.963);
}