Bruised is a shadcn/ui theme built around a pink primary color (#d373a8) with green accents (#73d39e). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the pink primary (#d373a8) on a neutral background (#080305).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #080305black |
| Foreground | #040103black | #f8f7f7whitesmoke |
| Card | #fdf7fasnow | #080305black |
| Card foreground | #040103black | #f8f7f7whitesmoke |
| Popover | #fdf7fasnow | #080305black |
| Popover foreground | #040103black | #f8f7f7whitesmoke |
| Primary | #d373a8palevioletred | #d373a8palevioletred |
| Primary foreground | #10050bblack | #10050bblack |
| Secondary | #73d39emediumaquamarine | #73d39emediumaquamarine |
| Secondary foreground | #05100ablack | #05100ablack |
| Muted | #eff0f0whitesmoke | #0f100fblack |
| Muted foreground | #575b59dimgray | #a4a8a6darkgray |
| Accent | #73d39emediumaquamarine | #73d39emediumaquamarine |
| Accent foreground | #05100ablack | #05100ablack |
| Destructive | #741c01maroon | #fd6030tomato |
| Destructive foreground | #febda9lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d373a8palevioletred | #d373a8palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 10.63:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 10.63:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 10.63:1 | AAA |
| Muted text | 7.92:1 | AAA |
| Accent | 10.63:1 | AAA |
| Destructive | 6.88:1 | AA |
Paste this into your globals.css to use Bruised in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 342.82);
--foreground: oklch(0.084 0.018 342.582);
--muted: oklch(0.955 0.002 162.567);
--muted-foreground: oklch(0.467 0.005 162.326);
--popover: oklch(0.981 0.008 342.82);
--popover-foreground: oklch(0.084 0.018 342.582);
--card: oklch(0.981 0.008 342.82);
--card-foreground: oklch(0.084 0.018 342.582);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.68 0.134 347.119);
--primary-foreground: oklch(0.136 0.025 344.565);
--secondary: oklch(0.794 0.119 158.057);
--secondary-foreground: oklch(0.157 0.021 160.858);
--accent: oklch(0.794 0.119 158.057);
--accent-foreground: oklch(0.157 0.021 160.858);
--destructive: oklch(0.371 0.127 35.771);
--destructive-foreground: oklch(0.853 0.081 37.61);
--ring: oklch(0.68 0.134 347.119);
--chart-1: oklch(0.68 0.134 347.119);
--chart-2: oklch(0.794 0.119 158.057);
--chart-3: oklch(0.794 0.119 158.057);
--chart-4: oklch(0.81 0.11 158.605);
--chart-5: oklch(0.679 0.142 347.379);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.018 342.59);
--foreground: oklch(0.976 0.002 342.668);
--muted: oklch(0.171 0.003 162.177);
--muted-foreground: oklch(0.727 0.005 162.451);
--popover: oklch(0.108 0.018 342.59);
--popover-foreground: oklch(0.976 0.002 342.668);
--card: oklch(0.108 0.018 342.59);
--card-foreground: oklch(0.976 0.002 342.668);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.68 0.134 347.119);
--primary-foreground: oklch(0.136 0.025 344.565);
--secondary: oklch(0.794 0.119 158.057);
--secondary-foreground: oklch(0.157 0.021 160.858);
--accent: oklch(0.794 0.119 158.057);
--accent-foreground: oklch(0.157 0.021 160.858);
--destructive: oklch(0.687 0.201 36.83);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.68 0.134 347.119);
--chart-1: oklch(0.68 0.134 347.119);
--chart-2: oklch(0.794 0.119 158.057);
--chart-3: oklch(0.794 0.119 158.057);
--chart-4: oklch(0.81 0.11 158.605);
--chart-5: oklch(0.679 0.142 347.379);
}