Llama for shadcn/ui

Llama is a shadcn/ui theme built around a muted light green primary color (#f3f6f4) with muted light green accents (#c0d3c7). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the muted light green primary (#f3f6f4) on a green-tinted background (#040c07).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#040c07black
Foreground
#031208black
#f9fbfamintcream
Card
#f3fcf6mintcream
#051009black
Card foreground
#020d06black
#fcfdfcwhite
Popover
#f7fdf9mintcream
#040c07black
Popover foreground
#031208black
#f9fbfamintcream
Primary
#f3f6f4whitesmoke
#f3f6f4whitesmoke
Primary foreground
#232f27darkslategray
#232f27darkslategray
Secondary
#d1dbd5lightgrey
#243329darkslategray
Secondary foreground
#36453bdarkslategray
#bacec2silver
Muted
#eef6f1whitesmoke
#09110cblack
Muted foreground
#475c4fdarkslategray
#a3b8abdarkgray
Accent
#c0d3c7silver
#2b4a37darkslategray
Accent foreground
#28392edarkslategray
#c8dfd1lightgrey
Destructive
#dc3a04orangered
#fa4205orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3f6f4whitesmoke
#f3f6f4whitesmoke

Contrast

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

Light mode
Text on background18.62:1AAA
Text on card18.88:1AAA
Primary button12.83:1AAA
Secondary button7.15:1AAA
Muted text6.57:1AA
Accent7.80:1AAA
Destructive4.51:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.04:1AAA
Primary button12.83:1AAA
Secondary button8.05:1AAA
Muted text9.12:1AAA
Accent6.99:1AA
Destructive3.58:1AA Large

CSS variables

Paste this into your globals.css to use Llama in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 158.53);
  --foreground: oklch(0.163 0.031 156.527);
  --muted: oklch(0.967 0.011 158.472);
  --muted-foreground: oklch(0.454 0.034 156.985);
  --popover: oklch(0.988 0.009 158.53);
  --popover-foreground: oklch(0.163 0.031 156.527);
  --card: oklch(0.983 0.013 158.433);
  --card-foreground: oklch(0.145 0.027 157.933);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.971 0.004 158.628);
  --primary-foreground: oklch(0.291 0.022 156.974);
  --secondary: oklch(0.882 0.013 158.386);
  --secondary-foreground: oklch(0.373 0.025 157.194);
  --accent: oklch(0.849 0.027 158.022);
  --accent-foreground: oklch(0.326 0.03 156.536);
  --destructive: oklch(0.591 0.205 35.099);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.004 158.628);
  --chart-1: oklch(0.971 0.004 158.628);
  --chart-2: oklch(0.882 0.013 158.386);
  --chart-3: oklch(0.849 0.027 158.022);
  --chart-4: oklch(0.905 0.011 158.457);
  --chart-5: oklch(0.972 0.005 158.609);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.019 158.346);
  --foreground: oklch(0.986 0.003 158.659);
  --muted: oklch(0.166 0.017 156.493);
  --muted-foreground: oklch(0.762 0.03 157.837);
  --popover: oklch(0.141 0.019 158.346);
  --popover-foreground: oklch(0.986 0.003 158.659);
  --card: oklch(0.157 0.022 157.149);
  --card-foreground: oklch(0.993 0.001 158.69);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.971 0.004 158.628);
  --primary-foreground: oklch(0.291 0.022 156.974);
  --secondary: oklch(0.303 0.026 156.711);
  --secondary-foreground: oklch(0.834 0.028 157.981);
  --accent: oklch(0.379 0.049 155.439);
  --accent-foreground: oklch(0.883 0.031 157.941);
  --destructive: oklch(0.649 0.226 34.903);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.004 158.628);
  --chart-1: oklch(0.971 0.004 158.628);
  --chart-2: oklch(0.303 0.026 156.711);
  --chart-3: oklch(0.379 0.049 155.439);
  --chart-4: oklch(0.336 0.03 156.634);
  --chart-5: oklch(0.972 0.005 158.609);
}