Unripe is a shadcn/ui theme built around a deep green primary color (#225d29) with deep purple accents (#5d2256). The light mode uses a neutral background (#fbfefb). Dark mode keeps the deep green primary (#225d29) on a green-tinted background (#070e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #070e07black |
| Foreground | #010902black | #f6f9f6whitesmoke |
| Card | #f7fdf7mintcream | #081109black |
| Card foreground | #010501black | #f9fbf9mintcream |
| Popover | #fbfefbwhite | #070e07black |
| Popover foreground | #010902black | #f6f9f6whitesmoke |
| Primary | #225d29darkslategray | #225d29darkslategray |
| Primary foreground | #c7eacblightgrey | #c7eacblightgrey |
| Secondary | #5d2256indigo | #5d2256indigo |
| Secondary foreground | #eac7e6thistle | #eac7e6thistle |
| Muted | #efe1eelavender | #1e101dblack |
| Muted foreground | #6c5a6adimgray | #a593a2darkgray |
| Accent | #5d2256indigo | #5d2256indigo |
| Accent foreground | #eac7e6thistle | #eac7e6thistle |
| Destructive | #d43002orangered | #fc3903orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #225d29darkslategray | #225d29darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 4.97:1 | AA |
| Text on background | 18.44:1 | AAA |
| Text on card | 18.42:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Unripe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 149.074);
--foreground: oklch(0.125 0.03 147.461);
--muted: oklch(0.924 0.023 329.425);
--muted-foreground: oklch(0.492 0.033 329.897);
--popover: oklch(0.994 0.005 149.074);
--popover-foreground: oklch(0.125 0.03 147.461);
--card: oklch(0.988 0.01 149.015);
--card-foreground: oklch(0.099 0.024 147.461);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.427 0.102 145.64);
--primary-foreground: oklch(0.904 0.056 148.379);
--secondary: oklch(0.361 0.11 332.37);
--secondary-foreground: oklch(0.869 0.057 329.872);
--accent: oklch(0.361 0.11 332.37);
--accent-foreground: oklch(0.869 0.057 329.872);
--destructive: oklch(0.568 0.205 33.601);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.102 145.64);
--chart-1: oklch(0.427 0.102 145.64);
--chart-2: oklch(0.361 0.11 332.37);
--chart-3: oklch(0.361 0.11 332.37);
--chart-4: oklch(0.39 0.121 332.421);
--chart-5: oklch(0.431 0.108 145.45);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.018 148.135);
--foreground: oklch(0.978 0.004 149.087);
--muted: oklch(0.198 0.034 330.985);
--muted-foreground: oklch(0.683 0.031 329.647);
--popover: oklch(0.152 0.018 148.135);
--popover-foreground: oklch(0.978 0.004 149.087);
--card: oklch(0.167 0.021 147.699);
--card-foreground: oklch(0.986 0.003 149.102);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.427 0.102 145.64);
--primary-foreground: oklch(0.904 0.056 148.379);
--secondary: oklch(0.361 0.11 332.37);
--secondary-foreground: oklch(0.869 0.057 329.872);
--accent: oklch(0.361 0.11 332.37);
--accent-foreground: oklch(0.869 0.057 329.872);
--destructive: oklch(0.646 0.235 33.343);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.102 145.64);
--chart-1: oklch(0.427 0.102 145.64);
--chart-2: oklch(0.361 0.11 332.37);
--chart-3: oklch(0.361 0.11 332.37);
--chart-4: oklch(0.39 0.121 332.421);
--chart-5: oklch(0.431 0.108 145.45);
}