Arch-rival for shadcn/ui

Arch-rival is a shadcn/ui theme built around an indigo primary color (#2129b5) with near-white accents (#e8e8e8). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#2129b5) on an indigo-tinted background (#04040b).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#04040bblack
Foreground
#030411black
#ffffffwhite
Card
#fbfbfeghostwhite
#04040bblack
Card foreground
#030411black
#ffffffwhite
Popover
#fbfbfeghostwhite
#04040bblack
Popover foreground
#030411black
#ffffffwhite
Primary
#2129b5mediumblue
#2129b5mediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e8e8e8lavender
#262636darkslategray
Secondary foreground
#4f4f4fdarkslategray
#bdbed1silver
Muted
#f6eaealinen
#090a15black
Muted foreground
#525151darkslategray
#adadaedarkgray
Accent
#e8e8e8lavender
#262636darkslategray
Accent foreground
#4f4f4fdarkslategray
#bdbed1silver
Destructive
#c2160afirebrick
#f43325orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2129b5mediumblue
#2129b5mediumblue

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button10.27:1AAA
Secondary button6.68:1AA
Muted text6.71:1AA
Accent6.68:1AA
Destructive6.15:1AA
Dark mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button10.27:1AAA
Secondary button8.07:1AAA
Muted text8.78:1AAA
Accent8.07:1AAA
Destructive3.94:1AA Large

CSS variables

Paste this into your globals.css to use Arch-rival in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 283.918);
  --foreground: oklch(0.117 0.033 276.435);
  --muted: oklch(0.945 0.013 17.392);
  --muted-foreground: oklch(0.436 0.002 17.239);
  --popover: oklch(0.99 0.003 283.918);
  --popover-foreground: oklch(0.117 0.033 276.435);
  --card: oklch(0.99 0.003 283.918);
  --card-foreground: oklch(0.117 0.033 276.435);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.394 0.212 269.385);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.931 0 180);
  --secondary-foreground: oklch(0.428 0 180);
  --accent: oklch(0.931 0 180);
  --accent-foreground: oklch(0.428 0 180);
  --destructive: oklch(0.518 0.202 29.751);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.394 0.212 269.385);
  --chart-1: oklch(0.394 0.212 269.385);
  --chart-2: oklch(0.931 0 180);
  --chart-3: oklch(0.931 0 180);
  --chart-4: oklch(0.954 0 180);
  --chart-5: oklch(0.392 0.22 268.642);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.02 279.546);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.15 0.025 280.556);
  --muted-foreground: oklch(0.747 0.002 283.92);
  --popover: oklch(0.114 0.02 279.546);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.114 0.02 279.546);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.394 0.212 269.385);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.277 0.029 281.984);
  --secondary-foreground: oklch(0.806 0.027 283.377);
  --accent: oklch(0.277 0.029 281.984);
  --accent-foreground: oklch(0.806 0.027 283.377);
  --destructive: oklch(0.627 0.228 29.385);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.394 0.212 269.385);
  --chart-1: oklch(0.394 0.212 269.385);
  --chart-2: oklch(0.277 0.029 281.984);
  --chart-3: oklch(0.277 0.029 281.984);
  --chart-4: oklch(0.304 0.033 281.901);
  --chart-5: oklch(0.392 0.22 268.642);
}