Inlay for shadcn/ui

Inlay is a shadcn/ui theme built around a muted green primary color (#708f73) with muted light green accents (#bcc8bd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#708f73) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#ffffffwhite
#030703black
Foreground
#030d04black
#fcfdfcwhite
Card
#ffffffwhite
#030703black
Card foreground
#030d04black
#fcfdfcwhite
Popover
#ffffffwhite
#030703black
Popover foreground
#030d04black
#fcfdfcwhite
Primary
#708f73gray
#708f73gray
Primary foreground
#000000black
#000000black
Secondary
#d3d4d3lightgrey
#151915black
Secondary foreground
#3a3b3adarkslategray
#a9b7aadarkgray
Muted
#d9e2dagainsboro
#1d261dblack
Muted foreground
#3f4b40darkslategray
#b4c0b5silver
Accent
#bcc8bdsilver
#212c22darkslategray
Accent foreground
#252d25darkslategray
#b6c8b8silver
Destructive
#a31805firebrick
#e42107red
Destructive foreground
#fee0dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#708f73gray
#708f73gray

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button5.85:1AA
Secondary button7.57:1AAA
Muted text6.93:1AA
Accent8.18:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button5.85:1AA
Secondary button8.49:1AAA
Muted text8.29:1AAA
Accent8.28:1AAA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.03 146.45);
  --muted: oklch(0.905 0.015 147.887);
  --muted-foreground: oklch(0.398 0.025 147.39);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.142 0.03 146.45);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.142 0.03 146.45);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.618 0.054 147.091);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.869 0.001 148.047);
  --secondary-foreground: oklch(0.352 0.002 147.992);
  --accent: oklch(0.82 0.02 147.799);
  --accent-foreground: oklch(0.286 0.018 147.393);
  --destructive: oklch(0.46 0.175 30.93);
  --destructive-foreground: oklch(0.931 0.033 26.717);
  --ring: oklch(0.618 0.054 147.091);
  --chart-1: oklch(0.618 0.054 147.091);
  --chart-2: oklch(0.869 0.001 148.047);
  --chart-3: oklch(0.82 0.02 147.799);
  --chart-4: oklch(0.893 0.001 148.05);
  --chart-5: oklch(0.624 0.067 146.851);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 147.049);
  --foreground: oklch(0.993 0.001 148.049);
  --muted: oklch(0.256 0.021 147.178);
  --muted-foreground: oklch(0.796 0.021 147.785);
  --popover: oklch(0.121 0.017 147.049);
  --popover-foreground: oklch(0.993 0.001 148.049);
  --card: oklch(0.121 0.017 147.049);
  --card-foreground: oklch(0.993 0.001 148.049);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.618 0.054 147.091);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.208 0.01 147.56);
  --secondary-foreground: oklch(0.765 0.024 147.727);
  --accent: oklch(0.278 0.023 147.141);
  --accent-foreground: oklch(0.815 0.03 147.672);
  --destructive: oklch(0.586 0.227 30.705);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.054 147.091);
  --chart-1: oklch(0.618 0.054 147.091);
  --chart-2: oklch(0.208 0.01 147.56);
  --chart-3: oklch(0.278 0.023 147.141);
  --chart-4: oklch(0.242 0.012 147.508);
  --chart-5: oklch(0.624 0.067 146.851);
}