Pineapple for shadcn/ui

Pineapple is a shadcn/ui theme built around a light green primary color (#d8f8da) with light teal accents (#d8f8ea). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#d8f8da) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#000000black
Foreground
#020902black
#f5faf5whitesmoke
Card
#fcfdfcwhite
#000000black
Card foreground
#020902black
#f5faf5whitesmoke
Popover
#fcfdfcwhite
#000000black
Popover foreground
#020902black
#f5faf5whitesmoke
Primary
#d8f8dagainsboro
#d8f8dagainsboro
Primary foreground
#08300bblack
#08300bblack
Secondary
#e6f8d8beige
#e6f8d8beige
Secondary foreground
#193008black
#193008black
Muted
#dcead1gainsboro
#1f2e15black
Muted foreground
#4e544adarkslategray
#afb5abdarkgray
Accent
#d8f8ealightcyan
#d8f8ealightcyan
Accent foreground
#08301fblack
#08301fblack
Destructive
#c31d04firebrick
#fb4d32tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8f8dagainsboro
#d8f8dagainsboro

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button12.77:1AAA
Secondary button12.80:1AAA
Muted text6.24:1AA
Accent12.76:1AAA
Destructive5.99:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button12.77:1AAA
Secondary button12.80:1AAA
Muted text6.87:1AA
Accent12.76:1AAA
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 147.518);
  --foreground: oklch(0.123 0.028 145.82);
  --muted: oklch(0.921 0.037 131.442);
  --muted-foreground: oklch(0.437 0.017 131.426);
  --popover: oklch(0.993 0.003 147.518);
  --popover-foreground: oklch(0.123 0.028 145.82);
  --card: oklch(0.993 0.003 147.518);
  --card-foreground: oklch(0.123 0.028 145.82);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.052 146.986);
  --primary-foreground: oklch(0.271 0.076 144.1);
  --secondary: oklch(0.958 0.046 131.52);
  --secondary-foreground: oklch(0.279 0.068 134.327);
  --accent: oklch(0.953 0.038 167.563);
  --accent-foreground: oklch(0.275 0.054 160.539);
  --destructive: oklch(0.524 0.2 31.178);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.052 146.986);
  --chart-1: oklch(0.948 0.052 146.986);
  --chart-2: oklch(0.958 0.046 131.52);
  --chart-3: oklch(0.953 0.038 167.563);
  --chart-4: oklch(0.972 0.031 131.367);
  --chart-5: oklch(0.949 0.054 146.962);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.009 147.458);
  --muted: oklch(0.28 0.047 132.877);
  --muted-foreground: oklch(0.765 0.015 131.252);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.009 147.458);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.98 0.009 147.458);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.948 0.052 146.986);
  --primary-foreground: oklch(0.271 0.076 144.1);
  --secondary: oklch(0.958 0.046 131.52);
  --secondary-foreground: oklch(0.279 0.068 134.327);
  --accent: oklch(0.953 0.038 167.563);
  --accent-foreground: oklch(0.275 0.054 160.539);
  --destructive: oklch(0.663 0.215 31.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.052 146.986);
  --chart-1: oklch(0.948 0.052 146.986);
  --chart-2: oklch(0.958 0.046 131.52);
  --chart-3: oklch(0.953 0.038 167.563);
  --chart-4: oklch(0.972 0.031 131.367);
  --chart-5: oklch(0.949 0.054 146.962);
}