Magnitude for shadcn/ui

Magnitude is a shadcn/ui theme built around a light red primary color (#f2c0ba) with light cyan accents (#baecf2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f2c0ba) on a neutral background (#080303).

Color palette

TokenLightDark
Background
#ffffffwhite
#080303black
Foreground
#110403black
#fbf9f8snow
Card
#ffffffwhite
#080303black
Card foreground
#110403black
#fbf9f8snow
Popover
#ffffffwhite
#080303black
Popover foreground
#110403black
#fbf9f8snow
Primary
#f2c0balightpink
#f2c0balightpink
Primary foreground
#671c14maroon
#671c14maroon
Secondary
#baecf2paleturquoise
#baecf2paleturquoise
Secondary foreground
#031011black
#031011black
Muted
#cbe4e7gainsboro
#183134darkslategray
Muted foreground
#495d5fdarkslategray
#a0b4b6darkgray
Accent
#baecf2paleturquoise
#baecf2paleturquoise
Accent foreground
#031011black
#031011black
Destructive
#823508saddlebrown
#f3742btomato
Destructive foreground
#fbd6c0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2c0balightpink
#f2c0balightpink

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button7.43:1AAA
Secondary button15.12:1AAA
Muted text5.22:1AA
Accent15.12:1AAA
Destructive6.30:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button7.43:1AAA
Secondary button15.12:1AAA
Muted text6.32:1AA
Accent15.12:1AAA
Destructive7.33:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.028 31.649);
  --muted: oklch(0.901 0.027 204.795);
  --muted-foreground: oklch(0.463 0.024 204.706);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.028 31.649);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.134 0.028 31.649);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.851 0.058 25.695);
  --primary-foreground: oklch(0.347 0.109 29.866);
  --secondary: oklch(0.911 0.052 204.697);
  --secondary-foreground: oklch(0.16 0.02 203.667);
  --accent: oklch(0.911 0.052 204.697);
  --accent-foreground: oklch(0.16 0.02 203.667);
  --destructive: oklch(0.429 0.119 44.452);
  --destructive-foreground: oklch(0.902 0.051 51.858);
  --ring: oklch(0.851 0.058 25.695);
  --chart-1: oklch(0.851 0.058 25.695);
  --chart-2: oklch(0.911 0.052 204.697);
  --chart-3: oklch(0.911 0.052 204.697);
  --chart-4: oklch(0.928 0.042 204.726);
  --chart-5: oklch(0.85 0.061 25.735);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.014 29.299);
  --foreground: oklch(0.983 0.003 25.015);
  --muted: oklch(0.295 0.031 204.831);
  --muted-foreground: oklch(0.754 0.022 204.797);
  --popover: oklch(0.108 0.014 29.299);
  --popover-foreground: oklch(0.983 0.003 25.015);
  --card: oklch(0.108 0.014 29.299);
  --card-foreground: oklch(0.983 0.003 25.015);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.851 0.058 25.695);
  --primary-foreground: oklch(0.347 0.109 29.866);
  --secondary: oklch(0.911 0.052 204.697);
  --secondary-foreground: oklch(0.16 0.02 203.667);
  --accent: oklch(0.911 0.052 204.697);
  --accent-foreground: oklch(0.16 0.02 203.667);
  --destructive: oklch(0.699 0.175 46.445);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.851 0.058 25.695);
  --chart-1: oklch(0.851 0.058 25.695);
  --chart-2: oklch(0.911 0.052 204.697);
  --chart-3: oklch(0.911 0.052 204.697);
  --chart-4: oklch(0.928 0.042 204.726);
  --chart-5: oklch(0.85 0.061 25.735);
}