Tight for shadcn/ui

Tight is a shadcn/ui theme built around a vivid red primary color (#e83b52) with vivid teal accents (#3be8d1). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid red primary (#e83b52) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040102black
Foreground
#100406black
#fdfcfcsnow
Card
#fcf8f9snow
#080203black
Card foreground
#0c0304black
#ffffffwhite
Popover
#fcf8f9snow
#080203black
Popover foreground
#0c0304black
#ffffffwhite
Primary
#e83b52indianred
#e83b52indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3be8d1turquoise
#3be8d1turquoise
Secondary foreground
#094e44darkslategray
#094e44darkslategray
Muted
#ebf4f3whitesmoke
#0b1413black
Muted foreground
#3f4b49darkslategray
#b4c0bfsilver
Accent
#3be8d1turquoise
#3be8d1turquoise
Accent foreground
#094e44darkslategray
#094e44darkslategray
Destructive
#a23c01saddlebrown
#ef5801orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e83b52indianred
#e83b52indianred

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.35:1AAA
Primary button4.06:1AA Large
Secondary button6.24:1AA
Muted text8.12:1AAA
Accent6.24:1AA
Destructive6.57:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.55:1AAA
Primary button4.06:1AA Large
Secondary button6.24:1AA
Muted text10.00:1AAA
Accent6.24:1AA
Destructive3.46: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.991 0.002 7.794);
  --foreground: oklch(0.133 0.025 9.757);
  --muted: oklch(0.961 0.01 187.496);
  --muted-foreground: oklch(0.402 0.016 186.737);
  --popover: oklch(0.982 0.004 7.84);
  --popover-foreground: oklch(0.119 0.021 8.9);
  --card: oklch(0.982 0.004 7.84);
  --card-foreground: oklch(0.119 0.021 8.9);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.619 0.208 18.814);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.841 0.139 181.588);
  --secondary-foreground: oklch(0.381 0.065 181.07);
  --accent: oklch(0.841 0.139 181.588);
  --accent-foreground: oklch(0.381 0.065 181.07);
  --destructive: oklch(0.494 0.147 42.446);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.208 18.814);
  --chart-1: oklch(0.619 0.208 18.814);
  --chart-2: oklch(0.841 0.139 181.588);
  --chart-3: oklch(0.841 0.139 181.588);
  --chart-4: oklch(0.848 0.135 182.194);
  --chart-5: oklch(0.622 0.214 19.332);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 8.699);
  --foreground: oklch(0.991 0.002 7.799);
  --muted: oklch(0.181 0.014 185.719);
  --muted-foreground: oklch(0.799 0.014 187.319);
  --popover: oklch(0.105 0.018 8.699);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.018 8.699);
  --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.619 0.208 18.814);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.841 0.139 181.588);
  --secondary-foreground: oklch(0.381 0.065 181.07);
  --accent: oklch(0.841 0.139 181.588);
  --accent-foreground: oklch(0.381 0.065 181.07);
  --destructive: oklch(0.653 0.199 41.314);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.208 18.814);
  --chart-1: oklch(0.619 0.208 18.814);
  --chart-2: oklch(0.841 0.139 181.588);
  --chart-3: oklch(0.841 0.139 181.588);
  --chart-4: oklch(0.848 0.135 182.194);
  --chart-5: oklch(0.622 0.214 19.332);
}