Informal for shadcn/ui

Informal is a shadcn/ui theme built around a muted red primary color (#89616a) with muted orange accents (#896d61). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the muted red primary (#89616a) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#040102black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf8f9snow
#070304black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfbfcsnow
#040102black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#89616adimgray
#89616adimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#89617egray
#89617egray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f6eff4whitesmoke
#10090eblack
Muted foreground
#565255dimgray
#ada9acdarkgray
Accent
#896d61dimgray
#896d61dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9a2b09saddlebrown
#e33f0dorangered
Destructive foreground
#fde1d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#89616adimgray
#89616adimgray

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card19.90:1AAA
Primary button5.25:1AA
Secondary button5.13:1AA
Muted text6.77:1AA
Accent4.75:1AA
Destructive6.21:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.51:1AAA
Primary button5.25:1AA
Secondary button5.13:1AA
Muted text8.46:1AAA
Accent4.75:1AA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 2.131);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.958 0.01 335.383);
  --muted-foreground: oklch(0.444 0.006 335.428);
  --popover: oklch(0.991 0.002 2.131);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 2.196);
  --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.538 0.053 4.702);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.066 337.244);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.558 0.04 42.643);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.459 0.153 35.495);
  --destructive-foreground: oklch(0.93 0.033 37.618);
  --ring: oklch(0.538 0.053 4.702);
  --chart-1: oklch(0.538 0.053 4.702);
  --chart-2: oklch(0.545 0.066 337.244);
  --chart-3: oklch(0.558 0.04 42.643);
  --chart-4: oklch(0.57 0.069 337.257);
  --chart-5: oklch(0.535 0.063 5.208);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 2.162);
  --foreground: oklch(0.991 0.002 2.124);
  --muted: oklch(0.153 0.016 336.973);
  --muted-foreground: oklch(0.739 0.005 335.317);
  --popover: oklch(0.085 0.011 2.162);
  --popover-foreground: oklch(0.991 0.002 2.124);
  --card: oklch(0.108 0.014 2.162);
  --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.538 0.053 4.702);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.066 337.244);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.558 0.04 42.643);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.607 0.207 35.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.538 0.053 4.702);
  --chart-1: oklch(0.538 0.053 4.702);
  --chart-2: oklch(0.545 0.066 337.244);
  --chart-3: oklch(0.558 0.04 42.643);
  --chart-4: oklch(0.57 0.069 337.257);
  --chart-5: oklch(0.535 0.063 5.208);
}