Fabulous for shadcn/ui

Fabulous is a shadcn/ui theme built around a purple primary color (#be64b8) with muted light purple accents (#dfd8de). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#be64b8) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050ablack
Foreground
#040104black
#faf5f9whitesmoke
Card
#fcfcfcsnow
#0e060dblack
Card foreground
#000000black
#fbf8fbsnow
Popover
#fcfcfcsnow
#0e060dblack
Popover foreground
#000000black
#fbf8fbsnow
Primary
#be64b8mediumorchid
#be64b8mediumorchid
Primary foreground
#000000black
#000000black
Secondary
#dfd8degainsboro
#242424darkslategray
Secondary foreground
#483c47darkslategray
#bdbdbdsilver
Muted
#ebd1e9gainsboro
#2e1414black
Muted foreground
#564d56dimgray
#b2a9a9darkgray
Accent
#dfd8degainsboro
#242424darkslategray
Accent foreground
#483c47darkslategray
#bdbdbdsilver
Destructive
#c61b0cfirebrick
#f33c2borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#be64b8mediumorchid
#be64b8mediumorchid

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button5.73:1AA
Secondary button7.45:1AAA
Muted text5.70:1AA
Accent7.45:1AAA
Destructive5.91:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.92:1AAA
Primary button5.73:1AA
Secondary button8.29:1AAA
Muted text7.44:1AAA
Accent8.29:1AAA
Destructive3.83: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.086 0.019 328.864);
  --muted: oklch(0.889 0.044 328.022);
  --muted-foreground: oklch(0.432 0.019 327.98);
  --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.638 0.156 329.716);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.889 0.011 327.663);
  --secondary-foreground: oklch(0.374 0.025 328.172);
  --accent: oklch(0.889 0.011 327.663);
  --accent-foreground: oklch(0.374 0.025 328.172);
  --destructive: oklch(0.528 0.204 30.09);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.156 329.716);
  --chart-1: oklch(0.638 0.156 329.716);
  --chart-2: oklch(0.889 0.011 327.663);
  --chart-3: oklch(0.889 0.011 327.663);
  --chart-4: oklch(0.913 0.008 327.635);
  --chart-5: oklch(0.639 0.166 329.847);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.018 328.466);
  --foreground: oklch(0.975 0.007 327.618);
  --muted: oklch(0.23 0.043 20.998);
  --muted-foreground: oklch(0.741 0.011 17.412);
  --popover: oklch(0.141 0.021 328.772);
  --popover-foreground: oklch(0.983 0.005 327.594);
  --card: oklch(0.141 0.021 328.772);
  --card-foreground: oklch(0.983 0.005 327.594);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.638 0.156 329.716);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.259 0 167.471);
  --secondary-foreground: oklch(0.797 0 180);
  --accent: oklch(0.259 0 167.471);
  --accent-foreground: oklch(0.797 0 180);
  --destructive: oklch(0.633 0.221 29.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.156 329.716);
  --chart-1: oklch(0.638 0.156 329.716);
  --chart-2: oklch(0.259 0 167.471);
  --chart-3: oklch(0.259 0 167.471);
  --chart-4: oklch(0.29 0 180);
  --chart-5: oklch(0.639 0.166 329.847);
}