Bun is a shadcn/ui theme built around a vivid red primary color (#ae3213) with vivid yellow accents (#ae8013). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#ae3213) on a red-tinted background (#100704).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #100704black |
| Foreground | #040201black | #fdfcfcsnow |
| Card | #fdf8f7snow | #140806black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfbsnow | #100704black |
| Popover foreground | #040201black | #fdfcfcsnow |
| Primary | #ae3213firebrick | #ae3213firebrick |
| Primary foreground | #fef7f6snow | #fef7f6snow |
| Secondary | #ae1342brown | #ae1342brown |
| Secondary foreground | #fef6f8snow | #fef6f8snow |
| Muted | #e4cdd4lightgrey | #321b22black |
| Muted foreground | #4b3a3fdarkslategray | #c5b4b9silver |
| Accent | #ae8013darkgoldenrod | #ae8013darkgoldenrod |
| Accent foreground | #000000black | #000000black |
| Destructive | #a0370dsaddlebrown | #f07342tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ae3213firebrick | #ae3213firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 7.09:1 | AAA |
| Accent | 5.90:1 | AA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 8.08:1 | AAA |
| Accent | 5.90:1 | AA |
| Destructive | 7.24:1 | AAA |
Paste this into your globals.css to use Bun in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 34.312);
--foreground: oklch(0.088 0.01 40.559);
--muted: oklch(0.87 0.027 357.54);
--muted-foreground: oklch(0.368 0.026 358.589);
--popover: oklch(0.991 0.003 34.312);
--popover-foreground: oklch(0.088 0.01 40.559);
--card: oklch(0.983 0.006 34.307);
--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.504 0.165 34.448);
--primary-foreground: oklch(0.982 0.007 34.305);
--secondary: oklch(0.487 0.184 12.426);
--secondary-foreground: oklch(0.98 0.009 356.93);
--accent: oklch(0.629 0.125 81.717);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.484 0.148 38.649);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.504 0.165 34.448);
--chart-1: oklch(0.504 0.165 34.448);
--chart-2: oklch(0.487 0.184 12.426);
--chart-3: oklch(0.629 0.125 81.717);
--chart-4: oklch(0.514 0.195 12.605);
--chart-5: oklch(0.507 0.17 34.245);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.019 39.461);
--foreground: oklch(0.992 0.001 34.316);
--muted: oklch(0.255 0.038 0.746);
--muted-foreground: oklch(0.786 0.021 357.411);
--popover: oklch(0.14 0.019 39.461);
--popover-foreground: oklch(0.992 0.001 34.316);
--card: oklch(0.153 0.022 37.832);
--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.504 0.165 34.448);
--primary-foreground: oklch(0.982 0.007 34.305);
--secondary: oklch(0.487 0.184 12.426);
--secondary-foreground: oklch(0.98 0.009 356.93);
--accent: oklch(0.629 0.125 81.717);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.695 0.166 41.156);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.504 0.165 34.448);
--chart-1: oklch(0.504 0.165 34.448);
--chart-2: oklch(0.487 0.184 12.426);
--chart-3: oklch(0.629 0.125 81.717);
--chart-4: oklch(0.514 0.195 12.605);
--chart-5: oklch(0.507 0.17 34.245);
}