Phony for shadcn/ui

Phony is a shadcn/ui theme built around a muted deep orange primary color (#13100b) with muted deep violet accents (#100b13). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#13100b) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#050301black
#fdfdfbsnow
Card
#ffffffwhite
#040301black
Card foreground
#050301black
#fdfdfbsnow
Popover
#ffffffwhite
#040301black
Popover foreground
#050301black
#fdfdfbsnow
Primary
#13100bblack
#13100bblack
Primary foreground
#bead93tan
#bead93tan
Secondary
#0b1310black
#0b1310black
Secondary foreground
#93beaddarkseagreen
#93beaddarkseagreen
Muted
#e7f4efhoneydew
#0b1813black
Muted foreground
#495a54darkslategray
#a5b6afdarkgray
Accent
#100b13black
#100b13black
Accent foreground
#ad93bedarkgray
#ad93bedarkgray
Destructive
#630f03maroon
#fa5238tomato
Destructive foreground
#fca89clightsalmon
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13100bblack
#13100bblack

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button8.65:1AAA
Secondary button9.14:1AAA
Muted text6.45:1AA
Accent7.11:1AAA
Destructive6.97:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button8.65:1AAA
Secondary button9.14:1AAA
Muted text8.55:1AAA
Accent7.11:1AAA
Destructive6.32:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.015 88.861);
  --muted: oklch(0.955 0.015 171.118);
  --muted-foreground: oklch(0.451 0.023 170.06);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.015 88.861);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.015 88.861);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.176 0.011 79.647);
  --primary-foreground: oklch(0.756 0.042 79.69);
  --secondary: oklch(0.178 0.013 169.256);
  --secondary-foreground: oklch(0.765 0.052 169.462);
  --accent: oklch(0.162 0.017 312.248);
  --accent-foreground: oklch(0.701 0.069 312.317);
  --destructive: oklch(0.326 0.119 32.176);
  --destructive-foreground: oklch(0.812 0.102 29.074);
  --ring: oklch(0.176 0.011 79.647);
  --chart-1: oklch(0.176 0.011 79.647);
  --chart-2: oklch(0.178 0.013 169.256);
  --chart-3: oklch(0.162 0.017 312.248);
  --chart-4: oklch(0.217 0.019 168.815);
  --chart-5: oklch(0.177 0.012 79.582);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 85.924);
  --foreground: oklch(0.993 0.002 79.931);
  --muted: oklch(0.197 0.021 167.892);
  --muted-foreground: oklch(0.76 0.02 170.808);
  --popover: oklch(0.096 0.01 85.924);
  --popover-foreground: oklch(0.993 0.002 79.931);
  --card: oklch(0.096 0.01 85.924);
  --card-foreground: oklch(0.993 0.002 79.931);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.176 0.011 79.647);
  --primary-foreground: oklch(0.756 0.042 79.69);
  --secondary: oklch(0.178 0.013 169.256);
  --secondary-foreground: oklch(0.765 0.052 169.462);
  --accent: oklch(0.162 0.017 312.248);
  --accent-foreground: oklch(0.701 0.069 312.317);
  --destructive: oklch(0.667 0.208 31.541);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.176 0.011 79.647);
  --chart-1: oklch(0.176 0.011 79.647);
  --chart-2: oklch(0.178 0.013 169.256);
  --chart-3: oklch(0.162 0.017 312.248);
  --chart-4: oklch(0.217 0.019 168.815);
  --chart-5: oklch(0.177 0.012 79.582);
}