Unripe is a shadcn/ui theme built around a muted purple primary color (#8a788c) with muted pink accents (#8c7884). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted purple primary (#8a788c) on a purple-tinted background (#0e050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #0e050fblack |
| Foreground | #140416black | #ffffffwhite |
| Card | #fdfbfdsnow | #0e050fblack |
| Card foreground | #140416black | #ffffffwhite |
| Popover | #fdfbfdsnow | #0e050fblack |
| Popover foreground | #140416black | #ffffffwhite |
| Primary | #8a788cgray | #8a788cgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #80788cgray | #80788cgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9d0e7gainsboro | #21182fblack |
| Muted foreground | #645d6fdimgray | #9790a2darkgray |
| Accent | #8c7884gray | #8c7884gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #79270bsaddlebrown | #ee6f44tomato |
| Destructive foreground | #f9ccbepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a788cgray | #8a788cgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 5.14:1 | AA |
| Secondary button | 4.21:1 | AA Large |
| Muted text | 4.21:1 | AA Large |
| Accent | 4.08:1 | AA Large |
| Destructive | 6.82:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 5.14:1 | AA |
| Secondary button | 4.21:1 | AA Large |
| Muted text | 5.51:1 | AA |
| Accent | 4.08:1 | AA Large |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Unripe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 322.64);
--foreground: oklch(0.148 0.046 323.92);
--muted: oklch(0.871 0.034 303.792);
--muted-foreground: oklch(0.491 0.03 303.463);
--popover: oklch(0.991 0.003 322.64);
--popover-foreground: oklch(0.148 0.046 323.92);
--card: oklch(0.991 0.003 322.64);
--card-foreground: oklch(0.148 0.046 323.92);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.596 0.037 322.868);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.587 0.031 303.577);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.595 0.03 341.345);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.395 0.121 37.246);
--destructive-foreground: oklch(0.881 0.055 39.259);
--ring: oklch(0.596 0.037 322.868);
--chart-1: oklch(0.596 0.037 322.868);
--chart-2: oklch(0.587 0.031 303.577);
--chart-3: oklch(0.595 0.03 341.345);
--chart-4: oklch(0.614 0.029 303.663);
--chart-5: oklch(0.593 0.05 322.955);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.027 323.615);
--foreground: oklch(1 0 180);
--muted: oklch(0.233 0.046 301.367);
--muted-foreground: oklch(0.665 0.028 303.742);
--popover: oklch(0.138 0.027 323.615);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.027 323.615);
--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.596 0.037 322.868);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.587 0.031 303.577);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.595 0.03 341.345);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.686 0.167 38.686);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.596 0.037 322.868);
--chart-1: oklch(0.596 0.037 322.868);
--chart-2: oklch(0.587 0.031 303.577);
--chart-3: oklch(0.595 0.03 341.345);
--chart-4: oklch(0.614 0.029 303.663);
--chart-5: oklch(0.593 0.05 322.955);
}