Diner for shadcn/ui

Diner is a shadcn/ui theme built around a deep teal primary color (#15382c) with muted light teal accents (#d9e2df). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the deep teal primary (#15382c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#000000black
Foreground
#020d0ablack
#ffffffwhite
Card
#f3fcf9mintcream
#030303black
Card foreground
#010906black
#ffffffwhite
Popover
#f7fdfbmintcream
#000000black
Popover foreground
#020d0ablack
#ffffffwhite
Primary
#15382cdarkslategray
#15382cdarkslategray
Primary foreground
#a2ddc9lightblue
#a2ddc9lightblue
Secondary
#d9e2dfgainsboro
#171717black
Secondary foreground
#3b4e48darkslategray
#afb1b0darkgray
Muted
#eaf5f2whitesmoke
#0a1511black
Muted foreground
#506860dimgray
#97afa7darkgray
Accent
#d9e2dfgainsboro
#171717black
Accent foreground
#3b4e48darkslategray
#afb1b0darkgray
Destructive
#d42902firebrick
#fd512btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#15382cdarkslategray
#15382cdarkslategray

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.22:1AAA
Primary button8.41:1AAA
Secondary button6.73:1AA
Muted text5.40:1AA
Accent6.73:1AA
Destructive5.10:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.41:1AAA
Secondary button8.30:1AAA
Muted text7.99:1AAA
Accent8.30:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 174.398);
  --foreground: oklch(0.146 0.022 173.832);
  --muted: oklch(0.962 0.013 174.201);
  --muted-foreground: oklch(0.495 0.031 172.599);
  --popover: oklch(0.988 0.006 174.398);
  --popover-foreground: oklch(0.146 0.022 173.832);
  --card: oklch(0.983 0.01 174.301);
  --card-foreground: oklch(0.127 0.019 174.879);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.31 0.046 168.745);
  --primary-foreground: oklch(0.851 0.066 172.075);
  --secondary: oklch(0.906 0.011 174.237);
  --secondary-foreground: oklch(0.407 0.026 172.537);
  --accent: oklch(0.906 0.011 174.237);
  --accent-foreground: oklch(0.407 0.026 172.537);
  --destructive: oklch(0.562 0.209 32.438);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.046 168.745);
  --chart-1: oklch(0.31 0.046 168.745);
  --chart-2: oklch(0.906 0.011 174.237);
  --chart-3: oklch(0.906 0.011 174.237);
  --chart-4: oklch(0.928 0.008 174.326);
  --chart-5: oklch(0.313 0.049 168.374);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.018 171.294);
  --muted-foreground: oklch(0.734 0.029 173.395);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.31 0.046 168.745);
  --primary-foreground: oklch(0.851 0.066 172.075);
  --secondary: oklch(0.205 0.001 174.477);
  --secondary-foreground: oklch(0.758 0.002 174.513);
  --accent: oklch(0.205 0.001 174.477);
  --accent-foreground: oklch(0.758 0.002 174.513);
  --destructive: oklch(0.67 0.214 33.923);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.31 0.046 168.745);
  --chart-1: oklch(0.31 0.046 168.745);
  --chart-2: oklch(0.205 0.001 174.477);
  --chart-3: oklch(0.205 0.001 174.477);
  --chart-4: oklch(0.238 0.001 174.465);
  --chart-5: oklch(0.313 0.049 168.374);
}