Karate is a shadcn/ui theme built around a vivid deep pink primary color (#390413) with vivid deep blue accents (#041339). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the vivid deep pink primary (#390413) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #000000black |
| Foreground | #090103black | #ffffffwhite |
| Card | #faf4f6whitesmoke | #030303black |
| Card foreground | #050102black | #ffffffwhite |
| Popover | #faf4f6whitesmoke | #030303black |
| Popover foreground | #050102black | #ffffffwhite |
| Primary | #390413black | #390413black |
| Primary foreground | #f6799dhotpink | #f6799dhotpink |
| Secondary | #133904darkgreen | #133904darkgreen |
| Secondary foreground | #56ef1alawngreen | #56ef1alawngreen |
| Muted | #d6e8cfgainsboro | #1e3017black |
| Muted foreground | #434841darkslategray | #b9beb7silver |
| Accent | #041339midnightblue | #041339midnightblue |
| Accent foreground | #799df6cornflowerblue | #799df6cornflowerblue |
| Destructive | #a22d10brown | #e94820orangered |
| Destructive foreground | #fdece8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #390413black | #390413black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 6.25:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Karate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 357.852);
--foreground: oklch(0.1 0.028 357.354);
--muted: oklch(0.91 0.038 136.739);
--muted-foreground: oklch(0.396 0.013 136.71);
--popover: oklch(0.973 0.007 357.923);
--popover-foreground: oklch(0.08 0.022 357.354);
--card: oklch(0.973 0.007 357.923);
--card-foreground: oklch(0.08 0.022 357.354);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.227 0.082 10.128);
--primary-foreground: oklch(0.73 0.155 3.776);
--secondary: oklch(0.306 0.09 138.657);
--secondary-foreground: oklch(0.837 0.261 139.635);
--accent: oklch(0.203 0.077 263.284);
--accent-foreground: oklch(0.707 0.137 266.609);
--destructive: oklch(0.477 0.158 34.374);
--destructive-foreground: oklch(0.955 0.019 34.297);
--ring: oklch(0.227 0.082 10.128);
--chart-1: oklch(0.227 0.082 10.128);
--chart-2: oklch(0.306 0.09 138.657);
--chart-3: oklch(0.203 0.077 263.284);
--chart-4: oklch(0.353 0.106 139.017);
--chart-5: oklch(0.227 0.085 10.503);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.287 0.049 137.315);
--muted-foreground: oklch(0.794 0.011 136.65);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.227 0.082 10.128);
--primary-foreground: oklch(0.73 0.155 3.776);
--secondary: oklch(0.306 0.09 138.657);
--secondary-foreground: oklch(0.837 0.261 139.635);
--accent: oklch(0.203 0.077 263.284);
--accent-foreground: oklch(0.707 0.137 266.609);
--destructive: oklch(0.628 0.204 34.549);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.227 0.082 10.128);
--chart-1: oklch(0.227 0.082 10.128);
--chart-2: oklch(0.306 0.09 138.657);
--chart-3: oklch(0.203 0.077 263.284);
--chart-4: oklch(0.353 0.106 139.017);
--chart-5: oklch(0.227 0.085 10.503);
}