Repayment for shadcn/ui

Repayment is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#160303black
#ffffffwhite
Card
#fcfcfcsnow
#080202black
Card foreground
#120303black
#ffffffwhite
Popover
#ffffffwhite
#040101black
Popover foreground
#160303black
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#e7cfcflightgrey
#301818black
Muted foreground
#5b4d4ddimgray
#b2a4a4darkgray
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#681608maroon
#ee3b1borangered
Destructive foreground
#f9b5aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.75:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text5.45:1AA
Accent12.63:1AAA
Destructive7.13:1AAA
Dark mode
Text on background20.78:1AAA
Text on card20.57:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.90:1AA
Accent12.63:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.038 23.423);
  --muted: oklch(0.875 0.027 17.683);
  --muted-foreground: oklch(0.435 0.018 17.868);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.038 23.423);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.034 23.116);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.343 0.118 32.343);
  --destructive-foreground: oklch(0.834 0.08 30.122);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.015 20.789);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.039 20.357);
  --muted-foreground: oklch(0.731 0.016 17.517);
  --popover: oklch(0.082 0.015 20.789);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.103 0.019 20.789);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.623 0.219 32.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}