Comb for shadcn/ui

Comb is a shadcn/ui theme built around a muted orange primary color (#ab8469) with muted blue accents (#698fab). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#ab8469) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#ffffffwhite
#080502black
Foreground
#110903black
#fdfcfcsnow
Card
#fcfcfcsnow
#0c0704black
Card foreground
#0d0702black
#ffffffwhite
Popover
#ffffffwhite
#080502black
Popover foreground
#110903black
#fdfcfcsnow
Primary
#ab8469rosybrown
#ab8469rosybrown
Primary foreground
#000000black
#000000black
Secondary
#698fabcadetblue
#698fabcadetblue
Secondary foreground
#000000black
#000000black
Muted
#f1f2f4whitesmoke
#0b0d0eblack
Muted foreground
#606466dimgray
#999c9fdarkgray
Accent
#698fabcadetblue
#698fabcadetblue
Accent foreground
#000000black
#000000black
Destructive
#d01916firebrick
#e82521crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ab8469rosybrown
#ab8469rosybrown

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.59:1AAA
Primary button6.23:1AA
Secondary button6.12:1AA
Muted text5.35:1AA
Accent6.12:1AA
Destructive5.49:1AA
Dark mode
Text on background19.88:1AAA
Text on card20.05:1AAA
Primary button6.23:1AA
Secondary button6.12:1AA
Muted text7.05:1AAA
Accent6.12:1AA
Destructive4.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.022 64.739);
  --muted: oklch(0.962 0.002 238.397);
  --muted-foreground: oklch(0.501 0.006 238.529);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.022 64.739);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.134 0.019 68.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.644 0.061 56.921);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.632 0.059 239.949);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.632 0.059 239.949);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.546 0.212 28.555);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.644 0.061 56.921);
  --chart-1: oklch(0.644 0.061 56.921);
  --chart-2: oklch(0.632 0.059 239.949);
  --chart-3: oklch(0.632 0.059 239.949);
  --chart-4: oklch(0.657 0.055 239.742);
  --chart-5: oklch(0.646 0.068 56.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.012 66.096);
  --foreground: oklch(0.993 0.001 58.346);
  --muted: oklch(0.158 0.004 238.699);
  --muted-foreground: oklch(0.691 0.005 238.474);
  --popover: oklch(0.117 0.012 66.096);
  --popover-foreground: oklch(0.993 0.001 58.346);
  --card: oklch(0.134 0.014 65.698);
  --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.644 0.061 56.921);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.632 0.059 239.949);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.632 0.059 239.949);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.597 0.227 28.161);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.644 0.061 56.921);
  --chart-1: oklch(0.644 0.061 56.921);
  --chart-2: oklch(0.632 0.059 239.949);
  --chart-3: oklch(0.632 0.059 239.949);
  --chart-4: oklch(0.657 0.055 239.742);
  --chart-5: oklch(0.646 0.068 56.733);
}