Loose for shadcn/ui

Loose is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#080202black
Foreground
#0e0202black
#fdfcfcsnow
Card
#fcf8f8snow
#0c0303black
Card foreground
#090101black
#ffffffwhite
Popover
#fcf8f8snow
#0c0303black
Popover foreground
#090101black
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#efe1e1mistyrose
#1e1010black
Muted foreground
#674c4cdimgray
#b39898rosybrown
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#a5360dsaddlebrown
#ec5018orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.60:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.10:1AA
Accent12.63:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.36:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.91:1AA
Accent12.63:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.19);
  --foreground: oklch(0.113 0.032 23.7);
  --muted: oklch(0.922 0.015 17.421);
  --muted-foreground: oklch(0.445 0.036 18.622);
  --popover: oklch(0.982 0.004 17.222);
  --popover-foreground: oklch(0.098 0.027 23.605);
  --card: oklch(0.982 0.004 17.222);
  --card-foreground: oklch(0.098 0.027 23.605);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.491 0.154 37.605);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.019 20.789);
  --foreground: oklch(0.991 0.002 17.191);
  --muted: oklch(0.193 0.023 19.335);
  --muted-foreground: oklch(0.705 0.032 17.935);
  --popover: oklch(0.118 0.022 20.823);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.022 20.823);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.641 0.201 37.569);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}