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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 5.76:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 8.03:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 4.41:1 | AA Large |
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);
}