Karate is a shadcn/ui theme built around a purple primary color (#d750b6) with cyan accents (#50b6d7). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#d750b6) on a purple-tinted background (#0f050d).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0f050dblack |
| Foreground | #090207black | #ffffffwhite |
| Card | #fdf7fbsnow | #130610black |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #fdf7fbsnow | #130610black |
| Popover foreground | #040103black | #ffffffwhite |
| Primary | #d750b6mediumorchid | #d750b6mediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #b6d750yellowgreen | #b6d750yellowgreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #eeeeecwhitesmoke | #121311black |
| Muted foreground | #494b44darkslategray | #b9bbb4silver |
| Accent | #50b6d7mediumturquoise | #50b6d7mediumturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #ad2e0bfirebrick | #f25e36tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d750b6mediumorchid | #d750b6mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 12.85:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 8.99:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 12.85:1 | AAA |
| Muted text | 9.62:1 | AAA |
| Accent | 8.99:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Karate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 333.952);
--foreground: oklch(0.105 0.029 334.795);
--muted: oklch(0.948 0.002 117.87);
--muted-foreground: oklch(0.409 0.012 118.34);
--popover: oklch(0.982 0.009 334.029);
--popover-foreground: oklch(0.083 0.023 334.795);
--card: oklch(0.982 0.009 334.029);
--card-foreground: oklch(0.083 0.023 334.795);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.645 0.202 338.863);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.83 0.164 122.005);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.729 0.105 223.087);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.496 0.168 34.652);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.645 0.202 338.863);
--chart-1: oklch(0.645 0.202 338.863);
--chart-2: oklch(0.83 0.164 122.005);
--chart-3: oklch(0.729 0.105 223.087);
--chart-4: oklch(0.841 0.156 121.598);
--chart-5: oklch(0.647 0.209 339.075);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.027 335.904);
--foreground: oklch(1 0 180);
--muted: oklch(0.184 0.004 118.174);
--muted-foreground: oklch(0.789 0.01 118.052);
--popover: oklch(0.15 0.031 336.625);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.031 336.625);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.645 0.202 338.863);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.83 0.164 122.005);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.729 0.105 223.087);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.669 0.19 36.062);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.645 0.202 338.863);
--chart-1: oklch(0.645 0.202 338.863);
--chart-2: oklch(0.83 0.164 122.005);
--chart-3: oklch(0.729 0.105 223.087);
--chart-4: oklch(0.841 0.156 121.598);
--chart-5: oklch(0.647 0.209 339.075);
}