2077 for shadcn/ui

2077 is a shadcn/ui theme built around a vivid pink primary color (#ff2491) with vivid deep blue accents (#092767). The light mode uses a blue-tinted background (#030c21). Dark mode keeps the vivid pink primary (#ff2491) on a blue-tinted background (#030c21).

Color palette

TokenLightDark
Background
#030c21black
#030c21black
Foreground
#ffffffwhite
#ffffffwhite
Card
#020917black
#020917black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#020713black
#020713black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#ff2491deeppink
#ff2491deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2acbfsilver
#d2acbfsilver
Secondary foreground
#321b26darkslategray
#321b26darkslategray
Muted
#22252bdarkslategray
#22252bdarkslategray
Muted foreground
#9ba2b0darkgray
#9ba2b0darkgray
Accent
#092767midnightblue
#092767midnightblue
Accent foreground
#abc3f8lightsteelblue
#abc3f8lightsteelblue
Destructive
#cf2c17firebrick
#cf2c17firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#081635black
#081635black
Input
#0a1c43midnightblue
#0a1c43midnightblue
Ring
#ff2491deeppink
#ff2491deeppink

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.93:1AAA
Primary button3.55:1AA Large
Secondary button7.88:1AAA
Muted text6.01:1AA
Accent7.94:1AAA
Destructive5.22:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.93:1AAA
Primary button3.55:1AA Large
Secondary button7.88:1AAA
Muted text6.01:1AA
Accent7.94:1AAA
Destructive5.22:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.16 0.047 260.234);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.012 265.725);
  --muted-foreground: oklch(0.711 0.023 265.834);
  --popover: oklch(0.128 0.031 255.53);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.036 257.46);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.21 0.064 263.15);
  --input: oklch(0.238 0.077 263.11);
  --primary: oklch(0.66 0.254 358.031);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.784 0.051 346.77);
  --secondary-foreground: oklch(0.257 0.041 348.98);
  --accent: oklch(0.298 0.119 262.726);
  --accent-foreground: oklch(0.817 0.079 265.309);
  --destructive: oklch(0.556 0.201 31.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.66 0.254 358.031);
  --chart-1: oklch(0.66 0.254 358.031);
  --chart-2: oklch(0.784 0.051 346.77);
  --chart-3: oklch(0.298 0.119 262.726);
  --chart-4: oklch(0.811 0.045 346.523);
  --chart-5: oklch(0.664 0.258 358.474);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.047 260.234);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.012 265.725);
  --muted-foreground: oklch(0.711 0.023 265.834);
  --popover: oklch(0.128 0.031 255.53);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.036 257.46);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.21 0.064 263.15);
  --input: oklch(0.238 0.077 263.11);
  --primary: oklch(0.66 0.254 358.031);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.784 0.051 346.77);
  --secondary-foreground: oklch(0.257 0.041 348.98);
  --accent: oklch(0.298 0.119 262.726);
  --accent-foreground: oklch(0.817 0.079 265.309);
  --destructive: oklch(0.556 0.201 31.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.66 0.254 358.031);
  --chart-1: oklch(0.66 0.254 358.031);
  --chart-2: oklch(0.784 0.051 346.77);
  --chart-3: oklch(0.298 0.119 262.726);
  --chart-4: oklch(0.811 0.045 346.523);
  --chart-5: oklch(0.664 0.258 358.474);
}