Carpet for shadcn/ui

Carpet is a shadcn/ui theme built around a light cyan primary color (#ddf6f8) with muted light cyan accents (#bfd7d9). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the light cyan primary (#ddf6f8) on a cyan-tinted background (#070d0e).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#070d0eblack
Foreground
#030708black
#f5f9f9whitesmoke
Card
#f8fbfcghostwhite
#070d0eblack
Card foreground
#030708black
#f5f9f9whitesmoke
Popover
#f8fbfcghostwhite
#070d0eblack
Popover foreground
#030708black
#f5f9f9whitesmoke
Primary
#ddf6f8lightcyan
#ddf6f8lightcyan
Primary foreground
#0b2f32darkslategray
#0b2f32darkslategray
Secondary
#dbe5e6gainsboro
#2d3334darkslategray
Secondary foreground
#3b5254darkslategray
#c6cdcdlightgrey
Muted
#eaeff0whitesmoke
#0f1415black
Muted foreground
#3d4748darkslategray
#b7c1c2silver
Accent
#bfd7d9lightgrey
#3a4e50darkslategray
Accent foreground
#263e40darkslategray
#d9e2e3gainsboro
Destructive
#cd2313firebrick
#ed4a3btomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ddf6f8lightcyan
#ddf6f8lightcyan

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button12.66:1AAA
Secondary button6.47:1AA
Muted text8.28:1AAA
Accent7.53:1AAA
Destructive5.45:1AA
Dark mode
Text on background18.44:1AAA
Text on card18.44:1AAA
Primary button12.66:1AAA
Secondary button7.93:1AAA
Muted text10.09:1AAA
Accent6.68:1AA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 203.55);
  --foreground: oklch(0.123 0.012 201.317);
  --muted: oklch(0.95 0.005 203.53);
  --muted-foreground: oklch(0.388 0.013 203.313);
  --popover: oklch(0.987 0.003 203.55);
  --popover-foreground: oklch(0.123 0.012 201.317);
  --card: oklch(0.987 0.003 203.55);
  --card-foreground: oklch(0.123 0.012 201.317);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.955 0.026 203.356);
  --primary-foreground: oklch(0.282 0.041 203.732);
  --secondary: oklch(0.914 0.01 203.479);
  --secondary-foreground: oklch(0.419 0.027 203.15);
  --accent: oklch(0.861 0.025 203.338);
  --accent-foreground: oklch(0.344 0.029 203.121);
  --destructive: oklch(0.547 0.206 30.072);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.955 0.026 203.356);
  --chart-1: oklch(0.955 0.026 203.356);
  --chart-2: oklch(0.914 0.01 203.479);
  --chart-3: oklch(0.861 0.025 203.338);
  --chart-4: oklch(0.936 0.008 203.506);
  --chart-5: oklch(0.956 0.027 203.347);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.011 202.722);
  --foreground: oklch(0.979 0.004 203.544);
  --muted: oklch(0.187 0.008 203.261);
  --muted-foreground: oklch(0.804 0.011 203.461);
  --popover: oklch(0.153 0.011 202.722);
  --popover-foreground: oklch(0.979 0.004 203.544);
  --card: oklch(0.153 0.011 202.722);
  --card-foreground: oklch(0.979 0.004 203.544);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.955 0.026 203.356);
  --primary-foreground: oklch(0.282 0.041 203.732);
  --secondary: oklch(0.316 0.009 203.352);
  --secondary-foreground: oklch(0.842 0.008 203.499);
  --accent: oklch(0.408 0.025 203.162);
  --accent-foreground: oklch(0.906 0.011 203.476);
  --destructive: oklch(0.638 0.202 29.101);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.955 0.026 203.356);
  --chart-1: oklch(0.955 0.026 203.356);
  --chart-2: oklch(0.316 0.009 203.352);
  --chart-3: oklch(0.408 0.025 203.162);
  --chart-4: oklch(0.347 0.01 203.346);
  --chart-5: oklch(0.956 0.027 203.347);
}