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

Go to generator

10000+Themes for shadcn/ui

Puritan for shadcn/ui

Puritan is a shadcn/ui theme built around a vivid deep indigo primary color (#110f7b) with vivid deep green accents (#0f7b11). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the vivid deep indigo primary (#110f7b) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#030307black
Foreground
#020208black
#f9f9fbghostwhite
Card
#f3f3fcaliceblue
#05050bblack
Card foreground
#010104black
#fcfcfdwhite
Popover
#f7f7fdghostwhite
#030307black
Popover foreground
#020208black
#f9f9fbghostwhite
Primary
#110f7bmidnightblue
#110f7bmidnightblue
Primary foreground
#c5c4f8lightsteelblue
#c5c4f8lightsteelblue
Secondary
#7b110fmaroon
#7b110fmaroon
Secondary foreground
#f8c5c4pink
#f8c5c4pink
Muted
#eee3e2mistyrose
#1d1111black
Muted foreground
#463f3fdarkslategray
#c0b9b9silver
Accent
#0f7b11green
#0f7b11green
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#851a05maroon
#f73d18orangered
Destructive foreground
#fdc9bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#110f7bmidnightblue
#110f7bmidnightblue

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card18.90:1AAA
Primary button9.17:1AAA
Secondary button7.16:1AAA
Muted text8.15:1AAA
Accent5.46:1AA
Destructive6.65:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.87:1AAA
Primary button9.17:1AAA
Secondary button7.16:1AAA
Muted text9.52:1AAA
Accent5.46:1AA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 287.027);
  --foreground: oklch(0.091 0.025 281.51);
  --muted: oklch(0.923 0.012 18.568);
  --muted-foreground: oklch(0.375 0.009 18.737);
  --popover: oklch(0.978 0.008 287.027);
  --popover-foreground: oklch(0.091 0.025 281.51);
  --card: oklch(0.967 0.011 286.952);
  --card-foreground: oklch(0.072 0.02 281.51);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.284 0.168 269.309);
  --primary-foreground: oklch(0.838 0.072 285.502);
  --secondary: oklch(0.375 0.14 27.867);
  --secondary-foreground: oklch(0.868 0.058 19.471);
  --accent: oklch(0.506 0.164 142.8);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.402 0.145 32.7);
  --destructive-foreground: oklch(0.879 0.061 31.34);
  --ring: oklch(0.284 0.168 269.309);
  --chart-1: oklch(0.284 0.168 269.309);
  --chart-2: oklch(0.375 0.14 27.867);
  --chart-3: oklch(0.506 0.164 142.8);
  --chart-4: oklch(0.404 0.152 27.988);
  --chart-5: oklch(0.283 0.172 268.543);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.015 284.383);
  --foreground: oklch(0.982 0.004 287.104);
  --muted: oklch(0.195 0.019 20.041);
  --muted-foreground: oklch(0.793 0.007 18.505);
  --popover: oklch(0.101 0.015 284.383);
  --popover-foreground: oklch(0.982 0.004 287.104);
  --card: oklch(0.116 0.017 284.376);
  --card-foreground: oklch(0.991 0.002 287.137);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.284 0.168 269.309);
  --primary-foreground: oklch(0.838 0.072 285.502);
  --secondary: oklch(0.375 0.14 27.867);
  --secondary-foreground: oklch(0.868 0.058 19.471);
  --accent: oklch(0.506 0.164 142.8);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.226 32.689);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.284 0.168 269.309);
  --chart-1: oklch(0.284 0.168 269.309);
  --chart-2: oklch(0.375 0.14 27.867);
  --chart-3: oklch(0.506 0.164 142.8);
  --chart-4: oklch(0.404 0.152 27.988);
  --chart-5: oklch(0.283 0.172 268.543);
}