Infinite for shadcn/ui

Infinite is a shadcn/ui theme built around an indigo primary color (#513d9e) with neutral gray accents (#dddce0). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the indigo primary (#513d9e) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#040307black
Foreground
#05030cblack
#f9f9fbghostwhite
Card
#f9f8fbghostwhite
#06050bblack
Card foreground
#030208black
#fcfcfdwhite
Popover
#f9f8fbghostwhite
#06050bblack
Popover foreground
#030208black
#fcfcfdwhite
Primary
#513d9edarkslateblue
#513d9edarkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dddce0gainsboro
#2f2f32darkslategray
Secondary foreground
#434148darkslategray
#c8c7ccsilver
Muted
#e2dfeclavender
#161320black
Muted foreground
#444054darkslategray
#afabbfdarkgray
Accent
#dddce0gainsboro
#2f2f32darkslategray
Accent foreground
#434148darkslategray
#c8c7ccsilver
Destructive
#b70401darkred
#fe0a06red
Destructive foreground
#ffebeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#513d9edarkslateblue
#513d9edarkslateblue

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.57:1AAA
Primary button8.34:1AAA
Secondary button7.37:1AAA
Muted text7.60:1AAA
Accent7.37:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.84:1AAA
Primary button8.34:1AAA
Secondary button7.97:1AAA
Muted text8.17:1AAA
Accent7.97:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 295.539);
  --foreground: oklch(0.111 0.026 294.297);
  --muted: oklch(0.91 0.017 295.24);
  --muted-foreground: oklch(0.384 0.033 293.978);
  --popover: oklch(0.981 0.004 295.499);
  --popover-foreground: oklch(0.097 0.022 294.484);
  --card: oklch(0.981 0.004 295.499);
  --card-foreground: oklch(0.097 0.022 294.484);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.437 0.15 287.744);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.897 0.005 295.485);
  --secondary-foreground: oklch(0.381 0.012 295.011);
  --accent: oklch(0.897 0.005 295.485);
  --accent-foreground: oklch(0.381 0.012 295.011);
  --destructive: oklch(0.49 0.199 29.381);
  --destructive-foreground: oklch(0.956 0.022 18.715);
  --ring: oklch(0.437 0.15 287.744);
  --chart-1: oklch(0.437 0.15 287.744);
  --chart-2: oklch(0.897 0.005 295.485);
  --chart-3: oklch(0.897 0.005 295.485);
  --chart-4: oklch(0.921 0.003 295.509);
  --chart-5: oklch(0.433 0.159 286.958);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.015 294.941);
  --foreground: oklch(0.983 0.002 295.543);
  --muted: oklch(0.198 0.024 293.197);
  --muted-foreground: oklch(0.752 0.028 294.9);
  --popover: oklch(0.118 0.017 294.92);
  --popover-foreground: oklch(0.992 0.001 295.561);
  --card: oklch(0.118 0.017 294.92);
  --card-foreground: oklch(0.992 0.001 295.561);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.437 0.15 287.744);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.306 0.007 295.159);
  --secondary-foreground: oklch(0.833 0.006 295.447);
  --accent: oklch(0.306 0.007 295.159);
  --accent-foreground: oklch(0.833 0.006 295.447);
  --destructive: oklch(0.628 0.255 29.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.437 0.15 287.744);
  --chart-1: oklch(0.437 0.15 287.744);
  --chart-2: oklch(0.306 0.007 295.159);
  --chart-3: oklch(0.306 0.007 295.159);
  --chart-4: oklch(0.335 0.008 295.145);
  --chart-5: oklch(0.433 0.159 286.958);
}