Desire for shadcn/ui

Desire is a shadcn/ui theme built around a vivid light green primary color (#c2ffd4) with vivid light purple accents (#ffc2ed). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the vivid light green primary (#c2ffd4) on a green-tinted background (#041008).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#041008black
Foreground
#031107black
#f6f9f7whitesmoke
Card
#f3fbf6mintcream
#06140ablack
Card foreground
#030d06black
#f9fbf9mintcream
Popover
#f3fbf6mintcream
#06140ablack
Popover foreground
#030d06black
#f9fbf9mintcream
Primary
#c2ffd4paleturquoise
#c2ffd4paleturquoise
Primary foreground
#00290cblack
#00290cblack
Secondary
#ffc2edpink
#ffc2edpink
Secondary foreground
#8e0164purple
#8e0164purple
Muted
#e9dde5gainsboro
#22161eblack
Muted foreground
#665260dimgray
#ad99a7darkgray
Accent
#ffc2edpink
#ffc2edpink
Accent foreground
#8e0164purple
#8e0164purple
Destructive
#b83014firebrick
#e63c1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2ffd4paleturquoise
#c2ffd4paleturquoise

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.78:1AAA
Primary button14.00:1AAA
Secondary button6.06:1AA
Muted text5.42:1AA
Accent6.06:1AA
Destructive6.07:1AA
Dark mode
Text on background18.29:1AAA
Text on card18.17:1AAA
Primary button14.00:1AAA
Secondary button6.06:1AA
Muted text6.55:1AA
Accent6.06:1AA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 155.725);
  --foreground: oklch(0.16 0.03 153.972);
  --muted: oklch(0.909 0.017 336.214);
  --muted-foreground: oklch(0.463 0.034 337.206);
  --popover: oklch(0.982 0.011 155.652);
  --popover-foreground: oklch(0.143 0.026 155.02);
  --card: oklch(0.982 0.011 155.652);
  --card-foreground: oklch(0.143 0.026 155.02);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.947 0.084 154.051);
  --primary-foreground: oklch(0.244 0.068 149.263);
  --secondary: oklch(0.881 0.088 337.641);
  --secondary-foreground: oklch(0.43 0.182 346.333);
  --accent: oklch(0.881 0.088 337.641);
  --accent-foreground: oklch(0.43 0.182 346.333);
  --destructive: oklch(0.517 0.177 32.923);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.084 154.051);
  --chart-1: oklch(0.947 0.084 154.051);
  --chart-2: oklch(0.881 0.088 337.641);
  --chart-3: oklch(0.881 0.088 337.641);
  --chart-4: oklch(0.91 0.065 337.163);
  --chart-5: oklch(0.948 0.086 153.996);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.025 154.271);
  --foreground: oklch(0.979 0.004 155.785);
  --muted: oklch(0.22 0.024 337.817);
  --muted-foreground: oklch(0.705 0.031 336.672);
  --popover: oklch(0.174 0.03 153.086);
  --popover-foreground: oklch(0.986 0.003 155.813);
  --card: oklch(0.174 0.03 153.086);
  --card-foreground: oklch(0.986 0.003 155.813);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.947 0.084 154.051);
  --primary-foreground: oklch(0.244 0.068 149.263);
  --secondary: oklch(0.881 0.088 337.641);
  --secondary-foreground: oklch(0.43 0.182 346.333);
  --accent: oklch(0.881 0.088 337.641);
  --accent-foreground: oklch(0.43 0.182 346.333);
  --destructive: oklch(0.609 0.211 32.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.084 154.051);
  --chart-1: oklch(0.947 0.084 154.051);
  --chart-2: oklch(0.881 0.088 337.641);
  --chart-3: oklch(0.881 0.088 337.641);
  --chart-4: oklch(0.91 0.065 337.163);
  --chart-5: oklch(0.948 0.086 153.996);
}