Rip is a shadcn/ui theme built around a muted deep green primary color (#161811) with muted deep green accents (#131811). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#161811) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #070901black | #f8f9f6whitesmoke |
| Card | #fcfdf6snow | #030303black |
| Card foreground | #030401black | #fafbf9snow |
| Popover | #fcfdf6snow | #030303black |
| Popover foreground | #030401black | #fafbf9snow |
| Primary | #161811black | #161811black |
| Primary foreground | #b5bc9fdarkgray | #b5bc9fdarkgray |
| Secondary | #181611black | #181611black |
| Secondary foreground | #bcb59fdarkgray | #bcb59fdarkgray |
| Muted | #e5e4e1gainsboro | #1e1d1ablack |
| Muted foreground | #484847darkslategray | #b8b8b7silver |
| Accent | #131811black | #131811black |
| Accent foreground | #a6bc9fdarkgray | #a6bc9fdarkgray |
| Destructive | #d73609orangered | #f76036tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161811black | #161811black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 9.08:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 7.19:1 | AAA |
| Accent | 8.84:1 | AAA |
| Destructive | 4.74:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 9.08:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 8.84:1 | AAA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Rip in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.005 117.907);
--foreground: oklch(0.132 0.024 118.067);
--muted: oklch(0.919 0.004 91.448);
--muted-foreground: oklch(0.401 0.002 91.449);
--popover: oklch(0.992 0.009 117.99);
--popover-foreground: oklch(0.105 0.019 118.067);
--card: oklch(0.992 0.009 117.99);
--card-foreground: oklch(0.105 0.019 118.067);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.205 0.014 119.079);
--primary-foreground: oklch(0.782 0.041 118.765);
--secondary: oklch(0.201 0.011 91.769);
--secondary-foreground: oklch(0.772 0.032 91.707);
--accent: oklch(0.201 0.017 137.921);
--accent-foreground: oklch(0.771 0.048 137.875);
--destructive: oklch(0.579 0.204 34.047);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.014 119.079);
--chart-1: oklch(0.205 0.014 119.079);
--chart-2: oklch(0.201 0.011 91.769);
--chart-3: oklch(0.201 0.017 137.921);
--chart-4: oklch(0.238 0.014 91.789);
--chart-5: oklch(0.207 0.017 119.271);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.003 117.884);
--muted: oklch(0.231 0.006 91.609);
--muted-foreground: oklch(0.782 0.002 91.426);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 117.864);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 117.864);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.205 0.014 119.079);
--primary-foreground: oklch(0.782 0.041 118.765);
--secondary: oklch(0.201 0.011 91.769);
--secondary-foreground: oklch(0.772 0.032 91.707);
--accent: oklch(0.201 0.017 137.921);
--accent-foreground: oklch(0.771 0.048 137.875);
--destructive: oklch(0.678 0.193 36.049);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.205 0.014 119.079);
--chart-1: oklch(0.205 0.014 119.079);
--chart-2: oklch(0.201 0.011 91.769);
--chart-3: oklch(0.201 0.017 137.921);
--chart-4: oklch(0.238 0.014 91.789);
--chart-5: oklch(0.207 0.017 119.271);
}