Limited for shadcn/ui

Limited is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d2c6c6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#100404).

Color palette

TokenLightDark
Background
#fefbfbsnow
#100404black
Foreground
#090101black
#fbf9f9snow
Card
#fcf8f8snow
#140505black
Card foreground
#050101black
#fdfcfcsnow
Popover
#fefbfbsnow
#100404black
Popover foreground
#090101black
#fbf9f9snow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#e2dfdfgainsboro
#372a2adarkslategray
Secondary foreground
#4a4545darkslategray
#d0c2c2silver
Muted
#e7dedegainsboro
#211818black
Muted foreground
#665252dimgray
#ad9999rosybrown
Accent
#d2c6c6lightgrey
#4e3232darkslategray
Accent foreground
#392d2ddarkslategray
#e1d0d0lightgrey
Destructive
#9b2403firebrick
#eb3705orangered
Destructive foreground
#fedcd2blanchedalmond
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card19.64:1AAA
Primary button7.37:1AAA
Secondary button7.11:1AAA
Muted text5.51:1AA
Accent7.95:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.43:1AAA
Primary button7.37:1AAA
Secondary button7.96:1AAA
Muted text6.47:1AA
Accent7.76:1AAA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 17.201);
  --foreground: oklch(0.098 0.027 23.431);
  --muted: oklch(0.909 0.01 17.337);
  --muted-foreground: oklch(0.458 0.027 18.185);
  --popover: oklch(0.991 0.003 17.201);
  --popover-foreground: oklch(0.098 0.027 23.431);
  --card: oklch(0.981 0.005 17.244);
  --card-foreground: oklch(0.078 0.021 23.431);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.906 0.003 17.207);
  --secondary-foreground: oklch(0.394 0.008 17.486);
  --accent: oklch(0.836 0.014 17.432);
  --accent-foreground: oklch(0.31 0.018 18.169);
  --destructive: oklch(0.453 0.159 34.289);
  --destructive-foreground: oklch(0.919 0.041 35.944);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.906 0.003 17.207);
  --chart-3: oklch(0.836 0.014 17.432);
  --chart-4: oklch(0.93 0.002 17.193);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.025 21.127);
  --foreground: oklch(0.983 0.002 17.191);
  --muted: oklch(0.218 0.015 18.324);
  --muted-foreground: oklch(0.701 0.024 17.738);
  --popover: oklch(0.132 0.025 21.127);
  --popover-foreground: oklch(0.983 0.002 17.191);
  --card: oklch(0.144 0.029 21.398);
  --card-foreground: oklch(0.992 0.001 17.174);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.3 0.019 18.251);
  --secondary-foreground: oklch(0.827 0.016 17.475);
  --accent: oklch(0.35 0.041 19.34);
  --accent-foreground: oklch(0.872 0.019 17.518);
  --destructive: oklch(0.614 0.221 33.596);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.3 0.019 18.251);
  --chart-3: oklch(0.35 0.041 19.34);
  --chart-4: oklch(0.329 0.021 18.291);
  --chart-5: oklch(0 0 0);
}