Ultimatum for shadcn/ui

Ultimatum is a shadcn/ui theme built around an indigo primary color (#9f91e3) with muted light indigo accents (#d7d4e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#9f91e3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#05030cblack
#f9f9fbghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#05030cblack
#f9f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#05030cblack
#f9f9fbghostwhite
Primary
#9f91e3mediumpurple
#9f91e3mediumpurple
Primary foreground
#140d35black
#140d35black
Secondary
#e9e8edlavender
#222127black
Secondary foreground
#4a465ddarkslategray
#b9b7c2silver
Muted
#d5d2e4gainsboro
#1e1b2dblack
Muted foreground
#5b5a63dimgray
#9e9ca5darkgray
Accent
#d7d4e2gainsboro
#373446darkslategray
Accent foreground
#393550darkslategray
#d2d0dclightgrey
Destructive
#8d1507darkred
#da200bfirebrick
Destructive foreground
#fccfcapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9f91e3mediumpurple
#9f91e3mediumpurple

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button6.69:1AA
Secondary button7.39:1AAA
Muted text4.60:1AA
Accent8.01:1AAA
Destructive6.68:1AA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button6.69:1AA
Secondary button8.09:1AAA
Muted text6.21:1AA
Accent7.91:1AAA
Destructive5.00:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.111 0.024 292.408);
  --muted: oklch(0.873 0.025 293.537);
  --muted-foreground: oklch(0.471 0.015 293.461);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.111 0.024 292.408);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.111 0.024 292.408);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.701 0.12 290.619);
  --primary-foreground: oklch(0.198 0.074 284.99);
  --secondary: oklch(0.933 0.008 293.912);
  --secondary-foreground: oklch(0.408 0.038 292.261);
  --accent: oklch(0.877 0.02 293.646);
  --accent-foreground: oklch(0.346 0.046 291.438);
  --destructive: oklch(0.413 0.155 30.55);
  --destructive-foreground: oklch(0.892 0.052 25.573);
  --ring: oklch(0.701 0.12 290.619);
  --chart-1: oklch(0.701 0.12 290.619);
  --chart-2: oklch(0.933 0.008 293.912);
  --chart-3: oklch(0.877 0.02 293.646);
  --chart-4: oklch(0.958 0.005 293.973);
  --chart-5: oklch(0.697 0.126 290.402);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.002 294.022);
  --muted: oklch(0.234 0.034 291.161);
  --muted-foreground: oklch(0.697 0.014 293.697);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.002 294.022);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.002 294.022);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.701 0.12 290.619);
  --primary-foreground: oklch(0.198 0.074 284.99);
  --secondary: oklch(0.251 0.011 293.256);
  --secondary-foreground: oklch(0.785 0.015 293.709);
  --accent: oklch(0.336 0.032 292.217);
  --accent-foreground: oklch(0.863 0.017 293.7);
  --destructive: oklch(0.569 0.219 30.438);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.12 290.619);
  --chart-1: oklch(0.701 0.12 290.619);
  --chart-2: oklch(0.251 0.011 293.256);
  --chart-3: oklch(0.336 0.032 292.217);
  --chart-4: oklch(0.28 0.013 293.21);
  --chart-5: oklch(0.697 0.126 290.402);
}