Clasp for shadcn/ui

Clasp is a shadcn/ui theme built around a light blue primary color (#eef0f6) with light violet accents (#f1eef6). The light mode uses a neutral background (#f6f8fd). Dark mode keeps the light blue primary (#eef0f6) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f6f8fdghostwhite
#010204black
Foreground
#030611black
#ffffffwhite
Card
#f2f4fdaliceblue
#020308black
Card foreground
#02050dblack
#ffffffwhite
Popover
#f6f8fdghostwhite
#010204black
Popover foreground
#030611black
#ffffffwhite
Primary
#eef0f6whitesmoke
#eef0f6whitesmoke
Primary foreground
#3e4975darkslateblue
#3e4975darkslateblue
Secondary
#eef4f6whitesmoke
#eef4f6whitesmoke
Secondary foreground
#1a2b32darkslategray
#1a2b32darkslategray
Muted
#eff3f5whitesmoke
#0a0e10black
Muted foreground
#485256darkslategray
#a9b3b7darkgray
Accent
#f1eef6whitesmoke
#f1eef6whitesmoke
Accent foreground
#4e3e75darkslateblue
#4e3e75darkslateblue
Destructive
#953809saddlebrown
#dd530echocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eef0f6whitesmoke
#eef0f6whitesmoke

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card18.59:1AAA
Primary button7.63:1AAA
Secondary button13.16:1AAA
Muted text7.21:1AAA
Accent8.07:1AAA
Destructive7.40:1AAA
Dark mode
Text on background20.78:1AAA
Text on card20.56:1AAA
Primary button7.63:1AAA
Secondary button13.16:1AAA
Muted text9.07:1AAA
Accent8.07:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 274.939);
  --foreground: oklch(0.125 0.027 266.879);
  --muted: oklch(0.963 0.005 225.043);
  --muted-foreground: oklch(0.431 0.015 225.414);
  --popover: oklch(0.979 0.008 274.939);
  --popover-foreground: oklch(0.125 0.027 266.879);
  --card: oklch(0.969 0.011 274.888);
  --card-foreground: oklch(0.113 0.023 266.057);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.955 0.009 274.923);
  --primary-foreground: oklch(0.415 0.075 272.109);
  --secondary: oklch(0.963 0.007 225.061);
  --secondary-foreground: oklch(0.278 0.026 226.661);
  --accent: oklch(0.954 0.011 299.848);
  --accent-foreground: oklch(0.406 0.092 295.894);
  --destructive: oklch(0.465 0.135 41.723);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.955 0.009 274.923);
  --chart-1: oklch(0.955 0.009 274.923);
  --chart-2: oklch(0.963 0.007 225.061);
  --chart-3: oklch(0.954 0.011 299.848);
  --chart-4: oklch(0.985 0.003 225.013);
  --chart-5: oklch(0.955 0.009 274.912);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.013 267.869);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.16 0.008 225.671);
  --muted-foreground: oklch(0.76 0.013 225.179);
  --popover: oklch(0.081 0.013 267.869);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.102 0.017 267.869);
  --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.955 0.009 274.923);
  --primary-foreground: oklch(0.415 0.075 272.109);
  --secondary: oklch(0.963 0.007 225.061);
  --secondary-foreground: oklch(0.278 0.026 226.661);
  --accent: oklch(0.954 0.011 299.848);
  --accent-foreground: oklch(0.406 0.092 295.894);
  --destructive: oklch(0.618 0.185 40.974);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.955 0.009 274.923);
  --chart-1: oklch(0.955 0.009 274.923);
  --chart-2: oklch(0.963 0.007 225.061);
  --chart-3: oklch(0.954 0.011 299.848);
  --chart-4: oklch(0.985 0.003 225.013);
  --chart-5: oklch(0.955 0.009 274.912);
}