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

Go to generator

10000+Themes for shadcn/ui

Cool for shadcn/ui

Cool is a shadcn/ui theme built around a blue primary color (#768be0) with muted light blue accents (#bcc0d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#768be0) on a neutral background (#030408).

Color palette

TokenLightDark
Background
#ffffffwhite
#030408black
Foreground
#030611black
#f9f9fbghostwhite
Card
#ffffffwhite
#030408black
Card foreground
#030611black
#f9f9fbghostwhite
Popover
#ffffffwhite
#030408black
Popover foreground
#030611black
#f9f9fbghostwhite
Primary
#768be0cornflowerblue
#768be0cornflowerblue
Primary foreground
#070b1dblack
#070b1dblack
Secondary
#d1d3dclightgrey
#131416black
Secondary foreground
#353845darkslategray
#a9aab2darkgray
Muted
#ced4e8gainsboro
#171c31black
Muted foreground
#4e515adarkslategray
#a5a7b1darkgray
Accent
#bcc0d2lightsteelblue
#262831darkslategray
Accent foreground
#252837darkslategray
#bdc0ccsilver
Destructive
#99300asaddlebrown
#f1561echocolate
Destructive foreground
#fde2d9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#768be0cornflowerblue
#768be0cornflowerblue

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.08:1AA
Secondary button7.79:1AAA
Muted text5.35:1AA
Accent8.08:1AAA
Destructive6.11:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button6.08:1AA
Secondary button7.98:1AAA
Muted text7.03:1AAA
Accent8.10:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.028 266.492);
  --muted: oklch(0.871 0.029 274.605);
  --muted-foreground: oklch(0.435 0.016 274.562);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.028 266.492);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.028 266.492);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.657 0.129 271.833);
  --primary-foreground: oklch(0.157 0.039 269.948);
  --secondary: oklch(0.868 0.012 274.864);
  --secondary-foreground: oklch(0.345 0.023 274.127);
  --accent: oklch(0.81 0.026 274.625);
  --accent-foreground: oklch(0.281 0.028 273.611);
  --destructive: oklch(0.464 0.147 37.375);
  --destructive-foreground: oklch(0.932 0.032 41.079);
  --ring: oklch(0.657 0.129 271.833);
  --chart-1: oklch(0.657 0.129 271.833);
  --chart-2: oklch(0.868 0.012 274.864);
  --chart-3: oklch(0.81 0.026 274.625);
  --chart-4: oklch(0.893 0.01 274.902);
  --chart-5: oklch(0.654 0.135 271.628);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.014 269.022);
  --foreground: oklch(0.984 0.002 275.015);
  --muted: oklch(0.232 0.041 272.245);
  --muted-foreground: oklch(0.73 0.014 274.797);
  --popover: oklch(0.104 0.014 269.022);
  --popover-foreground: oklch(0.984 0.002 275.015);
  --card: oklch(0.104 0.014 269.022);
  --card-foreground: oklch(0.984 0.002 275.015);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.657 0.129 271.833);
  --primary-foreground: oklch(0.157 0.039 269.948);
  --secondary: oklch(0.19 0.004 274.768);
  --secondary-foreground: oklch(0.74 0.011 274.842);
  --accent: oklch(0.278 0.017 274.203);
  --accent-foreground: oklch(0.808 0.017 274.762);
  --destructive: oklch(0.655 0.2 37.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.129 271.833);
  --chart-1: oklch(0.657 0.129 271.833);
  --chart-2: oklch(0.19 0.004 274.768);
  --chart-3: oklch(0.278 0.017 274.203);
  --chart-4: oklch(0.223 0.005 274.732);
  --chart-5: oklch(0.654 0.135 271.628);
}