Carrot is a shadcn/ui theme built around a green primary color (#71ba69) with purple accents (#b269ba). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#71ba69) on a green-tinted background (#040c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040c03black |
| Foreground | #041203black | #fcfdfcwhite |
| Card | #fbfefbwhite | #040c03black |
| Card foreground | #041203black | #fcfdfcwhite |
| Popover | #fbfefbwhite | #040c03black |
| Popover foreground | #041203black | #fcfdfcwhite |
| Primary | #71ba69darkseagreen | #71ba69darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #b269bamediumorchid | #b269bamediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0eaf1whitesmoke | #150e15black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #b269bamediumorchid | #b269bamediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #872203darkred | #fb5928tomato |
| Destructive foreground | #fecdbepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #71ba69darkseagreen | #71ba69darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 8.92:1 | AAA |
| Secondary button | 5.60:1 | AA |
| Muted text | 5.90:1 | AA |
| Accent | 5.60:1 | AA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 8.92:1 | AAA |
| Secondary button | 5.60:1 | AA |
| Muted text | 7.79:1 | AAA |
| Accent | 5.60:1 | AA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Carrot in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 142.604);
--foreground: oklch(0.162 0.04 140.629);
--muted: oklch(0.943 0.011 322.674);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.994 0.006 142.604);
--popover-foreground: oklch(0.162 0.04 140.629);
--card: oklch(0.994 0.006 142.604);
--card-foreground: oklch(0.162 0.04 140.629);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.721 0.135 141.876);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.63 0.142 323.395);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.63 0.142 323.395);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.413 0.141 35.351);
--destructive-foreground: oklch(0.887 0.059 37.592);
--ring: oklch(0.721 0.135 141.876);
--chart-1: oklch(0.721 0.135 141.876);
--chart-2: oklch(0.63 0.142 323.395);
--chart-3: oklch(0.63 0.142 323.395);
--chart-4: oklch(0.655 0.132 323.331);
--chart-5: oklch(0.727 0.145 141.837);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.028 140.846);
--foreground: oklch(0.993 0.002 142.62);
--muted: oklch(0.177 0.017 322.991);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.141 0.028 140.846);
--popover-foreground: oklch(0.993 0.002 142.62);
--card: oklch(0.141 0.028 140.846);
--card-foreground: oklch(0.993 0.002 142.62);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.721 0.135 141.876);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.63 0.142 323.395);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.63 0.142 323.395);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.675 0.206 36.521);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.721 0.135 141.876);
--chart-1: oklch(0.721 0.135 141.876);
--chart-2: oklch(0.63 0.142 323.395);
--chart-3: oklch(0.63 0.142 323.395);
--chart-4: oklch(0.655 0.132 323.331);
--chart-5: oklch(0.727 0.145 141.837);
}