Penalty is a shadcn/ui theme built around a deep pink primary color (#69172f) with muted light pink accents (#e8dee1). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#69172f) on a pink-tinted background (#0b0406).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0406black |
| Foreground | #160409black | #f9f6f7whitesmoke |
| Card | #ffffffwhite | #0b0406black |
| Card foreground | #160409black | #f9f6f7whitesmoke |
| Popover | #ffffffwhite | #0b0406black |
| Popover foreground | #160409black | #f9f6f7whitesmoke |
| Primary | #69172fmaroon | #69172fmaroon |
| Primary foreground | #f1c0cfpink | #f1c0cfpink |
| Secondary | #e8dee1gainsboro | #342328darkslategray |
| Secondary foreground | #583c44darkslategray | #d0b9c0silver |
| Muted | #e9d3d9gainsboro | #2c161dblack |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #e8dee1gainsboro | #342328darkslategray |
| Accent foreground | #583c44darkslategray | #d0b9c0silver |
| Destructive | #830c01maroon | #fd2f1corangered |
| Destructive foreground | #febeb8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #69172fmaroon | #69172fmaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Penalty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.038 0.323);
--muted: oklch(0.886 0.027 357.506);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.038 0.323);
--card: oklch(1 0 180);
--card-foreground: oklch(0.144 0.038 0.323);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0.115 7.744);
--primary-foreground: oklch(0.856 0.059 358.566);
--secondary: oklch(0.909 0.012 357.048);
--secondary-foreground: oklch(0.391 0.041 359.575);
--accent: oklch(0.909 0.012 357.048);
--accent-foreground: oklch(0.391 0.041 359.575);
--destructive: oklch(0.389 0.152 30.568);
--destructive-foreground: oklch(0.859 0.075 24.647);
--ring: oklch(0.351 0.115 7.744);
--chart-1: oklch(0.351 0.115 7.744);
--chart-2: oklch(0.909 0.012 357.048);
--chart-3: oklch(0.909 0.012 357.048);
--chart-4: oklch(0.934 0.009 356.933);
--chart-5: oklch(0.353 0.119 8.384);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.018 356.549);
--foreground: oklch(0.975 0.004 356.766);
--muted: oklch(0.234 0.038 1.138);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.122 0.018 356.549);
--popover-foreground: oklch(0.975 0.004 356.766);
--card: oklch(0.122 0.018 356.549);
--card-foreground: oklch(0.975 0.004 356.766);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.351 0.115 7.744);
--primary-foreground: oklch(0.856 0.059 358.566);
--secondary: oklch(0.278 0.028 359.411);
--secondary-foreground: oklch(0.806 0.028 357.649);
--accent: oklch(0.278 0.028 359.411);
--accent-foreground: oklch(0.806 0.028 357.649);
--destructive: oklch(0.64 0.24 30.059);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.115 7.744);
--chart-1: oklch(0.351 0.115 7.744);
--chart-2: oklch(0.278 0.028 359.411);
--chart-3: oklch(0.278 0.028 359.411);
--chart-4: oklch(0.307 0.032 359.52);
--chart-5: oklch(0.353 0.119 8.384);
}