Miniature for shadcn/ui

Miniature is a shadcn/ui theme built around a purple primary color (#be5fdd) with green accents (#7fdd5f). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#be5fdd) on a purple-tinted background (#0d0510).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0510black
Foreground
#0d0411black
#fbf8fcghostwhite
Card
#ffffffwhite
#0d0510black
Card foreground
#0d0411black
#fbf8fcghostwhite
Popover
#ffffffwhite
#0d0510black
Popover foreground
#0d0411black
#fbf8fcghostwhite
Primary
#be5fddmediumorchid
#be5fddmediumorchid
Primary foreground
#000000black
#000000black
Secondary
#7fdd5flightgreen
#7fdd5flightgreen
Secondary foreground
#030802black
#030802black
Muted
#edf4ebhoneydew
#0d140bblack
Muted foreground
#42523ddarkslategray
#b2c2adsilver
Accent
#7fdd5flightgreen
#7fdd5flightgreen
Accent foreground
#030802black
#030802black
Destructive
#930806darkred
#e60d0ared
Destructive foreground
#fdcfcepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#be5fddmediumorchid
#be5fddmediumorchid

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button5.86:1AA
Secondary button11.94:1AAA
Muted text7.50:1AAA
Accent11.94:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button5.86:1AA
Secondary button11.94:1AAA
Muted text9.99:1AAA
Accent11.94:1AAA
Destructive4.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.035 318.473);
  --muted: oklch(0.96 0.015 137.789);
  --muted-foreground: oklch(0.419 0.04 137.952);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.132 0.035 318.473);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.132 0.035 318.473);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.199 316.928);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.812 0.186 138.572);
  --secondary-foreground: oklch(0.126 0.025 135.811);
  --accent: oklch(0.812 0.186 138.572);
  --accent-foreground: oklch(0.126 0.025 135.811);
  --destructive: oklch(0.42 0.167 28.976);
  --destructive-foreground: oklch(0.893 0.052 19.317);
  --ring: oklch(0.649 0.199 316.928);
  --chart-1: oklch(0.649 0.199 316.928);
  --chart-2: oklch(0.812 0.186 138.572);
  --chart-3: oklch(0.812 0.186 138.572);
  --chart-4: oklch(0.825 0.174 138.428);
  --chart-5: oklch(0.648 0.207 316.856);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.029 318.295);
  --foreground: oklch(0.982 0.006 317.753);
  --muted: oklch(0.181 0.022 138.02);
  --muted-foreground: oklch(0.797 0.035 137.839);
  --popover: oklch(0.135 0.029 318.295);
  --popover-foreground: oklch(0.982 0.006 317.753);
  --card: oklch(0.135 0.029 318.295);
  --card-foreground: oklch(0.982 0.006 317.753);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.199 316.928);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.812 0.186 138.572);
  --secondary-foreground: oklch(0.126 0.025 135.811);
  --accent: oklch(0.812 0.186 138.572);
  --accent-foreground: oklch(0.126 0.025 135.811);
  --destructive: oklch(0.584 0.235 29.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.199 316.928);
  --chart-1: oklch(0.649 0.199 316.928);
  --chart-2: oklch(0.812 0.186 138.572);
  --chart-3: oklch(0.812 0.186 138.572);
  --chart-4: oklch(0.825 0.174 138.428);
  --chart-5: oklch(0.648 0.207 316.856);
}