Pet is a shadcn/ui theme built around a muted deep indigo primary color (#1b1a23) with muted deep green accents (#1a231b). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted deep indigo primary (#1b1a23) on an indigo-tinted background (#05040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #05040bblack |
| Foreground | #070515black | #f9f8fcghostwhite |
| Card | #f9f8fcghostwhite | #07060fblack |
| Card foreground | #050410black | #fcfcfdwhite |
| Popover | #f9f8fcghostwhite | #07060fblack |
| Popover foreground | #050410black | #fcfcfdwhite |
| Primary | #1b1a23black | #1b1a23black |
| Primary foreground | #afadc2silver | #afadc2silver |
| Secondary | #231b1ablack | #231b1ablack |
| Secondary foreground | #c2afadsilver | #c2afadsilver |
| Muted | #e3dad9gainsboro | #261d1cblack |
| Muted foreground | #6f5a58dimgray | #a79290rosybrown |
| Accent | #1a231bblack | #1a231bblack |
| Accent foreground | #adc2afsilver | #adc2afsilver |
| Destructive | #6a1306maroon | #f24126orangered |
| Destructive foreground | #fab3a8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b1a23black | #1b1a23black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 4.65:1 | AA |
| Accent | 8.53:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 5.60:1 | AA |
| Accent | 8.53:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Pet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 291.736);
--foreground: oklch(0.13 0.036 287.199);
--muted: oklch(0.895 0.01 26.52);
--muted-foreground: oklch(0.489 0.028 26.931);
--popover: oklch(0.981 0.005 291.691);
--popover-foreground: oklch(0.12 0.031 288.15);
--card: oklch(0.981 0.005 291.691);
--card-foreground: oklch(0.12 0.031 288.15);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.223 0.018 290.227);
--primary-foreground: oklch(0.756 0.03 291.009);
--secondary: oklch(0.232 0.013 26.917);
--secondary-foreground: oklch(0.771 0.022 26.656);
--accent: oklch(0.245 0.02 148.117);
--accent-foreground: oklch(0.793 0.035 148.597);
--destructive: oklch(0.343 0.122 31.758);
--destructive-foreground: oklch(0.831 0.085 28.795);
--ring: oklch(0.223 0.018 290.227);
--chart-1: oklch(0.223 0.018 290.227);
--chart-2: oklch(0.232 0.013 26.917);
--chart-3: oklch(0.245 0.02 148.117);
--chart-4: oklch(0.263 0.016 26.959);
--chart-5: oklch(0.221 0.021 289.869);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.019 289.957);
--foreground: oklch(0.981 0.004 291.694);
--muted: oklch(0.242 0.015 26.976);
--muted-foreground: oklch(0.679 0.026 26.736);
--popover: oklch(0.127 0.023 289.406);
--popover-foreground: oklch(0.991 0.002 291.737);
--card: oklch(0.127 0.023 289.406);
--card-foreground: oklch(0.991 0.002 291.737);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.223 0.018 290.227);
--primary-foreground: oklch(0.756 0.03 291.009);
--secondary: oklch(0.232 0.013 26.917);
--secondary-foreground: oklch(0.771 0.022 26.656);
--accent: oklch(0.245 0.02 148.117);
--accent-foreground: oklch(0.793 0.035 148.597);
--destructive: oklch(0.637 0.217 31.661);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.223 0.018 290.227);
--chart-1: oklch(0.223 0.018 290.227);
--chart-2: oklch(0.232 0.013 26.917);
--chart-3: oklch(0.245 0.02 148.117);
--chart-4: oklch(0.263 0.016 26.959);
--chart-5: oklch(0.221 0.021 289.869);
}