Call for shadcn/ui

Call is a shadcn/ui theme built around a light green primary color (#cef7e0) with muted light green accents (#cad3ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#cef7e0) on a green-tinted background (#040b07).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b07black
Foreground
#030c07black
#f9fbfamintcream
Card
#fcfcfcsnow
#060f09black
Card foreground
#020805black
#fcfdfcwhite
Popover
#fcfcfcsnow
#060f09black
Popover foreground
#020805black
#fcfdfcwhite
Primary
#cef7e0gainsboro
#cef7e0gainsboro
Primary foreground
#062814black
#062814black
Secondary
#cad3celightgrey
#151e19black
Secondary foreground
#313a35darkslategray
#a4c1b0darkgray
Muted
#e2eee7lavender
#111d16black
Muted foreground
#4c4d4cdarkslategray
#b2b3b2darkgray
Accent
#cad3celightgrey
#151e19black
Accent foreground
#313a35darkslategray
#a4c1b0darkgray
Destructive
#9b2a0dbrown
#d33912firebrick
Destructive foreground
#fce4demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cef7e0gainsboro
#cef7e0gainsboro

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.76:1AAA
Primary button13.67:1AAA
Secondary button7.67:1AAA
Muted text7.12:1AAA
Accent7.67:1AAA
Destructive6.34:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.09:1AAA
Primary button13.67:1AAA
Secondary button8.77:1AAA
Muted text8.24:1AAA
Accent8.77:1AAA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.021 160.638);
  --muted: oklch(0.938 0.016 160.615);
  --muted-foreground: oklch(0.419 0.002 160.874);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.124 0.018 160.942);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.018 160.942);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.942 0.053 159.614);
  --primary-foreground: oklch(0.245 0.054 153.915);
  --secondary: oklch(0.858 0.012 160.688);
  --secondary-foreground: oklch(0.339 0.016 159.839);
  --accent: oklch(0.858 0.012 160.688);
  --accent-foreground: oklch(0.339 0.016 159.839);
  --destructive: oklch(0.459 0.154 34.286);
  --destructive-foreground: oklch(0.937 0.028 34.301);
  --ring: oklch(0.942 0.053 159.614);
  --chart-1: oklch(0.942 0.053 159.614);
  --chart-2: oklch(0.858 0.012 160.688);
  --chart-3: oklch(0.858 0.012 160.688);
  --chart-4: oklch(0.881 0.01 160.749);
  --chart-5: oklch(0.943 0.055 159.556);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.016 160.864);
  --foreground: oklch(0.986 0.003 160.946);
  --muted: oklch(0.216 0.022 158.351);
  --muted-foreground: oklch(0.766 0.002 160.948);
  --popover: oklch(0.155 0.019 159.552);
  --popover-foreground: oklch(0.993 0.001 160.98);
  --card: oklch(0.155 0.019 159.552);
  --card-foreground: oklch(0.993 0.001 160.98);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.942 0.053 159.614);
  --primary-foreground: oklch(0.245 0.054 153.915);
  --secondary: oklch(0.225 0.018 158.992);
  --secondary-foreground: oklch(0.784 0.04 159.77);
  --accent: oklch(0.225 0.018 158.992);
  --accent-foreground: oklch(0.784 0.04 159.77);
  --destructive: oklch(0.575 0.196 34.046);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.942 0.053 159.614);
  --chart-1: oklch(0.942 0.053 159.614);
  --chart-2: oklch(0.225 0.018 158.992);
  --chart-3: oklch(0.225 0.018 158.992);
  --chart-4: oklch(0.26 0.022 158.811);
  --chart-5: oklch(0.943 0.055 159.556);
}