Unripe is a shadcn/ui theme built around a neutral gray primary color (#dadad7) with neutral gray accents (#d7d7da). The light mode uses a neutral background (#fefefb). Dark mode keeps the neutral gray primary (#dadad7) on a yellow-tinted background (#0f0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0f0f05black |
| Foreground | #0e0d02black | #fcfbf8snow |
| Card | #fefefbwhite | #0f0f05black |
| Card foreground | #0e0d02black | #fcfbf8snow |
| Popover | #fefefbwhite | #0f0f05black |
| Popover foreground | #0e0d02black | #fcfbf8snow |
| Primary | #dadad7gainsboro | #dadad7gainsboro |
| Primary foreground | #42423ddarkslategray | #42423ddarkslategray |
| Secondary | #d7d7dagainsboro | #d7d7dagainsboro |
| Secondary foreground | #3d3d42darkslategray | #3d3d42darkslategray |
| Muted | #ebecf4lavender | #0b0b14black |
| Muted foreground | #434347darkslategray | #b8b8bcsilver |
| Accent | #d7d7dagainsboro | #d7d7dagainsboro |
| Accent foreground | #3d3d42darkslategray | #3d3d42darkslategray |
| Destructive | #8e140bdarkred | #ec2213red |
| Destructive foreground | #fbd3d0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dadad7gainsboro | #dadad7gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 8.34:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 18.60:1 | AAA |
| Text on card | 18.60:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 9.90:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Unripe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 104.867);
--foreground: oklch(0.157 0.028 107.89);
--muted: oklch(0.944 0.011 284.592);
--muted-foreground: oklch(0.384 0.007 284.496);
--popover: oklch(0.995 0.003 104.867);
--popover-foreground: oklch(0.157 0.028 107.89);
--card: oklch(0.995 0.003 104.867);
--card-foreground: oklch(0.157 0.028 107.89);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.888 0.004 104.887);
--primary-foreground: oklch(0.378 0.008 105.182);
--secondary: oklch(0.881 0.004 284.727);
--secondary-foreground: oklch(0.363 0.008 284.393);
--accent: oklch(0.881 0.004 284.727);
--accent-foreground: oklch(0.363 0.008 284.393);
--destructive: oklch(0.415 0.156 29.605);
--destructive-foreground: oklch(0.9 0.046 22.851);
--ring: oklch(0.888 0.004 104.887);
--chart-1: oklch(0.888 0.004 104.887);
--chart-2: oklch(0.881 0.004 284.727);
--chart-3: oklch(0.881 0.004 284.727);
--chart-4: oklch(0.905 0.003 284.746);
--chart-5: oklch(0.891 0.007 104.945);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.02 106.861);
--foreground: oklch(0.989 0.004 104.881);
--muted: oklch(0.155 0.018 282.508);
--muted-foreground: oklch(0.784 0.006 284.682);
--popover: oklch(0.165 0.02 106.861);
--popover-foreground: oklch(0.989 0.004 104.881);
--card: oklch(0.165 0.02 106.861);
--card-foreground: oklch(0.989 0.004 104.881);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.888 0.004 104.887);
--primary-foreground: oklch(0.378 0.008 105.182);
--secondary: oklch(0.881 0.004 284.727);
--secondary-foreground: oklch(0.363 0.008 284.393);
--accent: oklch(0.881 0.004 284.727);
--accent-foreground: oklch(0.363 0.008 284.393);
--destructive: oklch(0.602 0.233 29.723);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.004 104.887);
--chart-1: oklch(0.888 0.004 104.887);
--chart-2: oklch(0.881 0.004 284.727);
--chart-3: oklch(0.881 0.004 284.727);
--chart-4: oklch(0.905 0.003 284.746);
--chart-5: oklch(0.891 0.007 104.945);
}