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

Go to generator

10000+Themes for shadcn/ui

Target for shadcn/ui

Target is a shadcn/ui theme built around a vivid red primary color (#d13610) with vivid indigo accents (#3610d1). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid red primary (#d13610) on a red-tinted background (#0e0806).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0e0806black
Foreground
#000000black
#fcf9f8snow
Card
#fefcfbsnow
#0e0806black
Card foreground
#000000black
#fcf9f8snow
Popover
#fefcfbsnow
#0e0806black
Popover foreground
#000000black
#fcf9f8snow
Primary
#d13610firebrick
#d13610firebrick
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#10d136limegreen
#10d136limegreen
Secondary foreground
#011305black
#011305black
Muted
#e7f4e9honeydew
#0b180eblack
Muted foreground
#535f56dimgray
#a0aca2darkgray
Accent
#3610d1mediumblue
#3610d1mediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8f1a05darkred
#e72a08orangered
Destructive foreground
#fdd1c9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d13610firebrick
#d13610firebrick

Contrast

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

Light mode
Text on background20.47:1AAA
Text on card20.47:1AAA
Primary button4.94:1AA
Secondary button9.26:1AAA
Muted text5.88:1AA
Accent9.77:1AAA
Destructive6.55:1AA
Dark mode
Text on background18.98:1AAA
Text on card18.98:1AAA
Primary button4.94:1AA
Secondary button9.26:1AAA
Muted text7.72:1AAA
Accent9.77:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 34.313);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.953 0.019 151.7);
  --muted-foreground: oklch(0.473 0.022 151.281);
  --popover: oklch(0.991 0.002 34.313);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 34.313);
  --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.568 0.196 33.903);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.748 0.236 144.445);
  --secondary-foreground: oklch(0.165 0.041 149.641);
  --accent: oklch(0.416 0.253 274.802);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.421 0.155 32.029);
  --destructive-foreground: oklch(0.896 0.051 29.781);
  --ring: oklch(0.568 0.196 33.903);
  --chart-1: oklch(0.568 0.196 33.903);
  --chart-2: oklch(0.748 0.236 144.445);
  --chart-3: oklch(0.416 0.253 274.802);
  --chart-4: oklch(0.786 0.248 144.412);
  --chart-5: oklch(0.572 0.201 33.647);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.012 37.3);
  --foreground: oklch(0.984 0.003 34.312);
  --muted: oklch(0.194 0.028 149.601);
  --muted-foreground: oklch(0.732 0.02 151.59);
  --popover: oklch(0.142 0.012 37.3);
  --popover-foreground: oklch(0.984 0.003 34.312);
  --card: oklch(0.142 0.012 37.3);
  --card-foreground: oklch(0.984 0.003 34.312);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.568 0.196 33.903);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.748 0.236 144.445);
  --secondary-foreground: oklch(0.165 0.041 149.641);
  --accent: oklch(0.416 0.253 274.802);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.225 31.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.568 0.196 33.903);
  --chart-1: oklch(0.568 0.196 33.903);
  --chart-2: oklch(0.748 0.236 144.445);
  --chart-3: oklch(0.416 0.253 274.802);
  --chart-4: oklch(0.786 0.248 144.412);
  --chart-5: oklch(0.572 0.201 33.647);
}