Phony for shadcn/ui

Phony is a shadcn/ui theme built around a red primary color (#9d3948) with blue accents (#39489d). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the red primary (#9d3948) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040202black
Foreground
#040101black
#fcf8f9snow
Card
#fbf4f5lavenderblush
#070304black
Card foreground
#000000black
#fdfbfcsnow
Popover
#fbf4f5lavenderblush
#070304black
Popover foreground
#000000black
#fdfbfcsnow
Primary
#9d3948brown
#9d3948brown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#489d39seagreen
#489d39seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6dcd5gainsboro
#242a23darkslategray
Muted foreground
#424941darkslategray
#b7beb6silver
Accent
#39489ddarkslateblue
#39489ddarkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b2420afirebrick
#f26a26chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9d3948brown
#9d3948brown

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.34:1AAA
Primary button6.73:1AA
Secondary button3.39:1AA Large
Muted text6.67:1AA
Accent8.12:1AAA
Destructive5.68:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.90:1AAA
Primary button6.73:1AA
Secondary button3.39:1AA Large
Muted text7.75:1AAA
Accent8.12:1AAA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 6.723);
  --foreground: oklch(0.08 0.019 7.719);
  --muted: oklch(0.889 0.011 141.038);
  --muted-foreground: oklch(0.396 0.016 140.975);
  --popover: oklch(0.972 0.007 6.789);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.007 6.789);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.49 0.134 14.607);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.622 0.161 140.799);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.438 0.139 271.88);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.529 0.157 41.194);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.49 0.134 14.607);
  --chart-1: oklch(0.49 0.134 14.607);
  --chart-2: oklch(0.622 0.161 140.799);
  --chart-3: oklch(0.438 0.139 271.88);
  --chart-4: oklch(0.655 0.17 140.803);
  --chart-5: oklch(0.491 0.141 15.257);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.01 7.1);
  --foreground: oklch(0.982 0.004 6.703);
  --muted: oklch(0.275 0.015 140.947);
  --muted-foreground: oklch(0.794 0.014 141.027);
  --popover: oklch(0.108 0.013 7.1);
  --popover-foreground: oklch(0.991 0.002 6.648);
  --card: oklch(0.108 0.013 7.1);
  --card-foreground: oklch(0.991 0.002 6.648);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.49 0.134 14.607);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.622 0.161 140.799);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.438 0.139 271.88);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.684 0.184 43.26);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.49 0.134 14.607);
  --chart-1: oklch(0.49 0.134 14.607);
  --chart-2: oklch(0.622 0.161 140.799);
  --chart-3: oklch(0.438 0.139 271.88);
  --chart-4: oklch(0.655 0.17 140.803);
  --chart-5: oklch(0.491 0.141 15.257);
}