Stamp for shadcn/ui

Stamp is a shadcn/ui theme built around a vivid green primary color (#0ae669) with vivid orange accents (#e6690a). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid green primary (#0ae669) on a green-tinted background (#030c07).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#030c07black
Foreground
#021209black
#f5faf7whitesmoke
Card
#fcfdfcwhite
#030c07black
Card foreground
#021209black
#f5faf7whitesmoke
Popover
#fcfdfcwhite
#030c07black
Popover foreground
#021209black
#f5faf7whitesmoke
Primary
#0ae669springgreen
#0ae669springgreen
Primary foreground
#012210black
#012210black
Secondary
#690ae6blueviolet
#690ae6blueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae4f1lavender
#140e1bblack
Muted foreground
#5b5760dimgray
#a39fa8darkgray
Accent
#e6690achocolate
#e6690achocolate
Accent foreground
#000000black
#000000black
Destructive
#df5207chocolate
#f85f0dorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0ae669springgreen
#0ae669springgreen

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button10.13:1AAA
Secondary button7.53:1AAA
Muted text5.66:1AA
Accent6.39:1AA
Destructive3.92:1AA Large
Dark mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button10.13:1AAA
Secondary button7.53:1AAA
Muted text7.30:1AAA
Accent6.39:1AA
Destructive6.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 161.752);
  --foreground: oklch(0.163 0.031 159.364);
  --muted: oklch(0.927 0.018 305.474);
  --muted-foreground: oklch(0.465 0.015 305.297);
  --popover: oklch(0.993 0.002 161.752);
  --popover-foreground: oklch(0.163 0.031 159.364);
  --card: oklch(0.993 0.002 161.752);
  --card-foreground: oklch(0.163 0.031 159.364);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.809 0.224 149.453);
  --primary-foreground: oklch(0.223 0.053 154.723);
  --secondary: oklch(0.483 0.269 290.204);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.663 0.178 48.136);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.621 0.188 41.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.809 0.224 149.453);
  --chart-1: oklch(0.809 0.224 149.453);
  --chart-2: oklch(0.483 0.269 290.204);
  --chart-3: oklch(0.663 0.178 48.136);
  --chart-4: oklch(0.505 0.282 290.063);
  --chart-5: oklch(0.818 0.229 149.165);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.02 161.522);
  --foreground: oklch(0.98 0.007 161.632);
  --muted: oklch(0.177 0.028 303.61);
  --muted-foreground: oklch(0.707 0.014 305.478);
  --popover: oklch(0.142 0.02 161.522);
  --popover-foreground: oklch(0.98 0.007 161.632);
  --card: oklch(0.142 0.02 161.522);
  --card-foreground: oklch(0.98 0.007 161.632);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.809 0.224 149.453);
  --primary-foreground: oklch(0.223 0.053 154.723);
  --secondary: oklch(0.483 0.269 290.204);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.663 0.178 48.136);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.676 0.202 41.548);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.809 0.224 149.453);
  --chart-1: oklch(0.809 0.224 149.453);
  --chart-2: oklch(0.483 0.269 290.204);
  --chart-3: oklch(0.663 0.178 48.136);
  --chart-4: oklch(0.505 0.282 290.063);
  --chart-5: oklch(0.818 0.229 149.165);
}