Magnificent for shadcn/ui

Magnificent is a shadcn/ui theme built around a near-white primary color (#fcfcfc) with neutral gray accents (#d7d1d1). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#fcfcfc) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040101black
Foreground
#120303black
#fbf8f8snow
Card
#fbf4f4lavenderblush
#080303black
Card foreground
#0d0202black
#fdfcfcsnow
Popover
#fbf4f4lavenderblush
#080303black
Popover foreground
#0d0202black
#fdfcfcsnow
Primary
#fcfcfcsnow
#fcfcfcsnow
Primary foreground
#303030darkslategray
#303030darkslategray
Secondary
#d7d1d1lightgrey
#161313black
Secondary foreground
#3f3737darkslategray
#b2a9a9darkgray
Muted
#f1eeeewhitesmoke
#110e0eblack
Muted foreground
#685555dimgray
#aa9797rosybrown
Accent
#d7d1d1lightgrey
#161313black
Accent foreground
#3f3737darkslategray
#b2a9a9darkgray
Destructive
#741806maroon
#f33b16orangered
Destructive foreground
#fbbeb1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfcfcsnow
#fcfcfcsnow

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card18.81:1AAA
Primary button12.91:1AAA
Secondary button7.65:1AAA
Muted text6.03:1AA
Accent7.65:1AAA
Destructive6.95:1AA
Dark mode
Text on background19.66:1AAA
Text on card20.06:1AAA
Primary button12.91:1AAA
Secondary button8.03:1AAA
Muted text6.95:1AA
Accent8.03:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 17.242);
  --foreground: oklch(0.128 0.034 23.275);
  --muted: oklch(0.952 0.004 17.221);
  --muted-foreground: oklch(0.468 0.025 18.084);
  --popover: oklch(0.972 0.008 17.287);
  --popover-foreground: oklch(0.114 0.03 23.022);
  --card: oklch(0.972 0.008 17.287);
  --card-foreground: oklch(0.114 0.03 23.022);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.992 0 161.565);
  --primary-foreground: oklch(0.311 0 180);
  --secondary: oklch(0.864 0.007 17.286);
  --secondary-foreground: oklch(0.344 0.012 17.732);
  --accent: oklch(0.864 0.007 17.286);
  --accent-foreground: oklch(0.344 0.012 17.732);
  --destructive: oklch(0.368 0.129 32.905);
  --destructive-foreground: oklch(0.853 0.073 31.462);
  --ring: oklch(0.992 0 161.565);
  --chart-1: oklch(0.992 0 161.565);
  --chart-2: oklch(0.864 0.007 17.286);
  --chart-3: oklch(0.864 0.007 17.286);
  --chart-4: oklch(0.889 0.005 17.26);
  --chart-5: oklch(0.992 0 17.161);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 19.954);
  --foreground: oklch(0.983 0.003 17.211);
  --muted: oklch(0.166 0.006 17.742);
  --muted-foreground: oklch(0.694 0.022 17.705);
  --popover: oklch(0.105 0.015 19.954);
  --popover-foreground: oklch(0.991 0.002 17.184);
  --card: oklch(0.105 0.015 19.954);
  --card-foreground: oklch(0.991 0.002 17.184);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.992 0 161.565);
  --primary-foreground: oklch(0.311 0 180);
  --secondary: oklch(0.19 0.004 17.508);
  --secondary-foreground: oklch(0.741 0.011 17.412);
  --accent: oklch(0.19 0.004 17.508);
  --accent-foreground: oklch(0.741 0.011 17.412);
  --destructive: oklch(0.632 0.224 32.664);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.992 0 161.565);
  --chart-1: oklch(0.992 0 161.565);
  --chart-2: oklch(0.19 0.004 17.508);
  --chart-3: oklch(0.19 0.004 17.508);
  --chart-4: oklch(0.223 0.005 17.555);
  --chart-5: oklch(0.992 0 17.161);
}