Rewarding for shadcn/ui

Rewarding is a shadcn/ui theme built around a muted light green primary color (#c7d1b8) with muted light green accents (#d7dbd2). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted light green primary (#c7d1b8) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfefbwhite
#030302black
Foreground
#0f1505black
#fdfdfcwhite
Card
#fbfdf7snow
#050703black
Card foreground
#0c1104black
#ffffffwhite
Popover
#fdfefbwhite
#030302black
Popover foreground
#0f1505black
#fdfdfcwhite
Primary
#c7d1b8silver
#c7d1b8silver
Primary foreground
#2d3422darkslategray
#2d3422darkslategray
Secondary
#d7dbd2lightgrey
#1f201dblack
Secondary foreground
#3f4436darkslategray
#b8bbb4silver
Muted
#dfe2d9gainsboro
#22261dblack
Muted foreground
#565d4bdarkolivegreen
#adb4a2darkgray
Accent
#d7dbd2lightgrey
#1f201dblack
Accent foreground
#3f4436darkslategray
#b8bbb4silver
Destructive
#ca1302firebrick
#fd3c2borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7d1b8silver
#c7d1b8silver

Contrast

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

Light mode
Text on background18.36:1AAA
Text on card18.67:1AAA
Primary button8.12:1AAA
Secondary button7.13:1AAA
Muted text5.24:1AA
Accent7.13:1AAA
Destructive5.82:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.23:1AAA
Primary button8.12:1AAA
Secondary button8.41:1AAA
Muted text7.22:1AAA
Accent8.41:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 123.706);
  --foreground: oklch(0.183 0.033 125.804);
  --muted: oklch(0.909 0.013 123.852);
  --muted-foreground: oklch(0.468 0.03 124.622);
  --popover: oklch(0.995 0.004 123.706);
  --popover-foreground: oklch(0.183 0.033 125.804);
  --card: oklch(0.991 0.009 123.774);
  --card-foreground: oklch(0.166 0.029 124.816);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.846 0.035 124.26);
  --primary-foreground: oklch(0.314 0.032 125.252);
  --secondary: oklch(0.885 0.013 123.852);
  --secondary-foreground: oklch(0.377 0.023 124.574);
  --accent: oklch(0.885 0.013 123.852);
  --accent-foreground: oklch(0.377 0.023 124.574);
  --destructive: oklch(0.532 0.211 30.131);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.035 124.26);
  --chart-1: oklch(0.846 0.035 124.26);
  --chart-2: oklch(0.885 0.013 123.852);
  --chart-3: oklch(0.885 0.013 123.852);
  --chart-4: oklch(0.907 0.01 123.807);
  --chart-5: oklch(0.849 0.04 124.346);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 123.255);
  --foreground: oklch(0.994 0.002 123.676);
  --muted: oklch(0.261 0.018 124.663);
  --muted-foreground: oklch(0.759 0.027 124.172);
  --popover: oklch(0.098 0.009 123.255);
  --popover-foreground: oklch(0.994 0.002 123.676);
  --card: oklch(0.123 0.011 123.255);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.846 0.035 124.26);
  --primary-foreground: oklch(0.314 0.032 125.252);
  --secondary: oklch(0.242 0.006 124.007);
  --secondary-foreground: oklch(0.788 0.01 123.835);
  --accent: oklch(0.242 0.006 124.007);
  --accent-foreground: oklch(0.788 0.01 123.835);
  --destructive: oklch(0.651 0.23 29.795);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.035 124.26);
  --chart-1: oklch(0.846 0.035 124.26);
  --chart-2: oklch(0.242 0.006 124.007);
  --chart-3: oklch(0.242 0.006 124.007);
  --chart-4: oklch(0.275 0.007 124.031);
  --chart-5: oklch(0.849 0.04 124.346);
}