Omni for shadcn/ui

Omni is a shadcn/ui theme built around a muted light indigo primary color (#e0e0e5) with muted deep violet accents (#3b3450). The light mode uses a violet-tinted background (#191622). Dark mode keeps the muted light indigo primary (#e0e0e5) on a violet-tinted background (#191622).

Color palette

TokenLightDark
Background
#191622black
#191622black
Foreground
#e0e0e5gainsboro
#e0e0e5gainsboro
Card
#15121cblack
#15121cblack
Card foreground
#eeeef1whitesmoke
#eeeef1whitesmoke
Popover
#121019black
#121019black
Popover foreground
#fcfcfdwhite
#fcfcfdwhite
Primary
#e0e0e5gainsboro
#e0e0e5gainsboro
Primary foreground
#434351darkslategray
#434351darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#24222bdarkslategray
#24222bdarkslategray
Muted foreground
#a09bb0darkgray
#a09bb0darkgray
Accent
#3b3450darkslategray
#3b3450darkslategray
Accent foreground
#d8d4e3gainsboro
#d8d4e3gainsboro
Destructive
#f3483ftomato
#f3483ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#27242ddarkslategray
#27242ddarkslategray
Input
#2e2b36darkslategray
#2e2b36darkslategray
Ring
#e0e0e5gainsboro
#e0e0e5gainsboro

Contrast

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

Light mode
Text on background13.52:1AAA
Text on card15.98:1AAA
Primary button7.41:1AAA
Secondary button7.37:1AAA
Muted text5.85:1AA
Accent8.01:1AAA
Destructive3.61:1AA Large
Dark mode
Text on background13.52:1AAA
Text on card15.98:1AAA
Primary button7.41:1AAA
Secondary button7.37:1AAA
Muted text5.85:1AA
Accent8.01:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.21 0.023 295.795);
  --foreground: oklch(0.909 0.007 286.263);
  --muted: oklch(0.257 0.017 296.614);
  --muted-foreground: oklch(0.701 0.031 297.024);
  --popover: oklch(0.18 0.018 296.048);
  --popover-foreground: oklch(0.992 0.001 286.389);
  --card: oklch(0.19 0.02 295.953);
  --card-foreground: oklch(0.951 0.004 286.33);
  --border: oklch(0.268 0.017 296.702);
  --input: oklch(0.297 0.019 296.651);
  --primary: oklch(0.909 0.007 286.263);
  --primary-foreground: oklch(0.389 0.022 285.313);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.346 0.049 295.227);
  --accent-foreground: oklch(0.877 0.021 297.403);
  --destructive: oklch(0.646 0.209 27.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.909 0.007 286.263);
  --chart-1: oklch(0.909 0.007 286.263);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.346 0.049 295.227);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.907 0.009 286.217);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.21 0.023 295.795);
  --foreground: oklch(0.909 0.007 286.263);
  --muted: oklch(0.257 0.017 296.614);
  --muted-foreground: oklch(0.701 0.031 297.024);
  --popover: oklch(0.18 0.018 296.048);
  --popover-foreground: oklch(0.992 0.001 286.389);
  --card: oklch(0.19 0.02 295.953);
  --card-foreground: oklch(0.951 0.004 286.33);
  --border: oklch(0.268 0.017 296.702);
  --input: oklch(0.297 0.019 296.651);
  --primary: oklch(0.909 0.007 286.263);
  --primary-foreground: oklch(0.389 0.022 285.313);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.346 0.049 295.227);
  --accent-foreground: oklch(0.877 0.021 297.403);
  --destructive: oklch(0.646 0.209 27.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.909 0.007 286.263);
  --chart-1: oklch(0.909 0.007 286.263);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.346 0.049 295.227);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.907 0.009 286.217);
}