Bean is a shadcn/ui theme built around a deep blue primary color (#060c19) with deep green accents (#0c1906). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#060c19) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #010204black |
| Foreground | #060b14black | #f9fafbghostwhite |
| Card | #fbfcfewhite | #010204black |
| Card foreground | #060b14black | #f9fafbghostwhite |
| Popover | #fbfcfewhite | #010204black |
| Popover foreground | #060b14black | #f9fafbghostwhite |
| Primary | #060c19black | #060c19black |
| Primary foreground | #7198e0cornflowerblue | #7198e0cornflowerblue |
| Secondary | #19060cblack | #19060cblack |
| Secondary foreground | #e07198palevioletred | #e07198palevioletred |
| Muted | #e7e4e5gainsboro | #1b1819black |
| Muted foreground | #52474bdarkslategray | #b8adb1darkgray |
| Accent | #0c1906black | #0c1906black |
| Accent foreground | #5fc02alimegreen | #5fc02alimegreen |
| Destructive | #b34100saddlebrown | #f05800orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060c19black | #060c19black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 6.52:1 | AA |
| Muted text | 7.04:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 5.71:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 6.52:1 | AA |
| Muted text | 8.09:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Bean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 263.049);
--foreground: oklch(0.147 0.022 259.843);
--muted: oklch(0.922 0.003 353.668);
--muted-foreground: oklch(0.411 0.016 354.643);
--popover: oklch(0.991 0.003 263.049);
--popover-foreground: oklch(0.147 0.022 259.843);
--card: oklch(0.991 0.003 263.049);
--card-foreground: oklch(0.147 0.022 259.843);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.156 0.03 260.141);
--primary-foreground: oklch(0.68 0.116 262.136);
--secondary: oklch(0.157 0.038 358.847);
--secondary-foreground: oklch(0.687 0.144 359.396);
--accent: oklch(0.196 0.041 135.226);
--accent-foreground: oklch(0.722 0.202 137.32);
--destructive: oklch(0.528 0.159 41.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.156 0.03 260.141);
--chart-1: oklch(0.156 0.03 260.141);
--chart-2: oklch(0.157 0.038 358.847);
--chart-3: oklch(0.196 0.041 135.226);
--chart-4: oklch(0.191 0.051 1.323);
--chart-5: oklch(0.156 0.031 259.747);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 256.317);
--foreground: oklch(0.984 0.002 263.05);
--muted: oklch(0.213 0.004 354.155);
--muted-foreground: oklch(0.758 0.013 354.075);
--popover: oklch(0.086 0.009 256.317);
--popover-foreground: oklch(0.984 0.002 263.05);
--card: oklch(0.086 0.009 256.317);
--card-foreground: oklch(0.984 0.002 263.05);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.156 0.03 260.141);
--primary-foreground: oklch(0.68 0.116 262.136);
--secondary: oklch(0.157 0.038 358.847);
--secondary-foreground: oklch(0.687 0.144 359.396);
--accent: oklch(0.196 0.041 135.226);
--accent-foreground: oklch(0.722 0.202 137.32);
--destructive: oklch(0.655 0.201 41.149);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.156 0.03 260.141);
--chart-1: oklch(0.156 0.03 260.141);
--chart-2: oklch(0.157 0.038 358.847);
--chart-3: oklch(0.196 0.041 135.226);
--chart-4: oklch(0.191 0.051 1.323);
--chart-5: oklch(0.156 0.031 259.747);
}