Choosing is a shadcn/ui theme built around a neutral gray primary color (#d7d8db) with neutral gray accents (#d8dbd7). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the neutral gray primary (#d7d8db) on a neutral background (#040407).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #040407black |
| Foreground | #02050dblack | #f5f6fawhitesmoke |
| Card | #f4f6fbghostwhite | #05060ablack |
| Card foreground | #010309black | #f8f9fcghostwhite |
| Popover | #f8f9fcghostwhite | #040407black |
| Popover foreground | #02050dblack | #f5f6fawhitesmoke |
| Primary | #d7d8dbgainsboro | #d7d8dbgainsboro |
| Primary foreground | #3d3e43darkslategray | #3d3e43darkslategray |
| Secondary | #dbd7d8gainsboro | #dbd7d8gainsboro |
| Secondary foreground | #433d3edarkslategray | #433d3edarkslategray |
| Muted | #f1dfe3mistyrose | #200e12black |
| Muted foreground | #674c52dimgray | #b3989frosybrown |
| Accent | #d8dbd7gainsboro | #d8dbd7gainsboro |
| Accent foreground | #3e433ddarkslategray | #3e433ddarkslategray |
| Destructive | #910f0ddarkred | #d81613crimson |
| Destructive foreground | #fbd5d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7d8dbgainsboro | #d7d8dbgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 5.19:1 | AA |
Paste this into your globals.css to use Choosing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 272.606);
--foreground: oklch(0.113 0.025 262.088);
--muted: oklch(0.92 0.02 1.572);
--muted-foreground: oklch(0.447 0.037 3.219);
--popover: oklch(0.981 0.005 272.606);
--popover-foreground: oklch(0.113 0.025 262.088);
--card: oklch(0.972 0.007 272.58);
--card-foreground: oklch(0.098 0.021 261.677);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.004 272.609);
--primary-foreground: oklch(0.364 0.009 272.4);
--secondary: oklch(0.882 0.004 1.098);
--secondary-foreground: oklch(0.365 0.009 1.65);
--accent: oklch(0.887 0.006 138.337);
--accent-foreground: oklch(0.376 0.012 138.366);
--destructive: oklch(0.42 0.163 28.49);
--destructive-foreground: oklch(0.906 0.043 19.117);
--ring: oklch(0.882 0.004 272.609);
--chart-1: oklch(0.882 0.004 272.609);
--chart-2: oklch(0.882 0.004 1.098);
--chart-3: oklch(0.887 0.006 138.337);
--chart-4: oklch(0.906 0.003 1.067);
--chart-5: oklch(0.88 0.007 272.579);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.008 269.238);
--foreground: oklch(0.973 0.006 272.594);
--muted: oklch(0.192 0.031 5.404);
--muted-foreground: oklch(0.707 0.033 2.229);
--popover: oklch(0.109 0.008 269.238);
--popover-foreground: oklch(0.973 0.006 272.594);
--card: oklch(0.125 0.009 269.238);
--card-foreground: oklch(0.982 0.004 272.615);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.882 0.004 272.609);
--primary-foreground: oklch(0.364 0.009 272.4);
--secondary: oklch(0.882 0.004 1.098);
--secondary-foreground: oklch(0.365 0.009 1.65);
--accent: oklch(0.887 0.006 138.337);
--accent-foreground: oklch(0.376 0.012 138.366);
--destructive: oklch(0.56 0.221 28.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.004 272.609);
--chart-1: oklch(0.882 0.004 272.609);
--chart-2: oklch(0.882 0.004 1.098);
--chart-3: oklch(0.887 0.006 138.337);
--chart-4: oklch(0.906 0.003 1.067);
--chart-5: oklch(0.88 0.007 272.579);
}