Sweatshirt for shadcn/ui

Sweatshirt is a shadcn/ui theme built around a vivid deep violet primary color (#3e0e7b) with muted light violet accents (#c5bbd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#3e0e7b) on a violet-tinted background (#0a060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a060eblack
Foreground
#0c0515black
#fcfcfdwhite
Card
#fcfcfcsnow
#0c0812black
Card foreground
#090410black
#ffffffwhite
Popover
#ffffffwhite
#0a060eblack
Popover foreground
#0c0515black
#fcfcfdwhite
Primary
#3e0e7bindigo
#3e0e7bindigo
Primary foreground
#dac4f8thistle
#dac4f8thistle
Secondary
#d8d3dfgainsboro
#201c26black
Secondary foreground
#3e364adarkslategray
#b9afc5silver
Muted
#efecf3whitesmoke
#0f0c13black
Muted foreground
#515053darkslategray
#adacafdarkgray
Accent
#c5bbd3thistle
#392d48darkslategray
Accent foreground
#2d2438darkslategray
#d2cadethistle
Destructive
#650e01maroon
#fe2301orangered
Destructive foreground
#fea79alightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3e0e7bindigo
#3e0e7bindigo

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card19.82:1AAA
Primary button8.51:1AAA
Secondary button7.78:1AAA
Muted text6.85:1AA
Accent8.04:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.85:1AAA
Primary button8.51:1AAA
Secondary button7.96:1AAA
Muted text8.60:1AAA
Accent8.05:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.036 303.607);
  --muted: oklch(0.948 0.01 305.594);
  --muted-foreground: oklch(0.434 0.006 305.568);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.036 303.607);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.032 305.309);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.323 0.162 294.652);
  --primary-foreground: oklch(0.855 0.075 304.561);
  --secondary: oklch(0.874 0.018 305.472);
  --secondary-foreground: oklch(0.349 0.037 304.328);
  --accent: oklch(0.808 0.035 305.172);
  --accent-foreground: oklch(0.28 0.037 303.972);
  --destructive: oklch(0.329 0.122 32.426);
  --destructive-foreground: oklch(0.811 0.106 29.145);
  --ring: oklch(0.323 0.162 294.652);
  --chart-1: oklch(0.323 0.162 294.652);
  --chart-2: oklch(0.874 0.018 305.472);
  --chart-3: oklch(0.808 0.035 305.172);
  --chart-4: oklch(0.899 0.014 305.533);
  --chart-5: oklch(0.324 0.166 294.01);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.02 305.381);
  --foreground: oklch(0.992 0.001 305.728);
  --muted: oklch(0.16 0.016 304.397);
  --muted-foreground: oklch(0.746 0.005 305.652);
  --popover: oklch(0.133 0.02 305.381);
  --popover-foreground: oklch(0.992 0.001 305.728);
  --card: oklch(0.144 0.023 304.017);
  --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.323 0.162 294.652);
  --primary-foreground: oklch(0.855 0.075 304.561);
  --secondary: oklch(0.236 0.021 304.545);
  --secondary-foreground: oklch(0.769 0.033 305.175);
  --accent: oklch(0.323 0.049 303.661);
  --accent-foreground: oklch(0.851 0.029 305.289);
  --destructive: oklch(0.635 0.248 30.877);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.323 0.162 294.652);
  --chart-1: oklch(0.323 0.162 294.652);
  --chart-2: oklch(0.236 0.021 304.545);
  --chart-3: oklch(0.323 0.049 303.661);
  --chart-4: oklch(0.265 0.025 304.468);
  --chart-5: oklch(0.324 0.166 294.01);
}