Workshop for shadcn/ui

Workshop is a shadcn/ui theme built around a vivid blue primary color (#7d8cfc) with muted light blue accents (#dedfe8). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid blue primary (#7d8cfc) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#010204black
Foreground
#020308black
#fcfcfdwhite
Card
#f7f8fdghostwhite
#030308black
Card foreground
#010104black
#ffffffwhite
Popover
#fbfbfeghostwhite
#010204black
Popover foreground
#020308black
#fcfcfdwhite
Primary
#7d8cfccornflowerblue
#7d8cfccornflowerblue
Primary foreground
#010946midnightblue
#010946midnightblue
Secondary
#dedfe8gainsboro
#232324black
Secondary foreground
#3d4057darkslategray
#bbbcbesilver
Muted
#f1f1f4whitesmoke
#0b0b0eblack
Muted foreground
#3c3d49darkslategray
#b6b8c3silver
Accent
#dedfe8gainsboro
#232324black
Accent foreground
#3d4057darkslategray
#bbbcbesilver
Destructive
#953904saddlebrown
#e55806orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7d8cfccornflowerblue
#7d8cfccornflowerblue

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.61:1AAA
Primary button6.22:1AA
Secondary button7.66:1AAA
Muted text9.51:1AAA
Accent7.66:1AAA
Destructive7.31:1AAA
Dark mode
Text on background20.27:1AAA
Text on card20.57:1AAA
Primary button6.22:1AA
Secondary button8.24:1AAA
Muted text9.92:1AAA
Accent8.24:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 280.277);
  --foreground: oklch(0.097 0.021 272.953);
  --muted: oklch(0.959 0.004 280.266);
  --muted-foreground: oklch(0.364 0.02 279.403);
  --popover: oklch(0.99 0.003 280.277);
  --popover-foreground: oklch(0.097 0.021 272.953);
  --card: oklch(0.979 0.007 280.223);
  --card-foreground: oklch(0.077 0.016 272.953);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.68 0.165 275.44);
  --primary-foreground: oklch(0.197 0.111 265.134);
  --secondary: oklch(0.906 0.011 280.13);
  --secondary-foreground: oklch(0.379 0.038 278.564);
  --accent: oklch(0.906 0.011 280.13);
  --accent-foreground: oklch(0.379 0.038 278.564);
  --destructive: oklch(0.468 0.136 43.228);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.165 275.44);
  --chart-1: oklch(0.68 0.165 275.44);
  --chart-2: oklch(0.906 0.011 280.13);
  --chart-3: oklch(0.906 0.011 280.13);
  --chart-4: oklch(0.932 0.008 280.191);
  --chart-5: oklch(0.677 0.17 275.229);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.012 275.251);
  --foreground: oklch(0.991 0.002 280.302);
  --muted: oklch(0.153 0.006 279.658);
  --muted-foreground: oklch(0.784 0.017 279.992);
  --popover: oklch(0.081 0.012 275.251);
  --popover-foreground: oklch(0.991 0.002 280.302);
  --card: oklch(0.102 0.016 275.251);
  --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.68 0.165 275.44);
  --primary-foreground: oklch(0.197 0.111 265.134);
  --secondary: oklch(0.257 0.002 280.187);
  --secondary-foreground: oklch(0.795 0.003 280.266);
  --accent: oklch(0.257 0.002 280.187);
  --accent-foreground: oklch(0.795 0.003 280.266);
  --destructive: oklch(0.637 0.19 42.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.165 275.44);
  --chart-1: oklch(0.68 0.165 275.44);
  --chart-2: oklch(0.257 0.002 280.187);
  --chart-3: oklch(0.257 0.002 280.187);
  --chart-4: oklch(0.288 0.003 280.179);
  --chart-5: oklch(0.677 0.17 275.229);
}