Upper Pineapple Soda for shadcn/ui

Upper Pineapple Soda is a shadcn/ui theme built around a muted light green primary color (#e2e4ce) with muted light green accents (#d7e4ce). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted light green primary (#e2e4ce) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#040401black
Foreground
#040401black
#fcfcf8snow
Card
#fdfdfbsnow
#040401black
Card foreground
#040401black
#fcfcf8snow
Popover
#fdfdfbsnow
#040401black
Popover foreground
#040401black
#fcfcf8snow
Primary
#e2e4cegainsboro
#e2e4cegainsboro
Primary foreground
#4f522ddarkolivegreen
#4f522ddarkolivegreen
Secondary
#e4dbcegainsboro
#e4dbcegainsboro
Secondary foreground
#52432ddarkolivegreen
#52432ddarkolivegreen
Muted
#f2eee8linen
#17130dblack
Muted foreground
#4d473ddarkslategray
#c2bcb2silver
Accent
#d7e4cegainsboro
#d7e4cegainsboro
Accent foreground
#3c522ddarkolivegreen
#3c522ddarkolivegreen
Destructive
#651b06maroon
#f04819orangered
Destructive foreground
#f9b6a4lightpink
#ffffffwhite
Border
#eaebe6linen
#1c1c17black
Input
#eaebe6linen
#1c1c17black
Ring
#e2e4cegainsboro
#e2e4cegainsboro

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.28:1AA
Secondary button6.96:1AA
Muted text7.96:1AAA
Accent6.50:1AA
Destructive7.17:1AAA
Dark mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button6.28:1AA
Secondary button6.96:1AA
Muted text9.82:1AAA
Accent6.50:1AA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 111.066);
  --foreground: oklch(0.107 0.019 112.697);
  --muted: oklch(0.951 0.009 78.282);
  --muted-foreground: oklch(0.399 0.018 78.07);
  --popover: oklch(0.995 0.003 111.066);
  --popover-foreground: oklch(0.107 0.019 112.697);
  --card: oklch(0.995 0.003 111.066);
  --card-foreground: oklch(0.107 0.019 112.697);
  --border: oklch(0.937 0.007 111.149);
  --input: oklch(0.937 0.007 111.149);
  --primary: oklch(0.911 0.03 111.619);
  --primary-foreground: oklch(0.426 0.056 113.453);
  --secondary: oklch(0.895 0.02 78.223);
  --secondary-foreground: oklch(0.394 0.04 77.294);
  --accent: oklch(0.902 0.033 132.638);
  --accent-foreground: oklch(0.411 0.064 133.761);
  --destructive: oklch(0.341 0.11 35.435);
  --destructive-foreground: oklch(0.835 0.082 36.049);
  --ring: oklch(0.911 0.03 111.619);
  --chart-1: oklch(0.911 0.03 111.619);
  --chart-2: oklch(0.895 0.02 78.223);
  --chart-3: oklch(0.902 0.033 132.638);
  --chart-4: oklch(0.916 0.016 78.247);
  --chart-5: oklch(0.913 0.033 111.678);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.014 112.362);
  --foreground: oklch(0.989 0.005 111.116);
  --muted: oklch(0.189 0.013 77.848);
  --muted-foreground: oklch(0.797 0.016 78.239);
  --popover: oklch(0.103 0.014 112.362);
  --popover-foreground: oklch(0.989 0.005 111.116);
  --card: oklch(0.103 0.014 112.362);
  --card-foreground: oklch(0.989 0.005 111.116);
  --border: oklch(0.225 0.011 111.884);
  --input: oklch(0.225 0.011 111.884);
  --primary: oklch(0.911 0.03 111.619);
  --primary-foreground: oklch(0.426 0.056 113.453);
  --secondary: oklch(0.895 0.02 78.223);
  --secondary-foreground: oklch(0.394 0.04 77.294);
  --accent: oklch(0.902 0.033 132.638);
  --accent-foreground: oklch(0.411 0.064 133.761);
  --destructive: oklch(0.639 0.212 34.944);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.03 111.619);
  --chart-1: oklch(0.911 0.03 111.619);
  --chart-2: oklch(0.895 0.02 78.223);
  --chart-3: oklch(0.902 0.033 132.638);
  --chart-4: oklch(0.916 0.016 78.247);
  --chart-5: oklch(0.913 0.033 111.678);
}