Ultimate Island Green for shadcn/ui

Ultimate Island Green is a shadcn/ui theme built around a green primary color (#28af60) with neutral gray accents (#dadcdb). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the green primary (#28af60) on a green-tinted background (#040b07).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#040b07black
Foreground
#000000black
#f6f8f7whitesmoke
Card
#f3fcf7mintcream
#050f09black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f7fdf9mintcream
#040b07black
Popover foreground
#000000black
#f6f8f7whitesmoke
Primary
#28af60mediumseagreen
#28af60mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dadcdbgainsboro
#2f3732darkslategray
Secondary foreground
#404442darkslategray
#c8d0cblightgrey
Muted
#dff1e7lavender
#0e2015black
Muted foreground
#46594ddarkslategray
#a6b9aedarkgray
Accent
#dadcdbgainsboro
#2f3732darkslategray
Accent foreground
#404442darkslategray
#c8d0cblightgrey
Destructive
#761704maroon
#f85a3atomato
Destructive foreground
#fcbdb0lightpink
#000000black
Border
#e8e9e8lavender
#1e1f1eblack
Input
#e8e9e8lavender
#1e1f1eblack
Ring
#28af60mediumseagreen
#28af60mediumseagreen

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.02:1AAA
Primary button2.85:1Fail
Secondary button7.19:1AAA
Muted text6.39:1AA
Accent7.19:1AAA
Destructive6.87:1AA
Dark mode
Text on background18.61:1AAA
Text on card18.70:1AAA
Primary button2.85:1Fail
Secondary button7.77:1AAA
Muted text8.22:1AAA
Accent7.77:1AAA
Destructive6.50:1AA

CSS variables

Paste this into your globals.css to use Ultimate Island Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 160.838);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.024 160.4);
  --muted-foreground: oklch(0.443 0.03 159.334);
  --popover: oklch(0.988 0.007 160.838);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.011 160.749);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.932 0.001 160.982);
  --input: oklch(0.932 0.001 160.982);
  --primary: oklch(0.664 0.161 152.203);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.894 0.003 160.938);
  --secondary-foreground: oklch(0.383 0.007 160.606);
  --accent: oklch(0.894 0.003 160.938);
  --accent-foreground: oklch(0.383 0.007 160.606);
  --destructive: oklch(0.371 0.132 32.902);
  --destructive-foreground: oklch(0.852 0.076 31.485);
  --ring: oklch(0.664 0.161 152.203);
  --chart-1: oklch(0.664 0.161 152.203);
  --chart-2: oklch(0.894 0.003 160.938);
  --chart-3: oklch(0.894 0.003 160.938);
  --chart-4: oklch(0.917 0.002 160.956);
  --chart-5: oklch(0.672 0.166 151.837);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.017 160.807);
  --foreground: oklch(0.978 0.002 160.955);
  --muted: oklch(0.224 0.032 156.924);
  --muted-foreground: oklch(0.769 0.026 160.192);
  --popover: oklch(0.14 0.017 160.807);
  --popover-foreground: oklch(0.978 0.002 160.955);
  --card: oklch(0.156 0.021 159.431);
  --card-foreground: oklch(0.986 0.002 160.975);
  --border: oklch(0.239 0.002 160.788);
  --input: oklch(0.239 0.002 160.788);
  --primary: oklch(0.664 0.161 152.203);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.328 0.014 159.981);
  --secondary-foreground: oklch(0.85 0.011 160.706);
  --accent: oklch(0.328 0.014 159.981);
  --accent-foreground: oklch(0.85 0.011 160.706);
  --destructive: oklch(0.673 0.199 33.21);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.664 0.161 152.203);
  --chart-1: oklch(0.664 0.161 152.203);
  --chart-2: oklch(0.328 0.014 159.981);
  --chart-3: oklch(0.328 0.014 159.981);
  --chart-4: oklch(0.358 0.016 159.951);
  --chart-5: oklch(0.672 0.166 151.837);
}