Redhead is a shadcn/ui theme built around a deep green primary color (#05100a) with deep pink accents (#10050b). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the deep green primary (#05100a) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #020302black |
| Foreground | #010502black | #f9fbfamintcream |
| Card | #f5faf7whitesmoke | #030705black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f8fcfamintcream | #020302black |
| Popover foreground | #010502black | #f9fbfamintcream |
| Primary | #05100ablack | #05100ablack |
| Primary foreground | #35ac6cmediumseagreen | #35ac6cmediumseagreen |
| Secondary | #10050bblack | #10050bblack |
| Secondary foreground | #d473a6palevioletred | #d473a6palevioletred |
| Muted | #e5e1e3gainsboro | #1e1a1cblack |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #10050bblack | #10050bblack |
| Accent foreground | #d473a6palevioletred | #d473a6palevioletred |
| Destructive | #781508maroon | #dd260efirebrick |
| Destructive foreground | #fabfb7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #05100ablack | #05100ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 4.77:1 | AA |
| Accent | 6.49:1 | AA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 6.42:1 | AA |
| Accent | 6.49:1 | AA |
| Destructive | 4.83:1 | AA |
Paste this into your globals.css to use Redhead in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 163.325);
--foreground: oklch(0.1 0.018 163.54);
--muted: oklch(0.913 0.005 343.584);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.987 0.005 163.325);
--popover-foreground: oklch(0.1 0.018 163.54);
--card: oklch(0.98 0.007 163.264);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.158 0.021 161.6);
--primary-foreground: oklch(0.662 0.141 155.521);
--secondary: oklch(0.136 0.026 345.38);
--secondary-foreground: oklch(0.679 0.136 348.111);
--accent: oklch(0.136 0.026 345.38);
--accent-foreground: oklch(0.679 0.136 348.111);
--destructive: oklch(0.372 0.135 31.074);
--destructive-foreground: oklch(0.856 0.07 27.198);
--ring: oklch(0.158 0.021 161.6);
--chart-1: oklch(0.158 0.021 161.6);
--chart-2: oklch(0.136 0.026 345.38);
--chart-3: oklch(0.136 0.026 345.38);
--chart-4: oklch(0.172 0.037 348.41);
--chart-5: oklch(0.158 0.023 161.504);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.009 163.491);
--foreground: oklch(0.986 0.003 163.378);
--muted: oklch(0.224 0.007 344.241);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.096 0.009 163.491);
--popover-foreground: oklch(0.986 0.003 163.378);
--card: oklch(0.121 0.011 163.491);
--card-foreground: oklch(0.993 0.001 163.412);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.158 0.021 161.6);
--primary-foreground: oklch(0.662 0.141 155.521);
--secondary: oklch(0.136 0.026 345.38);
--secondary-foreground: oklch(0.679 0.136 348.111);
--accent: oklch(0.136 0.026 345.38);
--accent-foreground: oklch(0.679 0.136 348.111);
--destructive: oklch(0.577 0.218 30.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.158 0.021 161.6);
--chart-1: oklch(0.158 0.021 161.6);
--chart-2: oklch(0.136 0.026 345.38);
--chart-3: oklch(0.136 0.026 345.38);
--chart-4: oklch(0.172 0.037 348.41);
--chart-5: oklch(0.158 0.023 161.504);
}