Curler for shadcn/ui

Curler is a shadcn/ui theme built around a vivid blue primary color (#0a29f5) with vivid violet accents (#600af5). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the vivid blue primary (#0a29f5) on a blue-tinted background (#07080e).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#07080eblack
Foreground
#010204black
#ffffffwhite
Card
#f7f8fdghostwhite
#07080eblack
Card foreground
#010204black
#ffffffwhite
Popover
#f7f8fdghostwhite
#07080eblack
Popover foreground
#010204black
#ffffffwhite
Primary
#0a29f5blue
#0a29f5blue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0a9ff5dodgerblue
#0a9ff5dodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9eef2lavender
#0d1316black
Muted foreground
#45555edarkslategray
#a1b1badarkgray
Accent
#600af5blueviolet
#600af5blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#5c1b0amaroon
#e95935tomato
Destructive foreground
#f5b4a3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a29f5blue
#0a29f5blue

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.91:1AAA
Secondary button2.88:1Fail
Muted text6.63:1AA
Accent7.34:1AAA
Destructive7.41:1AAA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.91:1AAA
Secondary button2.88:1Fail
Muted text8.47:1AAA
Accent7.34:1AAA
Destructive5.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 279.228);
  --foreground: oklch(0.08 0.013 273.336);
  --muted: oklch(0.947 0.008 232.691);
  --muted-foreground: oklch(0.439 0.024 233.482);
  --popover: oklch(0.979 0.007 279.228);
  --popover-foreground: oklch(0.08 0.013 273.336);
  --card: oklch(0.979 0.007 279.228);
  --card-foreground: oklch(0.08 0.013 273.336);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.464 0.286 264.834);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.677 0.166 244.264);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.49 0.283 284.721);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.323 0.099 34.881);
  --destructive-foreground: oklch(0.825 0.08 34.51);
  --ring: oklch(0.464 0.286 264.834);
  --chart-1: oklch(0.464 0.286 264.834);
  --chart-2: oklch(0.677 0.166 244.264);
  --chart-3: oklch(0.49 0.283 284.721);
  --chart-4: oklch(0.691 0.16 242.476);
  --chart-5: oklch(0.465 0.292 264.601);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.014 276.403);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.011 233.581);
  --muted-foreground: oklch(0.75 0.022 233.009);
  --popover: oklch(0.135 0.014 276.403);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.014 276.403);
  --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.464 0.286 264.834);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.677 0.166 244.264);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.49 0.283 284.721);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.647 0.185 35.092);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.464 0.286 264.834);
  --chart-1: oklch(0.464 0.286 264.834);
  --chart-2: oklch(0.677 0.166 244.264);
  --chart-3: oklch(0.49 0.283 284.721);
  --chart-4: oklch(0.691 0.16 242.476);
  --chart-5: oklch(0.465 0.292 264.601);
}