Banker is a shadcn/ui theme built around a muted light green primary color (#d2e5d6) with muted light red accents (#e5d6d2). The light mode uses a neutral background (#f6fdf8). Dark mode keeps the muted light green primary (#d2e5d6) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdf8mintcream | #010402black |
| Foreground | #010903black | #f9fbf9mintcream |
| Card | #f2fdf4honeydew | #020803black |
| Card foreground | #010401black | #fcfdfcwhite |
| Popover | #f2fdf4honeydew | #020803black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #d2e5d6gainsboro | #d2e5d6gainsboro |
| Primary foreground | #315438darkslategray | #315438darkslategray |
| Secondary | #d6d2e5gainsboro | #d6d2e5gainsboro |
| Secondary foreground | #383154darkslategray | #383154darkslategray |
| Muted | #f0eef7whitesmoke | #0a0811black |
| Muted foreground | #5a5865dimgray | #9d9aa7darkgray |
| Accent | #e5d6d2gainsboro | #e5d6d2gainsboro |
| Accent foreground | #543831darkolivegreen | #543831darkolivegreen |
| Destructive | #a50b09darkred | #ed100cred |
| Destructive foreground | #fde2e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2e5d6gainsboro | #d2e5d6gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 7.19:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Banker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 151.849);
--foreground: oklch(0.125 0.027 150.859);
--muted: oklch(0.953 0.012 295.353);
--muted-foreground: oklch(0.467 0.021 294.729);
--popover: oklch(0.983 0.015 151.768);
--popover-foreground: oklch(0.099 0.021 150.859);
--card: oklch(0.983 0.015 151.768);
--card-foreground: oklch(0.099 0.021 150.859);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.903 0.028 151.53);
--primary-foreground: oklch(0.409 0.061 149.449);
--secondary: oklch(0.872 0.026 295.036);
--secondary-foreground: oklch(0.337 0.06 292.052);
--accent: oklch(0.886 0.017 34.297);
--accent-foreground: oklch(0.37 0.042 34.586);
--destructive: oklch(0.457 0.182 28.896);
--destructive-foreground: oklch(0.936 0.03 18.866);
--ring: oklch(0.903 0.028 151.53);
--chart-1: oklch(0.903 0.028 151.53);
--chart-2: oklch(0.872 0.026 295.036);
--chart-3: oklch(0.886 0.017 34.297);
--chart-4: oklch(0.9 0.02 295.169);
--chart-5: oklch(0.904 0.031 151.475);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.016 151.129);
--foreground: oklch(0.986 0.003 151.96);
--muted: oklch(0.144 0.019 293.391);
--muted-foreground: oklch(0.693 0.019 295.063);
--popover: oklch(0.123 0.021 151.129);
--popover-foreground: oklch(0.993 0.002 151.983);
--card: oklch(0.123 0.021 151.129);
--card-foreground: oklch(0.993 0.002 151.983);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.903 0.028 151.53);
--primary-foreground: oklch(0.409 0.061 149.449);
--secondary: oklch(0.872 0.026 295.036);
--secondary-foreground: oklch(0.337 0.06 292.052);
--accent: oklch(0.886 0.017 34.297);
--accent-foreground: oklch(0.37 0.042 34.586);
--destructive: oklch(0.599 0.24 29.042);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.028 151.53);
--chart-1: oklch(0.903 0.028 151.53);
--chart-2: oklch(0.872 0.026 295.036);
--chart-3: oklch(0.886 0.017 34.297);
--chart-4: oklch(0.9 0.02 295.169);
--chart-5: oklch(0.904 0.031 151.475);
}