Prime for shadcn/ui

Prime is a shadcn/ui theme built around a deep cyan primary color (#0d3b3f) with muted light cyan accents (#e6eaea). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#0d3b3f) on a cyan-tinted background (#040f10).

Color palette

TokenLightDark
Background
#ffffffwhite
#040f10black
Foreground
#030b0cblack
#ffffffwhite
Card
#fcfcfcsnow
#051314black
Card foreground
#020808black
#ffffffwhite
Popover
#ffffffwhite
#040f10black
Popover foreground
#030b0cblack
#ffffffwhite
Primary
#0d3b3fdarkslategray
#0d3b3fdarkslategray
Primary foreground
#42cad7mediumturquoise
#42cad7mediumturquoise
Secondary
#e6eaealavender
#161818black
Secondary foreground
#475657darkslategray
#adb3b3darkgray
Muted
#e9ececlavender
#131516black
Muted foreground
#3a4545darkslategray
#bac4c5silver
Accent
#e6eaealavender
#161818black
Accent foreground
#475657darkslategray
#adb3b3darkgray
Destructive
#7c2804saddlebrown
#df4807orangered
Destructive foreground
#fdcab5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d3b3fdarkslategray
#0d3b3fdarkslategray

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.74:1AAA
Primary button6.21:1AA
Secondary button6.32:1AA
Muted text8.33:1AAA
Accent6.32:1AA
Destructive6.63:1AA
Dark mode
Text on background19.40:1AAA
Text on card18.92:1AAA
Primary button6.21:1AA
Secondary button8.40:1AAA
Muted text10.25:1AAA
Accent8.40:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.016 201.522);
  --muted: oklch(0.94 0.002 203.557);
  --muted-foreground: oklch(0.38 0.014 203.29);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.142 0.016 201.522);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.014 201.008);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.324 0.048 203.868);
  --primary-foreground: oklch(0.773 0.115 203.906);
  --secondary: oklch(0.934 0.005 203.536);
  --secondary-foreground: oklch(0.44 0.018 203.259);
  --accent: oklch(0.934 0.005 203.536);
  --accent-foreground: oklch(0.44 0.018 203.259);
  --destructive: oklch(0.4 0.124 39.343);
  --destructive-foreground: oklch(0.879 0.065 44.385);
  --ring: oklch(0.324 0.048 203.868);
  --chart-1: oklch(0.324 0.048 203.868);
  --chart-2: oklch(0.934 0.005 203.536);
  --chart-3: oklch(0.934 0.005 203.536);
  --chart-4: oklch(0.956 0.003 203.552);
  --chart-5: oklch(0.327 0.049 203.975);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.018 202.32);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.004 203.422);
  --muted-foreground: oklch(0.813 0.012 203.453);
  --popover: oklch(0.158 0.018 202.32);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.02 202.78);
  --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.324 0.048 203.868);
  --primary-foreground: oklch(0.773 0.115 203.906);
  --secondary: oklch(0.206 0.003 203.466);
  --secondary-foreground: oklch(0.761 0.007 203.502);
  --accent: oklch(0.206 0.003 203.466);
  --accent-foreground: oklch(0.761 0.007 203.502);
  --destructive: oklch(0.609 0.197 37.901);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.324 0.048 203.868);
  --chart-1: oklch(0.324 0.048 203.868);
  --chart-2: oklch(0.206 0.003 203.466);
  --chart-3: oklch(0.206 0.003 203.466);
  --chart-4: oklch(0.24 0.003 203.455);
  --chart-5: oklch(0.327 0.049 203.975);
}