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

Go to generator

10000+Themes for shadcn/ui

Youthful for shadcn/ui

Youthful is a shadcn/ui theme built around a vivid deep green primary color (#10570a) with vivid deep red accents (#570a10). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#10570a) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#010401black
#ffffffwhite
Card
#fcfcfcsnow
#030703black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030703black
Popover foreground
#000000black
#ffffffwhite
Primary
#10570adarkgreen
#10570adarkgreen
Primary foreground
#a6f49fpalegreen
#a6f49fpalegreen
Secondary
#0a1057midnightblue
#0a1057midnightblue
Secondary foreground
#9fa6f4lightsteelblue
#9fa6f4lightsteelblue
Muted
#d8d9e4gainsboro
#1b1c27black
Muted foreground
#4c4c4ddarkslategray
#b2b2b3darkgray
Accent
#570a10maroon
#570a10maroon
Accent foreground
#f49fa6lightpink
#f49fa6lightpink
Destructive
#b51803firebrick
#fb2509orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#10570adarkgreen
#10570adarkgreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.54:1AAA
Primary button6.70:1AA
Secondary button7.53:1AAA
Muted text6.10:1AA
Accent7.10:1AAA
Destructive6.79:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.23:1AAA
Primary button6.70:1AA
Secondary button7.53:1AAA
Muted text7.96:1AAA
Accent7.10:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.025 140.789);
  --muted: oklch(0.887 0.015 281.929);
  --muted-foreground: oklch(0.416 0.002 282.12);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.4 0.126 141.965);
  --primary-foreground: oklch(0.896 0.138 142.397);
  --secondary: oklch(0.236 0.124 268.705);
  --secondary-foreground: oklch(0.749 0.113 279.302);
  --accent: oklch(0.297 0.108 23.382);
  --accent-foreground: oklch(0.788 0.103 14.235);
  --destructive: oklch(0.494 0.191 30.853);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.4 0.126 141.965);
  --chart-1: oklch(0.4 0.126 141.965);
  --chart-2: oklch(0.236 0.124 268.705);
  --chart-3: oklch(0.297 0.108 23.382);
  --chart-4: oklch(0.258 0.139 268.222);
  --chart-5: oklch(0.404 0.129 141.974);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.015 141.7);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.021 280.548);
  --muted-foreground: oklch(0.763 0.002 282.169);
  --popover: oklch(0.122 0.019 141.7);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.019 141.7);
  --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.4 0.126 141.965);
  --primary-foreground: oklch(0.896 0.138 142.397);
  --secondary: oklch(0.236 0.124 268.705);
  --secondary-foreground: oklch(0.749 0.113 279.302);
  --accent: oklch(0.297 0.108 23.382);
  --accent-foreground: oklch(0.788 0.103 14.235);
  --destructive: oklch(0.632 0.244 30.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.4 0.126 141.965);
  --chart-1: oklch(0.4 0.126 141.965);
  --chart-2: oklch(0.236 0.124 268.705);
  --chart-3: oklch(0.297 0.108 23.382);
  --chart-4: oklch(0.258 0.139 268.222);
  --chart-5: oklch(0.404 0.129 141.974);
}