Comb for shadcn/ui

Comb is a shadcn/ui theme built around a blue primary color (#3f6ba2) with green accents (#6ba23f). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#3f6ba2) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030507black
Foreground
#000000black
#f6f7f9whitesmoke
Card
#f7fafdghostwhite
#04070bblack
Card foreground
#000000black
#f9fafbghostwhite
Popover
#f7fafdghostwhite
#04070bblack
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#3f6ba2steelblue
#3f6ba2steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a23f6bindianred
#a23f6bindianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3d3dbgainsboro
#2c1c23black
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#6ba23folivedrab
#6ba23folivedrab
Accent foreground
#0a0f06black
#0a0f06black
Destructive
#ac340cfirebrick
#f16537tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f6ba2steelblue
#3f6ba2steelblue

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card20.00:1AAA
Primary button5.46:1AA
Secondary button6.09:1AA
Muted text6.48:1AA
Accent6.30:1AA
Destructive6.48:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.27:1AAA
Primary button5.46:1AA
Secondary button6.09:1AA
Muted text8.18:1AAA
Accent6.30:1AA
Destructive6.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 253.235);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.883 0.02 348.414);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.983 0.005 253.252);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.005 253.252);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.522 0.1 254.369);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.515 0.139 355.073);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.651 0.143 133.26);
  --accent-foreground: oklch(0.158 0.021 130.451);
  --destructive: oklch(0.5 0.162 36.406);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.522 0.1 254.369);
  --chart-1: oklch(0.522 0.1 254.369);
  --chart-2: oklch(0.515 0.139 355.073);
  --chart-3: oklch(0.651 0.143 133.26);
  --chart-4: oklch(0.54 0.146 355.129);
  --chart-5: oklch(0.521 0.106 254.496);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.009 247.204);
  --foreground: oklch(0.976 0.003 253.238);
  --muted: oklch(0.248 0.027 350.652);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.128 0.011 247.327);
  --popover-foreground: oklch(0.984 0.002 253.231);
  --card: oklch(0.128 0.011 247.327);
  --card-foreground: oklch(0.984 0.002 253.231);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.522 0.1 254.369);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.515 0.139 355.073);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.651 0.143 133.26);
  --accent-foreground: oklch(0.158 0.021 130.451);
  --destructive: oklch(0.676 0.183 38.261);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.522 0.1 254.369);
  --chart-1: oklch(0.522 0.1 254.369);
  --chart-2: oklch(0.515 0.139 355.073);
  --chart-3: oklch(0.651 0.143 133.26);
  --chart-4: oklch(0.54 0.146 355.129);
  --chart-5: oklch(0.521 0.106 254.496);
}