Almond is a shadcn/ui theme built around a deep blue primary color (#122759) with deep green accents (#275912). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the deep blue primary (#122759) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #030407black |
| Foreground | #040916black | #f9f9fbghostwhite |
| Card | #f8f9fcghostwhite | #05060bblack |
| Card foreground | #030711black | #fcfcfdwhite |
| Popover | #f8f9fcghostwhite | #05060bblack |
| Popover foreground | #030711black | #fcfcfdwhite |
| Primary | #122759midnightblue | #122759midnightblue |
| Primary foreground | #afc2eflightsteelblue | #afc2eflightsteelblue |
| Secondary | #591227maroon | #591227maroon |
| Secondary foreground | #efafc2lightpink | #efafc2lightpink |
| Muted | #e9d2d9gainsboro | #2d161dblack |
| Muted foreground | #4d4c4cdarkslategray | #b3b2b2darkgray |
| Accent | #275912darkgreen | #275912darkgreen |
| Accent foreground | #c2efafpalegoldenrod | #c2efafpalegoldenrod |
| Destructive | #71250amaroon | #d34612chocolate |
| Destructive foreground | #f8c6b4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #122759midnightblue | #122759midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 6.44:1 | AA |
| Destructive | 4.51:1 | AA |
Paste this into your globals.css to use Almond in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 267.408);
--foreground: oklch(0.142 0.03 261.061);
--muted: oklch(0.886 0.027 357.531);
--muted-foreground: oklch(0.417 0.002 356.807);
--popover: oklch(0.982 0.004 267.397);
--popover-foreground: oklch(0.131 0.025 259.276);
--card: oklch(0.982 0.004 267.397);
--card-foreground: oklch(0.131 0.025 259.276);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.29 0.093 263.996);
--primary-foreground: oklch(0.814 0.067 266.753);
--secondary: oklch(0.314 0.103 7.703);
--secondary-foreground: oklch(0.818 0.078 359.294);
--accent: oklch(0.414 0.114 138.158);
--accent-foreground: oklch(0.903 0.097 136.464);
--destructive: oklch(0.377 0.113 38.275);
--destructive-foreground: oklch(0.867 0.063 40.926);
--ring: oklch(0.29 0.093 263.996);
--chart-1: oklch(0.29 0.093 263.996);
--chart-2: oklch(0.314 0.103 7.703);
--chart-3: oklch(0.414 0.114 138.158);
--chart-4: oklch(0.342 0.114 8.064);
--chart-5: oklch(0.289 0.097 263.853);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 262.041);
--foreground: oklch(0.983 0.003 267.405);
--muted: oklch(0.234 0.039 1.282);
--muted-foreground: oklch(0.764 0.002 356.728);
--popover: oklch(0.124 0.012 262.095);
--popover-foreground: oklch(0.992 0.001 267.412);
--card: oklch(0.124 0.012 262.095);
--card-foreground: oklch(0.992 0.001 267.412);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.29 0.093 263.996);
--primary-foreground: oklch(0.814 0.067 266.753);
--secondary: oklch(0.314 0.103 7.703);
--secondary-foreground: oklch(0.818 0.078 359.294);
--accent: oklch(0.414 0.114 138.158);
--accent-foreground: oklch(0.903 0.097 136.464);
--destructive: oklch(0.588 0.186 37.41);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.29 0.093 263.996);
--chart-1: oklch(0.29 0.093 263.996);
--chart-2: oklch(0.314 0.103 7.703);
--chart-3: oklch(0.414 0.114 138.158);
--chart-4: oklch(0.342 0.114 8.064);
--chart-5: oklch(0.289 0.097 263.853);
}