Limit for shadcn/ui

Limit is a shadcn/ui theme built around a muted purple primary color (#896c89) with muted light purple accents (#d4c4d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#896c89) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#150415black
#fdfbfdsnow
Card
#ffffffwhite
#000000black
Card foreground
#150415black
#fdfbfdsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#150415black
#fdfbfdsnow
Primary
#896c89gray
#896c89gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e3dee3gainsboro
#2a272adarkslategray
Secondary foreground
#4e414edarkslategray
#c4bfc4silver
Muted
#e8d9e8gainsboro
#261726black
Muted foreground
#484248darkslategray
#bdb7bdsilver
Accent
#d4c4d3thistle
#433743darkslategray
Accent foreground
#3b2b3adarkslategray
#dad2dalightgrey
Destructive
#7c0e09maroon
#f03228crimson
Destructive foreground
#fabfbclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#896c89gray
#896c89gray

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button4.60:1AA
Secondary button7.21:1AAA
Muted text7.21:1AAA
Accent7.94:1AAA
Destructive6.87:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button4.60:1AA
Secondary button8.12:1AAA
Muted text8.65:1AAA
Accent7.59:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.045 328.093);
  --muted: oklch(0.901 0.026 326.285);
  --muted-foreground: oklch(0.387 0.012 326.293);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.045 328.093);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.045 328.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.569 0.056 326.813);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.905 0.009 326.137);
  --secondary-foreground: oklch(0.393 0.027 326.59);
  --accent: oklch(0.838 0.027 326.306);
  --accent-foreground: oklch(0.314 0.034 326.88);
  --destructive: oklch(0.376 0.143 29.222);
  --destructive-foreground: oklch(0.858 0.068 22.047);
  --ring: oklch(0.569 0.056 326.813);
  --chart-1: oklch(0.569 0.056 326.813);
  --chart-2: oklch(0.905 0.009 326.137);
  --chart-3: oklch(0.838 0.027 326.306);
  --chart-4: oklch(0.929 0.007 326.114);
  --chart-5: oklch(0.567 0.07 326.992);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 326.081);
  --muted: oklch(0.231 0.036 327.228);
  --muted-foreground: oklch(0.787 0.01 326.153);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 326.081);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.003 326.081);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.569 0.056 326.813);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.278 0.007 326.268);
  --secondary-foreground: oklch(0.811 0.009 326.139);
  --accent: oklch(0.355 0.026 326.633);
  --accent-foreground: oklch(0.873 0.014 326.183);
  --destructive: oklch(0.621 0.225 28.748);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.569 0.056 326.813);
  --chart-1: oklch(0.569 0.056 326.813);
  --chart-2: oklch(0.278 0.007 326.268);
  --chart-3: oklch(0.355 0.026 326.633);
  --chart-4: oklch(0.309 0.009 326.277);
  --chart-5: oklch(0.567 0.07 326.992);
}