Loop for shadcn/ui

Loop is a shadcn/ui theme built around a muted light green primary color (#e5eadc) with muted light violet accents (#e1dcea). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted light green primary (#e5eadc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#000000black
#fafcf8snow
Card
#fdfefbwhite
#000000black
Card foreground
#000000black
#fafcf8snow
Popover
#fdfefbwhite
#000000black
Popover foreground
#000000black
#fafcf8snow
Primary
#e5eadcgainsboro
#e5eadcgainsboro
Primary foreground
#191d11black
#191d11black
Secondary
#e1dceagainsboro
#e1dceagainsboro
Secondary foreground
#45375ddarkslategray
#45375ddarkslategray
Muted
#f1eef6whitesmoke
#0c0911black
Muted foreground
#636066dimgray
#9b999fdarkgray
Accent
#e1dceagainsboro
#e1dceagainsboro
Accent foreground
#45375ddarkslategray
#45375ddarkslategray
Destructive
#933e10saddlebrown
#e6611achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5eadcgainsboro
#e5eadcgainsboro

Contrast

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

Light mode
Text on background20.73:1AAA
Text on card20.73:1AAA
Primary button14.00:1AAA
Secondary button7.96:1AAA
Muted text5.39:1AA
Accent7.96:1AAA
Destructive7.15:1AAA
Dark mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button14.00:1AAA
Secondary button7.96:1AAA
Muted text7.02:1AAA
Accent7.96:1AAA
Destructive6.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 122.991);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.954 0.012 302.743);
  --muted-foreground: oklch(0.495 0.01 302.629);
  --popover: oklch(0.995 0.004 122.991);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.004 122.991);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.02 123.263);
  --primary-foreground: oklch(0.222 0.023 124.602);
  --secondary: oklch(0.902 0.02 302.583);
  --secondary-foreground: oklch(0.368 0.067 300.04);
  --accent: oklch(0.902 0.02 302.583);
  --accent-foreground: oklch(0.368 0.067 300.04);
  --destructive: oklch(0.472 0.127 44.208);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.02 123.263);
  --chart-1: oklch(0.93 0.02 123.263);
  --chart-2: oklch(0.902 0.02 302.583);
  --chart-3: oklch(0.902 0.02 302.583);
  --chart-4: oklch(0.929 0.015 302.686);
  --chart-5: oklch(0.931 0.023 123.3);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.004 122.998);
  --muted: oklch(0.146 0.019 301.166);
  --muted-foreground: oklch(0.685 0.009 302.729);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.004 122.998);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.988 0.004 122.998);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.93 0.02 123.263);
  --primary-foreground: oklch(0.222 0.023 124.602);
  --secondary: oklch(0.902 0.02 302.583);
  --secondary-foreground: oklch(0.368 0.067 300.04);
  --accent: oklch(0.902 0.02 302.583);
  --accent-foreground: oklch(0.368 0.067 300.04);
  --destructive: oklch(0.651 0.181 43.481);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.93 0.02 123.263);
  --chart-1: oklch(0.93 0.02 123.263);
  --chart-2: oklch(0.902 0.02 302.583);
  --chart-3: oklch(0.902 0.02 302.583);
  --chart-4: oklch(0.929 0.015 302.686);
  --chart-5: oklch(0.931 0.023 123.3);
}