Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Pantsuit for shadcn/ui

Pantsuit is a shadcn/ui theme built around a deep teal primary color (#2b5446) with deep cyan accents (#2b4e54). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#2b5446) on a teal-tinted background (#070e0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e0bblack
Foreground
#000000black
#f6f9f8whitesmoke
Card
#ffffffwhite
#070e0bblack
Card foreground
#000000black
#f6f9f8whitesmoke
Popover
#ffffffwhite
#070e0bblack
Popover foreground
#000000black
#f6f9f8whitesmoke
Primary
#2b5446darkslategray
#2b5446darkslategray
Primary foreground
#cde5dcgainsboro
#cde5dcgainsboro
Secondary
#2b5431darkslategray
#2b5431darkslategray
Secondary foreground
#cde5d0lightgrey
#cde5d0lightgrey
Muted
#eaf1ebwhitesmoke
#0e150fblack
Muted foreground
#536a56dimgray
#95ac99darkseagreen
Accent
#2b4e54darkslategray
#2b4e54darkslategray
Accent foreground
#cde1e5gainsboro
#cde1e5gainsboro
Destructive
#c71a0afirebrick
#f43b2aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b5446darkslategray
#2b5446darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.42:1AA
Secondary button6.48:1AA
Muted text5.11:1AA
Accent6.67:1AA
Destructive5.87:1AA
Dark mode
Text on background18.45:1AAA
Text on card18.45:1AAA
Primary button6.42:1AA
Secondary button6.48:1AA
Muted text7.60:1AAA
Accent6.67:1AA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.01 150.102);
  --muted-foreground: oklch(0.499 0.041 149.125);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.412 0.052 168.957);
  --primary-foreground: oklch(0.901 0.028 172.627);
  --secondary: oklch(0.406 0.074 147.484);
  --secondary-foreground: oklch(0.898 0.038 149.678);
  --accent: oklch(0.4 0.041 210.021);
  --accent-foreground: oklch(0.896 0.023 209.429);
  --destructive: oklch(0.529 0.205 30.085);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.412 0.052 168.957);
  --chart-1: oklch(0.412 0.052 168.957);
  --chart-2: oklch(0.406 0.074 147.484);
  --chart-3: oklch(0.4 0.041 210.021);
  --chart-4: oklch(0.439 0.081 147.433);
  --chart-5: oklch(0.416 0.057 168.531);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.012 172.053);
  --foreground: oklch(0.979 0.004 173.464);
  --muted: oklch(0.188 0.016 149.104);
  --muted-foreground: oklch(0.721 0.037 149.551);
  --popover: oklch(0.153 0.012 172.053);
  --popover-foreground: oklch(0.979 0.004 173.464);
  --card: oklch(0.153 0.012 172.053);
  --card-foreground: oklch(0.979 0.004 173.464);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.412 0.052 168.957);
  --primary-foreground: oklch(0.901 0.028 172.627);
  --secondary: oklch(0.406 0.074 147.484);
  --secondary-foreground: oklch(0.898 0.038 149.678);
  --accent: oklch(0.4 0.041 210.021);
  --accent-foreground: oklch(0.896 0.023 209.429);
  --destructive: oklch(0.634 0.223 29.773);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.412 0.052 168.957);
  --chart-1: oklch(0.412 0.052 168.957);
  --chart-2: oklch(0.406 0.074 147.484);
  --chart-3: oklch(0.4 0.041 210.021);
  --chart-4: oklch(0.439 0.081 147.433);
  --chart-5: oklch(0.416 0.057 168.531);
}