Rewarding for shadcn/ui

Rewarding is a shadcn/ui theme built around a muted deep blue primary color (#14151a) with muted deep green accents (#151a14). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted deep blue primary (#14151a) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#030407black
Foreground
#010204black
#fcfcfdwhite
Card
#f3f4fcaliceblue
#05060bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7f8fdghostwhite
#030407black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#14151ablack
#14151ablack
Primary foreground
#a4a8bcdarkgray
#a4a8bcdarkgray
Secondary
#1a1415black
#1a1415black
Secondary foreground
#bca4a8darkgray
#bca4a8darkgray
Muted
#ead7dagainsboro
#281518black
Muted foreground
#75575cdimgray
#a88a8frosybrown
Accent
#151a14black
#151a14black
Accent foreground
#a8bca4darkgray
#a8bca4darkgray
Destructive
#b03e11firebrick
#d54c15chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#14151ablack
#14151ablack

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.18:1AAA
Primary button7.75:1AAA
Secondary button7.82:1AAA
Muted text4.65:1AA
Accent8.71:1AAA
Destructive5.89:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.29:1AAA
Primary button7.75:1AAA
Secondary button7.82:1AAA
Muted text5.51:1AA
Accent8.71:1AAA
Destructive4.30: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.979 0.007 277.163);
  --foreground: oklch(0.08 0.013 270.589);
  --muted: oklch(0.896 0.021 6.042);
  --muted-foreground: oklch(0.489 0.041 7.593);
  --popover: oklch(0.979 0.007 277.163);
  --popover-foreground: oklch(0.08 0.013 270.589);
  --card: oklch(0.969 0.01 277.112);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.196 0.012 276.359);
  --primary-foreground: oklch(0.735 0.029 276.688);
  --secondary: oklch(0.198 0.012 6.928);
  --secondary-foreground: oklch(0.741 0.028 6.423);
  --accent: oklch(0.211 0.016 140.419);
  --accent-foreground: oklch(0.773 0.04 140.453);
  --destructive: oklch(0.521 0.157 38.876);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.196 0.012 276.359);
  --chart-1: oklch(0.196 0.012 276.359);
  --chart-2: oklch(0.198 0.012 6.928);
  --chart-3: oklch(0.211 0.016 140.419);
  --chart-4: oklch(0.23 0.015 7.092);
  --chart-5: oklch(0.194 0.014 276.145);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.012 272.851);
  --foreground: oklch(0.992 0.001 277.246);
  --muted: oklch(0.224 0.03 8.954);
  --muted-foreground: oklch(0.662 0.038 6.903);
  --popover: oklch(0.105 0.012 272.851);
  --popover-foreground: oklch(0.992 0.001 277.246);
  --card: oklch(0.121 0.014 272.872);
  --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.196 0.012 276.359);
  --primary-foreground: oklch(0.735 0.029 276.688);
  --secondary: oklch(0.198 0.012 6.928);
  --secondary-foreground: oklch(0.741 0.028 6.423);
  --accent: oklch(0.211 0.016 140.419);
  --accent-foreground: oklch(0.773 0.04 140.453);
  --destructive: oklch(0.599 0.183 38.637);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.196 0.012 276.359);
  --chart-1: oklch(0.196 0.012 276.359);
  --chart-2: oklch(0.198 0.012 6.928);
  --chart-3: oklch(0.211 0.016 140.419);
  --chart-4: oklch(0.23 0.015 7.092);
  --chart-5: oklch(0.194 0.014 276.145);
}