G552 for shadcn/ui

G552 is a shadcn/ui theme built around a red primary color (#982d2d) with neutral gray accents (#aba2a2). The light mode uses a neutral background (#f8f8f8). Dark mode switches to a vivid blue primary (#3d61ff) on a blue-tinted background (#06080e).

Color palette

TokenLightDark
Background
#f8f8f8whitesmoke
#06080eblack
Foreground
#000000black
#fcfcfdwhite
Card
#e9cccclightgrey
#080912black
Card foreground
#982d2dbrown
#ffffffwhite
Popover
#fcfcfcsnow
#080912black
Popover foreground
#03050cblack
#ffffffwhite
Primary
#982d2dbrown
#3d61ffroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e9cccclightgrey
#121317black
Secondary foreground
#982d2dbrown
#a2a6b9darkgray
Muted
#e9cccclightgrey
#1f2128black
Muted foreground
#555868dimgray
#979baadarkgray
Accent
#aba2a2darkgray
#212535darkslategray
Accent foreground
#2e3452darkslategray
#b7bcd2lightsteelblue
Destructive
#ff0d00red
#f22c21crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#dcdcdcgainsboro
#1f2937darkslategray
Input
#ffffffwhite
#1f2937darkslategray
Ring
#3d61ffroyalblue
#3d61ffroyalblue

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card5.08:1AA
Primary button7.64:1AAA
Secondary button5.08:1AA
Muted text4.68:1AA
Accent4.86:1AA
Destructive3.95:1AA Large
Dark mode
Text on background19.56:1AAA
Text on card19.82:1AAA
Primary button4.83:1AA
Secondary button7.70:1AAA
Muted text5.80:1AA
Accent8.05:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0 173.29);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.87 0.033 17.797);
  --muted-foreground: oklch(0.464 0.025 275.387);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.114 0.022 268.251);
  --card: oklch(0.87 0.033 17.797);
  --card-foreground: oklch(0.461 0.143 24.687);
  --border: oklch(0.894 0 180);
  --input: oklch(1 0 180);
  --primary: oklch(0.461 0.143 24.687);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.87 0.033 17.797);
  --secondary-foreground: oklch(0.461 0.143 24.687);
  --accent: oklch(0.72 0.01 17.4);
  --accent-foreground: oklch(0.335 0.052 273.604);
  --destructive: oklch(0.63 0.256 29.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.567 0.237 267.896);
  --chart-1: oklch(0.461 0.143 24.687);
  --chart-2: oklch(0.87 0.033 17.797);
  --chart-3: oklch(0.72 0.01 17.4);
  --chart-4: oklch(0.897 0.025 17.637);
  --chart-5: oklch(0.463 0.149 25.173);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.016 272.261);
  --foreground: oklch(0.991 0.001 276.148);
  --muted: oklch(0.249 0.013 275.396);
  --muted-foreground: oklch(0.691 0.023 275.711);
  --popover: oklch(0.144 0.019 273.129);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.019 273.129);
  --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.567 0.237 267.896);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.186 0.01 275.429);
  --secondary-foreground: oklch(0.728 0.027 275.646);
  --accent: oklch(0.269 0.031 274.373);
  --accent-foreground: oklch(0.798 0.032 275.616);
  --destructive: oklch(0.62 0.232 29.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.567 0.237 267.896);
  --chart-1: oklch(0.567 0.237 267.896);
  --chart-2: oklch(0.186 0.01 275.429);
  --chart-3: oklch(0.269 0.031 274.373);
  --chart-4: oklch(0.217 0.013 275.322);
  --chart-5: oklch(0.565 0.244 267.612);
}