Rewarding for shadcn/ui

Rewarding is a shadcn/ui theme built around a deep yellow primary color (#5f4e26) with muted light yellow accents (#d9d4c9). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the deep yellow primary (#5f4e26) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfbf7snow
#040301black
Foreground
#080602black
#fcfbf8snow
Card
#fcf9f3floralwhite
#080603black
Card foreground
#040301black
#fdfdfcwhite
Popover
#fdfbf7snow
#040301black
Popover foreground
#080602black
#fcfbf8snow
Primary
#5f4e26darkolivegreen
#5f4e26darkolivegreen
Primary foreground
#ebe1ccantiquewhite
#ebe1ccantiquewhite
Secondary
#e8e7e3gainsboro
#201f1dblack
Secondary foreground
#555044darkolivegreen
#bab9b5silver
Muted
#f7f4edseashell
#120f08black
Muted foreground
#54514adarkslategray
#b5b2abdarkgray
Accent
#d9d4c9lightgrey
#37332adarkslategray
Accent foreground
#423c2fdarkslategray
#d0ccc2lightgrey
Destructive
#ca4f16chocolate
#e15819chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f4e26darkolivegreen
#5f4e26darkolivegreen

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.64:1AAA
Primary button6.23:1AA
Secondary button6.47:1AA
Muted text7.22:1AAA
Accent7.41:1AAA
Destructive4.51:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.89:1AAA
Primary button6.23:1AA
Secondary button8.38:1AAA
Muted text9.05:1AAA
Accent7.85:1AAA
Destructive3.73: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.989 0.006 87.452);
  --foreground: oklch(0.124 0.015 93.061);
  --muted: oklch(0.968 0.01 87.471);
  --muted-foreground: oklch(0.435 0.011 87.532);
  --popover: oklch(0.989 0.006 87.452);
  --popover-foreground: oklch(0.124 0.015 93.061);
  --card: oklch(0.983 0.009 87.468);
  --card-foreground: oklch(0.099 0.012 93.061);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.431 0.061 86.517);
  --primary-foreground: oklch(0.913 0.03 87.551);
  --secondary: oklch(0.927 0.006 87.451);
  --secondary-foreground: oklch(0.432 0.02 87.569);
  --accent: oklch(0.871 0.016 87.504);
  --accent-foreground: oklch(0.358 0.023 87.552);
  --destructive: oklch(0.585 0.168 41.189);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.061 86.517);
  --chart-1: oklch(0.431 0.061 86.517);
  --chart-2: oklch(0.927 0.006 87.451);
  --chart-3: oklch(0.871 0.016 87.504);
  --chart-4: oklch(0.949 0.004 87.441);
  --chart-5: oklch(0.435 0.065 86.297);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 92.266);
  --foreground: oklch(0.987 0.003 87.438);
  --muted: oklch(0.168 0.015 87.889);
  --muted-foreground: oklch(0.763 0.01 87.483);
  --popover: oklch(0.098 0.01 92.266);
  --popover-foreground: oklch(0.987 0.003 87.438);
  --card: oklch(0.123 0.012 92.266);
  --card-foreground: oklch(0.994 0.002 87.429);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.431 0.061 86.517);
  --primary-foreground: oklch(0.913 0.03 87.551);
  --secondary: oklch(0.24 0.003 87.489);
  --secondary-foreground: oklch(0.785 0.006 87.459);
  --accent: oklch(0.322 0.016 87.57);
  --accent-foreground: oklch(0.847 0.014 87.499);
  --destructive: oklch(0.633 0.184 41.049);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.061 86.517);
  --chart-1: oklch(0.431 0.061 86.517);
  --chart-2: oklch(0.24 0.003 87.489);
  --chart-3: oklch(0.322 0.016 87.57);
  --chart-4: oklch(0.272 0.004 87.493);
  --chart-5: oklch(0.435 0.065 86.297);
}