Opposite Pale King’s Blue for shadcn/ui

Opposite Pale King’s Blue is a shadcn/ui theme built around a vivid light teal primary color (#a4f9f3) with muted light teal accents (#d1e0df). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid light teal primary (#a4f9f3) on a teal-tinted background (#070e0d).

Color palette

TokenLightDark
Background
#fbfefewhite
#070e0dblack
Foreground
#010404black
#ffffffwhite
Card
#f7fcfcmintcream
#081111black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fcfcmintcream
#081111black
Popover foreground
#000000black
#ffffffwhite
Primary
#a4f9f3paleturquoise
#a4f9f3paleturquoise
Primary foreground
#000504black
#000504black
Secondary
#d1e0dfgainsboro
#202222black
Secondary foreground
#344c4adarkslategray
#b8bcbcsilver
Muted
#e0ebealavender
#141f1eblack
Muted foreground
#465857darkslategray
#a7b9b7darkgray
Accent
#d1e0dfgainsboro
#202222black
Accent foreground
#344c4adarkslategray
#b8bcbcsilver
Destructive
#b01507firebrick
#f64231tomato
Destructive foreground
#feedeblinen
#ffffffwhite
Border
#e3e8e7gainsboro
#232929darkslategray
Input
#e3e8e7gainsboro
#232929darkslategray
Ring
#a4f9f3paleturquoise
#a4f9f3paleturquoise

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.34:1AAA
Primary button16.99:1AAA
Secondary button6.78:1AA
Muted text6.16:1AA
Accent6.78:1AA
Destructive6.24:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.08:1AAA
Primary button16.99:1AAA
Secondary button8.32:1AAA
Muted text8.25:1AAA
Accent8.32:1AAA
Destructive3.64:1AA Large

CSS variables

Paste this into your globals.css to use Opposite Pale King’s Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 192.372);
  --foreground: oklch(0.101 0.013 191.254);
  --muted: oklch(0.931 0.011 192.17);
  --muted-foreground: oklch(0.444 0.022 191.407);
  --popover: oklch(0.988 0.005 192.317);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 192.317);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.926 0.004 192.328);
  --input: oklch(0.926 0.004 192.328);
  --primary: oklch(0.926 0.082 190.51);
  --primary-foreground: oklch(0.103 0.016 191.035);
  --secondary: oklch(0.896 0.016 192.063);
  --secondary-foreground: oklch(0.396 0.03 190.818);
  --accent: oklch(0.896 0.016 192.063);
  --accent-foreground: oklch(0.396 0.03 190.818);
  --destructive: oklch(0.484 0.188 30.106);
  --destructive-foreground: oklch(0.959 0.019 23.781);
  --ring: oklch(0.926 0.082 190.51);
  --chart-1: oklch(0.926 0.082 190.51);
  --chart-2: oklch(0.896 0.016 192.063);
  --chart-3: oklch(0.896 0.016 192.063);
  --chart-4: oklch(0.917 0.012 192.143);
  --chart-5: oklch(0.929 0.084 190.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.012 191.085);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.015 191.002);
  --muted-foreground: oklch(0.771 0.019 191.905);
  --popover: oklch(0.169 0.014 190.757);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.014 190.757);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.276 0.009 191.767);
  --input: oklch(0.276 0.009 191.767);
  --primary: oklch(0.926 0.082 190.51);
  --primary-foreground: oklch(0.103 0.016 191.035);
  --secondary: oklch(0.25 0.003 192.181);
  --secondary-foreground: oklch(0.793 0.005 192.305);
  --accent: oklch(0.25 0.003 192.181);
  --accent-foreground: oklch(0.793 0.005 192.305);
  --destructive: oklch(0.645 0.219 29.565);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.082 190.51);
  --chart-1: oklch(0.926 0.082 190.51);
  --chart-2: oklch(0.25 0.003 192.181);
  --chart-3: oklch(0.25 0.003 192.181);
  --chart-4: oklch(0.283 0.004 192.166);
  --chart-5: oklch(0.929 0.084 190.455);
}