Rationality Capybara is a shadcn/ui theme built around a yellow primary color (#706338) with muted light yellow accents (#e1dfd5). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the yellow primary (#706338) on a yellow-tinted background (#0c0a03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #0c0a03black |
| Foreground | #110e04black | #fdfdfcwhite |
| Card | #fcfbf8snow | #100d04black |
| Card foreground | #0d0a03black | #ffffffwhite |
| Popover | #fdfdfbsnow | #0c0a03black |
| Popover foreground | #110e04black | #fdfdfcwhite |
| Primary | #706338darkolivegreen | #706338darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1dfd5gainsboro | #1c1912black |
| Secondary foreground | #4e4837darkolivegreen | #c0b8a0tan |
| Muted | #eeebe2beige | #1d1a11black |
| Muted foreground | #464643darkslategray | #bcbbb9silver |
| Accent | #e1dfd5gainsboro | #1c1912black |
| Accent foreground | #4e4837darkolivegreen | #c0b8a0tan |
| Destructive | #ca0902firebrick | #fd3730crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eeeeecwhitesmoke | #20201dblack |
| Input | #eeeeecwhitesmoke | #20201dblack |
| Ring | #706338darkolivegreen | #706338darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.96:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 5.95:1 | AA |
| Secondary button | 6.80:1 | AA |
| Muted text | 7.96:1 | AAA |
| Accent | 6.80:1 | AA |
| Destructive | 5.91:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 5.95:1 | AA |
| Secondary button | 8.84:1 | AAA |
| Muted text | 9.04:1 | AAA |
| Accent | 8.84:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Rationality Capybara in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 92.677);
--foreground: oklch(0.162 0.022 95.307);
--muted: oklch(0.941 0.013 92.789);
--muted-foreground: oklch(0.393 0.004 92.746);
--popover: oklch(0.994 0.002 92.677);
--popover-foreground: oklch(0.162 0.022 95.307);
--card: oklch(0.988 0.004 92.698);
--card-foreground: oklch(0.146 0.02 97.074);
--border: oklch(0.948 0.002 92.68);
--input: oklch(0.948 0.002 92.68);
--primary: oklch(0.502 0.063 93.004);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.902 0.013 92.793);
--secondary-foreground: oklch(0.403 0.028 93.145);
--accent: oklch(0.902 0.013 92.793);
--accent-foreground: oklch(0.403 0.028 93.145);
--destructive: oklch(0.529 0.214 29.492);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.502 0.063 93.004);
--chart-1: oklch(0.502 0.063 93.004);
--chart-2: oklch(0.902 0.013 92.793);
--chart-3: oklch(0.902 0.013 92.793);
--chart-4: oklch(0.923 0.01 92.762);
--chart-5: oklch(0.507 0.067 92.911);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.018 96.867);
--foreground: oklch(0.993 0.001 92.662);
--muted: oklch(0.219 0.018 93.168);
--muted-foreground: oklch(0.792 0.003 92.695);
--popover: oklch(0.144 0.018 96.867);
--popover-foreground: oklch(0.993 0.001 92.662);
--card: oklch(0.161 0.02 95.082);
--card-foreground: oklch(1 0 180);
--border: oklch(0.242 0.005 92.863);
--input: oklch(0.242 0.005 92.863);
--primary: oklch(0.502 0.063 93.004);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.215 0.014 93.12);
--secondary-foreground: oklch(0.783 0.034 93.02);
--accent: oklch(0.215 0.014 93.12);
--accent-foreground: oklch(0.783 0.034 93.02);
--destructive: oklch(0.648 0.233 28.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.502 0.063 93.004);
--chart-1: oklch(0.502 0.063 93.004);
--chart-2: oklch(0.215 0.014 93.12);
--chart-3: oklch(0.215 0.014 93.12);
--chart-4: oklch(0.251 0.017 93.141);
--chart-5: oklch(0.507 0.067 92.911);
}