Broadcast is a shadcn/ui theme built around a deep violet primary color (#49285c) with near-white accents (#e8e8e8). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#49285c) on a neutral background (#060308).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060308black |
| Foreground | #030104black | #ffffffwhite |
| Card | #fdfbfewhite | #060308black |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fdfbfewhite | #060308black |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #49285cdarkslategray | #49285cdarkslategray |
| Primary foreground | #dfcde9gainsboro | #dfcde9gainsboro |
| Secondary | #e8e8e8lavender | #333135darkslategray |
| Secondary foreground | #4f4f4fdarkslategray | #cccacelightgrey |
| Muted | #e8e3e3gainsboro | #1a171cblack |
| Muted foreground | #604d4ddimgray | #ab9fb2darkgray |
| Accent | #e8e8e8lavender | #333135darkslategray |
| Accent foreground | #4f4f4fdarkslategray | #cccacelightgrey |
| Destructive | #c00a07firebrick | #f83835crimson |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #49285cdarkslategray | #49285cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 6.68:1 | AA |
| Muted text | 6.18:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Broadcast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 313.58);
--foreground: oklch(0.081 0.02 315.738);
--muted: oklch(0.919 0.006 17.268);
--muted-foreground: oklch(0.44 0.026 18.176);
--popover: oklch(0.99 0.004 313.58);
--popover-foreground: oklch(0.081 0.02 315.738);
--card: oklch(0.99 0.004 313.58);
--card-foreground: oklch(0.081 0.02 315.738);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.345 0.094 311.682);
--primary-foreground: oklch(0.872 0.042 313.308);
--secondary: oklch(0.931 0 180);
--secondary-foreground: oklch(0.428 0 180);
--accent: oklch(0.931 0 180);
--accent-foreground: oklch(0.428 0 180);
--destructive: oklch(0.51 0.205 29.09);
--destructive-foreground: oklch(0.989 0.005 18.439);
--ring: oklch(0.345 0.094 311.682);
--chart-1: oklch(0.345 0.094 311.682);
--chart-2: oklch(0.931 0 180);
--chart-3: oklch(0.931 0 180);
--chart-4: oklch(0.954 0 180);
--chart-5: oklch(0.344 0.1 311.483);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.02 315.269);
--foreground: oklch(1 0 180);
--muted: oklch(0.21 0.012 313.251);
--muted-foreground: oklch(0.718 0.03 313.346);
--popover: oklch(0.105 0.02 315.269);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.105 0.02 315.269);
--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.345 0.094 311.682);
--primary-foreground: oklch(0.872 0.042 313.308);
--secondary: oklch(0.318 0.006 313.49);
--secondary-foreground: oklch(0.843 0.005 313.571);
--accent: oklch(0.318 0.006 313.49);
--accent-foreground: oklch(0.843 0.005 313.571);
--destructive: oklch(0.64 0.227 27.163);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.094 311.682);
--chart-1: oklch(0.345 0.094 311.682);
--chart-2: oklch(0.318 0.006 313.49);
--chart-3: oklch(0.318 0.006 313.49);
--chart-4: oklch(0.348 0.007 313.486);
--chart-5: oklch(0.344 0.1 311.483);
}