Cravat is a shadcn/ui theme built around a muted deep orange primary color (#16110d) with muted deep yellow accents (#16150d). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#16110d) on an orange-tinted background (#0a0705).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0705black |
| Foreground | #040201black | #ffffffwhite |
| Card | #fcfcfcsnow | #0d0907black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0705black |
| Popover foreground | #040201black | #ffffffwhite |
| Primary | #16110dblack | #16110dblack |
| Primary foreground | #c0a596rosybrown | #c0a596rosybrown |
| Secondary | #160d0fblack | #160d0fblack |
| Secondary foreground | #c0969crosybrown | #c0969crosybrown |
| Muted | #e6d6d8gainsboro | #29191bblack |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #16150dblack | #16150dblack |
| Accent foreground | #c0ba96tan | #c0ba96tan |
| Destructive | #691802maroon | #fc5d31tomato |
| Destructive foreground | #feb4a0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #16110dblack | #16110dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 4.27:1 | AA Large |
| Accent | 9.32:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.08:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 9.32:1 | AAA |
| Destructive | 6.74:1 | AA |
Paste this into your globals.css to use Cravat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.091 0.012 60.751);
--muted: oklch(0.889 0.019 7.12);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.091 0.012 60.751);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.182 0.012 49.903);
--primary-foreground: oklch(0.741 0.038 50.039);
--secondary: oklch(0.174 0.016 8.831);
--secondary-foreground: oklch(0.713 0.051 8.381);
--accent: oklch(0.194 0.015 99.21);
--accent-foreground: oklch(0.783 0.049 99.091);
--destructive: oklch(0.346 0.118 35.328);
--destructive-foreground: oklch(0.834 0.091 36.083);
--ring: oklch(0.182 0.012 49.903);
--chart-1: oklch(0.182 0.012 49.903);
--chart-2: oklch(0.174 0.016 8.831);
--chart-3: oklch(0.194 0.015 99.21);
--chart-4: oklch(0.205 0.021 9.209);
--chart-5: oklch(0.182 0.013 49.816);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.008 54.938);
--foreground: oklch(1 0 180);
--muted: oklch(0.235 0.027 9.47);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.132 0.008 54.938);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.146 0.009 53.042);
--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.182 0.012 49.903);
--primary-foreground: oklch(0.741 0.038 50.039);
--secondary: oklch(0.174 0.016 8.831);
--secondary-foreground: oklch(0.713 0.051 8.381);
--accent: oklch(0.194 0.015 99.21);
--accent-foreground: oklch(0.783 0.049 99.091);
--destructive: oklch(0.682 0.202 35.879);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.182 0.012 49.903);
--chart-1: oklch(0.182 0.012 49.903);
--chart-2: oklch(0.174 0.016 8.831);
--chart-3: oklch(0.194 0.015 99.21);
--chart-4: oklch(0.205 0.021 9.209);
--chart-5: oklch(0.182 0.013 49.816);
}