Technology for shadcn/ui

Technology is a shadcn/ui theme built around a deep purple primary color (#4b2352) with deep green accents (#2a5223). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#4b2352) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#0e0510black
#fbf8fcghostwhite
Card
#fcfcfcsnow
#0a040bblack
Card foreground
#0a040cblack
#fdfbfdsnow
Popover
#ffffffwhite
#070307black
Popover foreground
#0e0510black
#fbf8fcghostwhite
Primary
#4b2352darkslategray
#4b2352darkslategray
Primary foreground
#e0c2e5thistle
#e0c2e5thistle
Secondary
#2a5223darkslategray
#2a5223darkslategray
Secondary foreground
#c8e5c2lightgrey
#c8e5c2lightgrey
Muted
#dce1dbgainsboro
#1f241eblack
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#2a5223darkslategray
#2a5223darkslategray
Accent foreground
#c8e5c2lightgrey
#c8e5c2lightgrey
Destructive
#ad4410saddlebrown
#db5714chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b2352darkslategray
#4b2352darkslategray

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card19.84:1AAA
Primary button7.82:1AAA
Secondary button6.61:1AA
Muted text4.53:1AA
Accent6.61:1AA
Destructive5.81:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.67:1AAA
Primary button7.82:1AAA
Secondary button6.61:1AA
Muted text5.73:1AA
Accent6.61:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.136 0.03 321.973);
  --muted: oklch(0.904 0.011 141.039);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.136 0.03 321.973);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.026 322.533);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.333 0.092 321.442);
  --primary-foreground: oklch(0.851 0.057 321.207);
  --secondary: oklch(0.397 0.087 140.733);
  --secondary-foreground: oklch(0.891 0.056 140.929);
  --accent: oklch(0.397 0.087 140.733);
  --accent-foreground: oklch(0.891 0.056 140.929);
  --destructive: oklch(0.522 0.149 42.187);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.333 0.092 321.442);
  --chart-1: oklch(0.333 0.092 321.442);
  --chart-2: oklch(0.397 0.087 140.733);
  --chart-3: oklch(0.397 0.087 140.733);
  --chart-4: oklch(0.432 0.096 140.735);
  --chart-5: oklch(0.333 0.098 321.433);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.018 322.452);
  --foreground: oklch(0.983 0.006 321.079);
  --muted: oklch(0.254 0.015 140.94);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.109 0.018 322.452);
  --popover-foreground: oklch(0.983 0.006 321.079);
  --card: oklch(0.125 0.021 322.366);
  --card-foreground: oklch(0.991 0.003 321.072);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.333 0.092 321.442);
  --primary-foreground: oklch(0.851 0.057 321.207);
  --secondary: oklch(0.397 0.087 140.733);
  --secondary-foreground: oklch(0.891 0.056 140.929);
  --accent: oklch(0.397 0.087 140.733);
  --accent-foreground: oklch(0.891 0.056 140.929);
  --destructive: oklch(0.622 0.18 41.805);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.333 0.092 321.442);
  --chart-1: oklch(0.333 0.092 321.442);
  --chart-2: oklch(0.397 0.087 140.733);
  --chart-3: oklch(0.397 0.087 140.733);
  --chart-4: oklch(0.432 0.096 140.735);
  --chart-5: oklch(0.333 0.098 321.433);
}