Bruised is a shadcn/ui theme built around a light green primary color (#e0f7d9) with neutral gray accents (#e0e2df). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the light green primary (#e0f7d9) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #020401black |
| Foreground | #071005black | #fcfdfcwhite |
| Card | #f9fcf8mintcream | #020401black |
| Card foreground | #071005black | #fcfdfcwhite |
| Popover | #f9fcf8mintcream | #020401black |
| Popover foreground | #071005black | #fcfdfcwhite |
| Primary | #e0f7d9beige | #e0f7d9beige |
| Primary foreground | #122e0ablack | #122e0ablack |
| Secondary | #e0e2dfgainsboro | #2e342ddarkslategray |
| Secondary foreground | #454b44darkslategray | #c7cec5silver |
| Muted | #eef2edwhitesmoke | #0e120dblack |
| Muted foreground | #576553dimgray | #9eac9adarkgray |
| Accent | #e0e2dfgainsboro | #2e342ddarkslategray |
| Accent foreground | #454b44darkslategray | #c7cec5silver |
| Destructive | #692107maroon | #ee4c11orangered |
| Destructive foreground | #f9bea9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0f7d9beige | #e0f7d9beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 13.00:1 | AAA |
| Secondary button | 6.86:1 | AA |
| Muted text | 5.47:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 7.10:1 | AAA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 13.00:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Bruised in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 138.336);
--foreground: oklch(0.159 0.028 137.244);
--muted: oklch(0.957 0.007 138.338);
--muted-foreground: oklch(0.489 0.033 138.41);
--popover: oklch(0.987 0.006 138.336);
--popover-foreground: oklch(0.159 0.028 137.244);
--card: oklch(0.987 0.006 138.336);
--card-foreground: oklch(0.159 0.028 137.244);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.046 138.384);
--primary-foreground: oklch(0.271 0.069 139.183);
--secondary: oklch(0.91 0.005 138.336);
--secondary-foreground: oklch(0.405 0.014 138.366);
--accent: oklch(0.91 0.005 138.336);
--accent-foreground: oklch(0.405 0.014 138.366);
--destructive: oklch(0.357 0.108 38.193);
--destructive-foreground: oklch(0.851 0.074 40.883);
--ring: oklch(0.951 0.046 138.384);
--chart-1: oklch(0.951 0.046 138.384);
--chart-2: oklch(0.91 0.005 138.336);
--chart-3: oklch(0.91 0.005 138.336);
--chart-4: oklch(0.933 0.004 138.334);
--chart-5: oklch(0.952 0.048 138.387);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.018 136.567);
--foreground: oklch(0.993 0.001 138.331);
--muted: oklch(0.175 0.011 138.401);
--muted-foreground: oklch(0.729 0.03 138.376);
--popover: oklch(0.099 0.018 136.567);
--popover-foreground: oklch(0.993 0.001 138.331);
--card: oklch(0.099 0.018 136.567);
--card-foreground: oklch(0.993 0.001 138.331);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.951 0.046 138.384);
--primary-foreground: oklch(0.271 0.069 139.183);
--secondary: oklch(0.318 0.016 138.385);
--secondary-foreground: oklch(0.843 0.014 138.347);
--accent: oklch(0.318 0.016 138.385);
--accent-foreground: oklch(0.843 0.014 138.347);
--destructive: oklch(0.639 0.208 36.898);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.046 138.384);
--chart-1: oklch(0.951 0.046 138.384);
--chart-2: oklch(0.318 0.016 138.385);
--chart-3: oklch(0.318 0.016 138.385);
--chart-4: oklch(0.349 0.018 138.387);
--chart-5: oklch(0.952 0.048 138.387);
}