Penalty for shadcn/ui

Penalty is a shadcn/ui theme built around a deep pink primary color (#69172f) with muted light pink accents (#e8dee1). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#69172f) on a pink-tinted background (#0b0406).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0406black
Foreground
#160409black
#f9f6f7whitesmoke
Card
#ffffffwhite
#0b0406black
Card foreground
#160409black
#f9f6f7whitesmoke
Popover
#ffffffwhite
#0b0406black
Popover foreground
#160409black
#f9f6f7whitesmoke
Primary
#69172fmaroon
#69172fmaroon
Primary foreground
#f1c0cfpink
#f1c0cfpink
Secondary
#e8dee1gainsboro
#342328darkslategray
Secondary foreground
#583c44darkslategray
#d0b9c0silver
Muted
#e9d3d9gainsboro
#2c161dblack
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#e8dee1gainsboro
#342328darkslategray
Accent foreground
#583c44darkslategray
#d0b9c0silver
Destructive
#830c01maroon
#fd2f1corangered
Destructive foreground
#febeb8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#69172fmaroon
#69172fmaroon

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.49:1AAA
Secondary button7.42:1AAA
Muted text6.22:1AA
Accent7.42:1AAA
Destructive6.55:1AA
Dark mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button7.49:1AAA
Secondary button8.05:1AAA
Muted text8.25:1AAA
Accent8.05:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.038 0.323);
  --muted: oklch(0.886 0.027 357.506);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.038 0.323);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.038 0.323);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.351 0.115 7.744);
  --primary-foreground: oklch(0.856 0.059 358.566);
  --secondary: oklch(0.909 0.012 357.048);
  --secondary-foreground: oklch(0.391 0.041 359.575);
  --accent: oklch(0.909 0.012 357.048);
  --accent-foreground: oklch(0.391 0.041 359.575);
  --destructive: oklch(0.389 0.152 30.568);
  --destructive-foreground: oklch(0.859 0.075 24.647);
  --ring: oklch(0.351 0.115 7.744);
  --chart-1: oklch(0.351 0.115 7.744);
  --chart-2: oklch(0.909 0.012 357.048);
  --chart-3: oklch(0.909 0.012 357.048);
  --chart-4: oklch(0.934 0.009 356.933);
  --chart-5: oklch(0.353 0.119 8.384);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 356.549);
  --foreground: oklch(0.975 0.004 356.766);
  --muted: oklch(0.234 0.038 1.138);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.122 0.018 356.549);
  --popover-foreground: oklch(0.975 0.004 356.766);
  --card: oklch(0.122 0.018 356.549);
  --card-foreground: oklch(0.975 0.004 356.766);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.351 0.115 7.744);
  --primary-foreground: oklch(0.856 0.059 358.566);
  --secondary: oklch(0.278 0.028 359.411);
  --secondary-foreground: oklch(0.806 0.028 357.649);
  --accent: oklch(0.278 0.028 359.411);
  --accent-foreground: oklch(0.806 0.028 357.649);
  --destructive: oklch(0.64 0.24 30.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.351 0.115 7.744);
  --chart-1: oklch(0.351 0.115 7.744);
  --chart-2: oklch(0.278 0.028 359.411);
  --chart-3: oklch(0.278 0.028 359.411);
  --chart-4: oklch(0.307 0.032 359.52);
  --chart-5: oklch(0.353 0.119 8.384);
}