Phony for shadcn/ui

Phony is a shadcn/ui theme built around a light indigo primary color (#f4f4fb) with light yellow accents (#fbfaf4). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the light indigo primary (#f4f4fb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#000000black
Foreground
#03040cblack
#ffffffwhite
Card
#f7f7fdghostwhite
#030303black
Card foreground
#020208black
#ffffffwhite
Popover
#fbfbfeghostwhite
#000000black
Popover foreground
#03040cblack
#ffffffwhite
Primary
#f4f4fbwhitesmoke
#f4f4fbwhitesmoke
Primary foreground
#353888darkslateblue
#353888darkslateblue
Secondary
#fbfaf4floralwhite
#fbfaf4floralwhite
Secondary foreground
#3e3d18darkolivegreen
#3e3d18darkolivegreen
Muted
#efefe6linen
#191810black
Muted foreground
#686750dimgray
#afae97darkgray
Accent
#fbfaf4floralwhite
#fbfaf4floralwhite
Accent foreground
#3e3d18darkolivegreen
#3e3d18darkolivegreen
Destructive
#c24400chocolate
#f55600orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f4fbwhitesmoke
#f4f4fbwhitesmoke

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.36:1AAA
Primary button9.26:1AAA
Secondary button10.67:1AAA
Muted text4.96:1AA
Accent10.67:1AAA
Destructive5.10:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button9.26:1AAA
Secondary button10.67:1AAA
Muted text7.88:1AAA
Accent10.67:1AAA
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 284.735);
  --foreground: oklch(0.11 0.023 279.545);
  --muted: oklch(0.949 0.011 105.009);
  --muted-foreground: oklch(0.508 0.035 105.938);
  --popover: oklch(0.989 0.004 284.735);
  --popover-foreground: oklch(0.11 0.023 279.545);
  --card: oklch(0.977 0.008 284.659);
  --card-foreground: oklch(0.096 0.02 279.567);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.969 0.009 284.65);
  --primary-foreground: oklch(0.386 0.131 276.822);
  --secondary: oklch(0.985 0.009 104.959);
  --secondary-foreground: oklch(0.353 0.055 107.118);
  --accent: oklch(0.985 0.009 104.959);
  --accent-foreground: oklch(0.353 0.055 107.118);
  --destructive: oklch(0.556 0.173 40.575);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.969 0.009 284.65);
  --chart-1: oklch(0.969 0.009 284.65);
  --chart-2: oklch(0.985 0.009 104.959);
  --chart-3: oklch(0.985 0.009 104.959);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.969 0.009 284.639);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.208 0.016 106.032);
  --muted-foreground: oklch(0.746 0.032 105.534);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.969 0.009 284.65);
  --primary-foreground: oklch(0.386 0.131 276.822);
  --secondary: oklch(0.985 0.009 104.959);
  --secondary-foreground: oklch(0.353 0.055 107.118);
  --accent: oklch(0.985 0.009 104.959);
  --accent-foreground: oklch(0.353 0.055 107.118);
  --destructive: oklch(0.66 0.207 39.959);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.969 0.009 284.65);
  --chart-1: oklch(0.969 0.009 284.65);
  --chart-2: oklch(0.985 0.009 104.959);
  --chart-3: oklch(0.985 0.009 104.959);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.969 0.009 284.639);
}