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

Go to generator

10000+Themes for shadcn/ui

Digital for shadcn/ui

Digital is a shadcn/ui theme built around a light green primary color (#bee59e) with light pink accents (#e59ebe). The light mode uses a neutral background (#fafbf8). Dark mode keeps the light green primary (#bee59e) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#fafbf8snow
#050802black
Foreground
#050901black
#f7f8f7whitesmoke
Card
#fafbf8snow
#050802black
Card foreground
#050901black
#f7f8f7whitesmoke
Popover
#fafbf8snow
#050802black
Popover foreground
#050901black
#f7f8f7whitesmoke
Primary
#bee59epalegreen
#bee59epalegreen
Primary foreground
#264011darkgreen
#264011darkgreen
Secondary
#9ebee5lightsteelblue
#9ebee5lightsteelblue
Secondary foreground
#112640midnightblue
#112640midnightblue
Muted
#e5eaf0lavender
#0f141ablack
Muted foreground
#474a4ddarkslategray
#b2b5b8silver
Accent
#e59ebeplum
#e59ebeplum
Accent foreground
#401126darkslategray
#401126darkslategray
Destructive
#ca4f07chocolate
#f87930tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bee59epalegreen
#bee59epalegreen

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button8.18:1AAA
Secondary button7.98:1AAA
Muted text7.37:1AAA
Accent7.53:1AAA
Destructive4.54:1AA
Dark mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button8.18:1AAA
Secondary button7.98:1AAA
Muted text8.99:1AAA
Accent7.53:1AAA
Destructive7.76:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 130.48);
  --foreground: oklch(0.129 0.025 128.827);
  --muted: oklch(0.935 0.01 253.292);
  --muted-foreground: oklch(0.407 0.006 253.323);
  --popover: oklch(0.987 0.004 130.48);
  --popover-foreground: oklch(0.129 0.025 128.827);
  --card: oklch(0.987 0.004 130.48);
  --card-foreground: oklch(0.129 0.025 128.827);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.878 0.102 131.64);
  --primary-foreground: oklch(0.34 0.079 133.576);
  --secondary: oklch(0.792 0.066 253.667);
  --secondary-foreground: oklch(0.268 0.056 254.567);
  --accent: oklch(0.778 0.093 350.886);
  --accent-foreground: oklch(0.265 0.077 355.896);
  --destructive: oklch(0.583 0.171 42.683);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.878 0.102 131.64);
  --chart-1: oklch(0.878 0.102 131.64);
  --chart-2: oklch(0.792 0.066 253.667);
  --chart-3: oklch(0.778 0.093 350.886);
  --chart-4: oklch(0.818 0.057 253.604);
  --chart-5: oklch(0.881 0.107 131.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 129.219);
  --foreground: oklch(0.979 0.002 130.461);
  --muted: oklch(0.188 0.015 253.656);
  --muted-foreground: oklch(0.771 0.006 253.268);
  --popover: oklch(0.126 0.019 129.219);
  --popover-foreground: oklch(0.979 0.002 130.461);
  --card: oklch(0.126 0.019 129.219);
  --card-foreground: oklch(0.979 0.002 130.461);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.878 0.102 131.64);
  --primary-foreground: oklch(0.34 0.079 133.576);
  --secondary: oklch(0.792 0.066 253.667);
  --secondary-foreground: oklch(0.268 0.056 254.567);
  --accent: oklch(0.778 0.093 350.886);
  --accent-foreground: oklch(0.265 0.077 355.896);
  --destructive: oklch(0.713 0.175 46.834);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.878 0.102 131.64);
  --chart-1: oklch(0.878 0.102 131.64);
  --chart-2: oklch(0.792 0.066 253.667);
  --chart-3: oklch(0.778 0.093 350.886);
  --chart-4: oklch(0.818 0.057 253.604);
  --chart-5: oklch(0.881 0.107 131.702);
}