Loading for shadcn/ui

Loading is a shadcn/ui theme built around a muted deep indigo primary color (#19191f) with muted deep green accents (#191f19). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep indigo primary (#19191f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#060614black
#f6f6f9whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#060614black
#f6f6f9whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#060614black
#f6f6f9whitesmoke
Primary
#19191fblack
#19191fblack
Primary foreground
#acacbedarkgray
#acacbedarkgray
Secondary
#1f1919black
#1f1919black
Secondary foreground
#beacacdarkgray
#beacacdarkgray
Muted
#f1e9e9linen
#160e0eblack
Muted foreground
#626060dimgray
#9f9d9ddarkgray
Accent
#191f19black
#191f19black
Accent foreground
#acbeacdarkgray
#acbeacdarkgray
Destructive
#742201maroon
#fd5c1corangered
Destructive foreground
#fec1a9lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#19191fblack
#19191fblack

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button7.84:1AAA
Secondary button8.00:1AAA
Muted text5.23:1AA
Accent8.53:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.84:1AAA
Secondary button8.00:1AAA
Muted text7.06:1AAA
Accent8.53:1AAA
Destructive6.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.031 280.332);
  --muted: oklch(0.941 0.009 16.134);
  --muted-foreground: oklch(0.491 0.002 16.062);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.132 0.031 280.332);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.132 0.031 280.332);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.215 0.013 284.492);
  --primary-foreground: oklch(0.751 0.025 285.011);
  --secondary: oklch(0.22 0.011 16.866);
  --secondary-foreground: oklch(0.76 0.021 16.458);
  --accent: oklch(0.232 0.016 144.601);
  --accent-foreground: oklch(0.783 0.031 144.816);
  --destructive: oklch(0.378 0.122 38.375);
  --destructive-foreground: oklch(0.861 0.078 42.559);
  --ring: oklch(0.215 0.013 284.492);
  --chart-1: oklch(0.215 0.013 284.492);
  --chart-2: oklch(0.22 0.011 16.866);
  --chart-3: oklch(0.232 0.016 144.601);
  --chart-4: oklch(0.251 0.013 16.942);
  --chart-5: oklch(0.213 0.016 284.167);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.004 285.544);
  --muted: oklch(0.174 0.013 17.427);
  --muted-foreground: oklch(0.698 0.002 16.031);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.004 285.544);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.004 285.544);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.215 0.013 284.492);
  --primary-foreground: oklch(0.751 0.025 285.011);
  --secondary: oklch(0.22 0.011 16.866);
  --secondary-foreground: oklch(0.76 0.021 16.458);
  --accent: oklch(0.232 0.016 144.601);
  --accent-foreground: oklch(0.783 0.031 144.816);
  --destructive: oklch(0.68 0.208 38.689);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.215 0.013 284.492);
  --chart-1: oklch(0.215 0.013 284.492);
  --chart-2: oklch(0.22 0.011 16.866);
  --chart-3: oklch(0.232 0.016 144.601);
  --chart-4: oklch(0.251 0.013 16.942);
  --chart-5: oklch(0.213 0.016 284.167);
}