Imaginary for shadcn/ui

Imaginary is a shadcn/ui theme built around a blue primary color (#7d96d8) with green accents (#96d87d). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#7d96d8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010205black
#f6f7f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#010205black
#f6f7f9whitesmoke
Primary
#7d96d8cornflowerblue
#7d96d8cornflowerblue
Primary foreground
#080d1bblack
#080d1bblack
Secondary
#d87d96palevioletred
#d87d96palevioletred
Secondary foreground
#1b080dblack
#1b080dblack
Muted
#f4e7ealinen
#180b0fblack
Muted foreground
#675b5edimgray
#a4989bdarkgray
Accent
#96d87dlightgreen
#96d87dlightgreen
Accent foreground
#0d1b08black
#0d1b08black
Destructive
#922802saddlebrown
#fc6027tomato
Destructive foreground
#fed6c8bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7d96d8cornflowerblue
#7d96d8cornflowerblue

Contrast

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

Light mode
Text on background20.74:1AAA
Text on card20.54:1AAA
Primary button6.65:1AA
Secondary button6.73:1AA
Muted text5.38:1AA
Accent10.56:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.66:1AAA
Primary button6.65:1AA
Secondary button6.73:1AA
Muted text6.88:1AA
Accent10.56:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.079 0.017 258.06);
  --muted: oklch(0.938 0.015 359.238);
  --muted-foreground: oklch(0.484 0.016 359.695);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.079 0.017 258.06);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.68 0.103 268.33);
  --primary-foreground: oklch(0.164 0.031 267.501);
  --secondary: oklch(0.696 0.115 3.369);
  --secondary-foreground: oklch(0.169 0.035 4.369);
  --accent: oklch(0.817 0.139 137.757);
  --accent-foreground: oklch(0.205 0.041 137.846);
  --destructive: oklch(0.441 0.147 36.736);
  --destructive-foreground: oklch(0.907 0.049 40.99);
  --ring: oklch(0.68 0.103 268.33);
  --chart-1: oklch(0.68 0.103 268.33);
  --chart-2: oklch(0.696 0.115 3.369);
  --chart-3: oklch(0.817 0.139 137.757);
  --chart-4: oklch(0.722 0.104 2.734);
  --chart-5: oklch(0.677 0.109 268.197);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 270.093);
  --muted: oklch(0.172 0.024 2.587);
  --muted-foreground: oklch(0.692 0.014 359.368);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 270.093);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 270.103);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.68 0.103 268.33);
  --primary-foreground: oklch(0.164 0.031 267.501);
  --secondary: oklch(0.696 0.115 3.369);
  --secondary-foreground: oklch(0.169 0.035 4.369);
  --accent: oklch(0.817 0.139 137.757);
  --accent-foreground: oklch(0.205 0.041 137.846);
  --destructive: oklch(0.684 0.202 38.47);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.68 0.103 268.33);
  --chart-1: oklch(0.68 0.103 268.33);
  --chart-2: oklch(0.696 0.115 3.369);
  --chart-3: oklch(0.817 0.139 137.757);
  --chart-4: oklch(0.722 0.104 2.734);
  --chart-5: oklch(0.677 0.109 268.197);
}