Cravat is a shadcn/ui theme built around a light teal primary color (#b2f0dd) with light yellow accents (#f0ddb2). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the light teal primary (#b2f0dd) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #010403black |
| Foreground | #030806black | #f9fbfamintcream |
| Card | #f4fbf9mintcream | #030706black |
| Card foreground | #010403black | #fcfdfdwhite |
| Popover | #f8fcfbmintcream | #010403black |
| Popover foreground | #030806black | #f9fbfamintcream |
| Primary | #b2f0ddpaleturquoise | #b2f0ddpaleturquoise |
| Primary foreground | #135e47darkslategray | #135e47darkslategray |
| Secondary | #ddb2f0plum | #ddb2f0plum |
| Secondary foreground | #47135eindigo | #47135eindigo |
| Muted | #ddd8dfgainsboro | #252027darkslategray |
| Muted foreground | #4f4e50darkslategray | #b0afb1darkgray |
| Accent | #f0ddb2wheat | #f0ddb2wheat |
| Accent foreground | #5e4713saddlebrown | #5e4713saddlebrown |
| Destructive | #8d110cdarkred | #ec2922crimson |
| Destructive foreground | #fbd2d0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2f0ddpaleturquoise | #b2f0ddpaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 6.59:1 | AA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Cravat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 176.509);
--foreground: oklch(0.123 0.013 176.823);
--muted: oklch(0.887 0.011 315.977);
--muted-foreground: oklch(0.426 0.003 315.997);
--popover: oklch(0.988 0.005 176.509);
--popover-foreground: oklch(0.123 0.013 176.823);
--card: oklch(0.982 0.008 176.432);
--card-foreground: oklch(0.098 0.01 176.823);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.908 0.067 174.286);
--primary-foreground: oklch(0.43 0.08 167.763);
--secondary: oklch(0.823 0.096 315.598);
--secondary-foreground: oklch(0.313 0.129 313.335);
--accent: oklch(0.903 0.06 87.549);
--accent-foreground: oklch(0.412 0.074 84.432);
--destructive: oklch(0.412 0.158 28.796);
--destructive-foreground: oklch(0.897 0.047 20.39);
--ring: oklch(0.908 0.067 174.286);
--chart-1: oklch(0.908 0.067 174.286);
--chart-2: oklch(0.823 0.096 315.598);
--chart-3: oklch(0.903 0.06 87.549);
--chart-4: oklch(0.852 0.08 315.686);
--chart-5: oklch(0.91 0.07 174.181);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 176.806);
--foreground: oklch(0.986 0.002 176.607);
--muted: oklch(0.253 0.015 315.809);
--muted-foreground: oklch(0.756 0.003 316.01);
--popover: oklch(0.097 0.009 176.806);
--popover-foreground: oklch(0.986 0.002 176.607);
--card: oklch(0.123 0.012 176.806);
--card-foreground: oklch(0.993 0.001 176.633);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.908 0.067 174.286);
--primary-foreground: oklch(0.43 0.08 167.763);
--secondary: oklch(0.823 0.096 315.598);
--secondary-foreground: oklch(0.313 0.129 313.335);
--accent: oklch(0.903 0.06 87.549);
--accent-foreground: oklch(0.412 0.074 84.432);
--destructive: oklch(0.607 0.228 28.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.067 174.286);
--chart-1: oklch(0.908 0.067 174.286);
--chart-2: oklch(0.823 0.096 315.598);
--chart-3: oklch(0.903 0.06 87.549);
--chart-4: oklch(0.852 0.08 315.686);
--chart-5: oklch(0.91 0.07 174.181);
}