Vague for shadcn/ui

Vague is a shadcn/ui theme built around a green primary color (#3cd787) with pink accents (#d73c8c). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#3cd787) on a green-tinted background (#04100a).

Color palette

TokenLightDark
Background
#ffffffwhite
#04100ablack
Foreground
#03110ablack
#fcfdfcwhite
Card
#ffffffwhite
#04100ablack
Card foreground
#03110ablack
#fcfdfcwhite
Popover
#ffffffwhite
#04100ablack
Popover foreground
#03110ablack
#fcfdfcwhite
Primary
#3cd787mediumseagreen
#3cd787mediumseagreen
Primary foreground
#0c3b23darkgreen
#0c3b23darkgreen
Secondary
#d73c8cmediumvioletred
#d73c8cmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1eaedlinen
#150e12black
Muted foreground
#6c5a64dimgray
#a5939cdarkgray
Accent
#d73c8cmediumvioletred
#d73c8cmediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b11a06firebrick
#e72208red
Destructive foreground
#feeeeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3cd787mediumseagreen
#3cd787mediumseagreen

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button6.77:1AA
Secondary button4.26:1AA Large
Muted text5.38:1AA
Accent4.26:1AA Large
Destructive6.15:1AA
Dark mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button6.77:1AA
Secondary button4.26:1AA Large
Muted text6.55:1AA
Accent4.26:1AA Large
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.026 161.958);
  --muted: oklch(0.943 0.009 344.52);
  --muted-foreground: oklch(0.49 0.027 345.648);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.161 0.026 161.958);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.161 0.026 161.958);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.781 0.171 155.653);
  --primary-foreground: oklch(0.315 0.066 156.225);
  --secondary: oklch(0.608 0.203 353.321);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.608 0.203 353.321);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.488 0.186 30.869);
  --destructive-foreground: oklch(0.96 0.018 26.577);
  --ring: oklch(0.781 0.171 155.653);
  --chart-1: oklch(0.781 0.171 155.653);
  --chart-2: oklch(0.608 0.203 353.321);
  --chart-3: oklch(0.608 0.203 353.321);
  --chart-4: oklch(0.627 0.194 352.26);
  --chart-5: oklch(0.789 0.177 155.295);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.023 162.253);
  --foreground: oklch(0.993 0.002 164.228);
  --muted: oklch(0.176 0.013 346.121);
  --muted-foreground: oklch(0.681 0.025 345.198);
  --popover: oklch(0.159 0.023 162.253);
  --popover-foreground: oklch(0.993 0.002 164.228);
  --card: oklch(0.159 0.023 162.253);
  --card-foreground: oklch(0.993 0.002 164.228);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.781 0.171 155.653);
  --primary-foreground: oklch(0.315 0.066 156.225);
  --secondary: oklch(0.608 0.203 353.321);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.608 0.203 353.321);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.594 0.229 30.724);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.781 0.171 155.653);
  --chart-1: oklch(0.781 0.171 155.653);
  --chart-2: oklch(0.608 0.203 353.321);
  --chart-3: oklch(0.608 0.203 353.321);
  --chart-4: oklch(0.627 0.194 352.26);
  --chart-5: oklch(0.789 0.177 155.295);
}