1 for shadcn/ui

1 is a shadcn/ui theme built around a light green primary color (#e5fbea) with muted light green accents (#b4cfbb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e5fbea) on a green-tinted background (#060e08).

Color palette

TokenLightDark
Background
#ffffffwhite
#060e08black
Foreground
#010402black
#ffffffwhite
Card
#fcfcfcsnow
#08120ablack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#060e08black
Popover foreground
#010402black
#ffffffwhite
Primary
#e5fbeahoneydew
#e5fbeahoneydew
Primary foreground
#0a3d16darkgreen
#0a3d16darkgreen
Secondary
#d0dcd3lightgrey
#222a24darkslategray
Secondary foreground
#354639darkslategray
#b9c6bcsilver
Muted
#e0ebe3gainsboro
#141f17black
Muted foreground
#4c4d4cdarkslategray
#b2b3b2darkgray
Accent
#b4cfbbsilver
#2c3f31darkslategray
Accent foreground
#203224darkslategray
#c6d7calightgrey
Destructive
#a21d06firebrick
#f62c09orangered
Destructive foreground
#fee2ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5fbeahoneydew
#e5fbeahoneydew

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.54:1AAA
Primary button11.38:1AAA
Secondary button7.12:1AAA
Muted text6.93:1AA
Accent8.17:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.08:1AAA
Primary button11.38:1AAA
Secondary button8.31:1AAA
Muted text8.07:1AAA
Accent7.52:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.016 152.487);
  --muted: oklch(0.929 0.016 152.961);
  --muted-foreground: oklch(0.419 0.003 153.133);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.016 152.487);
  --card: oklch(0.992 0 161.565);
  --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.966 0.032 152.695);
  --primary-foreground: oklch(0.317 0.084 147.158);
  --secondary: oklch(0.883 0.017 152.922);
  --secondary-foreground: oklch(0.374 0.031 151.784);
  --accent: oklch(0.83 0.041 152.413);
  --accent-foreground: oklch(0.296 0.034 151.148);
  --destructive: oklch(0.462 0.171 31.88);
  --destructive-foreground: oklch(0.933 0.032 29.624);
  --ring: oklch(0.966 0.032 152.695);
  --chart-1: oklch(0.966 0.032 152.695);
  --chart-2: oklch(0.883 0.017 152.922);
  --chart-3: oklch(0.83 0.041 152.413);
  --chart-4: oklch(0.905 0.014 152.99);
  --chart-5: oklch(0.967 0.033 152.671);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.02 152.086);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.022 151.508);
  --muted-foreground: oklch(0.766 0.002 153.19);
  --popover: oklch(0.154 0.02 152.086);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.023 151.197);
  --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.966 0.032 152.695);
  --primary-foreground: oklch(0.317 0.084 147.158);
  --secondary: oklch(0.276 0.015 152.306);
  --secondary-foreground: oklch(0.813 0.019 152.845);
  --accent: oklch(0.346 0.034 151.517);
  --accent-foreground: oklch(0.862 0.025 152.765);
  --destructive: oklch(0.627 0.236 31.543);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.966 0.032 152.695);
  --chart-1: oklch(0.966 0.032 152.695);
  --chart-2: oklch(0.276 0.015 152.306);
  --chart-3: oklch(0.346 0.034 151.517);
  --chart-4: oklch(0.308 0.018 152.262);
  --chart-5: oklch(0.967 0.033 152.671);
}