Banner is a shadcn/ui theme built around a muted pink primary color (#c0b5bc) with muted light pink accents (#d9c9d3). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted pink primary (#c0b5bc) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #040103black |
| Foreground | #11030cblack | #ffffffwhite |
| Card | #fefbfdsnow | #040103black |
| Card foreground | #11030cblack | #ffffffwhite |
| Popover | #fefbfdsnow | #040103black |
| Popover foreground | #11030cblack | #ffffffwhite |
| Primary | #c0b5bcsilver | #c0b5bcsilver |
| Primary foreground | #241e22black | #241e22black |
| Secondary | #d9c9d3thistle | #21171dblack |
| Secondary foreground | #422f3bdarkslategray | #c3a7b9silver |
| Muted | #e8d8e3gainsboro | #271721black |
| Muted foreground | #644a5adimgray | #b59bacdarkgray |
| Accent | #d9c9d3thistle | #21171dblack |
| Accent foreground | #422f3bdarkslategray | #c3a7b9silver |
| Destructive | #d04306chocolate | #f8530dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0b5bcsilver | #c0b5bcsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 4.69:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.72:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Banner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 338.804);
--foreground: oklch(0.134 0.036 341.37);
--muted: oklch(0.899 0.022 339.236);
--muted-foreground: oklch(0.441 0.043 340.698);
--popover: oklch(0.991 0.004 338.804);
--popover-foreground: oklch(0.134 0.036 341.37);
--card: oklch(0.991 0.004 338.804);
--card-foreground: oklch(0.134 0.036 341.37);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.783 0.016 339.146);
--primary-foreground: oklch(0.245 0.01 339.588);
--secondary: oklch(0.852 0.022 339.261);
--secondary-foreground: oklch(0.33 0.034 340.802);
--accent: oklch(0.852 0.022 339.261);
--accent-foreground: oklch(0.33 0.034 340.802);
--destructive: oklch(0.578 0.186 38.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.783 0.016 339.146);
--chart-1: oklch(0.783 0.016 339.146);
--chart-2: oklch(0.852 0.022 339.261);
--chart-3: oklch(0.852 0.022 339.261);
--chart-4: oklch(0.877 0.018 339.156);
--chart-5: oklch(0.781 0.022 339.305);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.017 338.979);
--foreground: oklch(1 0 180);
--muted: oklch(0.228 0.031 341.436);
--muted-foreground: oklch(0.719 0.038 339.82);
--popover: oklch(0.085 0.017 338.979);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.017 338.979);
--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.783 0.016 339.146);
--primary-foreground: oklch(0.245 0.01 339.588);
--secondary: oklch(0.22 0.021 340.661);
--secondary-foreground: oklch(0.758 0.041 339.83);
--accent: oklch(0.22 0.021 340.661);
--accent-foreground: oklch(0.758 0.041 339.83);
--destructive: oklch(0.662 0.211 38.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.783 0.016 339.146);
--chart-1: oklch(0.783 0.016 339.146);
--chart-2: oklch(0.22 0.021 340.661);
--chart-3: oklch(0.22 0.021 340.661);
--chart-4: oklch(0.251 0.026 340.808);
--chart-5: oklch(0.781 0.022 339.305);
}