Carabao is a shadcn/ui theme built around a violet primary color (#522d71) with green accents (#4c712d). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#522d71) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #050307black |
| Foreground | #08040cblack | #faf9fbghostwhite |
| Card | #faf8fbghostwhite | #08040bblack |
| Card foreground | #050208black | #fcfcfdwhite |
| Popover | #fdfcfdwhite | #050307black |
| Popover foreground | #08040cblack | #faf9fbghostwhite |
| Primary | #522d71darkslateblue | #522d71darkslateblue |
| Primary foreground | #e9def2lavender | #e9def2lavender |
| Secondary | #4c712ddarkolivegreen | #4c712ddarkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0e7dagainsboro | #1e2518black |
| Muted foreground | #5e605cdimgray | #a0a39fdarkgray |
| Accent | #4c712ddarkolivegreen | #4c712ddarkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #612205maroon | #f35c16orangered |
| Destructive foreground | #fabb9elightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #522d71darkslateblue | #522d71darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 5.66:1 | AA |
| Muted text | 5.02:1 | AA |
| Accent | 5.66:1 | AA |
| Destructive | 7.27:1 | AAA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 5.66:1 | AA |
| Muted text | 6.17:1 | AA |
| Accent | 5.66:1 | AA |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Carabao in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 310.417);
--foreground: oklch(0.118 0.025 311.871);
--muted: oklch(0.919 0.019 130.631);
--muted-foreground: oklch(0.487 0.006 130.563);
--popover: oklch(0.991 0.002 310.417);
--popover-foreground: oklch(0.118 0.025 311.871);
--card: oklch(0.982 0.004 310.396);
--card-foreground: oklch(0.103 0.022 312.104);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.379 0.116 307.11);
--primary-foreground: oklch(0.916 0.029 310.145);
--secondary: oklch(0.505 0.106 133.061);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.505 0.106 133.061);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.343 0.099 41.568);
--destructive-foreground: oklch(0.843 0.083 45.954);
--ring: oklch(0.379 0.116 307.11);
--chart-1: oklch(0.379 0.116 307.11);
--chart-2: oklch(0.505 0.106 133.061);
--chart-3: oklch(0.505 0.106 133.061);
--chart-4: oklch(0.539 0.114 133.098);
--chart-5: oklch(0.377 0.123 306.795);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.018 311.784);
--foreground: oklch(0.983 0.002 310.414);
--muted: oklch(0.253 0.025 131.452);
--muted-foreground: oklch(0.711 0.006 130.516);
--popover: oklch(0.106 0.018 311.784);
--popover-foreground: oklch(0.983 0.002 310.414);
--card: oklch(0.121 0.02 311.686);
--card-foreground: oklch(0.992 0.001 310.426);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.379 0.116 307.11);
--primary-foreground: oklch(0.916 0.029 310.145);
--secondary: oklch(0.505 0.106 133.061);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.505 0.106 133.061);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.665 0.198 40.486);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.379 0.116 307.11);
--chart-1: oklch(0.379 0.116 307.11);
--chart-2: oklch(0.505 0.106 133.061);
--chart-3: oklch(0.505 0.106 133.061);
--chart-4: oklch(0.539 0.114 133.098);
--chart-5: oklch(0.377 0.123 306.795);
}