Carport for shadcn/ui

Carport is a shadcn/ui theme built around a muted deep cyan primary color (#232b2e) with muted light cyan accents (#c7d5db). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep cyan primary (#232b2e) on a cyan-tinted background (#070b0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070b0dblack
Foreground
#050c10black
#fcfdfdwhite
Card
#fcfcfcsnow
#090e11black
Card foreground
#04090cblack
#ffffffwhite
Popover
#fcfcfcsnow
#090e11black
Popover foreground
#04090cblack
#ffffffwhite
Primary
#232b2edarkslategray
#232b2edarkslategray
Primary foreground
#bac5casilver
#bac5casilver
Secondary
#e4e9eclavender
#1d1f20black
Secondary foreground
#42545cdarkslategray
#b5b9basilver
Muted
#e7e8e9lavender
#161718black
Muted foreground
#53636adimgray
#95a5acdarkgray
Accent
#c7d5dblightgrey
#262d31darkslategray
Accent foreground
#2c3d44darkslategray
#bdc7ccsilver
Destructive
#a72711firebrick
#da3316firebrick
Destructive foreground
#fdefecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#232b2edarkslategray
#232b2edarkslategray

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.57:1AAA
Primary button8.19:1AAA
Secondary button6.48:1AA
Muted text5.10:1AA
Accent7.50:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.38:1AAA
Primary button8.19:1AAA
Secondary button8.35:1AAA
Muted text7.04:1AAA
Accent8.09:1AAA
Destructive4.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.015 225.346);
  --muted: oklch(0.931 0.002 226.883);
  --muted-foreground: oklch(0.488 0.022 227.516);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.134 0.013 221.891);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.134 0.013 221.891);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.282 0.012 227.459);
  --primary-foreground: oklch(0.816 0.014 227.074);
  --secondary: oklch(0.932 0.006 226.939);
  --secondary-foreground: oklch(0.433 0.025 227.759);
  --accent: oklch(0.864 0.017 227.116);
  --accent-foreground: oklch(0.347 0.026 228.104);
  --destructive: oklch(0.479 0.168 32.223);
  --destructive-foreground: oklch(0.962 0.016 29.53);
  --ring: oklch(0.282 0.012 227.459);
  --chart-1: oklch(0.282 0.012 227.459);
  --chart-2: oklch(0.932 0.006 226.939);
  --chart-3: oklch(0.864 0.017 227.116);
  --chart-4: oklch(0.955 0.004 226.91);
  --chart-5: oklch(0.283 0.015 227.626);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.009 226.053);
  --foreground: oklch(0.992 0.001 226.865);
  --muted: oklch(0.205 0.003 227.031);
  --muted-foreground: oklch(0.711 0.02 227.24);
  --popover: oklch(0.16 0.01 227.663);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.01 227.663);
  --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.282 0.012 227.459);
  --primary-foreground: oklch(0.816 0.014 227.074);
  --secondary: oklch(0.238 0.003 227.01);
  --secondary-foreground: oklch(0.782 0.005 226.936);
  --accent: oklch(0.293 0.013 227.47);
  --accent-foreground: oklch(0.824 0.013 227.062);
  --destructive: oklch(0.582 0.207 32.136);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.282 0.012 227.459);
  --chart-1: oklch(0.282 0.012 227.459);
  --chart-2: oklch(0.238 0.003 227.01);
  --chart-3: oklch(0.293 0.013 227.47);
  --chart-4: oklch(0.27 0.004 227.021);
  --chart-5: oklch(0.283 0.015 227.626);
}