Austere for shadcn/ui

Austere is a shadcn/ui theme built around a light orange primary color (#e9ded3) with muted light orange accents (#e5e3e1). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the light orange primary (#e9ded3) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#080502black
Foreground
#000000black
#fcfaf8snow
Card
#fcfaf8snow
#0c0804black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdfcfcsnow
#080502black
Popover foreground
#000000black
#fcfaf8snow
Primary
#e9ded3gainsboro
#e9ded3gainsboro
Primary foreground
#5c452ddarkolivegreen
#5c452ddarkolivegreen
Secondary
#e5e3e1gainsboro
#1d1c1bblack
Secondary foreground
#504a44darkslategray
#b7b5b4silver
Muted
#e6e0dbgainsboro
#241f19black
Muted foreground
#45403adarkslategray
#c5bfbasilver
Accent
#e5e3e1gainsboro
#1d1c1bblack
Accent foreground
#504a44darkslategray
#b7b5b4silver
Destructive
#c22014firebrick
#e9372bcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9ded3gainsboro
#e9ded3gainsboro

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.14:1AAA
Primary button6.75:1AA
Secondary button6.82:1AA
Muted text7.85:1AAA
Accent6.82:1AA
Destructive5.98:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.53:1AAA
Primary button6.75:1AA
Secondary button8.33:1AAA
Muted text9.00:1AAA
Accent8.33:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 67.804);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.009 67.712);
  --muted-foreground: oklch(0.374 0.012 67.433);
  --popover: oklch(0.993 0.002 67.804);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.003 67.788);
  --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.906 0.02 67.577);
  --primary-foreground: oklch(0.409 0.048 65.786);
  --secondary: oklch(0.917 0.004 67.775);
  --secondary-foreground: oklch(0.413 0.013 67.47);
  --accent: oklch(0.917 0.004 67.775);
  --accent-foreground: oklch(0.413 0.013 67.47);
  --destructive: oklch(0.524 0.197 29.598);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.02 67.577);
  --chart-1: oklch(0.906 0.02 67.577);
  --chart-2: oklch(0.917 0.004 67.775);
  --chart-3: oklch(0.917 0.004 67.775);
  --chart-4: oklch(0.94 0.003 67.789);
  --chart-5: oklch(0.907 0.021 67.554);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.012 75.048);
  --foreground: oklch(0.986 0.003 67.786);
  --muted: oklch(0.242 0.013 67.175);
  --muted-foreground: oklch(0.808 0.01 67.681);
  --popover: oklch(0.119 0.012 75.048);
  --popover-foreground: oklch(0.986 0.003 67.786);
  --card: oklch(0.136 0.013 74.642);
  --card-foreground: oklch(0.993 0.002 67.804);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.906 0.02 67.577);
  --primary-foreground: oklch(0.409 0.048 65.786);
  --secondary: oklch(0.227 0.001 67.755);
  --secondary-foreground: oklch(0.774 0.003 67.784);
  --accent: oklch(0.227 0.001 67.755);
  --accent-foreground: oklch(0.774 0.003 67.784);
  --destructive: oklch(0.612 0.215 29.103);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.02 67.577);
  --chart-1: oklch(0.906 0.02 67.577);
  --chart-2: oklch(0.227 0.001 67.755);
  --chart-3: oklch(0.227 0.001 67.755);
  --chart-4: oklch(0.26 0.002 67.75);
  --chart-5: oklch(0.907 0.021 67.554);
}