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

Go to generator

10000+Themes for shadcn/ui

Rare for shadcn/ui

Rare is a shadcn/ui theme built around an orange primary color (#986b3e) with blue accents (#3e6b98). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#986b3e) on an orange-tinted background (#0e0a07).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0e0a07black
Foreground
#040301black
#ffffffwhite
Card
#fefcfbsnow
#0e0a07black
Card foreground
#040301black
#ffffffwhite
Popover
#fefcfbsnow
#0e0a07black
Popover foreground
#040301black
#ffffffwhite
Primary
#986b3esienna
#986b3esienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3e6b98steelblue
#3e6b98steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d7dbe0gainsboro
#1f2428darkslategray
Muted foreground
#3b454fdarkslategray
#b0bac4silver
Accent
#3e6b98steelblue
#3e6b98steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#742601maroon
#fd5508orangered
Destructive foreground
#fec4a9navajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#986b3esienna
#986b3esienna

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button4.65:1AA
Secondary button5.57:1AA
Muted text7.03:1AAA
Accent5.57:1AA
Destructive6.78:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button4.65:1AA
Secondary button5.57:1AA
Muted text7.97:1AAA
Accent5.57:1AA
Destructive3.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 67.801);
  --foreground: oklch(0.095 0.012 76.927);
  --muted: oklch(0.89 0.008 247.917);
  --muted-foreground: oklch(0.385 0.022 248.404);
  --popover: oklch(0.993 0.002 67.801);
  --popover-foreground: oklch(0.095 0.012 76.927);
  --card: oklch(0.993 0.002 67.801);
  --card-foreground: oklch(0.095 0.012 76.927);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.565 0.084 64.697);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.516 0.087 249.863);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.516 0.087 249.863);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.383 0.118 40.41);
  --destructive-foreground: oklch(0.866 0.076 46.042);
  --ring: oklch(0.565 0.084 64.697);
  --chart-1: oklch(0.565 0.084 64.697);
  --chart-2: oklch(0.516 0.087 249.863);
  --chart-3: oklch(0.516 0.087 249.863);
  --chart-4: oklch(0.542 0.092 249.885);
  --chart-5: oklch(0.568 0.089 64.316);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.01 69.89);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.256 0.011 248.259);
  --muted-foreground: oklch(0.785 0.019 248.066);
  --popover: oklch(0.149 0.01 69.89);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.01 69.89);
  --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.565 0.084 64.697);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.516 0.087 249.863);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.516 0.087 249.863);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.672 0.215 38.652);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.565 0.084 64.697);
  --chart-1: oklch(0.565 0.084 64.697);
  --chart-2: oklch(0.516 0.087 249.863);
  --chart-3: oklch(0.516 0.087 249.863);
  --chart-4: oklch(0.542 0.092 249.885);
  --chart-5: oklch(0.568 0.089 64.316);
}