Fabulous for shadcn/ui

Fabulous is a shadcn/ui theme built around a near-black primary color (#151514) with muted light green accents (#dadcd0). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the near-black primary (#151514) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#fbfcf8snow
#070802black
Foreground
#0e1104black
#fbfbf8snow
Card
#fbfcf8snow
#070802black
Card foreground
#0e1104black
#fbfbf8snow
Popover
#fbfcf8snow
#070802black
Popover foreground
#0e1104black
#fbfbf8snow
Primary
#151514black
#151514black
Primary foreground
#afb1aadarkgray
#afb1aadarkgray
Secondary
#dadcd0lightgrey
#2e3121darkslategray
Secondary foreground
#434634darkslategray
#c9cdb6silver
Muted
#e4e7d4gainsboro
#272b18black
Muted foreground
#585c47darkolivegreen
#b4b8a3darkgray
Accent
#dadcd0lightgrey
#2e3121darkslategray
Accent foreground
#434634darkslategray
#c9cdb6silver
Destructive
#cd310afirebrick
#e0350borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#151514black
#151514black

Contrast

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

Light mode
Text on background18.48:1AAA
Text on card18.48:1AAA
Primary button8.42:1AAA
Secondary button7.00:1AAA
Muted text5.50:1AA
Accent7.00:1AAA
Destructive5.22:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button8.42:1AAA
Secondary button8.21:1AAA
Muted text7.16:1AAA
Accent8.21:1AAA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 114.912);
  --foreground: oklch(0.168 0.027 116.959);
  --muted: oklch(0.921 0.026 115.342);
  --muted-foreground: oklch(0.466 0.033 116.148);
  --popover: oklch(0.989 0.005 114.912);
  --popover-foreground: oklch(0.168 0.027 116.959);
  --card: oklch(0.989 0.005 114.912);
  --card-foreground: oklch(0.168 0.027 116.959);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.196 0.003 115.13);
  --primary-foreground: oklch(0.756 0.009 115.05);
  --secondary: oklch(0.89 0.017 115.169);
  --secondary-foreground: oklch(0.387 0.03 116.267);
  --accent: oklch(0.89 0.017 115.169);
  --accent-foreground: oklch(0.387 0.03 116.267);
  --destructive: oklch(0.555 0.197 33.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.196 0.003 115.13);
  --chart-1: oklch(0.196 0.003 115.13);
  --chart-2: oklch(0.89 0.017 115.169);
  --chart-3: oklch(0.89 0.017 115.169);
  --chart-4: oklch(0.911 0.013 115.096);
  --chart-5: oklch(0.198 0.006 115.35);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.018 115.493);
  --foreground: oklch(0.988 0.004 114.895);
  --muted: oklch(0.279 0.033 117.082);
  --muted-foreground: oklch(0.774 0.03 115.532);
  --popover: oklch(0.129 0.018 115.493);
  --popover-foreground: oklch(0.988 0.004 114.895);
  --card: oklch(0.129 0.018 115.493);
  --card-foreground: oklch(0.988 0.004 114.895);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.196 0.003 115.13);
  --primary-foreground: oklch(0.756 0.009 115.05);
  --secondary: oklch(0.304 0.027 116.469);
  --secondary-foreground: oklch(0.84 0.032 115.525);
  --accent: oklch(0.304 0.027 116.469);
  --accent-foreground: oklch(0.84 0.032 115.525);
  --destructive: oklch(0.594 0.212 33.428);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.196 0.003 115.13);
  --chart-1: oklch(0.196 0.003 115.13);
  --chart-2: oklch(0.304 0.027 116.469);
  --chart-3: oklch(0.304 0.027 116.469);
  --chart-4: oklch(0.338 0.031 116.53);
  --chart-5: oklch(0.198 0.006 115.35);
}