Grassland for shadcn/ui

Grassland is a shadcn/ui theme built around a light teal primary color (#c3e5de) with light cyan accents (#c3dae5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#c3e5de) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#020807black
#fcfdfdwhite
Card
#fcfcfcsnow
#030706black
Card foreground
#010403black
#ffffffwhite
Popover
#fcfcfcsnow
#030706black
Popover foreground
#010403black
#ffffffwhite
Primary
#c3e5depowderblue
#c3e5depowderblue
Primary foreground
#245249darkslategray
#245249darkslategray
Secondary
#c3e5cdlightgrey
#c3e5cdlightgrey
Secondary foreground
#245232darkslategray
#245232darkslategray
Muted
#d7e4dbgainsboro
#1b281fblack
Muted foreground
#47524bdarkslategray
#adb8b1darkgray
Accent
#c3dae5powderblue
#c3dae5powderblue
Accent foreground
#244352darkslategray
#244352darkslategray
Destructive
#c7120ffirebrick
#da1410crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c3e5depowderblue
#c3e5depowderblue

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.14:1AAA
Primary button6.53:1AA
Secondary button6.59:1AA
Muted text6.23:1AA
Accent7.22:1AAA
Destructive5.95:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.24:1AAA
Primary button6.53:1AA
Secondary button6.59:1AA
Muted text7.52:1AAA
Accent7.22:1AAA
Destructive5.13:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.014 184.07);
  --muted: oklch(0.908 0.019 156.15);
  --muted-foreground: oklch(0.426 0.018 155.695);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.099 0.011 184.07);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.011 184.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.894 0.036 183.185);
  --primary-foreground: oklch(0.402 0.053 179.903);
  --secondary: oklch(0.89 0.047 155.463);
  --secondary-foreground: oklch(0.395 0.073 151.994);
  --accent: oklch(0.874 0.029 227.307);
  --accent-foreground: oklch(0.365 0.045 229.614);
  --destructive: oklch(0.527 0.208 28.812);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.036 183.185);
  --chart-1: oklch(0.894 0.036 183.185);
  --chart-2: oklch(0.89 0.047 155.463);
  --chart-3: oklch(0.874 0.029 227.307);
  --chart-4: oklch(0.909 0.039 155.687);
  --chart-5: oklch(0.897 0.039 183.101);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.007 184.148);
  --foreground: oklch(0.993 0.001 184.278);
  --muted: oklch(0.26 0.025 154.499);
  --muted-foreground: oklch(0.772 0.016 156.154);
  --popover: oklch(0.122 0.009 184.148);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.009 184.148);
  --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.894 0.036 183.185);
  --primary-foreground: oklch(0.402 0.053 179.903);
  --secondary: oklch(0.89 0.047 155.463);
  --secondary-foreground: oklch(0.395 0.073 151.994);
  --accent: oklch(0.874 0.029 227.307);
  --accent-foreground: oklch(0.365 0.045 229.614);
  --destructive: oklch(0.564 0.224 28.855);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.036 183.185);
  --chart-1: oklch(0.894 0.036 183.185);
  --chart-2: oklch(0.89 0.047 155.463);
  --chart-3: oklch(0.874 0.029 227.307);
  --chart-4: oklch(0.909 0.039 155.687);
  --chart-5: oklch(0.897 0.039 183.101);
}