Hurtful is a shadcn/ui theme built around an orange primary color (#cab391) with muted light orange accents (#cdc8c1). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#cab391) on an orange-tinted background (#100b05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100b05black |
| Foreground | #080602black | #fdfdfcwhite |
| Card | #ffffffwhite | #100b05black |
| Card foreground | #080602black | #fdfdfcwhite |
| Popover | #ffffffwhite | #100b05black |
| Popover foreground | #080602black | #fdfdfcwhite |
| Primary | #cab391tan | #cab391tan |
| Primary foreground | #1c160dblack | #1c160dblack |
| Secondary | #dddcdagainsboro | #23211fblack |
| Secondary foreground | #46433fdarkslategray | #bebbb7silver |
| Muted | #e4ddd3gainsboro | #2c251bblack |
| Muted foreground | #464544darkslategray | #bbbab9silver |
| Accent | #cdc8c1silver | #35312cdarkslategray |
| Accent foreground | #332f29darkslategray | #cfcbc4lightgrey |
| Destructive | #c21b0ffirebrick | #f04033tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cab391tan | #cab391tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 7.78:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Hurtful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.015 85.983);
--muted: oklch(0.9 0.015 78.252);
--muted-foreground: oklch(0.391 0.002 78.3);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.015 85.983);
--card: oklch(1 0 180);
--card-foreground: oklch(0.122 0.015 85.983);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.778 0.053 77.842);
--primary-foreground: oklch(0.204 0.018 77.516);
--secondary: oklch(0.894 0.003 78.301);
--secondary-foreground: oklch(0.384 0.008 78.239);
--accent: oklch(0.835 0.012 78.264);
--accent-foreground: oklch(0.307 0.012 78.123);
--destructive: oklch(0.522 0.201 29.711);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.778 0.053 77.842);
--chart-1: oklch(0.778 0.053 77.842);
--chart-2: oklch(0.894 0.003 78.301);
--chart-3: oklch(0.835 0.012 78.264);
--chart-4: oklch(0.917 0.003 78.304);
--chart-5: oklch(0.781 0.058 77.773);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.017 81.255);
--foreground: oklch(0.993 0.001 78.31);
--muted: oklch(0.27 0.02 77.775);
--muted-foreground: oklch(0.79 0.001 78.307);
--popover: oklch(0.154 0.017 81.255);
--popover-foreground: oklch(0.993 0.001 78.31);
--card: oklch(0.154 0.017 81.255);
--card-foreground: oklch(0.993 0.001 78.31);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.778 0.053 77.842);
--primary-foreground: oklch(0.204 0.018 77.516);
--secondary: oklch(0.25 0.004 78.252);
--secondary-foreground: oklch(0.793 0.007 78.286);
--accent: oklch(0.317 0.012 78.144);
--accent-foreground: oklch(0.842 0.01 78.272);
--destructive: oklch(0.632 0.214 28.821);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.778 0.053 77.842);
--chart-1: oklch(0.778 0.053 77.842);
--chart-2: oklch(0.25 0.004 78.252);
--chart-3: oklch(0.317 0.012 78.144);
--chart-4: oklch(0.283 0.005 78.247);
--chart-5: oklch(0.781 0.058 77.773);
}