Acre for shadcn/ui

Acre is a shadcn/ui theme built around a cyan primary color (#2894a9) with blue accents (#2853a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#2894a9) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#020b0dblack
#ffffffwhite
Card
#fcfcfcsnow
#030607black
Card foreground
#020709black
#ffffffwhite
Popover
#fcfcfcsnow
#030607black
Popover foreground
#020709black
#ffffffwhite
Primary
#2894a9lightseagreen
#2894a9lightseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#28a97emediumseagreen
#28a97emediumseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d5e1ddgainsboro
#1e2a26darkslategray
Muted foreground
#48514edarkslategray
#aeb7b4darkgray
Accent
#2853a9darkslateblue
#2853a9darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d4480cchocolate
#f15613orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2894a9lightseagreen
#2894a9lightseagreen

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.81:1AAA
Primary button3.56:1AA Large
Secondary button2.96:1Fail
Muted text6.12:1AA
Accent7.24:1AAA
Destructive4.43:1AA Large
Dark mode
Text on background20.64:1AAA
Text on card20.29:1AAA
Primary button3.56:1AA Large
Secondary button2.96:1Fail
Muted text7.25:1AAA
Accent7.24:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.14 0.017 208.089);
  --muted: oklch(0.901 0.014 174.125);
  --muted-foreground: oklch(0.426 0.013 173.688);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.122 0.015 206.86);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.122 0.015 206.86);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.616 0.098 214.507);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.657 0.127 165.27);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.462 0.147 262.276);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.592 0.186 38.706);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.616 0.098 214.507);
  --chart-1: oklch(0.616 0.098 214.507);
  --chart-2: oklch(0.657 0.127 165.27);
  --chart-3: oklch(0.462 0.147 262.276);
  --chart-4: oklch(0.692 0.134 165.199);
  --chart-5: oklch(0.622 0.101 214.827);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.006 208.636);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.271 0.018 172.437);
  --muted-foreground: oklch(0.772 0.011 174.163);
  --popover: oklch(0.119 0.008 208.636);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.008 208.636);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.616 0.098 214.507);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.657 0.127 165.27);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.462 0.147 262.276);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.203 39.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.616 0.098 214.507);
  --chart-1: oklch(0.616 0.098 214.507);
  --chart-2: oklch(0.657 0.127 165.27);
  --chart-3: oklch(0.462 0.147 262.276);
  --chart-4: oklch(0.692 0.134 165.199);
  --chart-5: oklch(0.622 0.101 214.827);
}