Public Green Velvet for shadcn/ui

Public Green Velvet is a shadcn/ui theme built around a deep teal primary color (#1f7551) with muted teal accents (#a4c6b8). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#1f7551) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010403black
#f8fbfamintcream
Card
#ffffffwhite
#000000black
Card foreground
#010403black
#f8fbfamintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#010403black
#f8fbfamintcream
Primary
#1f7551seagreen
#1f7551seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c5d3cdlightgrey
#29322fdarkslategray
Secondary foreground
#2c3a34darkslategray
#c1cdc8silver
Muted
#f2f3f2whitesmoke
#0c0d0dblack
Muted foreground
#4d5b55darkslategray
#a4b2acdarkgray
Accent
#a4c6b8silver
#344c42darkslategray
Accent foreground
#16231dblack
#d1e0dagainsboro
Destructive
#cd280efirebrick
#ea2d10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e2e9e6gainsboro
#212b27darkslategray
Input
#e2e9e6gainsboro
#212b27darkslategray
Ring
#1f7551seagreen
#1f7551seagreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button5.65:1AA
Secondary button7.71:1AAA
Muted text6.40:1AA
Accent8.78:1AAA
Destructive5.38:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button5.65:1AA
Secondary button8.01:1AAA
Muted text8.82:1AAA
Accent6.83:1AA
Destructive4.30:1AA Large

CSS variables

Paste this into your globals.css to use Public Green Velvet in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.015 169.984);
  --muted: oklch(0.963 0.002 169.626);
  --muted-foreground: oklch(0.457 0.019 168.438);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.015 169.984);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.015 169.984);
  --border: oklch(0.928 0.008 169.425);
  --input: oklch(0.928 0.008 169.425);
  --primary: oklch(0.502 0.099 161.092);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.855 0.017 169.081);
  --secondary-foreground: oklch(0.334 0.022 167.699);
  --accent: oklch(0.798 0.042 168.104);
  --accent-foreground: oklch(0.24 0.021 166.921);
  --destructive: oklch(0.549 0.203 31.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.502 0.099 161.092);
  --chart-1: oklch(0.502 0.099 161.092);
  --chart-2: oklch(0.855 0.017 169.081);
  --chart-3: oklch(0.798 0.042 168.104);
  --chart-4: oklch(0.877 0.015 169.187);
  --chart-5: oklch(0.508 0.103 160.675);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 169.57);
  --muted: oklch(0.159 0.002 169.242);
  --muted-foreground: oklch(0.75 0.017 169.016);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.004 169.57);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.004 169.57);
  --border: oklch(0.279 0.016 167.962);
  --input: oklch(0.279 0.016 167.962);
  --primary: oklch(0.502 0.099 161.092);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.309 0.014 168.294);
  --secondary-foreground: oklch(0.837 0.014 169.196);
  --accent: oklch(0.393 0.034 166.878);
  --accent-foreground: oklch(0.894 0.018 169.104);
  --destructive: oklch(0.605 0.225 31.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.502 0.099 161.092);
  --chart-1: oklch(0.502 0.099 161.092);
  --chart-2: oklch(0.309 0.014 168.294);
  --chart-3: oklch(0.393 0.034 166.878);
  --chart-4: oklch(0.341 0.016 168.247);
  --chart-5: oklch(0.508 0.103 160.675);
}