Miracle for shadcn/ui

Miracle is a shadcn/ui theme built around a deep pink primary color (#330f1b) with deep teal accents (#0f3328). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the deep pink primary (#330f1b) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fcf8f9snow
#030202black
Foreground
#000000black
#fdfcfcsnow
Card
#fbf4f6lavenderblush
#070304black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf8f9snow
#030202black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#330f1bblack
#330f1bblack
Primary foreground
#df95adpalevioletred
#df95adpalevioletred
Secondary
#0f3328darkslategray
#0f3328darkslategray
Secondary foreground
#46c89fmediumaquamarine
#46c89fmediumaquamarine
Muted
#f0f4f3whitesmoke
#0b0f0eblack
Muted foreground
#55625edimgray
#9daaa6darkgray
Accent
#0f3328darkslategray
#0f3328darkslategray
Accent foreground
#46c89fmediumaquamarine
#46c89fmediumaquamarine
Destructive
#b0250cfirebrick
#e53010orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#330f1bblack
#330f1bblack

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.34:1AAA
Primary button7.37:1AAA
Secondary button6.57:1AA
Muted text5.76:1AA
Accent6.57:1AA
Destructive6.17:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.48:1AAA
Primary button7.37:1AAA
Secondary button6.57:1AA
Muted text8.03:1AAA
Accent6.57:1AA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 355.777);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.965 0.005 175.466);
  --muted-foreground: oklch(0.485 0.017 174.549);
  --popover: oklch(0.982 0.005 355.777);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.008 355.86);
  --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.232 0.059 3.126);
  --primary-foreground: oklch(0.75 0.094 359.047);
  --secondary: oklch(0.291 0.046 169.129);
  --secondary-foreground: oklch(0.751 0.128 168.233);
  --accent: oklch(0.291 0.046 169.129);
  --accent-foreground: oklch(0.751 0.128 168.233);
  --destructive: oklch(0.494 0.179 32.028);
  --destructive-foreground: oklch(0.972 0.013 29.515);
  --ring: oklch(0.232 0.059 3.126);
  --chart-1: oklch(0.232 0.059 3.126);
  --chart-2: oklch(0.291 0.046 169.129);
  --chart-3: oklch(0.291 0.046 169.129);
  --chart-4: oklch(0.332 0.054 168.759);
  --chart-5: oklch(0.232 0.062 3.612);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.009 355.426);
  --foreground: oklch(0.992 0.001 355.634);
  --muted: oklch(0.163 0.008 174.197);
  --muted-foreground: oklch(0.725 0.016 174.976);
  --popover: oklch(0.087 0.009 355.426);
  --popover-foreground: oklch(0.992 0.001 355.634);
  --card: oklch(0.109 0.012 355.426);
  --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.232 0.059 3.126);
  --primary-foreground: oklch(0.75 0.094 359.047);
  --secondary: oklch(0.291 0.046 169.129);
  --secondary-foreground: oklch(0.751 0.128 168.233);
  --accent: oklch(0.291 0.046 169.129);
  --accent-foreground: oklch(0.751 0.128 168.233);
  --destructive: oklch(0.598 0.219 31.905);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.232 0.059 3.126);
  --chart-1: oklch(0.232 0.059 3.126);
  --chart-2: oklch(0.291 0.046 169.129);
  --chart-3: oklch(0.291 0.046 169.129);
  --chart-4: oklch(0.332 0.054 168.759);
  --chart-5: oklch(0.232 0.062 3.612);
}