Fabulous for shadcn/ui

Fabulous is a shadcn/ui theme built around a deep teal primary color (#102321) with deep yellow accents (#232110). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#102321) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#102321black
#102321black
Primary foreground
#50afa7cadetblue
#50afa7cadetblue
Secondary
#211023black
#211023black
Secondary foreground
#ca96cfplum
#ca96cfplum
Muted
#ece3edlavender
#1b121cblack
Muted foreground
#666066dimgray
#9e999fdarkgray
Accent
#232110black
#232110black
Accent foreground
#afa750darkkhaki
#afa750darkkhaki
Destructive
#7c0c04maroon
#f81c0dred
Destructive foreground
#fdbab5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#102321black
#102321black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.25:1AA
Secondary button7.53:1AAA
Muted text4.89:1AA
Accent6.51:1AA
Destructive6.75:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.25:1AA
Secondary button7.53:1AAA
Muted text6.52:1AA
Accent6.51:1AA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.016 323.214);
  --muted-foreground: oklch(0.498 0.012 323.241);
  --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.239 0.025 188.765);
  --primary-foreground: oklch(0.694 0.09 187.977);
  --secondary: oklch(0.207 0.044 323.993);
  --secondary-foreground: oklch(0.742 0.098 323.704);
  --accent: oklch(0.246 0.03 103.848);
  --accent-foreground: oklch(0.716 0.109 104.073);
  --destructive: oklch(0.374 0.145 30.019);
  --destructive-foreground: oklch(0.848 0.079 23.478);
  --ring: oklch(0.239 0.025 188.765);
  --chart-1: oklch(0.239 0.025 188.765);
  --chart-2: oklch(0.207 0.044 323.993);
  --chart-3: oklch(0.246 0.03 103.848);
  --chart-4: oklch(0.239 0.055 324.048);
  --chart-5: oklch(0.241 0.027 188.597);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.023 323.645);
  --muted-foreground: oklch(0.688 0.011 323.206);
  --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.239 0.025 188.765);
  --primary-foreground: oklch(0.694 0.09 187.977);
  --secondary: oklch(0.207 0.044 323.993);
  --secondary-foreground: oklch(0.742 0.098 323.704);
  --accent: oklch(0.246 0.03 103.848);
  --accent-foreground: oklch(0.716 0.109 104.073);
  --destructive: oklch(0.621 0.245 29.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.239 0.025 188.765);
  --chart-1: oklch(0.239 0.025 188.765);
  --chart-2: oklch(0.207 0.044 323.993);
  --chart-3: oklch(0.246 0.03 103.848);
  --chart-4: oklch(0.239 0.055 324.048);
  --chart-5: oklch(0.241 0.027 188.597);
}