Canine is a shadcn/ui theme built around a light violet primary color (#c6b2dc) with light green accents (#c8dcb2). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#c6b2dc) on a violet-tinted background (#0a0410).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #0a0410black |
| Foreground | #07020dblack | #f7f5fawhitesmoke |
| Card | #faf8fcghostwhite | #0a0410black |
| Card foreground | #07020dblack | #f7f5fawhitesmoke |
| Popover | #faf8fcghostwhite | #0a0410black |
| Popover foreground | #07020dblack | #f7f5fawhitesmoke |
| Primary | #c6b2dcthistle | #c6b2dcthistle |
| Primary foreground | #2d1d3fdarkslategray | #2d1d3fdarkslategray |
| Secondary | #c8dcb2silver | #c8dcb2silver |
| Secondary foreground | #2f3f1ddarkslategray | #2f3f1ddarkslategray |
| Muted | #e6eeddbeige | #1a2211black |
| Muted foreground | #646c5adimgray | #9ca593darkgray |
| Accent | #c8dcb2silver | #c8dcb2silver |
| Accent foreground | #2f3f1ddarkslategray | #2f3f1ddarkslategray |
| Destructive | #bc4c10chocolate | #eb661echocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6b2dcthistle | #c6b2dcthistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 4.59:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 5.02:1 | AA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Canine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 307.038);
--foreground: oklch(0.111 0.034 308.587);
--muted: oklch(0.938 0.023 127.417);
--muted-foreground: oklch(0.52 0.029 127.82);
--popover: oklch(0.981 0.006 307.038);
--popover-foreground: oklch(0.111 0.034 308.587);
--card: oklch(0.981 0.006 307.038);
--card-foreground: oklch(0.111 0.034 308.587);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.794 0.061 306.164);
--primary-foreground: oklch(0.268 0.064 303.96);
--secondary: oklch(0.868 0.059 127.982);
--secondary-foreground: oklch(0.344 0.058 129.568);
--accent: oklch(0.868 0.059 127.982);
--accent-foreground: oklch(0.344 0.058 129.568);
--destructive: oklch(0.558 0.157 43.131);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.794 0.061 306.164);
--chart-1: oklch(0.794 0.061 306.164);
--chart-2: oklch(0.868 0.059 127.982);
--chart-3: oklch(0.868 0.059 127.982);
--chart-4: oklch(0.886 0.051 127.841);
--chart-5: oklch(0.791 0.066 306.083);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.03 306.803);
--foreground: oklch(0.973 0.006 307.03);
--muted: oklch(0.238 0.032 128.914);
--muted-foreground: oklch(0.708 0.027 127.59);
--popover: oklch(0.128 0.03 306.803);
--popover-foreground: oklch(0.973 0.006 307.03);
--card: oklch(0.128 0.03 306.803);
--card-foreground: oklch(0.973 0.006 307.03);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.794 0.061 306.164);
--primary-foreground: oklch(0.268 0.064 303.96);
--secondary: oklch(0.868 0.059 127.982);
--secondary-foreground: oklch(0.344 0.058 129.568);
--accent: oklch(0.868 0.059 127.982);
--accent-foreground: oklch(0.344 0.058 129.568);
--destructive: oklch(0.667 0.182 43.858);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.794 0.061 306.164);
--chart-1: oklch(0.794 0.061 306.164);
--chart-2: oklch(0.868 0.059 127.982);
--chart-3: oklch(0.868 0.059 127.982);
--chart-4: oklch(0.886 0.051 127.841);
--chart-5: oklch(0.791 0.066 306.083);
}