Broker is a shadcn/ui theme built around a vivid deep green primary color (#646f0b) with vivid deep indigo accents (#170b6f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#646f0b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #101103black | #f9faf5whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0c0d02black | #fbfcf8snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #101103black | #f9faf5whitesmoke |
| Primary | #646f0bolive | #646f0bolive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #170b6fmidnightblue | #170b6fmidnightblue |
| Secondary foreground | #bdb5f8lightsteelblue | #bdb5f8lightsteelblue |
| Muted | #d3d1e6gainsboro | #1c192eblack |
| Muted foreground | #5e5d5fdimgray | #a0a0a2darkgray |
| Accent | #170b6fmidnightblue | #170b6fmidnightblue |
| Accent foreground | #bdb5f8lightsteelblue | #bdb5f8lightsteelblue |
| Destructive | #ca1c0cfirebrick | #e7200dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #646f0bolive | #646f0bolive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 8.46:1 | AAA |
| Muted text | 4.37:1 | AA Large |
| Accent | 8.46:1 | AAA |
| Destructive | 5.68:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 8.46:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 8.46:1 | AAA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Broker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.03 114.319);
--muted: oklch(0.869 0.028 291.156);
--muted-foreground: oklch(0.481 0.003 291.662);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.03 114.319);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.153 0.026 113.699);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.516 0.115 116.897);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.268 0.156 273.368);
--secondary-foreground: oklch(0.802 0.094 289.444);
--accent: oklch(0.268 0.156 273.368);
--accent-foreground: oklch(0.802 0.094 289.444);
--destructive: oklch(0.537 0.207 30.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.516 0.115 116.897);
--chart-1: oklch(0.516 0.115 116.897);
--chart-2: oklch(0.268 0.156 273.368);
--chart-3: oklch(0.268 0.156 273.368);
--chart-4: oklch(0.29 0.171 272.863);
--chart-5: oklch(0.521 0.117 117.017);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.007 111.911);
--muted: oklch(0.229 0.04 288.194);
--muted-foreground: oklch(0.706 0.003 291.707);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.007 111.911);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.989 0.005 111.867);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.516 0.115 116.897);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.268 0.156 273.368);
--secondary-foreground: oklch(0.802 0.094 289.444);
--accent: oklch(0.268 0.156 273.368);
--accent-foreground: oklch(0.802 0.094 289.444);
--destructive: oklch(0.593 0.23 30.081);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.516 0.115 116.897);
--chart-1: oklch(0.516 0.115 116.897);
--chart-2: oklch(0.268 0.156 273.368);
--chart-3: oklch(0.268 0.156 273.368);
--chart-4: oklch(0.29 0.171 272.863);
--chart-5: oklch(0.521 0.117 117.017);
}