Cribbage for shadcn/ui

Cribbage is a shadcn/ui theme built around a muted red primary color (#675658) with muted teal accents (#566764). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the muted red primary (#675658) on a red-tinted background (#0c0405).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0c0405black
Foreground
#090102black
#fcf8f9snow
Card
#fdf7f8snow
#0c0405black
Card foreground
#090102black
#fcf8f9snow
Popover
#fdf7f8snow
#0c0405black
Popover foreground
#090102black
#fcf8f9snow
Primary
#675658dimgray
#675658dimgray
Primary foreground
#f8f7f7whitesmoke
#f8f7f7whitesmoke
Secondary
#566764dimgray
#566764dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dff1eelavender
#0e201dblack
Muted foreground
#57605fdimgray
#9fa8a6darkgray
Accent
#566764dimgray
#566764dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d43302orangered
#fd4108orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#675658dimgray
#675658dimgray

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button6.45:1AA
Secondary button5.97:1AA
Muted text5.53:1AA
Accent5.97:1AA
Destructive4.90:1AA
Dark mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button6.45:1AA
Secondary button5.97:1AA
Muted text6.94:1AA
Accent5.97:1AA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 6.772);
  --foreground: oklch(0.099 0.027 7.91);
  --muted: oklch(0.944 0.019 186.073);
  --muted-foreground: oklch(0.482 0.012 185.975);
  --popover: oklch(0.98 0.007 6.772);
  --popover-foreground: oklch(0.099 0.027 7.91);
  --card: oklch(0.98 0.007 6.772);
  --card-foreground: oklch(0.099 0.027 7.91);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.47 0.023 7.797);
  --primary-foreground: oklch(0.976 0.001 6.634);
  --secondary: oklch(0.498 0.021 185.494);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.498 0.021 185.494);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.57 0.203 34.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.023 7.797);
  --chart-1: oklch(0.47 0.023 7.797);
  --chart-2: oklch(0.498 0.021 185.494);
  --chart-3: oklch(0.498 0.021 185.494);
  --chart-4: oklch(0.526 0.022 185.484);
  --chart-5: oklch(0.467 0.031 8.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.019 7.373);
  --foreground: oklch(0.982 0.004 6.691);
  --muted: oklch(0.227 0.024 183.422);
  --muted-foreground: oklch(0.723 0.011 186.221);
  --popover: oklch(0.121 0.019 7.373);
  --popover-foreground: oklch(0.982 0.004 6.691);
  --card: oklch(0.121 0.019 7.373);
  --card-foreground: oklch(0.982 0.004 6.691);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.47 0.023 7.797);
  --primary-foreground: oklch(0.976 0.001 6.634);
  --secondary: oklch(0.498 0.021 185.494);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.498 0.021 185.494);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.652 0.23 34.354);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.023 7.797);
  --chart-1: oklch(0.47 0.023 7.797);
  --chart-2: oklch(0.498 0.021 185.494);
  --chart-3: oklch(0.498 0.021 185.494);
  --chart-4: oklch(0.526 0.022 185.484);
  --chart-5: oklch(0.467 0.031 8.225);
}