Limited for shadcn/ui

Limited is a shadcn/ui theme built around a neutral gray primary color (#383839) with neutral gray accents (#383938). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the neutral gray primary (#383839) on an indigo-tinted background (#04030c).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#04030cblack
Foreground
#04030cblack
#fcfcfdwhite
Card
#f4f2fcwhitesmoke
#060410black
Card foreground
#030208black
#ffffffwhite
Popover
#f4f2fcwhitesmoke
#060410black
Popover foreground
#030208black
#ffffffwhite
Primary
#383839darkslategray
#383839darkslategray
Primary foreground
#d1d1d2lightgrey
#d1d1d2lightgrey
Secondary
#383938darkslategray
#383938darkslategray
Secondary foreground
#d1d2d1lightgrey
#d1d2d1lightgrey
Muted
#f5f6eewhitesmoke
#101109black
Muted foreground
#646850dimgray
#acaf97darkgray
Accent
#383938darkslategray
#383938darkslategray
Accent foreground
#d1d2d1lightgrey
#d1d2d1lightgrey
Destructive
#911f03darkred
#fa4a1eorangered
Destructive foreground
#fed3c8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#383839darkslategray
#383839darkslategray

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card18.68:1AAA
Primary button7.72:1AAA
Secondary button7.67:1AAA
Muted text5.31:1AA
Accent7.67:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.99:1AAA
Text on card20.32:1AAA
Primary button7.72:1AAA
Secondary button7.67:1AAA
Muted text8.45:1AAA
Accent7.67:1AAA
Destructive3.45: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.977 0.009 293.134);
  --foreground: oklch(0.109 0.026 291.138);
  --muted: oklch(0.971 0.011 113.508);
  --muted-foreground: oklch(0.506 0.036 114.647);
  --popover: oklch(0.966 0.013 293.043);
  --popover-foreground: oklch(0.095 0.023 291.307);
  --card: oklch(0.966 0.013 293.043);
  --card-foreground: oklch(0.095 0.023 291.307);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.339 0.002 293.198);
  --primary-foreground: oklch(0.86 0.001 293.278);
  --secondary: oklch(0.343 0.002 113.412);
  --secondary-foreground: oklch(0.862 0.001 113.333);
  --accent: oklch(0.343 0.002 113.412);
  --accent-foreground: oklch(0.862 0.001 113.333);
  --destructive: oklch(0.43 0.153 33.753);
  --destructive-foreground: oklch(0.9 0.051 34.351);
  --ring: oklch(0.339 0.002 293.198);
  --chart-1: oklch(0.339 0.002 293.198);
  --chart-2: oklch(0.343 0.002 113.412);
  --chart-3: oklch(0.343 0.002 113.412);
  --chart-4: oklch(0.372 0.002 113.414);
  --chart-5: oklch(0.335 0.008 292.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.026 291.138);
  --foreground: oklch(0.992 0.001 293.288);
  --muted: oklch(0.172 0.016 114.977);
  --muted-foreground: oklch(0.745 0.034 114.143);
  --popover: oklch(0.121 0.031 290.305);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.031 290.305);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.339 0.002 293.198);
  --primary-foreground: oklch(0.86 0.001 293.278);
  --secondary: oklch(0.343 0.002 113.412);
  --secondary-foreground: oklch(0.862 0.001 113.333);
  --accent: oklch(0.343 0.002 113.412);
  --accent-foreground: oklch(0.862 0.001 113.333);
  --destructive: oklch(0.658 0.219 34.333);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.339 0.002 293.198);
  --chart-1: oklch(0.339 0.002 293.198);
  --chart-2: oklch(0.343 0.002 113.412);
  --chart-3: oklch(0.343 0.002 113.412);
  --chart-4: oklch(0.372 0.002 113.414);
  --chart-5: oklch(0.335 0.008 292.865);
}