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

Go to generator

10000+Themes for shadcn/ui

Intent for shadcn/ui

Intent is a shadcn/ui theme built around a vivid light purple primary color (#f9d3fd) with vivid light teal accents (#d3fdf9). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid light purple primary (#f9d3fd) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#070307black
Foreground
#0f0411black
#fbf9fbsnow
Card
#f9f5faghostwhite
#0a050ablack
Card foreground
#0b030cblack
#fdfcfdwhite
Popover
#f9f5faghostwhite
#0a050ablack
Popover foreground
#0b030cblack
#fdfcfdwhite
Primary
#f9d3fdlavender
#f9d3fdlavender
Primary foreground
#8a0699darkmagenta
#8a0699darkmagenta
Secondary
#fdf9d3lightgoldenrodyellow
#fdf9d3lightgoldenrodyellow
Secondary foreground
#363102black
#363102black
Muted
#ecebe4linen
#1b1a13black
Muted foreground
#4c4a39darkolivegreen
#c6c4b3silver
Accent
#d3fdf9lightcyan
#d3fdf9lightcyan
Accent foreground
#023631darkslategray
#023631darkslategray
Destructive
#af1908firebrick
#ea210bred
Destructive foreground
#feedeclinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9d3fdlavender
#f9d3fdlavender

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card18.85:1AAA
Primary button6.13:1AA
Secondary button12.33:1AAA
Muted text7.49:1AAA
Accent12.21:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.75:1AAA
Primary button6.13:1AA
Secondary button12.33:1AAA
Muted text9.92:1AAA
Accent12.21:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 322.648);
  --foreground: oklch(0.136 0.036 323.965);
  --muted: oklch(0.939 0.009 101.445);
  --muted-foreground: oklch(0.405 0.027 102.243);
  --popover: oklch(0.975 0.008 322.66);
  --popover-foreground: oklch(0.122 0.032 324.314);
  --card: oklch(0.975 0.008 322.66);
  --card-foreground: oklch(0.122 0.032 324.314);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.911 0.07 322.926);
  --primary-foreground: oklch(0.456 0.212 322.993);
  --secondary: oklch(0.976 0.05 102.045);
  --secondary-foreground: oklch(0.309 0.063 102.759);
  --accent: oklch(0.964 0.044 189.013);
  --accent-foreground: oklch(0.3 0.052 184.353);
  --destructive: oklch(0.484 0.185 30.476);
  --destructive-foreground: oklch(0.96 0.018 25.155);
  --ring: oklch(0.911 0.07 322.926);
  --chart-1: oklch(0.911 0.07 322.926);
  --chart-2: oklch(0.976 0.05 102.045);
  --chart-3: oklch(0.964 0.044 189.013);
  --chart-4: oklch(0.984 0.034 101.806);
  --chart-5: oklch(0.911 0.073 322.936);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.015 323.71);
  --foreground: oklch(0.984 0.002 322.637);
  --muted: oklch(0.216 0.013 102.177);
  --muted-foreground: oklch(0.818 0.023 101.719);
  --popover: oklch(0.127 0.017 323.709);
  --popover-foreground: oklch(0.992 0.001 322.632);
  --card: oklch(0.127 0.017 323.709);
  --card-foreground: oklch(0.992 0.001 322.632);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.911 0.07 322.926);
  --primary-foreground: oklch(0.456 0.212 322.993);
  --secondary: oklch(0.976 0.05 102.045);
  --secondary-foreground: oklch(0.309 0.063 102.759);
  --accent: oklch(0.964 0.044 189.013);
  --accent-foreground: oklch(0.3 0.052 184.353);
  --destructive: oklch(0.598 0.232 30.402);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.07 322.926);
  --chart-1: oklch(0.911 0.07 322.926);
  --chart-2: oklch(0.976 0.05 102.045);
  --chart-3: oklch(0.964 0.044 189.013);
  --chart-4: oklch(0.984 0.034 101.806);
  --chart-5: oklch(0.911 0.073 322.936);
}