Cruel is a shadcn/ui theme built around a deep cyan primary color (#113c46) with deep red accents (#461b11). The light mode uses a neutral background (#fbfefe). Dark mode keeps the deep cyan primary (#113c46) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #010304black |
| Foreground | #010404black | #fcfdfdwhite |
| Card | #fbfefewhite | #010304black |
| Card foreground | #010404black | #fcfdfdwhite |
| Popover | #fbfefewhite | #010304black |
| Popover foreground | #010404black | #fcfdfdwhite |
| Primary | #113c46darkslategray | #113c46darkslategray |
| Primary foreground | #a1dbe8lightblue | #a1dbe8lightblue |
| Secondary | #461b11maroon | #461b11maroon |
| Secondary foreground | #e8aea1burlywood | #e8aea1burlywood |
| Muted | #f1efefwhitesmoke | #100f0eblack |
| Muted foreground | #6b5e5bdimgray | #a49794rosybrown |
| Accent | #461b11maroon | #461b11maroon |
| Accent foreground | #e8aea1burlywood | #e8aea1burlywood |
| Destructive | #7d250dsaddlebrown | #d43f16chocolate |
| Destructive foreground | #f9cfc3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #113c46darkslategray | #113c46darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 4.62:1 | AA |
Paste this into your globals.css to use Cruel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 212.663);
--foreground: oklch(0.096 0.011 208.493);
--muted: oklch(0.954 0.002 32.661);
--muted-foreground: oklch(0.495 0.018 32.709);
--popover: oklch(0.994 0.003 212.663);
--popover-foreground: oklch(0.096 0.011 208.493);
--card: oklch(0.994 0.003 212.663);
--card-foreground: oklch(0.096 0.011 208.493);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.332 0.049 215.562);
--primary-foreground: oklch(0.856 0.062 213.091);
--secondary: oklch(0.283 0.069 34.07);
--secondary-foreground: oklch(0.801 0.072 32.963);
--accent: oklch(0.283 0.069 34.07);
--accent-foreground: oklch(0.801 0.072 32.963);
--destructive: oklch(0.399 0.126 35.491);
--destructive-foreground: oklch(0.886 0.05 35.954);
--ring: oklch(0.332 0.049 215.562);
--chart-1: oklch(0.332 0.049 215.562);
--chart-2: oklch(0.283 0.069 34.07);
--chart-3: oklch(0.283 0.069 34.07);
--chart-4: oklch(0.314 0.079 34.104);
--chart-5: oklch(0.334 0.051 215.831);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.008 209.428);
--foreground: oklch(0.993 0.001 212.662);
--muted: oklch(0.169 0.003 32.667);
--muted-foreground: oklch(0.685 0.016 32.68);
--popover: oklch(0.095 0.008 209.428);
--popover-foreground: oklch(0.993 0.001 212.662);
--card: oklch(0.095 0.008 209.428);
--card-foreground: oklch(0.993 0.001 212.662);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.332 0.049 215.562);
--primary-foreground: oklch(0.856 0.062 213.091);
--secondary: oklch(0.283 0.069 34.07);
--secondary-foreground: oklch(0.801 0.072 32.963);
--accent: oklch(0.283 0.069 34.07);
--accent-foreground: oklch(0.801 0.072 32.963);
--destructive: oklch(0.583 0.192 35.051);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.332 0.049 215.562);
--chart-1: oklch(0.332 0.049 215.562);
--chart-2: oklch(0.283 0.069 34.07);
--chart-3: oklch(0.283 0.069 34.07);
--chart-4: oklch(0.314 0.079 34.104);
--chart-5: oklch(0.334 0.051 215.831);
}