Different for shadcn/ui

Different is a shadcn/ui theme built around a vivid deep purple primary color (#5c0a51) with vivid deep green accents (#0a5c15). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#5c0a51) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050ablack
Foreground
#160413black
#fbf9fasnow
Card
#fcfcfcsnow
#0e070dblack
Card foreground
#110310black
#fdfcfdwhite
Popover
#ffffffwhite
#0a050ablack
Popover foreground
#160413black
#fbf9fasnow
Primary
#5c0a51indigo
#5c0a51indigo
Primary foreground
#f5a3eaplum
#f5a3eaplum
Secondary
#0a5c15darkgreen
#0a5c15darkgreen
Secondary foreground
#a3f5aepalegreen
#a3f5aepalegreen
Muted
#d8eedbgainsboro
#112714black
Muted foreground
#515d52dimgray
#a2aea4darkgray
Accent
#0a5c15darkgreen
#0a5c15darkgreen
Accent foreground
#a3f5aepalegreen
#a3f5aepalegreen
Destructive
#6e1102maroon
#fa3b1eorangered
Destructive foreground
#fdb1a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c0a51indigo
#5c0a51indigo

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.67:1AAA
Primary button6.99:1AA
Secondary button6.36:1AA
Muted text5.64:1AA
Accent6.36:1AA
Destructive6.89:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.48:1AAA
Primary button6.99:1AA
Secondary button6.36:1AA
Muted text6.90:1AA
Accent6.36:1AA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.046 332.617);
  --muted: oklch(0.927 0.033 149.228);
  --muted-foreground: oklch(0.464 0.023 149.063);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.15 0.046 332.617);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.136 0.041 332.191);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.332 0.136 334.706);
  --primary-foreground: oklch(0.818 0.131 331.516);
  --secondary: oklch(0.414 0.127 144.257);
  --secondary-foreground: oklch(0.899 0.125 147.769);
  --accent: oklch(0.414 0.127 144.257);
  --accent-foreground: oklch(0.899 0.125 147.769);
  --destructive: oklch(0.348 0.129 32.017);
  --destructive-foreground: oklch(0.829 0.092 28.895);
  --ring: oklch(0.332 0.136 334.706);
  --chart-1: oklch(0.332 0.136 334.706);
  --chart-2: oklch(0.414 0.127 144.257);
  --chart-3: oklch(0.414 0.127 144.257);
  --chart-4: oklch(0.456 0.141 144.156);
  --chart-5: oklch(0.334 0.139 334.838);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.017 330.398);
  --foreground: oklch(0.984 0.002 329.708);
  --muted: oklch(0.248 0.044 147.124);
  --muted-foreground: oklch(0.739 0.02 149.341);
  --popover: oklch(0.127 0.017 330.398);
  --popover-foreground: oklch(0.984 0.002 329.708);
  --card: oklch(0.141 0.019 330.969);
  --card-foreground: oklch(0.992 0.001 329.696);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.332 0.136 334.706);
  --primary-foreground: oklch(0.818 0.131 331.516);
  --secondary: oklch(0.414 0.127 144.257);
  --secondary-foreground: oklch(0.899 0.125 147.769);
  --accent: oklch(0.414 0.127 144.257);
  --accent-foreground: oklch(0.899 0.125 147.769);
  --destructive: oklch(0.645 0.23 31.602);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.332 0.136 334.706);
  --chart-1: oklch(0.332 0.136 334.706);
  --chart-2: oklch(0.414 0.127 144.257);
  --chart-3: oklch(0.414 0.127 144.257);
  --chart-4: oklch(0.456 0.141 144.156);
  --chart-5: oklch(0.334 0.139 334.838);
}