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

Go to generator

10000+Themes for shadcn/ui

Private for shadcn/ui

Private is a shadcn/ui theme built around a muted light purple primary color (#dbc2db) with muted light teal accents (#c2dbdb). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the muted light purple primary (#dbc2db) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#040104black
Foreground
#100510black
#fdfcfdwhite
Card
#fcf3fcghostwhite
#080308black
Card foreground
#0c040cblack
#ffffffwhite
Popover
#fcf3fcghostwhite
#080308black
Popover foreground
#0c040cblack
#ffffffwhite
Primary
#dbc2dbthistle
#dbc2dbthistle
Primary foreground
#432843darkslategray
#432843darkslategray
Secondary
#dbdbc2lightgrey
#dbdbc2lightgrey
Secondary foreground
#434328darkolivegreen
#434328darkolivegreen
Muted
#f0f0e5linen
#1a1a0fblack
Muted foreground
#55553fdarkolivegreen
#c0c0aasilver
Accent
#c2dbdblightgrey
#c2dbdblightgrey
Accent foreground
#284343darkslategray
#284343darkslategray
Destructive
#bb320cfirebrick
#f15327tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbc2dbthistle
#dbc2dbthistle

Contrast

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

Light mode
Text on background18.91:1AAA
Text on card18.63:1AAA
Primary button7.85:1AAA
Secondary button7.20:1AAA
Muted text6.64:1AA
Accent7.30:1AAA
Destructive5.88:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.49:1AAA
Primary button7.85:1AAA
Secondary button7.20:1AAA
Muted text9.49:1AAA
Accent7.30:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 326.133);
  --foreground: oklch(0.139 0.032 327.672);
  --muted: oklch(0.952 0.015 107.447);
  --muted-foreground: oklch(0.443 0.035 108.526);
  --popover: oklch(0.973 0.015 326.174);
  --popover-foreground: oklch(0.125 0.028 327.561);
  --card: oklch(0.973 0.015 326.174);
  --card-foreground: oklch(0.125 0.028 327.561);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.044 326.463);
  --primary-foreground: oklch(0.322 0.06 327.437);
  --secondary: oklch(0.885 0.034 107.848);
  --secondary-foreground: oklch(0.376 0.044 109.147);
  --accent: oklch(0.872 0.026 197.923);
  --accent-foreground: oklch(0.361 0.033 197.152);
  --destructive: oklch(0.525 0.179 34.568);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.044 326.463);
  --chart-1: oklch(0.843 0.044 326.463);
  --chart-2: oklch(0.885 0.034 107.848);
  --chart-3: oklch(0.872 0.026 197.923);
  --chart-4: oklch(0.903 0.028 107.731);
  --chart-5: oklch(0.842 0.049 326.509);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.017 327.38);
  --foreground: oklch(0.992 0.002 326.066);
  --muted: oklch(0.213 0.02 108.809);
  --muted-foreground: oklch(0.802 0.03 107.846);
  --popover: oklch(0.11 0.022 327.38);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.11 0.022 327.38);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.843 0.044 326.463);
  --primary-foreground: oklch(0.322 0.06 327.437);
  --secondary: oklch(0.885 0.034 107.848);
  --secondary-foreground: oklch(0.376 0.044 109.147);
  --accent: oklch(0.872 0.026 197.923);
  --accent-foreground: oklch(0.361 0.033 197.152);
  --destructive: oklch(0.653 0.202 35.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.044 326.463);
  --chart-1: oklch(0.843 0.044 326.463);
  --chart-2: oklch(0.885 0.034 107.848);
  --chart-3: oklch(0.872 0.026 197.923);
  --chart-4: oklch(0.903 0.028 107.731);
  --chart-5: oklch(0.842 0.049 326.509);
}