Tip for shadcn/ui

Tip is a shadcn/ui theme built around a light green primary color (#abe8ac) with light teal accents (#abe8ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#abe8ac) on a green-tinted background (#051005).

Color palette

TokenLightDark
Background
#ffffffwhite
#051005black
Foreground
#010401black
#fcfdfcwhite
Card
#ffffffwhite
#051005black
Card foreground
#010401black
#fcfdfcwhite
Popover
#ffffffwhite
#051005black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#abe8acpalegreen
#abe8acpalegreen
Primary foreground
#154c16darkgreen
#154c16darkgreen
Secondary
#c8e8abpalegoldenrod
#c8e8abpalegoldenrod
Secondary foreground
#304c15darkolivegreen
#304c15darkolivegreen
Muted
#e5e7e4gainsboro
#191b18black
Muted foreground
#474946darkslategray
#b8b9b6silver
Accent
#abe8capowderblue
#abe8capowderblue
Accent foreground
#154c31darkslategray
#154c31darkslategray
Destructive
#ac3802firebrick
#e34a02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#abe8acpalegreen
#abe8acpalegreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button7.15:1AAA
Secondary button7.18:1AAA
Muted text7.31:1AAA
Accent7.16:1AAA
Destructive6.35:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.15:1AAA
Secondary button7.18:1AAA
Muted text8.78:1AAA
Accent7.16:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.02 144.351);
  --muted: oklch(0.926 0.004 129.176);
  --muted-foreground: oklch(0.402 0.005 129.26);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.02 144.351);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.097 0.02 144.351);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.874 0.103 145.037);
  --primary-foreground: oklch(0.368 0.102 143.376);
  --secondary: oklch(0.893 0.087 130.231);
  --secondary-foreground: oklch(0.381 0.088 132.612);
  --accent: oklch(0.881 0.074 163.516);
  --accent-foreground: oklch(0.373 0.074 158.326);
  --destructive: oklch(0.504 0.16 39.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.874 0.103 145.037);
  --chart-1: oklch(0.874 0.103 145.037);
  --chart-2: oklch(0.893 0.087 130.231);
  --chart-3: oklch(0.881 0.074 163.516);
  --chart-4: oklch(0.908 0.075 130.044);
  --chart-5: oklch(0.876 0.108 144.986);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.03 144.423);
  --foreground: oklch(0.993 0.002 146.035);
  --muted: oklch(0.219 0.006 129.434);
  --muted-foreground: oklch(0.784 0.004 129.184);
  --popover: oklch(0.156 0.03 144.423);
  --popover-foreground: oklch(0.993 0.002 146.035);
  --card: oklch(0.156 0.03 144.423);
  --card-foreground: oklch(0.993 0.002 146.035);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.874 0.103 145.037);
  --primary-foreground: oklch(0.368 0.102 143.376);
  --secondary: oklch(0.893 0.087 130.231);
  --secondary-foreground: oklch(0.381 0.088 132.612);
  --accent: oklch(0.881 0.074 163.516);
  --accent-foreground: oklch(0.373 0.074 158.326);
  --destructive: oklch(0.618 0.2 38.308);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.874 0.103 145.037);
  --chart-1: oklch(0.874 0.103 145.037);
  --chart-2: oklch(0.893 0.087 130.231);
  --chart-3: oklch(0.881 0.074 163.516);
  --chart-4: oklch(0.908 0.075 130.044);
  --chart-5: oklch(0.876 0.108 144.986);
}