Ripple is a shadcn/ui theme built around a vivid green primary color (#75ff7a) with vivid red accents (#ff7a75). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#75ff7a) on a green-tinted background (#070e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070e07black |
| Foreground | #010401black | #f4faf4whitesmoke |
| Card | #ffffffwhite | #070e07black |
| Card foreground | #010401black | #f4faf4whitesmoke |
| Popover | #ffffffwhite | #070e07black |
| Popover foreground | #010401black | #f4faf4whitesmoke |
| Primary | #75ff7alightgreen | #75ff7alightgreen |
| Primary foreground | #004202darkgreen | #004202darkgreen |
| Secondary | #7a75ffmediumslateblue | #7a75ffmediumslateblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #d6d6e1gainsboro | #1f1e29black |
| Muted foreground | #3b3a4adarkslategray | #b5b5c5silver |
| Accent | #ff7a75salmon | #ff7a75salmon |
| Accent foreground | #420200maroon | #420200maroon |
| Destructive | #b23601firebrick | #fe6625tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #75ff7alightgreen | #75ff7alightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 9.18:1 | AAA |
| Secondary button | 5.82:1 | AA |
| Muted text | 7.70:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 9.18:1 | AAA |
| Secondary button | 5.82:1 | AA |
| Muted text | 8.11:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 7.13:1 | AAA |
Paste this into your globals.css to use Ripple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.025 144.476);
--muted: oklch(0.879 0.015 287.63);
--muted-foreground: oklch(0.357 0.027 286.451);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.025 144.476);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.025 144.476);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.894 0.212 144.131);
--primary-foreground: oklch(0.33 0.111 142.942);
--secondary: oklch(0.638 0.199 280.657);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.734 0.163 23.904);
--accent-foreground: oklch(0.241 0.096 30.465);
--destructive: oklch(0.512 0.168 37.834);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.894 0.212 144.131);
--chart-1: oklch(0.894 0.212 144.131);
--chart-2: oklch(0.638 0.199 280.657);
--chart-3: oklch(0.734 0.163 23.904);
--chart-4: oklch(0.676 0.176 282.102);
--chart-5: oklch(0.898 0.217 144.074);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.019 145.508);
--foreground: oklch(0.98 0.01 146.451);
--muted: oklch(0.242 0.02 286.301);
--muted-foreground: oklch(0.778 0.022 287.398);
--popover: oklch(0.152 0.019 145.508);
--popover-foreground: oklch(0.98 0.01 146.451);
--card: oklch(0.152 0.019 145.508);
--card-foreground: oklch(0.98 0.01 146.451);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.894 0.212 144.131);
--primary-foreground: oklch(0.33 0.111 142.942);
--secondary: oklch(0.638 0.199 280.657);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.734 0.163 23.904);
--accent-foreground: oklch(0.241 0.096 30.465);
--destructive: oklch(0.695 0.199 40.501);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.894 0.212 144.131);
--chart-1: oklch(0.894 0.212 144.131);
--chart-2: oklch(0.638 0.199 280.657);
--chart-3: oklch(0.734 0.163 23.904);
--chart-4: oklch(0.676 0.176 282.102);
--chart-5: oklch(0.898 0.217 144.074);
}