Bold is a shadcn/ui theme built around a blue primary color (#1f77db) with green accents (#77db1f). The light mode uses a neutral background (#f7fafd). Dark mode keeps the blue primary (#1f77db) on a blue-tinted background (#050a10).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #050a10black |
| Foreground | #050a10black | #f9fafbghostwhite |
| Card | #f7fafdghostwhite | #050a10black |
| Card foreground | #050a10black | #f9fafbghostwhite |
| Popover | #f7fafdghostwhite | #050a10black |
| Popover foreground | #050a10black | #f9fafbghostwhite |
| Primary | #1f77dbroyalblue | #1f77dbroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #db1f77mediumvioletred | #db1f77mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8d9e0gainsboro | #26171eblack |
| Muted foreground | #4c3942darkslategray | #c6b3bcsilver |
| Accent | #77db1fyellowgreen | #77db1fyellowgreen |
| Accent foreground | #162806black | #162806black |
| Destructive | #8e2306darkred | #f53d0aorangered |
| Destructive foreground | #fdd4c9bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f77dbroyalblue | #1f77dbroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 4.46:1 | AA Large |
| Secondary button | 4.70:1 | AA |
| Muted text | 7.82:1 | AAA |
| Accent | 8.87:1 | AAA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 4.46:1 | AA Large |
| Secondary button | 4.70:1 | AA |
| Muted text | 8.62:1 | AAA |
| Accent | 8.87:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Bold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 251.488);
--foreground: oklch(0.141 0.016 247.214);
--muted: oklch(0.899 0.018 347.454);
--muted-foreground: oklch(0.368 0.03 348.963);
--popover: oklch(0.983 0.005 251.488);
--popover-foreground: oklch(0.141 0.016 247.214);
--card: oklch(0.983 0.005 251.488);
--card-foreground: oklch(0.141 0.016 247.214);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.573 0.172 255.351);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.587 0.223 0.073);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.798 0.225 135.075);
--accent-foreground: oklch(0.253 0.061 133.117);
--destructive: oklch(0.429 0.147 34.639);
--destructive-foreground: oklch(0.902 0.048 35.95);
--ring: oklch(0.573 0.172 255.351);
--chart-1: oklch(0.573 0.172 255.351);
--chart-2: oklch(0.587 0.223 0.073);
--chart-3: oklch(0.798 0.225 135.075);
--chart-4: oklch(0.604 0.223 358.987);
--chart-5: oklch(0.574 0.178 255.653);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.016 247.214);
--foreground: oklch(0.984 0.002 251.469);
--muted: oklch(0.228 0.026 349.841);
--muted-foreground: oklch(0.786 0.024 347.72);
--popover: oklch(0.141 0.016 247.214);
--popover-foreground: oklch(0.984 0.002 251.469);
--card: oklch(0.141 0.016 247.214);
--card-foreground: oklch(0.984 0.002 251.469);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.573 0.172 255.351);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.587 0.223 0.073);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.798 0.225 135.075);
--accent-foreground: oklch(0.253 0.061 133.117);
--destructive: oklch(0.636 0.225 33.915);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.573 0.172 255.351);
--chart-1: oklch(0.573 0.172 255.351);
--chart-2: oklch(0.587 0.223 0.073);
--chart-3: oklch(0.798 0.225 135.075);
--chart-4: oklch(0.604 0.223 358.987);
--chart-5: oklch(0.574 0.178 255.653);
}