Long for shadcn/ui

Long is a shadcn/ui theme built around a deep teal primary color (#081110) with deep yellow accents (#111008). The light mode uses a neutral background (#fbfefe). Dark mode keeps the deep teal primary (#081110) on a teal-tinted background (#040c0a).

Color palette

TokenLightDark
Background
#fbfefewhite
#040c0ablack
Foreground
#030c0bblack
#ffffffwhite
Card
#f6fdfcmintcream
#05100eblack
Card foreground
#020807black
#ffffffwhite
Popover
#fbfefewhite
#040c0ablack
Popover foreground
#030c0bblack
#ffffffwhite
Primary
#081110black
#081110black
Primary foreground
#87c5bcmediumaquamarine
#87c5bcmediumaquamarine
Secondary
#100811black
#100811black
Secondary foreground
#bc87c5orchid
#bc87c5orchid
Muted
#ead9edlavender
#231226black
Muted foreground
#5b575cdimgray
#a8a3a8darkgray
Accent
#111008black
#111008black
Accent foreground
#c5bc87tan
#c5bc87tan
Destructive
#85330asaddlebrown
#f0783dcoral
Destructive foreground
#fbd8c6bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#081110black
#081110black

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.65:1AAA
Primary button9.76:1AAA
Secondary button6.95:1AA
Muted text5.28:1AA
Accent9.91:1AAA
Destructive6.37:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.37:1AAA
Primary button9.76:1AAA
Secondary button6.95:1AA
Muted text7.13:1AAA
Accent9.91:1AAA
Destructive7.49:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 186.499);
  --foreground: oklch(0.145 0.018 185.361);
  --muted: oklch(0.905 0.032 321.141);
  --muted-foreground: oklch(0.461 0.01 321.113);
  --popover: oklch(0.995 0.004 186.499);
  --popover-foreground: oklch(0.145 0.018 185.361);
  --card: oklch(0.99 0.008 186.401);
  --card-foreground: oklch(0.126 0.015 186.133);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.169 0.014 184.437);
  --primary-foreground: oklch(0.778 0.065 184.257);
  --secondary: oklch(0.151 0.023 321.409);
  --secondary-foreground: oklch(0.695 0.107 321.357);
  --accent: oklch(0.171 0.015 99.423);
  --accent-foreground: oklch(0.789 0.071 99.333);
  --destructive: oklch(0.432 0.123 42.256);
  --destructive-foreground: oklch(0.906 0.046 48.191);
  --ring: oklch(0.169 0.014 184.437);
  --chart-1: oklch(0.169 0.014 184.437);
  --chart-2: oklch(0.151 0.023 321.409);
  --chart-3: oklch(0.171 0.015 99.423);
  --chart-4: oklch(0.184 0.034 321.395);
  --chart-5: oklch(0.17 0.015 184.294);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.015 185.725);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.216 0.044 321.417);
  --muted-foreground: oklch(0.721 0.009 321.093);
  --popover: oklch(0.142 0.015 185.725);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.017 184.453);
  --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.169 0.014 184.437);
  --primary-foreground: oklch(0.778 0.065 184.257);
  --secondary: oklch(0.151 0.023 321.409);
  --secondary-foreground: oklch(0.695 0.107 321.357);
  --accent: oklch(0.171 0.015 99.423);
  --accent-foreground: oklch(0.789 0.071 99.333);
  --destructive: oklch(0.703 0.165 44.99);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.169 0.014 184.437);
  --chart-1: oklch(0.169 0.014 184.437);
  --chart-2: oklch(0.151 0.023 321.409);
  --chart-3: oklch(0.171 0.015 99.423);
  --chart-4: oklch(0.184 0.034 321.395);
  --chart-5: oklch(0.17 0.015 184.294);
}