Loose for shadcn/ui

Loose is a shadcn/ui theme built around a vivid deep red primary color (#120202) with vivid deep indigo accents (#020212). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#120202) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#090202black
#fbf9f9snow
Card
#ffffffwhite
#000000black
Card foreground
#090202black
#fbf9f9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#090202black
#fbf9f9snow
Primary
#120202black
#120202black
Primary foreground
#f7b6b6lightpink
#f7b6b6lightpink
Secondary
#021202black
#021202black
Secondary foreground
#16ca16limegreen
#16ca16limegreen
Muted
#e0e6e0gainsboro
#191f19black
Muted foreground
#3a4b3adarkslategray
#b4c5b4silver
Accent
#020212black
#020212black
Accent foreground
#b6b6f7lightsteelblue
#b6b6f7lightsteelblue
Destructive
#9d2801saddlebrown
#fe6734tomato
Destructive foreground
#ffddd1blanchedalmond
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#120202black
#120202black

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button11.89:1AAA
Secondary button8.69:1AAA
Muted text7.36:1AAA
Accent10.80:1AAA
Destructive6.02:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button11.89:1AAA
Secondary button8.69:1AAA
Muted text9.24:1AAA
Accent10.80:1AAA
Destructive7.18:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.023 22.205);
  --muted: oklch(0.919 0.011 145.489);
  --muted-foreground: oklch(0.392 0.036 144.849);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.023 22.205);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.023 22.205);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.126 0.037 24.138);
  --primary-foreground: oklch(0.835 0.076 18.804);
  --secondary: oklch(0.162 0.046 143.107);
  --secondary-foreground: oklch(0.729 0.241 142.591);
  --accent: oklch(0.105 0.044 275.663);
  --accent-foreground: oklch(0.798 0.092 284.122);
  --destructive: oklch(0.461 0.159 35.589);
  --destructive-foreground: oklch(0.922 0.041 39.3);
  --ring: oklch(0.126 0.037 24.138);
  --chart-1: oklch(0.126 0.037 24.138);
  --chart-2: oklch(0.162 0.046 143.107);
  --chart-3: oklch(0.105 0.044 275.663);
  --chart-4: oklch(0.214 0.063 142.967);
  --chart-5: oklch(0.126 0.039 24.715);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 17.186);
  --muted: oklch(0.231 0.015 145.077);
  --muted-foreground: oklch(0.806 0.03 145.286);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 17.186);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 17.186);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.126 0.037 24.138);
  --primary-foreground: oklch(0.835 0.076 18.804);
  --secondary: oklch(0.162 0.046 143.107);
  --secondary-foreground: oklch(0.729 0.241 142.591);
  --accent: oklch(0.105 0.044 275.663);
  --accent-foreground: oklch(0.798 0.092 284.122);
  --destructive: oklch(0.697 0.196 38.031);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.126 0.037 24.138);
  --chart-1: oklch(0.126 0.037 24.138);
  --chart-2: oklch(0.162 0.046 143.107);
  --chart-3: oklch(0.105 0.044 275.663);
  --chart-4: oklch(0.214 0.063 142.967);
  --chart-5: oklch(0.126 0.039 24.715);
}