Austere for shadcn/ui

Austere is a shadcn/ui theme built around a vivid deep red primary color (#460b07) with muted light red accents (#d5cdcd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#460b07) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040101black
#fdfcfcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#460b07maroon
#460b07maroon
Primary foreground
#f4928bdarksalmon
#f4928bdarksalmon
Secondary
#e0e0e0gainsboro
#362726darkslategray
Secondary foreground
#474747darkslategray
#d0bfbdsilver
Muted
#ebd5d5gainsboro
#2a1514black
Muted foreground
#493737darkslategray
#c8b8b6silver
Accent
#d5cdcdlightgrey
#553735darkslategray
Accent foreground
#3d3333darkslategray
#e5d7d6gainsboro
Destructive
#bf3a0dfirebrick
#d7410forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#460b07maroon
#460b07maroon

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button7.12:1AAA
Secondary button7.06:1AAA
Muted text7.99:1AAA
Accent7.81:1AAA
Destructive5.50:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.12:1AAA
Secondary button8.04:1AAA
Muted text9.04:1AAA
Accent7.57:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.085 0.012 26.252);
  --muted: oklch(0.892 0.025 17.621);
  --muted-foreground: oklch(0.356 0.026 18.427);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.259 0.089 29.118);
  --primary-foreground: oklch(0.76 0.119 24.616);
  --secondary: oklch(0.908 0 180);
  --secondary-foreground: oklch(0.399 0 180);
  --accent: oklch(0.855 0.009 17.336);
  --accent-foreground: oklch(0.332 0.015 17.907);
  --destructive: oklch(0.54 0.177 36.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.259 0.089 29.118);
  --chart-1: oklch(0.259 0.089 29.118);
  --chart-2: oklch(0.908 0 180);
  --chart-3: oklch(0.855 0.009 17.336);
  --chart-4: oklch(0.931 0 180);
  --chart-5: oklch(0.261 0.091 29.484);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 22.222);
  --muted: oklch(0.224 0.034 24.519);
  --muted-foreground: oklch(0.795 0.019 22.497);
  --popover: oklch(0.092 0 180);
  --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.259 0.089 29.118);
  --primary-foreground: oklch(0.76 0.119 24.616);
  --secondary: oklch(0.29 0.022 23.223);
  --secondary-foreground: oklch(0.818 0.02 22.506);
  --accent: oklch(0.371 0.043 23.858);
  --accent-foreground: oklch(0.891 0.016 22.419);
  --destructive: oklch(0.588 0.194 36.134);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.259 0.089 29.118);
  --chart-1: oklch(0.259 0.089 29.118);
  --chart-2: oklch(0.29 0.022 23.223);
  --chart-3: oklch(0.371 0.043 23.858);
  --chart-4: oklch(0.319 0.025 23.267);
  --chart-5: oklch(0.261 0.091 29.484);
}