Name is a shadcn/ui theme built around a yellow primary color (#d4d39b) with green accents (#b9d49b). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#d4d39b) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #ffffffwhite | #070703black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #070703black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #d4d39btan | #d4d39btan |
| Primary foreground | #2b2a12black | #2b2a12black |
| Secondary | #d4b79btan | #d4b79btan |
| Secondary foreground | #2b1e12black | #2b1e12black |
| Muted | #f0edeblinen | #14120fblack |
| Muted foreground | #595754dimgray | #aba8a6darkgray |
| Accent | #b9d49bsilver | #b9d49bsilver |
| Accent foreground | #1f2b12black | #1f2b12black |
| Destructive | #a03b08saddlebrown | #f3631bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d4d39btan | #d4d39btan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.43:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 9.17:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 9.43:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 9.17:1 | AAA |
| Destructive | 6.61:1 | AA |
Paste this into your globals.css to use Name in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.948 0.004 65.913);
--muted-foreground: oklch(0.457 0.005 65.827);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.855 0.074 107.046);
--primary-foreground: oklch(0.28 0.039 107.828);
--secondary: oklch(0.797 0.051 65.095);
--secondary-foreground: oklch(0.248 0.029 63.977);
--accent: oklch(0.836 0.082 129.017);
--accent-foreground: oklch(0.27 0.045 130.09);
--destructive: oklch(0.488 0.145 41.271);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.855 0.074 107.046);
--chart-1: oklch(0.855 0.074 107.046);
--chart-2: oklch(0.797 0.051 65.095);
--chart-3: oklch(0.836 0.082 129.017);
--chart-4: oklch(0.819 0.045 65.235);
--chart-5: oklch(0.86 0.079 107.128);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.014 107.579);
--foreground: oklch(0.994 0.001 105.643);
--muted: oklch(0.183 0.006 65.526);
--muted-foreground: oklch(0.734 0.005 65.89);
--popover: oklch(0.128 0.014 107.579);
--popover-foreground: oklch(0.994 0.001 105.643);
--card: oklch(0.128 0.014 107.579);
--card-foreground: oklch(0.994 0.001 105.643);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.855 0.074 107.046);
--primary-foreground: oklch(0.28 0.039 107.828);
--secondary: oklch(0.797 0.051 65.095);
--secondary-foreground: oklch(0.248 0.029 63.977);
--accent: oklch(0.836 0.082 129.017);
--accent-foreground: oklch(0.27 0.045 130.09);
--destructive: oklch(0.675 0.192 42.178);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.855 0.074 107.046);
--chart-1: oklch(0.855 0.074 107.046);
--chart-2: oklch(0.797 0.051 65.095);
--chart-3: oklch(0.836 0.082 129.017);
--chart-4: oklch(0.819 0.045 65.235);
--chart-5: oklch(0.86 0.079 107.128);
}