Ratepayer for shadcn/ui

Ratepayer is a shadcn/ui theme built around a vivid green primary color (#c3ef52) with vivid green accents (#74ef52). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid green primary (#c3ef52) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#030401black
Foreground
#0d1004black
#fdfdfbsnow
Card
#fdfdfcwhite
#030401black
Card foreground
#0d1004black
#fdfdfbsnow
Popover
#fdfdfcwhite
#030401black
Popover foreground
#0d1004black
#fdfdfbsnow
Primary
#c3ef52greenyellow
#c3ef52greenyellow
Primary foreground
#0a0e01black
#0a0e01black
Secondary
#efcd52sandybrown
#efcd52sandybrown
Secondary foreground
#0e0b01black
#0e0b01black
Muted
#f0ede6linen
#1a170fblack
Muted foreground
#756f57dimgray
#a8a28arosybrown
Accent
#74ef52yellowgreen
#74ef52yellowgreen
Accent foreground
#040e01black
#040e01black
Destructive
#8b0804darkred
#e50d06red
Destructive foreground
#fdc5c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c3ef52greenyellow
#c3ef52greenyellow

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card18.90:1AAA
Primary button14.65:1AAA
Secondary button12.67:1AAA
Muted text4.31:1AA Large
Accent13.30:1AAA
Destructive6.52:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button14.65:1AAA
Secondary button12.67:1AAA
Muted text6.98:1AA
Accent13.30:1AAA
Destructive4.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 119.345);
  --foreground: oklch(0.166 0.026 120.962);
  --muted: oklch(0.947 0.011 93.987);
  --muted-foreground: oklch(0.54 0.037 94.422);
  --popover: oklch(0.994 0.002 119.345);
  --popover-foreground: oklch(0.166 0.026 120.962);
  --card: oklch(0.994 0.002 119.345);
  --card-foreground: oklch(0.166 0.026 120.962);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.186 123.775);
  --primary-foreground: oklch(0.155 0.032 120.161);
  --secondary: oklch(0.855 0.144 93.573);
  --secondary-foreground: oklch(0.15 0.026 98.732);
  --accent: oklch(0.85 0.223 139.579);
  --accent-foreground: oklch(0.148 0.037 136.606);
  --destructive: oklch(0.404 0.161 29.433);
  --destructive-foreground: oklch(0.874 0.065 20.755);
  --ring: oklch(0.892 0.186 123.775);
  --chart-1: oklch(0.892 0.186 123.775);
  --chart-2: oklch(0.855 0.144 93.573);
  --chart-3: oklch(0.85 0.223 139.579);
  --chart-4: oklch(0.866 0.136 93.921);
  --chart-5: oklch(0.899 0.191 123.917);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.014 119.279);
  --foreground: oklch(0.994 0.003 119.349);
  --muted: oklch(0.206 0.015 94.453);
  --muted-foreground: oklch(0.71 0.035 94.31);
  --popover: oklch(0.102 0.014 119.279);
  --popover-foreground: oklch(0.994 0.003 119.349);
  --card: oklch(0.102 0.014 119.279);
  --card-foreground: oklch(0.994 0.003 119.349);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.186 123.775);
  --primary-foreground: oklch(0.155 0.032 120.161);
  --secondary: oklch(0.855 0.144 93.573);
  --secondary-foreground: oklch(0.15 0.026 98.732);
  --accent: oklch(0.85 0.223 139.579);
  --accent-foreground: oklch(0.148 0.037 136.606);
  --destructive: oklch(0.581 0.234 29.351);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.186 123.775);
  --chart-1: oklch(0.892 0.186 123.775);
  --chart-2: oklch(0.855 0.144 93.573);
  --chart-3: oklch(0.85 0.223 139.579);
  --chart-4: oklch(0.866 0.136 93.921);
  --chart-5: oklch(0.899 0.191 123.917);
}