Tent for shadcn/ui

Tent is a shadcn/ui theme built around a teal primary color (#5dbabb) with yellow accents (#babb5d). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#5dbabb) on a teal-tinted background (#070e0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e0eblack
Foreground
#031111black
#f6f9f9whitesmoke
Card
#ffffffwhite
#070e0eblack
Card foreground
#031111black
#f6f9f9whitesmoke
Popover
#ffffffwhite
#070e0eblack
Popover foreground
#031111black
#f6f9f9whitesmoke
Primary
#5dbabbmediumaquamarine
#5dbabbmediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#bb5dbamediumorchid
#bb5dbamediumorchid
Secondary foreground
#000000black
#000000black
Muted
#ecd5ebgainsboro
#2a132ablack
Muted foreground
#514d51darkslategray
#b2aeb2darkgray
Accent
#babb5ddarkkhaki
#babb5ddarkkhaki
Accent foreground
#353617darkslategray
#353617darkslategray
Destructive
#792b02saddlebrown
#f65904orangered
Destructive foreground
#fecaafpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5dbabbmediumaquamarine
#5dbabbmediumaquamarine

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button9.18:1AAA
Secondary button5.40:1AA
Muted text6.04:1AA
Accent6.13:1AA
Destructive6.61:1AA
Dark mode
Text on background18.44:1AAA
Text on card18.44:1AAA
Primary button9.18:1AAA
Secondary button5.40:1AA
Muted text7.82:1AAA
Accent6.13:1AA
Destructive3.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.022 196.567);
  --muted: oklch(0.898 0.039 326.395);
  --muted-foreground: oklch(0.425 0.01 326.238);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.022 196.567);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.164 0.022 196.567);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.732 0.088 196.875);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.625 0.167 327.967);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.772 0.118 109.724);
  --accent-foreground: oklch(0.324 0.049 109.699);
  --destructive: oklch(0.399 0.118 42.601);
  --destructive-foreground: oklch(0.878 0.07 49.729);
  --ring: oklch(0.732 0.088 196.875);
  --chart-1: oklch(0.732 0.088 196.875);
  --chart-2: oklch(0.625 0.167 327.967);
  --chart-3: oklch(0.772 0.118 109.724);
  --chart-4: oklch(0.648 0.156 327.798);
  --chart-5: oklch(0.74 0.093 196.832);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.012 197.279);
  --foreground: oklch(0.979 0.003 198.318);
  --muted: oklch(0.231 0.052 327.706);
  --muted-foreground: oklch(0.755 0.008 326.144);
  --popover: oklch(0.155 0.012 197.279);
  --popover-foreground: oklch(0.979 0.003 198.318);
  --card: oklch(0.155 0.012 197.279);
  --card-foreground: oklch(0.979 0.003 198.318);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.732 0.088 196.875);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.625 0.167 327.967);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.772 0.118 109.724);
  --accent-foreground: oklch(0.324 0.049 109.699);
  --destructive: oklch(0.666 0.206 40.399);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.088 196.875);
  --chart-1: oklch(0.732 0.088 196.875);
  --chart-2: oklch(0.625 0.167 327.967);
  --chart-3: oklch(0.772 0.118 109.724);
  --chart-4: oklch(0.648 0.156 327.798);
  --chart-5: oklch(0.74 0.093 196.832);
}