Loose for shadcn/ui

Loose is a shadcn/ui theme built around a green primary color (#6db677) with muted light green accents (#bad9be). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#6db677) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#041006black
#f5faf6whitesmoke
Card
#fcfcfcsnow
#030704black
Card foreground
#030c04black
#f8fbf9mintcream
Popover
#fcfcfcsnow
#030704black
Popover foreground
#030c04black
#f8fbf9mintcream
Primary
#6db677darkseagreen
#6db677darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#dbe6dcgainsboro
#191f1ablack
Secondary foreground
#3a553ddarkslategray
#adbdafdarkgray
Muted
#dde4degainsboro
#1b221cblack
Muted foreground
#566758dimgray
#98a99adarkgray
Accent
#bad9besilver
#213023darkslategray
Accent foreground
#223f26darkslategray
#b7cdbasilver
Destructive
#842401maroon
#fe662ftomato
Destructive foreground
#ffcbb8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6db677darkseagreen
#6db677darkseagreen

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button8.57:1AAA
Secondary button6.43:1AA
Muted text4.65:1AA
Accent7.61:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.44:1AAA
Primary button8.57:1AAA
Secondary button8.51:1AAA
Muted text6.55:1AA
Accent8.21:1AAA
Destructive7.15: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.158 0.031 147.985);
  --muted: oklch(0.911 0.011 149.539);
  --muted-foreground: oklch(0.494 0.031 148.876);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.141 0.026 148.39);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.026 148.39);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.711 0.116 147.376);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.914 0.018 149.433);
  --secondary-foreground: oklch(0.42 0.051 148.053);
  --accent: oklch(0.855 0.05 148.941);
  --accent-foreground: oklch(0.336 0.055 147.397);
  --destructive: oklch(0.41 0.137 36.952);
  --destructive-foreground: oklch(0.882 0.065 40.924);
  --ring: oklch(0.711 0.116 147.376);
  --chart-1: oklch(0.711 0.116 147.376);
  --chart-2: oklch(0.914 0.018 149.433);
  --chart-3: oklch(0.855 0.05 148.941);
  --chart-4: oklch(0.936 0.014 149.502);
  --chart-5: oklch(0.717 0.126 147.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.013 148.838);
  --foreground: oklch(0.979 0.007 149.594);
  --muted: oklch(0.243 0.015 148.906);
  --muted-foreground: oklch(0.718 0.028 149.183);
  --popover: oklch(0.121 0.016 148.838);
  --popover-foreground: oklch(0.986 0.005 149.624);
  --card: oklch(0.121 0.016 148.838);
  --card-foreground: oklch(0.986 0.005 149.624);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.711 0.116 147.376);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.232 0.014 148.928);
  --secondary-foreground: oklch(0.782 0.027 149.254);
  --accent: oklch(0.292 0.03 148.305);
  --accent-foreground: oklch(0.826 0.036 149.138);
  --destructive: oklch(0.696 0.197 38.899);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.711 0.116 147.376);
  --chart-1: oklch(0.711 0.116 147.376);
  --chart-2: oklch(0.232 0.014 148.928);
  --chart-3: oklch(0.292 0.03 148.305);
  --chart-4: oklch(0.265 0.017 148.87);
  --chart-5: oklch(0.717 0.126 147.178);
}