Tent for shadcn/ui

Tent is a shadcn/ui theme built around a muted deep cyan primary color (#25353c) with muted light cyan accents (#b6c7cd). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted deep cyan primary (#25353c) on a cyan-tinted background (#05090a).

Color palette

TokenLightDark
Background
#fbfdfewhite
#05090ablack
Foreground
#010304black
#ffffffwhite
Card
#fbfdfewhite
#05090ablack
Card foreground
#010304black
#ffffffwhite
Popover
#fbfdfewhite
#05090ablack
Popover foreground
#010304black
#ffffffwhite
Primary
#25353cdarkslategray
#25353cdarkslategray
Primary foreground
#bdcfd6lightsteelblue
#bdcfd6lightsteelblue
Secondary
#d7dde0gainsboro
#2f3537darkslategray
Secondary foreground
#3a464bdarkslategray
#c8ced0lightgrey
Muted
#e0e8eblavender
#141c1fblack
Muted foreground
#4e5a5fdimgray
#a0acb1darkgray
Accent
#b6c7cdsilver
#38474cdarkslategray
Accent foreground
#212c31darkslategray
#d6dee1gainsboro
Destructive
#821008maroon
#f33d30tomato
Destructive foreground
#fbc4c0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25353cdarkslategray
#25353cdarkslategray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.87:1AAA
Secondary button7.10:1AAA
Muted text5.72:1AA
Accent8.18:1AAA
Destructive6.78:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button7.87:1AAA
Secondary button7.86:1AAA
Muted text7.42:1AAA
Accent7.10:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 223.152);
  --foreground: oklch(0.094 0.009 218.048);
  --muted: oklch(0.926 0.01 223.242);
  --muted-foreground: oklch(0.46 0.017 223.587);
  --popover: oklch(0.993 0.002 223.152);
  --popover-foreground: oklch(0.094 0.009 218.048);
  --card: oklch(0.993 0.002 223.152);
  --card-foreground: oklch(0.094 0.009 218.048);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.319 0.024 224.275);
  --primary-foreground: oklch(0.843 0.022 223.416);
  --secondary: oklch(0.894 0.008 223.222);
  --secondary-foreground: oklch(0.385 0.018 223.726);
  --accent: oklch(0.818 0.02 223.409);
  --accent-foreground: oklch(0.285 0.017 223.973);
  --destructive: oklch(0.389 0.148 29.709);
  --destructive-foreground: oklch(0.869 0.064 23.174);
  --ring: oklch(0.319 0.024 224.275);
  --chart-1: oklch(0.319 0.024 224.275);
  --chart-2: oklch(0.894 0.008 223.222);
  --chart-3: oklch(0.818 0.02 223.409);
  --chart-4: oklch(0.917 0.006 223.2);
  --chart-5: oklch(0.32 0.027 224.484);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.008 219.875);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.014 224.028);
  --muted-foreground: oklch(0.736 0.016 223.363);
  --popover: oklch(0.134 0.008 219.875);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.008 219.875);
  --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.319 0.024 224.275);
  --primary-foreground: oklch(0.843 0.022 223.416);
  --secondary: oklch(0.323 0.008 223.403);
  --secondary-foreground: oklch(0.847 0.006 223.205);
  --accent: oklch(0.386 0.021 223.842);
  --accent-foreground: oklch(0.894 0.009 223.237);
  --destructive: oklch(0.635 0.22 28.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.319 0.024 224.275);
  --chart-1: oklch(0.319 0.024 224.275);
  --chart-2: oklch(0.323 0.008 223.403);
  --chart-3: oklch(0.386 0.021 223.842);
  --chart-4: oklch(0.353 0.009 223.412);
  --chart-5: oklch(0.32 0.027 224.484);
}