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

Go to generator

10000+Themes for shadcn/ui

Department for shadcn/ui

Department is a shadcn/ui theme built around a light pink primary color (#f1d5df) with muted light pink accents (#eae6e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f1d5df) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#ffffffwhite
#070304black
Foreground
#080204black
#faf5f7whitesmoke
Card
#ffffffwhite
#070304black
Card foreground
#080204black
#faf5f7whitesmoke
Popover
#ffffffwhite
#070304black
Popover foreground
#080204black
#faf5f7whitesmoke
Primary
#f1d5dfmistyrose
#f1d5dfmistyrose
Primary foreground
#70243fbrown
#70243fbrown
Secondary
#eae6e7linen
#171113black
Secondary foreground
#56484ddarkslategray
#baa1aadarkgray
Muted
#f2edefwhitesmoke
#120d0eblack
Muted foreground
#4c3d43darkslategray
#c2b3b8silver
Accent
#eae6e7linen
#171113black
Accent foreground
#56484ddarkslategray
#baa1aadarkgray
Destructive
#c54302chocolate
#f25202orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1d5dfmistyrose
#f1d5dfmistyrose

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button7.59:1AAA
Secondary button6.98:1AA
Muted text8.82:1AAA
Accent6.98:1AA
Destructive5.03:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button7.59:1AAA
Secondary button7.76:1AAA
Muted text9.59:1AAA
Accent7.76:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.107 0.017 353.241);
  --muted: oklch(0.951 0.006 353.769);
  --muted-foreground: oklch(0.379 0.023 355.234);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.107 0.017 353.241);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.107 0.017 353.241);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.898 0.034 354.647);
  --primary-foreground: oklch(0.384 0.109 2.135);
  --secondary: oklch(0.929 0.005 353.725);
  --secondary-foreground: oklch(0.418 0.021 354.96);
  --accent: oklch(0.929 0.005 353.725);
  --accent-foreground: oklch(0.418 0.021 354.96);
  --destructive: oklch(0.56 0.176 39.681);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.898 0.034 354.647);
  --chart-1: oklch(0.898 0.034 354.647);
  --chart-2: oklch(0.929 0.005 353.725);
  --chart-3: oklch(0.929 0.005 353.725);
  --chart-4: oklch(0.952 0.003 353.671);
  --chart-5: oklch(0.898 0.036 354.711);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.015 353.295);
  --foreground: oklch(0.974 0.006 353.737);
  --muted: oklch(0.165 0.01 355.281);
  --muted-foreground: oklch(0.78 0.019 354.256);
  --popover: oklch(0.108 0.015 353.295);
  --popover-foreground: oklch(0.974 0.006 353.737);
  --card: oklch(0.108 0.015 353.295);
  --card-foreground: oklch(0.974 0.006 353.737);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.898 0.034 354.647);
  --primary-foreground: oklch(0.384 0.109 2.135);
  --secondary: oklch(0.188 0.011 355.188);
  --secondary-foreground: oklch(0.734 0.031 354.756);
  --accent: oklch(0.188 0.011 355.188);
  --accent-foreground: oklch(0.734 0.031 354.756);
  --destructive: oklch(0.653 0.207 39.191);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.898 0.034 354.647);
  --chart-1: oklch(0.898 0.034 354.647);
  --chart-2: oklch(0.188 0.011 355.188);
  --chart-3: oklch(0.188 0.011 355.188);
  --chart-4: oklch(0.22 0.014 355.394);
  --chart-5: oklch(0.898 0.036 354.711);
}