1984 - Orwellian for shadcn/ui

1984 - Orwellian is a shadcn/ui theme built around a vivid light orange primary color (#fcd497) with muted orange accents (#5a5044). The light mode uses an orange-tinted background (#2f2923). Dark mode keeps the vivid light orange primary (#fcd497) on an orange-tinted background (#2f2923).

Color palette

TokenLightDark
Background
#2f2923darkslategray
#2f2923darkslategray
Foreground
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Card
#29241fblack
#29241fblack
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#26221dblack
#26221dblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#fcd497khaki
#fcd497khaki
Primary foreground
#5e3a03saddlebrown
#5e3a03saddlebrown
Secondary
#53442ddarkolivegreen
#53442ddarkolivegreen
Secondary foreground
#e4dbcdgainsboro
#e4dbcdgainsboro
Muted
#39342ddarkslategray
#39342ddarkslategray
Muted foreground
#bcb3a9darkgray
#bcb3a9darkgray
Accent
#5a5044darkolivegreen
#5a5044darkolivegreen
Accent foreground
#ebe8e5linen
#ebe8e5linen
Destructive
#ea1f1fcrimson
#ea1f1fcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#383633darkslategray
#383633darkslategray
Input
#403d3bdarkslategray
#403d3bdarkslategray
Ring
#fcd497khaki
#fcd497khaki

Contrast

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

Light mode
Text on background12.80:1AAA
Text on card15.35:1AAA
Primary button7.17:1AAA
Secondary button6.89:1AA
Muted text5.98:1AA
Accent6.44:1AA
Destructive4.44:1AA Large
Dark mode
Text on background12.80:1AAA
Text on card15.35:1AAA
Primary button7.17:1AAA
Secondary button6.89:1AA
Muted text5.98:1AA
Accent6.44:1AA
Destructive4.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.286 0.013 72.784);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.327 0.014 72.835);
  --muted-foreground: oklch(0.772 0.017 73.044);
  --popover: oklch(0.253 0.011 72.814);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.264 0.012 72.803);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.333 0.005 73.106);
  --input: oklch(0.363 0.005 73.103);
  --primary: oklch(0.889 0.089 77.326);
  --primary-foreground: oklch(0.382 0.081 69.41);
  --secondary: oklch(0.395 0.041 77.228);
  --secondary-foreground: oklch(0.895 0.021 78.219);
  --accent: oklch(0.438 0.023 72.705);
  --accent-foreground: oklch(0.933 0.006 73.174);
  --destructive: oklch(0.599 0.232 27.993);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.089 77.326);
  --chart-1: oklch(0.889 0.089 77.326);
  --chart-2: oklch(0.395 0.041 77.228);
  --chart-3: oklch(0.438 0.023 72.705);
  --chart-4: oklch(0.426 0.045 77.189);
  --chart-5: oklch(0.891 0.092 77.267);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.286 0.013 72.784);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.327 0.014 72.835);
  --muted-foreground: oklch(0.772 0.017 73.044);
  --popover: oklch(0.253 0.011 72.814);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.264 0.012 72.803);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.333 0.005 73.106);
  --input: oklch(0.363 0.005 73.103);
  --primary: oklch(0.889 0.089 77.326);
  --primary-foreground: oklch(0.382 0.081 69.41);
  --secondary: oklch(0.395 0.041 77.228);
  --secondary-foreground: oklch(0.895 0.021 78.219);
  --accent: oklch(0.438 0.023 72.705);
  --accent-foreground: oklch(0.933 0.006 73.174);
  --destructive: oklch(0.599 0.232 27.993);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.089 77.326);
  --chart-1: oklch(0.889 0.089 77.326);
  --chart-2: oklch(0.395 0.041 77.228);
  --chart-3: oklch(0.438 0.023 72.705);
  --chart-4: oklch(0.426 0.045 77.189);
  --chart-5: oklch(0.891 0.092 77.267);
}