Tight for shadcn/ui

Tight is a shadcn/ui theme built around a near-black primary color (#080203) with near-black accents (#020308). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#080203) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fdf7f7snow
#070303black
Foreground
#0d0303black
#fdfcfcsnow
Card
#fbf3f3lavenderblush
#0b0505black
Card foreground
#080202black
#ffffffwhite
Popover
#fdf7f7snow
#070303black
Popover foreground
#0d0303black
#fdfcfcsnow
Primary
#080203black
#080203black
Primary foreground
#eab8balightpink
#eab8balightpink
Secondary
#030802black
#030802black
Secondary foreground
#35a531forestgreen
#35a531forestgreen
Muted
#d9eed8gainsboro
#122711black
Muted foreground
#455445darkslategray
#abbaabdarkgray
Accent
#020308black
#020308black
Accent foreground
#b8baealightsteelblue
#b8baealightsteelblue
Destructive
#720904maroon
#f83025orangered
Destructive foreground
#fcafablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080203black
#080203black

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card18.89:1AAA
Primary button11.81:1AAA
Secondary button6.33:1AA
Muted text6.57:1AA
Accent11.05:1AAA
Destructive6.76:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.26:1AAA
Primary button11.81:1AAA
Secondary button6.33:1AA
Muted text7.81:1AAA
Accent11.05:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 14.903);
  --foreground: oklch(0.117 0.024 18.215);
  --muted: oklch(0.927 0.037 144.36);
  --muted-foreground: oklch(0.429 0.031 144.139);
  --popover: oklch(0.981 0.006 14.903);
  --popover-foreground: oklch(0.117 0.024 18.215);
  --card: oklch(0.971 0.009 14.962);
  --card-foreground: oklch(0.102 0.021 18.116);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.104 0.017 17.323);
  --primary-foreground: oklch(0.828 0.057 16.146);
  --secondary: oklch(0.122 0.023 143.001);
  --secondary-foreground: oklch(0.636 0.183 142.606);
  --accent: oklch(0.097 0.019 279.864);
  --accent-foreground: oklch(0.804 0.067 283.219);
  --destructive: oklch(0.352 0.137 29.744);
  --destructive-foreground: oklch(0.827 0.092 22.584);
  --ring: oklch(0.104 0.017 17.323);
  --chart-1: oklch(0.104 0.017 17.323);
  --chart-2: oklch(0.122 0.023 143.001);
  --chart-3: oklch(0.097 0.019 279.864);
  --chart-4: oklch(0.172 0.035 143.029);
  --chart-5: oklch(0.104 0.018 17.544);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 16.389);
  --foreground: oklch(0.992 0.001 14.808);
  --muted: oklch(0.248 0.049 143.263);
  --muted-foreground: oklch(0.774 0.027 144.392);
  --popover: oklch(0.108 0.012 16.389);
  --popover-foreground: oklch(0.992 0.001 14.808);
  --card: oklch(0.123 0.014 16.395);
  --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.104 0.017 17.323);
  --primary-foreground: oklch(0.828 0.057 16.146);
  --secondary: oklch(0.122 0.023 143.001);
  --secondary-foreground: oklch(0.636 0.183 142.606);
  --accent: oklch(0.097 0.019 279.864);
  --accent-foreground: oklch(0.804 0.067 283.219);
  --destructive: oklch(0.634 0.234 28.939);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.104 0.017 17.323);
  --chart-1: oklch(0.104 0.017 17.323);
  --chart-2: oklch(0.122 0.023 143.001);
  --chart-3: oklch(0.097 0.019 279.864);
  --chart-4: oklch(0.172 0.035 143.029);
  --chart-5: oklch(0.104 0.018 17.544);
}