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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 11.94:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 11.94:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 11.94:1 | AAA |
| Muted text | 9.99:1 | AAA |
| Accent | 11.94:1 | AAA |
| Destructive | 4.73:1 | AA |
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);
}