Almond for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.39:1AAA
Text on card19.14:1AAA
Primary button8.04:1AAA
Secondary button7.51:1AAA
Muted text6.00:1AA
Accent6.44:1AA
Destructive6.97:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.72:1AAA
Primary button8.04:1AAA
Secondary button7.51:1AAA
Muted text8.01:1AAA
Accent6.44:1AA
Destructive4.51:1AA

CSS variables

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);
}