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

Go to generator

10000+Themes for shadcn/ui

Envious for shadcn/ui

Envious is a shadcn/ui theme built around a deep blue primary color (#25396a) with deep green accents (#396a25). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the deep blue primary (#25396a) on a neutral background (#020408).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#020408black
Foreground
#030916black
#f8f9fbghostwhite
Card
#f8f9fcghostwhite
#020408black
Card foreground
#030916black
#f8f9fbghostwhite
Popover
#f8f9fcghostwhite
#020408black
Popover foreground
#030916black
#f8f9fbghostwhite
Primary
#25396amidnightblue
#25396amidnightblue
Primary foreground
#d2daefgainsboro
#d2daefgainsboro
Secondary
#6a2539saddlebrown
#6a2539saddlebrown
Secondary foreground
#efd2dagainsboro
#efd2dagainsboro
Muted
#efe6e8linen
#191012black
Muted foreground
#655d5fdimgray
#a29a9cdarkgray
Accent
#396a25darkolivegreen
#396a25darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c21205firebrick
#f93224orangered
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25396amidnightblue
#25396amidnightblue

Contrast

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

Light mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button8.06:1AAA
Secondary button7.70:1AAA
Muted text5.21:1AA
Accent6.46:1AA
Destructive6.01:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button8.06:1AAA
Secondary button7.70:1AAA
Muted text6.80:1AA
Accent6.46:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 268.766);
  --foreground: oklch(0.139 0.033 261.251);
  --muted: oklch(0.933 0.011 358.058);
  --muted-foreground: oklch(0.486 0.011 358.326);
  --popover: oklch(0.983 0.003 268.766);
  --popover-foreground: oklch(0.139 0.033 261.251);
  --card: oklch(0.983 0.003 268.766);
  --card-foreground: oklch(0.139 0.033 261.251);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.354 0.089 265.81);
  --primary-foreground: oklch(0.889 0.03 268.519);
  --secondary: oklch(0.373 0.1 5.76);
  --secondary-foreground: oklch(0.89 0.034 358.8);
  --accent: oklch(0.472 0.113 137.92);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.516 0.205 29.822);
  --destructive-foreground: oklch(0.99 0.005 22.269);
  --ring: oklch(0.354 0.089 265.81);
  --chart-1: oklch(0.354 0.089 265.81);
  --chart-2: oklch(0.373 0.1 5.76);
  --chart-3: oklch(0.472 0.113 137.92);
  --chart-4: oklch(0.399 0.108 5.915);
  --chart-5: oklch(0.352 0.094 265.583);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.016 260.585);
  --foreground: oklch(0.983 0.003 268.771);
  --muted: oklch(0.185 0.017 0.281);
  --muted-foreground: oklch(0.694 0.01 358.107);
  --popover: oklch(0.105 0.016 260.585);
  --popover-foreground: oklch(0.983 0.003 268.771);
  --card: oklch(0.105 0.016 260.585);
  --card-foreground: oklch(0.983 0.003 268.771);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.354 0.089 265.81);
  --primary-foreground: oklch(0.889 0.03 268.519);
  --secondary: oklch(0.373 0.1 5.76);
  --secondary-foreground: oklch(0.89 0.034 358.8);
  --accent: oklch(0.472 0.113 137.92);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.637 0.234 29.439);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.354 0.089 265.81);
  --chart-1: oklch(0.354 0.089 265.81);
  --chart-2: oklch(0.373 0.1 5.76);
  --chart-3: oklch(0.472 0.113 137.92);
  --chart-4: oklch(0.399 0.108 5.915);
  --chart-5: oklch(0.352 0.094 265.583);
}