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

Go to generator

10000+Themes for shadcn/ui

Disposition for shadcn/ui

Disposition is a shadcn/ui theme built around an indigo primary color (#7976bc) with violet accents (#9b76bc). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#7976bc) on an indigo-tinted background (#07070d).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#07070dblack
Foreground
#020109black
#f5f5f9whitesmoke
Card
#f5f5fawhitesmoke
#090911black
Card foreground
#010104black
#f9f8fbghostwhite
Popover
#f5f5fawhitesmoke
#090911black
Popover foreground
#010104black
#f9f8fbghostwhite
Primary
#7976bcslateblue
#7976bcslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7697bccadetblue
#7697bccadetblue
Secondary foreground
#000000black
#000000black
Muted
#d9dbddgainsboro
#222426darkslategray
Muted foreground
#4f5459darkslategray
#a6abb0darkgray
Accent
#9b76bcmediumpurple
#9b76bcmediumpurple
Accent foreground
#000000black
#000000black
Destructive
#c7150ffirebrick
#ef2c25crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7976bcslateblue
#7976bcslateblue

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.17:1AAA
Primary button4.08:1AA Large
Secondary button6.90:1AA
Muted text5.52:1AA
Accent5.72:1AA
Destructive5.91:1AA
Dark mode
Text on background18.46:1AAA
Text on card18.76:1AAA
Primary button4.08:1AA Large
Secondary button6.90:1AA
Muted text6.76:1AA
Accent5.72:1AA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 287.858);
  --foreground: oklch(0.085 0.03 280.825);
  --muted: oklch(0.891 0.004 251.485);
  --muted-foreground: oklch(0.443 0.011 251.637);
  --popover: oklch(0.971 0.006 287.816);
  --popover-foreground: oklch(0.068 0.024 280.825);
  --card: oklch(0.971 0.006 287.816);
  --card-foreground: oklch(0.068 0.024 280.825);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.598 0.105 284.293);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.665 0.066 252.149);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.63 0.109 308.016);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.528 0.207 29.077);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.598 0.105 284.293);
  --chart-1: oklch(0.598 0.105 284.293);
  --chart-2: oklch(0.665 0.066 252.149);
  --chart-3: oklch(0.63 0.109 308.016);
  --chart-4: oklch(0.691 0.061 252.068);
  --chart-5: oklch(0.591 0.114 283.867);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.015 285.999);
  --foreground: oklch(0.972 0.006 287.831);
  --muted: oklch(0.257 0.005 251.608);
  --muted-foreground: oklch(0.738 0.009 251.552);
  --popover: oklch(0.143 0.017 285.639);
  --popover-foreground: oklch(0.981 0.004 287.868);
  --card: oklch(0.143 0.017 285.639);
  --card-foreground: oklch(0.981 0.004 287.868);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.598 0.105 284.293);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.665 0.066 252.149);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.63 0.109 308.016);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.614 0.228 28.448);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.598 0.105 284.293);
  --chart-1: oklch(0.598 0.105 284.293);
  --chart-2: oklch(0.665 0.066 252.149);
  --chart-3: oklch(0.63 0.109 308.016);
  --chart-4: oklch(0.691 0.061 252.068);
  --chart-5: oklch(0.591 0.114 283.867);
}