Austere for shadcn/ui

Austere is a shadcn/ui theme built around a purple primary color (#983c9f) with pink accents (#9f3c74). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#983c9f) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#fefbfewhite
#030204black
Foreground
#000000black
#f8f6f9whitesmoke
Card
#fcf7fdghostwhite
#070307black
Card foreground
#000000black
#fbf9fbsnow
Popover
#fefbfewhite
#030204black
Popover foreground
#000000black
#f8f6f9whitesmoke
Primary
#983c9fdarkorchid
#983c9fdarkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#673c9frebeccapurple
#673c9frebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcd1ebgainsboro
#1f142eblack
Muted foreground
#514c57darkslategray
#ada8b3darkgray
Accent
#9f3c74mediumvioletred
#9f3c74mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6e130cmaroon
#e62b1ecrimson
Destructive foreground
#f7bab6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#983c9fdarkorchid
#983c9fdarkorchid

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card19.89:1AAA
Primary button6.00:1AA
Secondary button7.68:1AAA
Muted text5.69:1AA
Accent6.21:1AA
Destructive7.18:1AAA
Dark mode
Text on background19.29:1AAA
Text on card19.54:1AAA
Primary button6.00:1AA
Secondary button7.68:1AAA
Muted text7.51:1AAA
Accent6.21:1AA
Destructive4.43: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.991 0.004 323.658);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.877 0.037 305.177);
  --muted-foreground: oklch(0.425 0.02 305.125);
  --popover: oklch(0.991 0.004 323.658);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.009 323.681);
  --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.522 0.173 324.989);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.154 300.37);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.511 0.145 348.36);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.351 0.126 29.274);
  --destructive-foreground: oklch(0.843 0.071 23.349);
  --ring: oklch(0.522 0.173 324.989);
  --chart-1: oklch(0.522 0.173 324.989);
  --chart-2: oklch(0.459 0.154 300.37);
  --chart-3: oklch(0.511 0.145 348.36);
  --chart-4: oklch(0.482 0.163 300.316);
  --chart-5: oklch(0.524 0.182 325.022);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.013 324.778);
  --foreground: oklch(0.976 0.004 323.658);
  --muted: oklch(0.221 0.051 302.443);
  --muted-foreground: oklch(0.738 0.017 305.431);
  --popover: oklch(0.088 0.013 324.778);
  --popover-foreground: oklch(0.976 0.004 323.658);
  --card: oklch(0.11 0.017 324.778);
  --card-foreground: oklch(0.984 0.003 323.651);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.522 0.173 324.989);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.459 0.154 300.37);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.511 0.145 348.36);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.222 29.508);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.522 0.173 324.989);
  --chart-1: oklch(0.522 0.173 324.989);
  --chart-2: oklch(0.459 0.154 300.37);
  --chart-3: oklch(0.511 0.145 348.36);
  --chart-4: oklch(0.482 0.163 300.316);
  --chart-5: oklch(0.524 0.182 325.022);
}