Act for shadcn/ui

Act is a shadcn/ui theme built around a muted light green primary color (#ebf1e9) with neutral gray accents (#e2e5e1). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted light green primary (#ebf1e9) on a green-tinted background (#080e07).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#080e07black
Foreground
#000000black
#f6faf5whitesmoke
Card
#f9fcf8mintcream
#0a1108black
Card foreground
#000000black
#f9fcf8mintcream
Popover
#f9fcf8mintcream
#0a1108black
Popover foreground
#000000black
#f9fcf8mintcream
Primary
#ebf1e9linen
#ebf1e9linen
Primary foreground
#1c281ablack
#1c281ablack
Secondary
#e2e5e1gainsboro
#1d221cblack
Secondary foreground
#464f45darkslategray
#b3bfb0silver
Muted
#e9f4e6beige
#0d190bblack
Muted foreground
#616e5edimgray
#94a191darkseagreen
Accent
#e2e5e1gainsboro
#1d221cblack
Accent foreground
#464f45darkslategray
#b3bfb0silver
Destructive
#c13f0bfirebrick
#f26026chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebf1e9linen
#ebf1e9linen

Contrast

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

Light mode
Text on background20.63:1AAA
Text on card20.26:1AAA
Primary button13.36:1AAA
Secondary button6.69:1AA
Muted text4.75:1AA
Accent6.69:1AA
Destructive5.28:1AA
Dark mode
Text on background18.52:1AAA
Text on card18.48:1AAA
Primary button13.36:1AAA
Secondary button8.50:1AAA
Muted text6.70:1AA
Accent8.50:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 140.527);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.022 140.497);
  --muted-foreground: oklch(0.522 0.03 140.444);
  --popover: oklch(0.987 0.006 140.522);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.006 140.522);
  --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.951 0.013 140.511);
  --primary-foreground: oklch(0.262 0.031 140.367);
  --secondary: oklch(0.918 0.006 140.521);
  --secondary-foreground: oklch(0.417 0.02 140.457);
  --accent: oklch(0.918 0.006 140.521);
  --accent-foreground: oklch(0.417 0.02 140.457);
  --destructive: oklch(0.549 0.175 37.857);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.951 0.013 140.511);
  --chart-1: oklch(0.951 0.013 140.511);
  --chart-2: oklch(0.918 0.006 140.521);
  --chart-3: oklch(0.918 0.006 140.521);
  --chart-4: oklch(0.941 0.005 140.524);
  --chart-5: oklch(0.952 0.014 140.508);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.019 139.674);
  --foreground: oklch(0.98 0.008 140.519);
  --muted: oklch(0.196 0.031 140.341);
  --muted-foreground: oklch(0.694 0.028 140.469);
  --popover: oklch(0.168 0.022 140.095);
  --popover-foreground: oklch(0.987 0.005 140.523);
  --card: oklch(0.168 0.022 140.095);
  --card-foreground: oklch(0.987 0.005 140.523);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.951 0.013 140.511);
  --primary-foreground: oklch(0.262 0.031 140.367);
  --secondary: oklch(0.243 0.014 140.446);
  --secondary-foreground: oklch(0.79 0.024 140.485);
  --accent: oklch(0.243 0.014 140.446);
  --accent-foreground: oklch(0.79 0.024 140.485);
  --destructive: oklch(0.67 0.192 39.629);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.951 0.013 140.511);
  --chart-1: oklch(0.951 0.013 140.511);
  --chart-2: oklch(0.243 0.014 140.446);
  --chart-3: oklch(0.243 0.014 140.446);
  --chart-4: oklch(0.276 0.017 140.441);
  --chart-5: oklch(0.952 0.014 140.508);
}