Long for shadcn/ui

Long is a shadcn/ui theme built around a deep cyan primary color (#1a4147) with deep blue accents (#1a2a47). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep cyan primary (#1a4147) on a cyan-tinted background (#030b0c).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030b0cblack
Foreground
#010404black
#ffffffwhite
Card
#f8fcfcmintcream
#040e10black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfdfewhite
#030b0cblack
Popover foreground
#010404black
#ffffffwhite
Primary
#1a4147darkslategray
#1a4147darkslategray
Primary foreground
#b0dce3powderblue
#b0dce3powderblue
Secondary
#1a4737darkslategray
#1a4737darkslategray
Secondary foreground
#b0e3d0powderblue
#b0e3d0powderblue
Muted
#f1f4f3whitesmoke
#0b0e0dblack
Muted foreground
#586f67dimgray
#90a79fdarkseagreen
Accent
#1a2a47darkslategray
#1a2a47darkslategray
Accent foreground
#b0c3e3lightsteelblue
#b0c3e3lightsteelblue
Destructive
#601f06maroon
#f25c21chocolate
Destructive foreground
#f9b89flightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a4147darkslategray
#1a4147darkslategray

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.26:1AAA
Primary button7.49:1AAA
Secondary button7.35:1AAA
Muted text4.87:1AA
Accent7.99:1AAA
Destructive7.27:1AAA
Dark mode
Text on background19.87:1AAA
Text on card19.47:1AAA
Primary button7.49:1AAA
Secondary button7.35:1AAA
Muted text7.57:1AAA
Accent7.99:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 207.924);
  --foreground: oklch(0.098 0.011 204.499);
  --muted: oklch(0.964 0.004 172.468);
  --muted-foreground: oklch(0.521 0.031 170.696);
  --popover: oklch(0.994 0.002 207.924);
  --popover-foreground: oklch(0.098 0.011 204.499);
  --card: oklch(0.987 0.004 207.914);
  --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.35 0.045 208.83);
  --primary-foreground: oklch(0.865 0.046 207.85);
  --secondary: oklch(0.362 0.058 166.152);
  --secondary-foreground: oklch(0.874 0.058 170.49);
  --accent: oklch(0.288 0.058 260.737);
  --accent-foreground: oklch(0.813 0.049 261.386);
  --destructive: oklch(0.338 0.101 39.377);
  --destructive-foreground: oklch(0.837 0.084 42.514);
  --ring: oklch(0.35 0.045 208.83);
  --chart-1: oklch(0.35 0.045 208.83);
  --chart-2: oklch(0.362 0.058 166.152);
  --chart-3: oklch(0.288 0.058 260.737);
  --chart-4: oklch(0.399 0.065 165.954);
  --chart-5: oklch(0.353 0.047 208.99);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 205.508);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.161 0.005 171.551);
  --muted-foreground: oklch(0.709 0.029 171.315);
  --popover: oklch(0.14 0.015 205.508);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.017 206.86);
  --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.35 0.045 208.83);
  --primary-foreground: oklch(0.865 0.046 207.85);
  --secondary: oklch(0.362 0.058 166.152);
  --secondary-foreground: oklch(0.874 0.058 170.49);
  --accent: oklch(0.288 0.058 260.737);
  --accent-foreground: oklch(0.813 0.049 261.386);
  --destructive: oklch(0.665 0.196 39.278);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.35 0.045 208.83);
  --chart-1: oklch(0.35 0.045 208.83);
  --chart-2: oklch(0.362 0.058 166.152);
  --chart-3: oklch(0.288 0.058 260.737);
  --chart-4: oklch(0.399 0.065 165.954);
  --chart-5: oklch(0.353 0.047 208.99);
}