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

Go to generator

10000+Themes for shadcn/ui

Sentimental for shadcn/ui

Sentimental is a shadcn/ui theme built around a muted cyan primary color (#446974) with muted green accents (#697444). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#446974) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#020b0dblack
#f5f9faghostwhite
Card
#fcfcfcsnow
#020608black
Card foreground
#010709black
#f8fbfcghostwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#020b0dblack
#f5f9faghostwhite
Primary
#446974dimgray
#446974dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#744469dimgray
#744469dimgray
Secondary foreground
#f7f2f6whitesmoke
#f7f2f6whitesmoke
Muted
#ecdfe9lavender
#20131dblack
Muted foreground
#585056dimgray
#afa7addarkgray
Accent
#697444darkolivegreen
#697444darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#932e06saddlebrown
#f65f23tomato
Destructive foreground
#fddbcebisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#446974dimgray
#446974dimgray

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.84:1AAA
Primary button6.00:1AA
Secondary button6.86:1AA
Muted text6.05:1AA
Accent5.04:1AA
Destructive6.15:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.51:1AAA
Primary button6.00:1AA
Secondary button6.86:1AA
Muted text7.63:1AAA
Accent5.04:1AA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.018 213.742);
  --muted: oklch(0.917 0.018 333.559);
  --muted-foreground: oklch(0.441 0.015 333.782);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.018 213.742);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.016 212.051);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.496 0.045 218.97);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.456 0.083 335.979);
  --secondary-foreground: oklch(0.967 0.008 333.37);
  --accent: oklch(0.536 0.07 119.55);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.449 0.143 38.015);
  --destructive-foreground: oklch(0.917 0.042 42.787);
  --ring: oklch(0.496 0.045 218.97);
  --chart-1: oklch(0.496 0.045 218.97);
  --chart-2: oklch(0.456 0.083 335.979);
  --chart-3: oklch(0.536 0.07 119.55);
  --chart-4: oklch(0.482 0.089 336.006);
  --chart-5: oklch(0.499 0.05 219.201);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.009 213.533);
  --foreground: oklch(0.979 0.004 217.767);
  --muted: oklch(0.209 0.026 335.154);
  --muted-foreground: oklch(0.736 0.013 333.529);
  --popover: oklch(0.095 0.009 213.533);
  --popover-foreground: oklch(0.979 0.004 217.767);
  --card: oklch(0.119 0.011 213.533);
  --card-foreground: oklch(0.986 0.003 217.759);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.496 0.045 218.97);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.456 0.083 335.979);
  --secondary-foreground: oklch(0.967 0.008 333.37);
  --accent: oklch(0.536 0.07 119.55);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.673 0.198 39.33);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.496 0.045 218.97);
  --chart-1: oklch(0.496 0.045 218.97);
  --chart-2: oklch(0.456 0.083 335.979);
  --chart-3: oklch(0.536 0.07 119.55);
  --chart-4: oklch(0.482 0.089 336.006);
  --chart-5: oklch(0.499 0.05 219.201);
}