Clerk for shadcn/ui

Clerk is a shadcn/ui theme built around a light blue primary color (#c2ddf0) with light green accents (#ddf0c2). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the light blue primary (#c2ddf0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#000000black
Foreground
#050b0fblack
#ffffffwhite
Card
#f8fafcghostwhite
#030303black
Card foreground
#04080bblack
#ffffffwhite
Popover
#f8fafcghostwhite
#030303black
Popover foreground
#04080bblack
#ffffffwhite
Primary
#c2ddf0powderblue
#c2ddf0powderblue
Primary foreground
#1a4666darkslategray
#1a4666darkslategray
Secondary
#f0c2ddpink
#f0c2ddpink
Secondary foreground
#661a46purple
#661a46purple
Muted
#f0e5eclinen
#1a0f15black
Muted foreground
#65585fdimgray
#a79aa2darkgray
Accent
#ddf0c2palegoldenrod
#ddf0c2palegoldenrod
Accent foreground
#0e1405black
#0e1405black
Destructive
#752301maroon
#fe5f1borangered
Destructive foreground
#ffc2a9lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2ddf0powderblue
#c2ddf0powderblue

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.23:1AAA
Primary button7.02:1AAA
Secondary button7.45:1AAA
Muted text5.49:1AA
Accent15.40:1AAA
Destructive6.77:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.02:1AAA
Secondary button7.45:1AAA
Muted text6.94:1AA
Accent15.40:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 238.382);
  --foreground: oklch(0.145 0.014 236.032);
  --muted: oklch(0.932 0.015 341.389);
  --muted-foreground: oklch(0.475 0.021 342.007);
  --popover: oklch(0.985 0.003 238.402);
  --popover-foreground: oklch(0.131 0.012 232.347);
  --card: oklch(0.985 0.003 238.402);
  --card-foreground: oklch(0.131 0.012 232.347);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.883 0.039 239.02);
  --primary-foreground: oklch(0.38 0.073 243.202);
  --secondary: oklch(0.861 0.063 342.631);
  --secondary-foreground: oklch(0.357 0.119 348.937);
  --accent: oklch(0.928 0.064 126.025);
  --accent-foreground: oklch(0.181 0.032 126.988);
  --destructive: oklch(0.381 0.121 39.301);
  --destructive-foreground: oklch(0.863 0.078 44.278);
  --ring: oklch(0.883 0.039 239.02);
  --chart-1: oklch(0.883 0.039 239.02);
  --chart-2: oklch(0.861 0.063 342.631);
  --chart-3: oklch(0.928 0.064 126.025);
  --chart-4: oklch(0.889 0.05 342.268);
  --chart-5: oklch(0.883 0.041 239.056);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.023 343.7);
  --muted-foreground: oklch(0.7 0.019 341.631);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.883 0.039 239.02);
  --primary-foreground: oklch(0.38 0.073 243.202);
  --secondary: oklch(0.861 0.063 342.631);
  --secondary-foreground: oklch(0.357 0.119 348.937);
  --accent: oklch(0.928 0.064 126.025);
  --accent-foreground: oklch(0.181 0.032 126.988);
  --destructive: oklch(0.686 0.206 39.634);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.883 0.039 239.02);
  --chart-1: oklch(0.883 0.039 239.02);
  --chart-2: oklch(0.861 0.063 342.631);
  --chart-3: oklch(0.928 0.064 126.025);
  --chart-4: oklch(0.889 0.05 342.268);
  --chart-5: oklch(0.883 0.041 239.056);
}