1984 for shadcn/ui

1984 is a shadcn/ui theme built around a vivid blue primary color (#47bfff) with deep indigo accents (#1d216d). The light mode uses an indigo-tinted background (#0d0f30). Dark mode keeps the vivid blue primary (#47bfff) on an indigo-tinted background (#0d0f30).

Color palette

TokenLightDark
Background
#0d0f30black
#0d0f30black
Foreground
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Card
#0b0c28black
#0b0c28black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#0a0b24black
#0a0b24black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#47bfffmediumturquoise
#47bfffmediumturquoise
Primary foreground
#000d14black
#000d14black
Secondary
#2d4553darkslategray
#2d4553darkslategray
Secondary foreground
#cddce4gainsboro
#cddce4gainsboro
Muted
#24242edarkslategray
#24242edarkslategray
Muted foreground
#9e9fb3darkgray
#9e9fb3darkgray
Accent
#1d216dmidnightblue
#1d216dmidnightblue
Accent foreground
#cbcdf1gainsboro
#cbcdf1gainsboro
Destructive
#ee2a20crimson
#ee2a20crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#171940midnightblue
#171940midnightblue
Input
#1b1d4bmidnightblue
#1b1d4bmidnightblue
Ring
#47bfffmediumturquoise
#47bfffmediumturquoise

Contrast

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

Light mode
Text on background16.65:1AAA
Text on card19.11:1AAA
Primary button9.50:1AAA
Secondary button7.12:1AAA
Muted text5.88:1AA
Accent9.09:1AAA
Destructive4.19:1AA Large
Dark mode
Text on background16.65:1AAA
Text on card19.11:1AAA
Primary button9.50:1AAA
Secondary button7.12:1AAA
Muted text5.88:1AA
Accent9.09:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.19 0.066 275.858);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.265 0.017 282.777);
  --muted-foreground: oklch(0.708 0.029 283.245);
  --popover: oklch(0.166 0.052 276.933);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.056 276.537);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.236 0.074 276.862);
  --input: oklch(0.259 0.085 276.472);
  --primary: oklch(0.764 0.139 236.52);
  --primary-foreground: oklch(0.149 0.029 227.053);
  --secondary: oklch(0.378 0.038 232.669);
  --secondary-foreground: oklch(0.886 0.02 230.974);
  --accent: oklch(0.301 0.129 273.301);
  --accent-foreground: oklch(0.857 0.051 282.894);
  --destructive: oklch(0.612 0.229 29.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.764 0.139 236.52);
  --chart-1: oklch(0.764 0.139 236.52);
  --chart-2: oklch(0.378 0.038 232.669);
  --chart-3: oklch(0.301 0.129 273.301);
  --chart-4: oklch(0.407 0.042 232.722);
  --chart-5: oklch(0.767 0.142 236.789);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.19 0.066 275.858);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.265 0.017 282.777);
  --muted-foreground: oklch(0.708 0.029 283.245);
  --popover: oklch(0.166 0.052 276.933);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.056 276.537);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.236 0.074 276.862);
  --input: oklch(0.259 0.085 276.472);
  --primary: oklch(0.764 0.139 236.52);
  --primary-foreground: oklch(0.149 0.029 227.053);
  --secondary: oklch(0.378 0.038 232.669);
  --secondary-foreground: oklch(0.886 0.02 230.974);
  --accent: oklch(0.301 0.129 273.301);
  --accent-foreground: oklch(0.857 0.051 282.894);
  --destructive: oklch(0.612 0.229 29.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.764 0.139 236.52);
  --chart-1: oklch(0.764 0.139 236.52);
  --chart-2: oklch(0.378 0.038 232.669);
  --chart-3: oklch(0.301 0.129 273.301);
  --chart-4: oklch(0.407 0.042 232.722);
  --chart-5: oklch(0.767 0.142 236.789);
}