Frock for shadcn/ui

Frock is a shadcn/ui theme built around a vivid purple primary color (#d803d8) with vivid teal accents (#03d8d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#d803d8) on a neutral background (#080308).

Color palette

TokenLightDark
Background
#ffffffwhite
#080308black
Foreground
#000000black
#fdfcfdwhite
Card
#fcfcfcsnow
#0b040bblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#080308black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#d803d8magenta
#d803d8magenta
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8d803gold
#d8d803gold
Secondary foreground
#0f0f00black
#0f0f00black
Muted
#ededd9beige
#262612black
Muted foreground
#55554adarkolivegreen
#b5b5aadarkgray
Accent
#03d8d8darkturquoise
#03d8d8darkturquoise
Accent foreground
#000f0fblack
#000f0fblack
Destructive
#c60801firebrick
#fe312aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d803d8magenta
#d803d8magenta

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button4.26:1AA Large
Secondary button12.62:1AAA
Muted text6.37:1AA
Accent10.99:1AAA
Destructive6.11:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.25:1AAA
Primary button4.26:1AA Large
Secondary button12.62:1AAA
Muted text7.38:1AAA
Accent10.99:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.027 106.915);
  --muted-foreground: oklch(0.445 0.018 107.093);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.62 0.284 328.355);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.186 109.763);
  --secondary-foreground: oklch(0.163 0.035 109.705);
  --accent: oklch(0.799 0.136 194.773);
  --accent-foreground: oklch(0.153 0.026 194.812);
  --destructive: oklch(0.521 0.211 29.545);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.62 0.284 328.355);
  --chart-1: oklch(0.62 0.284 328.355);
  --chart-2: oklch(0.854 0.186 109.763);
  --chart-3: oklch(0.799 0.136 194.773);
  --chart-4: oklch(0.899 0.195 109.763);
  --chart-5: oklch(0.626 0.288 328.363);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.022 326.972);
  --foreground: oklch(0.992 0.001 325.585);
  --muted: oklch(0.264 0.035 108.568);
  --muted-foreground: oklch(0.771 0.015 106.756);
  --popover: oklch(0.109 0.022 326.972);
  --popover-foreground: oklch(0.992 0.001 325.585);
  --card: oklch(0.125 0.026 326.977);
  --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.62 0.284 328.355);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.186 109.763);
  --secondary-foreground: oklch(0.163 0.035 109.705);
  --accent: oklch(0.799 0.136 194.773);
  --accent-foreground: oklch(0.153 0.026 194.812);
  --destructive: oklch(0.645 0.238 28.357);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.62 0.284 328.355);
  --chart-1: oklch(0.62 0.284 328.355);
  --chart-2: oklch(0.854 0.186 109.763);
  --chart-3: oklch(0.799 0.136 194.773);
  --chart-4: oklch(0.899 0.195 109.763);
  --chart-5: oklch(0.626 0.288 328.363);
}