PörpölOK for shadcn/ui

PörpölOK is a shadcn/ui theme built around a vivid violet primary color (#8800ff) with vivid light violet accents (#f2e6ff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#8800ff) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#2d2237darkslategray
#fcfcfdwhite
Card
#fcfcfcsnow
#050308black
Card foreground
#0b0411black
#ffffffwhite
Popover
#ffffffwhite
#030104black
Popover foreground
#0d0515black
#fcfcfdwhite
Primary
#8800ffdarkviolet
#8800ffdarkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e7ccfflavender
#1a151eblack
Secondary foreground
#353131darkslategray
#b3a5c0darkgray
Muted
#f0eff3whitesmoke
#241e29black
Muted foreground
#615c5cdimgray
#a19ea3darkgray
Accent
#f2e6fflavender
#2c1f37darkslategray
Accent foreground
#302727darkslategray
#c5b4d5thistle
Destructive
#ff3a09orangered
#f64013orangered
Destructive foreground
#ffffffwhite
#230d0dblack
Border
#f5eaffghostwhite
#1a191ablack
Input
#cececelightgrey
#1a191ablack
Ring
#b27ee0mediumpurple
#8800ffdarkviolet

Contrast

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

Light mode
Text on background15.04:1AAA
Text on card19.76:1AAA
Primary button6.01:1AA
Secondary button8.82:1AAA
Muted text5.74:1AA
Accent12.15:1AAA
Destructive3.58:1AA Large
Dark mode
Text on background20.26:1AAA
Text on card20.55:1AAA
Primary button6.01:1AA
Secondary button7.75:1AAA
Muted text6.12:1AA
Accent7.97:1AAA
Destructive5.00:1AA

CSS variables

Paste this into your globals.css to use PörpölOK in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.275 0.041 308.287);
  --muted: oklch(0.954 0.006 301.669);
  --muted-foreground: oklch(0.478 0.007 17.412);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.139 0.038 308.285);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.034 309.681);
  --border: oklch(0.951 0.031 309.466);
  --input: oklch(0.851 0 180);
  --primary: oklch(0.539 0.294 296.537);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.883 0.075 308.728);
  --secondary-foreground: oklch(0.317 0.006 17.455);
  --accent: oklch(0.942 0.035 306.077);
  --accent-foreground: oklch(0.283 0.013 17.948);
  --destructive: oklch(0.652 0.236 33.112);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.682 0.149 307.48);
  --chart-1: oklch(0.539 0.294 296.537);
  --chart-2: oklch(0.883 0.075 308.728);
  --chart-3: oklch(0.942 0.035 306.077);
  --chart-4: oklch(0.917 0.053 309.012);
  --chart-5: oklch(0.543 0.298 296.002);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.015 311.228);
  --foreground: oklch(0.992 0.001 309.778);
  --muted: oklch(0.248 0.022 308.923);
  --muted-foreground: oklch(0.703 0.009 309.66);
  --popover: oklch(0.083 0.015 311.228);
  --popover-foreground: oklch(0.992 0.001 309.778);
  --card: oklch(0.104 0.019 311.228);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.214 0.003 309.636);
  --input: oklch(0.214 0.003 309.636);
  --primary: oklch(0.539 0.294 296.537);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.205 0.019 308.851);
  --secondary-foreground: oklch(0.742 0.042 309.223);
  --accent: oklch(0.267 0.047 307.977);
  --accent-foreground: oklch(0.795 0.05 309.169);
  --destructive: oklch(0.642 0.224 33.791);
  --destructive-foreground: oklch(0.194 0.038 21.241);
  --ring: oklch(0.539 0.294 296.537);
  --chart-1: oklch(0.539 0.294 296.537);
  --chart-2: oklch(0.205 0.019 308.851);
  --chart-3: oklch(0.267 0.047 307.977);
  --chart-4: oklch(0.236 0.024 308.762);
  --chart-5: oklch(0.543 0.298 296.002);
}