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

Go to generator

10000+Themes for shadcn/ui

Sharp for shadcn/ui

Sharp is a shadcn/ui theme built around a green primary color (#65a11b) with violet accents (#581ba1). The light mode uses a neutral background (#fafdf7). Dark mode keeps the green primary (#65a11b) on a green-tinted background (#0b0d07).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0b0d07black
Foreground
#0e1505black
#f8f9f5whitesmoke
Card
#fafdf7mintcream
#0b0d07black
Card foreground
#0e1505black
#f8f9f5whitesmoke
Popover
#fafdf7mintcream
#0b0d07black
Popover foreground
#0e1505black
#f8f9f5whitesmoke
Primary
#65a11bolivedrab
#65a11bolivedrab
Primary foreground
#000000black
#000000black
Secondary
#581ba1rebeccapurple
#581ba1rebeccapurple
Secondary foreground
#f7f2fdghostwhite
#f7f2fdghostwhite
Muted
#d8d5ddgainsboro
#26222adarkslategray
Muted foreground
#454545darkslategray
#bababasilver
Accent
#581ba1rebeccapurple
#581ba1rebeccapurple
Accent foreground
#f7f2fdghostwhite
#f7f2fdghostwhite
Destructive
#a42f0efirebrick
#ed5d35tomato
Destructive foreground
#fdece8linen
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#65a11bolivedrab
#65a11bolivedrab

Contrast

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

Light mode
Text on background18.09:1AAA
Text on card18.09:1AAA
Primary button6.69:1AA
Secondary button9.13:1AAA
Muted text6.59:1AA
Accent9.13:1AAA
Destructive6.12:1AA
Dark mode
Text on background18.46:1AAA
Text on card18.46:1AAA
Primary button6.69:1AA
Secondary button9.13:1AAA
Muted text8.04:1AAA
Accent9.13:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 126.526);
  --foreground: oklch(0.182 0.034 128.226);
  --muted: oklch(0.877 0.012 306.252);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.99 0.008 126.526);
  --popover-foreground: oklch(0.182 0.034 128.226);
  --card: oklch(0.99 0.008 126.526);
  --card-foreground: oklch(0.182 0.034 128.226);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.644 0.169 131.939);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.403 0.194 296.737);
  --secondary-foreground: oklch(0.968 0.015 306.227);
  --accent: oklch(0.403 0.194 296.737);
  --accent-foreground: oklch(0.968 0.015 306.227);
  --destructive: oklch(0.481 0.159 35.028);
  --destructive-foreground: oklch(0.956 0.019 35.958);
  --ring: oklch(0.644 0.169 131.939);
  --chart-1: oklch(0.644 0.169 131.939);
  --chart-2: oklch(0.403 0.194 296.737);
  --chart-3: oklch(0.403 0.194 296.737);
  --chart-4: oklch(0.426 0.206 296.593);
  --chart-5: oklch(0.652 0.173 132.175);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.014 126.868);
  --foreground: oklch(0.981 0.006 126.504);
  --muted: oklch(0.26 0.016 305.622);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.155 0.014 126.868);
  --popover-foreground: oklch(0.981 0.006 126.504);
  --card: oklch(0.155 0.014 126.868);
  --card-foreground: oklch(0.981 0.006 126.504);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.644 0.169 131.939);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.403 0.194 296.737);
  --secondary-foreground: oklch(0.968 0.015 306.227);
  --accent: oklch(0.403 0.194 296.737);
  --accent-foreground: oklch(0.968 0.015 306.227);
  --destructive: oklch(0.66 0.187 36.081);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.644 0.169 131.939);
  --chart-1: oklch(0.644 0.169 131.939);
  --chart-2: oklch(0.403 0.194 296.737);
  --chart-3: oklch(0.403 0.194 296.737);
  --chart-4: oklch(0.426 0.206 296.593);
  --chart-5: oklch(0.652 0.173 132.175);
}