Applause for shadcn/ui

Applause is a shadcn/ui theme built around a near-black primary color (#010401) with near-black accents (#010403). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#010401) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020803black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#020803black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020803black
#fcfdfcwhite
Primary
#010401black
#010401black
Primary foreground
#28a935forestgreen
#28a935forestgreen
Secondary
#020401black
#020401black
Secondary foreground
#5ca928olivedrab
#5ca928olivedrab
Muted
#eff3edwhitesmoke
#0f120cblack
Muted foreground
#434c3edarkslategray
#b9c1b3silver
Accent
#010403black
#010403black
Accent foreground
#28a976mediumseagreen
#28a976mediumseagreen
Destructive
#9c380dsaddlebrown
#ef733etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010401black
#010401black

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.68:1AA
Secondary button7.01:1AAA
Muted text7.97:1AAA
Accent6.88:1AA
Destructive7.07:1AAA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button6.68:1AA
Secondary button7.01:1AAA
Muted text10.18:1AAA
Accent6.88:1AA
Destructive7.19:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.025 147.172);
  --muted: oklch(0.959 0.009 132.429);
  --muted-foreground: oklch(0.404 0.025 132.84);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.025 147.172);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.025 147.172);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.098 0.019 147.195);
  --primary-foreground: oklch(0.645 0.19 144.192);
  --secondary: oklch(0.101 0.018 130.775);
  --secondary-foreground: oklch(0.661 0.177 135.892);
  --accent: oklch(0.099 0.013 170.911);
  --accent-foreground: oklch(0.655 0.134 161.077);
  --destructive: oklch(0.477 0.143 39.761);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.098 0.019 147.195);
  --chart-1: oklch(0.098 0.019 147.195);
  --chart-2: oklch(0.101 0.018 130.775);
  --chart-3: oklch(0.099 0.013 170.911);
  --chart-4: oklch(0.163 0.03 131.992);
  --chart-5: oklch(0.098 0.02 147.126);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.003 148.564);
  --muted: oklch(0.177 0.014 132.963);
  --muted-foreground: oklch(0.801 0.021 132.558);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.003 148.564);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.003 148.564);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.098 0.019 147.195);
  --primary-foreground: oklch(0.645 0.19 144.192);
  --secondary: oklch(0.101 0.018 130.775);
  --secondary-foreground: oklch(0.661 0.177 135.892);
  --accent: oklch(0.099 0.013 170.911);
  --accent-foreground: oklch(0.655 0.134 161.077);
  --destructive: oklch(0.693 0.168 42.288);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.098 0.019 147.195);
  --chart-1: oklch(0.098 0.019 147.195);
  --chart-2: oklch(0.101 0.018 130.775);
  --chart-3: oklch(0.099 0.013 170.911);
  --chart-4: oklch(0.163 0.03 131.992);
  --chart-5: oklch(0.098 0.02 147.126);
}