Outlet for shadcn/ui

Outlet is a shadcn/ui theme built around a deep teal primary color (#19483a) with deep yellow accents (#483a19). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the deep teal primary (#19483a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f4faf9mintcream
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f4faf9mintcream
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#19483adarkslategray
#19483adarkslategray
Primary foreground
#afe4d4powderblue
#afe4d4powderblue
Secondary
#3a1948midnightblue
#3a1948midnightblue
Secondary foreground
#d4afe4plum
#d4afe4plum
Muted
#ede5f0lavender
#170f1ablack
Muted foreground
#5a575cdimgray
#a7a3a8darkgray
Accent
#483a19darkolivegreen
#483a19darkolivegreen
Accent foreground
#e4d4afwheat
#e4d4afwheat
Destructive
#b60707firebrick
#e70808red
Destructive foreground
#fef0f0lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#19483adarkslategray
#19483adarkslategray

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card19.94:1AAA
Primary button7.31:1AAA
Secondary button7.83:1AAA
Muted text5.77:1AA
Accent7.56:1AAA
Destructive6.26:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.31:1AAA
Secondary button7.83:1AAA
Muted text7.56:1AAA
Accent7.56:1AAA
Destructive4.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 176.522);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.931 0.017 315.954);
  --muted-foreground: oklch(0.461 0.01 315.946);
  --popover: oklch(0.981 0.007 176.453);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 176.453);
  --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.365 0.057 170.259);
  --primary-foreground: oklch(0.877 0.058 174.558);
  --secondary: oklch(0.285 0.09 314.486);
  --secondary-foreground: oklch(0.804 0.083 315.651);
  --accent: oklch(0.356 0.053 86.294);
  --accent-foreground: oklch(0.873 0.052 87.564);
  --destructive: oklch(0.49 0.198 28.89);
  --destructive-foreground: oklch(0.967 0.015 17.423);
  --ring: oklch(0.365 0.057 170.259);
  --chart-1: oklch(0.365 0.057 170.259);
  --chart-2: oklch(0.285 0.09 314.486);
  --chart-3: oklch(0.356 0.053 86.294);
  --chart-4: oklch(0.312 0.101 314.41);
  --chart-5: oklch(0.369 0.06 169.881);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.026 315.501);
  --muted-foreground: oklch(0.72 0.009 315.978);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.365 0.057 170.259);
  --primary-foreground: oklch(0.877 0.058 174.558);
  --secondary: oklch(0.285 0.09 314.486);
  --secondary-foreground: oklch(0.804 0.083 315.651);
  --accent: oklch(0.356 0.053 86.294);
  --accent-foreground: oklch(0.873 0.052 87.564);
  --destructive: oklch(0.585 0.237 28.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.365 0.057 170.259);
  --chart-1: oklch(0.365 0.057 170.259);
  --chart-2: oklch(0.285 0.09 314.486);
  --chart-3: oklch(0.356 0.053 86.294);
  --chart-4: oklch(0.312 0.101 314.41);
  --chart-5: oklch(0.369 0.06 169.881);
}