Bob is a shadcn/ui theme built around a near-black primary color (#050500) with near-black accents (#050005). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#050500) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #050500black | #050500black |
| Primary foreground | #d0c901goldenrod | #d0c901goldenrod |
| Secondary | #000505black | #000505black |
| Secondary foreground | #01d0c9darkturquoise | #01d0c9darkturquoise |
| Muted | #e2eeeelavender | #111d1dblack |
| Muted foreground | #515c5cdimgray | #a3aeaddarkgray |
| Accent | #050005black | #050005black |
| Accent foreground | #f739femagenta | #f739femagenta |
| Destructive | #99190bdarkred | #ef2f1aorangered |
| Destructive foreground | #fcdcd9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050500black | #050500black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 11.71:1 | AAA |
| Secondary button | 10.61:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 6.58:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 11.71:1 | AAA |
| Secondary button | 10.61:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Bob in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.012 107.113);
--muted: oklch(0.94 0.013 194.539);
--muted-foreground: oklch(0.465 0.013 194.273);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.111 0.024 108.616);
--primary-foreground: oklch(0.816 0.175 107.206);
--secondary: oklch(0.104 0.018 192.861);
--secondary-foreground: oklch(0.774 0.133 190.531);
--accent: oklch(0.081 0.037 327.522);
--accent-foreground: oklch(0.708 0.295 326.623);
--destructive: oklch(0.44 0.164 30.519);
--destructive-foreground: oklch(0.921 0.036 25.354);
--ring: oklch(0.111 0.024 108.616);
--chart-1: oklch(0.111 0.024 108.616);
--chart-2: oklch(0.104 0.018 192.861);
--chart-3: oklch(0.081 0.037 327.522);
--chart-4: oklch(0.174 0.03 192.085);
--chart-5: oklch(0.111 0.024 108.694);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 104.825);
--muted: oklch(0.219 0.017 193.369);
--muted-foreground: oklch(0.741 0.012 194.496);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.111 0.024 108.616);
--primary-foreground: oklch(0.816 0.175 107.206);
--secondary: oklch(0.104 0.018 192.861);
--secondary-foreground: oklch(0.774 0.133 190.531);
--accent: oklch(0.081 0.037 327.522);
--accent-foreground: oklch(0.708 0.295 326.623);
--destructive: oklch(0.617 0.228 30.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.111 0.024 108.616);
--chart-1: oklch(0.111 0.024 108.616);
--chart-2: oklch(0.104 0.018 192.861);
--chart-3: oklch(0.081 0.037 327.522);
--chart-4: oklch(0.174 0.03 192.085);
--chart-5: oklch(0.111 0.024 108.694);
}