Banner is a shadcn/ui theme built around a vivid deep yellow primary color (#2b2603) with vivid deep blue accents (#03082b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#2b2603) on a neutral background (#040302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040302black |
| Foreground | #090801black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #070703black |
| Card foreground | #050401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070703black |
| Popover foreground | #050401black | #ffffffwhite |
| Primary | #2b2603black | #2b2603black |
| Primary foreground | #e8cf11gold | #e8cf11gold |
| Secondary | #03082bblack | #03082bblack |
| Secondary foreground | #cbd0fblavender | #cbd0fblavender |
| Muted | #cbcee7lightgrey | #181b34midnightblue |
| Muted foreground | #4e4f55darkslategray | #aaabb1darkgray |
| Accent | #03082bblack | #03082bblack |
| Accent foreground | #cbd0fblavender | #cbd0fblavender |
| Destructive | #d62c05firebrick | #fa532etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b2603black | #2b2603black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 9.67:1 | AAA |
| Secondary button | 13.01:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 13.01:1 | AAA |
| Destructive | 4.98:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 9.67:1 | AAA |
| Secondary button | 13.01:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 13.01:1 | AAA |
| Destructive | 6.34:1 | AA |
Paste this into your globals.css to use Banner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.023 104.721);
--muted: oklch(0.856 0.035 279.665);
--muted-foreground: oklch(0.429 0.009 279.977);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.106 0.019 104.721);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.019 104.721);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.266 0.052 101.814);
--primary-foreground: oklch(0.85 0.175 100.334);
--secondary: oklch(0.159 0.071 268.136);
--secondary-foreground: oklch(0.869 0.059 279.173);
--accent: oklch(0.159 0.071 268.136);
--accent-foreground: oklch(0.869 0.059 279.173);
--destructive: oklch(0.568 0.209 32.578);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.266 0.052 101.814);
--chart-1: oklch(0.266 0.052 101.814);
--chart-2: oklch(0.159 0.071 268.136);
--chart-3: oklch(0.159 0.071 268.136);
--chart-4: oklch(0.184 0.089 267.93);
--chart-5: oklch(0.268 0.053 101.806);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.009 102.858);
--foreground: oklch(0.994 0.002 100.358);
--muted: oklch(0.235 0.048 276.33);
--muted-foreground: oklch(0.742 0.008 280.155);
--popover: oklch(0.125 0.012 102.858);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.012 102.858);
--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.266 0.052 101.814);
--primary-foreground: oklch(0.85 0.175 100.334);
--secondary: oklch(0.159 0.071 268.136);
--secondary-foreground: oklch(0.869 0.059 279.173);
--accent: oklch(0.159 0.071 268.136);
--accent-foreground: oklch(0.869 0.059 279.173);
--destructive: oklch(0.668 0.209 33.997);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.266 0.052 101.814);
--chart-1: oklch(0.266 0.052 101.814);
--chart-2: oklch(0.159 0.071 268.136);
--chart-3: oklch(0.159 0.071 268.136);
--chart-4: oklch(0.184 0.089 267.93);
--chart-5: oklch(0.268 0.053 101.806);
}