Best one yet for shadcn/ui

Best one yet is a shadcn/ui theme built around a vivid cyan primary color (#0de0f8) with light violet accents (#e3c5f3). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the vivid cyan primary (#0de0f8) on a cyan-tinted background (#040b0c).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#040b0cblack
Foreground
#021112black
#f9fbfbghostwhite
Card
#f8fcfcmintcream
#040b0cblack
Card foreground
#021112black
#f9fbfbghostwhite
Popover
#f8fcfcmintcream
#040b0cblack
Popover foreground
#021112black
#f9fbfbghostwhite
Primary
#0de0f8aqua
#0de0f8aqua
Primary foreground
#023136darkslategray
#023136darkslategray
Secondary
#d0dbddgainsboro
#1e2425black
Secondary foreground
#334547darkslategray
#b3c0c2silver
Muted
#edf2f2whitesmoke
#0d1112black
Muted foreground
#5b6a6bdimgray
#94a2a4darkgray
Accent
#e3c5f3thistle
#a171bamediumpurple
Accent foreground
#243a3ddarkslategray
#c3d3d5lightgrey
Destructive
#943d0asaddlebrown
#ef6b1fchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#dfe6e7gainsboro
#212b2cdarkslategray
Input
#dfe6e7gainsboro
#212b2cdarkslategray
Ring
#0de0f8aqua
#0de0f8aqua

Contrast

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

Light mode
Text on background18.57:1AAA
Text on card18.57:1AAA
Primary button8.71:1AAA
Secondary button7.14:1AAA
Muted text4.98:1AA
Accent7.76:1AAA
Destructive7.18:1AAA
Dark mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button8.71:1AAA
Secondary button8.42:1AAA
Muted text7.19:1AAA
Accent2.43:1Fail
Destructive6.82:1AA

CSS variables

Paste this into your globals.css to use Best one yet in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 204.955);
  --foreground: oklch(0.163 0.023 203.546);
  --muted: oklch(0.957 0.005 204.952);
  --muted-foreground: oklch(0.512 0.018 204.772);
  --popover: oklch(0.987 0.004 204.955);
  --popover-foreground: oklch(0.163 0.023 203.546);
  --card: oklch(0.987 0.004 204.955);
  --card-foreground: oklch(0.163 0.023 203.546);
  --border: oklch(0.92 0.008 204.927);
  --input: oklch(0.92 0.008 204.927);
  --primary: oklch(0.83 0.142 208.297);
  --primary-foreground: oklch(0.287 0.048 206.462);
  --secondary: oklch(0.884 0.013 204.884);
  --secondary-foreground: oklch(0.376 0.023 204.691);
  --accent: oklch(0.864 0.07 313.437);
  --accent-foreground: oklch(0.332 0.028 204.706);
  --destructive: oklch(0.471 0.13 44.424);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.142 208.297);
  --chart-1: oklch(0.83 0.142 208.297);
  --chart-2: oklch(0.884 0.013 204.884);
  --chart-3: oklch(0.864 0.07 313.437);
  --chart-4: oklch(0.906 0.01 204.905);
  --chart-5: oklch(0.838 0.144 208.513);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 202.916);
  --foreground: oklch(0.986 0.002 204.977);
  --muted: oklch(0.174 0.007 204.745);
  --muted-foreground: oklch(0.701 0.016 204.829);
  --popover: oklch(0.14 0.014 202.916);
  --popover-foreground: oklch(0.986 0.002 204.977);
  --card: oklch(0.14 0.014 202.916);
  --card-foreground: oklch(0.986 0.002 204.977);
  --border: oklch(0.279 0.014 204.716);
  --input: oklch(0.279 0.014 204.716);
  --primary: oklch(0.83 0.142 208.297);
  --primary-foreground: oklch(0.287 0.048 206.462);
  --secondary: oklch(0.254 0.01 204.757);
  --secondary-foreground: oklch(0.798 0.015 204.855);
  --accent: oklch(0.625 0.119 313.203);
  --accent-foreground: oklch(0.856 0.018 204.842);
  --destructive: oklch(0.68 0.182 45.246);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.83 0.142 208.297);
  --chart-1: oklch(0.83 0.142 208.297);
  --chart-2: oklch(0.254 0.01 204.757);
  --chart-3: oklch(0.625 0.119 313.203);
  --chart-4: oklch(0.287 0.011 204.748);
  --chart-5: oklch(0.838 0.144 208.513);
}