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

Go to generator

10000+Themes for shadcn/ui

Revolving for shadcn/ui

Revolving is a shadcn/ui theme built around a neutral gray primary color (#676f62) with neutral gray accents (#6f6267). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the neutral gray primary (#676f62) on a green-tinted background (#090f05).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#090f05black
Foreground
#020401black
#fafbf8snow
Card
#f6fcf2honeydew
#0b1307black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f6fcf2honeydew
#0b1307black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#676f62dimgray
#676f62dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#62676fdimgray
#62676fdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4e7eclavender
#13161bblack
Muted foreground
#373e49darkslategray
#b6bdc8silver
Accent
#6f6267dimgray
#6f6267dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#910b08darkred
#f33d39tomato
Destructive foreground
#fcd0cfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#676f62dimgray
#676f62dimgray

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.16:1AAA
Primary button5.22:1AA
Secondary button5.68:1AA
Muted text8.70:1AAA
Accent5.78:1AA
Destructive6.70:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.55:1AAA
Primary button5.22:1AA
Secondary button5.68:1AA
Muted text9.58:1AAA
Accent5.78:1AA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.01 133.052);
  --foreground: oklch(0.101 0.02 131.19);
  --muted: oklch(0.927 0.007 259.942);
  --muted-foreground: oklch(0.361 0.021 259.901);
  --popover: oklch(0.985 0.014 133.086);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.014 133.086);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.531 0.021 133.269);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.513 0.014 259.944);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.511 0.018 352.55);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.416 0.164 28.776);
  --destructive-foreground: oklch(0.894 0.051 19.281);
  --ring: oklch(0.531 0.021 133.269);
  --chart-1: oklch(0.531 0.021 133.269);
  --chart-2: oklch(0.513 0.014 259.944);
  --chart-3: oklch(0.511 0.018 352.55);
  --chart-4: oklch(0.539 0.014 259.944);
  --chart-5: oklch(0.537 0.032 133.41);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.023 132.634);
  --foreground: oklch(0.987 0.004 133.014);
  --muted: oklch(0.199 0.011 259.911);
  --muted-foreground: oklch(0.797 0.017 259.946);
  --popover: oklch(0.174 0.027 133.658);
  --popover-foreground: oklch(0.993 0.002 133);
  --card: oklch(0.174 0.027 133.658);
  --card-foreground: oklch(0.993 0.002 133);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.531 0.021 133.269);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.513 0.014 259.944);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.511 0.018 352.55);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.637 0.219 26.803);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.021 133.269);
  --chart-1: oklch(0.531 0.021 133.269);
  --chart-2: oklch(0.513 0.014 259.944);
  --chart-3: oklch(0.511 0.018 352.55);
  --chart-4: oklch(0.539 0.014 259.944);
  --chart-5: oklch(0.537 0.032 133.41);
}