Beard is a shadcn/ui theme built around a vivid deep red primary color (#5c0511) with vivid deep blue accents (#05115c). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the vivid deep red primary (#5c0511) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #070304black |
| Foreground | #100406black | #f8f6f7whitesmoke |
| Card | #fcf3f4lavenderblush | #0a0506black |
| Card foreground | #0c0304black | #fbf9f9snow |
| Popover | #fdf7f8snow | #070304black |
| Popover foreground | #100406black | #f8f6f7whitesmoke |
| Primary | #5c0511maroon | #5c0511maroon |
| Primary foreground | #f99aa6lightpink | #f99aa6lightpink |
| Secondary | #115c05darkgreen | #115c05darkgreen |
| Secondary foreground | #a6f99apalegreen | #a6f99apalegreen |
| Muted | #eff7eehoneydew | #091108black |
| Muted foreground | #5f635fdimgray | #9da09cdarkgray |
| Accent | #05115cmidnightblue | #05115cmidnightblue |
| Accent foreground | #9aa6f9lightskyblue | #9aa6f9lightskyblue |
| Destructive | #d24c04chocolate | #fa5e0aorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c0511maroon | #5c0511maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.58:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 4.39:1 | AA Large |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Beard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 7.909);
--foreground: oklch(0.132 0.027 9.948);
--muted: oklch(0.967 0.015 141.548);
--muted-foreground: oklch(0.495 0.007 141.55);
--popover: oklch(0.981 0.006 7.909);
--popover-foreground: oklch(0.132 0.027 9.948);
--card: oklch(0.971 0.01 7.992);
--card-foreground: oklch(0.119 0.023 9.047);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.303 0.116 22.212);
--primary-foreground: oklch(0.786 0.115 11.409);
--secondary: oklch(0.413 0.133 141.486);
--secondary-foreground: oklch(0.907 0.15 141.159);
--accent: oklch(0.24 0.131 266.349);
--accent-foreground: oklch(0.749 0.12 276.427);
--destructive: oklch(0.593 0.181 40.909);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.303 0.116 22.212);
--chart-1: oklch(0.303 0.116 22.212);
--chart-2: oklch(0.413 0.133 141.486);
--chart-3: oklch(0.24 0.131 266.349);
--chart-4: oklch(0.457 0.148 141.569);
--chart-5: oklch(0.305 0.119 22.626);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.011 8.272);
--foreground: oklch(0.976 0.002 7.799);
--muted: oklch(0.168 0.023 140.961);
--muted-foreground: oklch(0.702 0.007 141.565);
--popover: oklch(0.109 0.011 8.272);
--popover-foreground: oklch(0.976 0.002 7.799);
--card: oklch(0.125 0.012 8.273);
--card-foreground: oklch(0.984 0.001 7.782);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.303 0.116 22.212);
--primary-foreground: oklch(0.786 0.115 11.409);
--secondary: oklch(0.413 0.133 141.486);
--secondary-foreground: oklch(0.907 0.15 141.159);
--accent: oklch(0.24 0.131 266.349);
--accent-foreground: oklch(0.749 0.12 276.427);
--destructive: oklch(0.679 0.205 41.18);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.303 0.116 22.212);
--chart-1: oklch(0.303 0.116 22.212);
--chart-2: oklch(0.413 0.133 141.486);
--chart-3: oklch(0.24 0.131 266.349);
--chart-4: oklch(0.457 0.148 141.569);
--chart-5: oklch(0.305 0.119 22.626);
}