Dining for shadcn/ui

Dining is a shadcn/ui theme built around a neutral gray primary color (#484741) with neutral gray accents (#e6e6e5). The light mode uses a neutral background (#fcfbf7). Dark mode keeps the neutral gray primary (#484741) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fcfbf7snow
#040301black
Foreground
#090701black
#f8f8f6whitesmoke
Card
#fbf9f4floralwhite
#080702black
Card foreground
#040401black
#fbfaf9snow
Popover
#fbf9f4floralwhite
#080702black
Popover foreground
#040401black
#fbfaf9snow
Primary
#484741darkslategray
#484741darkslategray
Primary foreground
#e0dfdcgainsboro
#e0dfdcgainsboro
Secondary
#e6e6e5gainsboro
#312d21darkslategray
Secondary foreground
#4f4e4adarkslategray
#cec8b6silver
Muted
#e5e2d7gainsboro
#28251ablack
Muted foreground
#696863dimgray
#9c9b96darkgray
Accent
#e6e6e5gainsboro
#312d21darkslategray
Accent foreground
#4f4e4adarkslategray
#cec8b6silver
Destructive
#7c2204maroon
#f74408orangered
Destructive foreground
#fdc7b5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#484741darkslategray
#484741darkslategray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.55:1AAA
Primary button7.00:1AAA
Secondary button6.66:1AA
Muted text4.29:1AA Large
Accent6.66:1AA
Destructive6.73:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.38:1AAA
Primary button7.00:1AAA
Secondary button8.21:1AAA
Muted text5.51:1AA
Accent8.21:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 92.71);
  --foreground: oklch(0.129 0.02 98.502);
  --muted: oklch(0.911 0.015 92.81);
  --muted-foreground: oklch(0.516 0.007 92.795);
  --popover: oklch(0.983 0.008 92.736);
  --popover-foreground: oklch(0.102 0.016 98.502);
  --card: oklch(0.983 0.008 92.736);
  --card-foreground: oklch(0.102 0.016 98.502);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.397 0.009 92.865);
  --primary-foreground: oklch(0.903 0.004 92.695);
  --secondary: oklch(0.925 0.002 92.674);
  --secondary-foreground: oklch(0.423 0.006 92.79);
  --accent: oklch(0.925 0.002 92.674);
  --accent-foreground: oklch(0.423 0.006 92.79);
  --destructive: oklch(0.392 0.129 36.482);
  --destructive-foreground: oklch(0.872 0.067 39.237);
  --ring: oklch(0.397 0.009 92.865);
  --chart-1: oklch(0.397 0.009 92.865);
  --chart-2: oklch(0.925 0.002 92.674);
  --chart-3: oklch(0.925 0.002 92.674);
  --chart-4: oklch(0.947 0.001 92.669);
  --chart-5: oklch(0.401 0.014 92.964);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 97.058);
  --foreground: oklch(0.979 0.002 92.678);
  --muted: oklch(0.264 0.019 93.153);
  --muted-foreground: oklch(0.688 0.007 92.755);
  --popover: oklch(0.125 0.014 97.058);
  --popover-foreground: oklch(0.986 0.001 92.671);
  --card: oklch(0.125 0.014 97.058);
  --card-foreground: oklch(0.986 0.001 92.671);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.397 0.009 92.865);
  --primary-foreground: oklch(0.903 0.004 92.695);
  --secondary: oklch(0.298 0.022 93.155);
  --secondary-foreground: oklch(0.833 0.026 92.936);
  --accent: oklch(0.298 0.022 93.155);
  --accent-foreground: oklch(0.833 0.026 92.936);
  --destructive: oklch(0.646 0.223 35.137);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.397 0.009 92.865);
  --chart-1: oklch(0.397 0.009 92.865);
  --chart-2: oklch(0.298 0.022 93.155);
  --chart-3: oklch(0.298 0.022 93.155);
  --chart-4: oklch(0.331 0.026 93.16);
  --chart-5: oklch(0.401 0.014 92.964);
}