Cuff-link for shadcn/ui

Cuff-link is a shadcn/ui theme built around a muted light green primary color (#d5d9ce) with muted light violet accents (#d2ced9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#d5d9ce) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#060902black
#f8faf5whitesmoke
Card
#ffffffwhite
#030401black
Card foreground
#060902black
#f8faf5whitesmoke
Popover
#ffffffwhite
#030401black
Popover foreground
#060902black
#f8faf5whitesmoke
Primary
#d5d9celightgrey
#d5d9celightgrey
Primary foreground
#3d4234darkslategray
#3d4234darkslategray
Secondary
#d2ced9lightgrey
#d2ced9lightgrey
Secondary foreground
#383442darkslategray
#383442darkslategray
Muted
#e7e6ealavender
#161519black
Muted foreground
#413f46darkslategray
#bcb9c0silver
Accent
#d2ced9lightgrey
#d2ced9lightgrey
Accent foreground
#383442darkslategray
#383442darkslategray
Destructive
#a30800darkred
#fa0c00red
Destructive foreground
#ffd8d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5d9celightgrey
#d5d9celightgrey

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button7.22:1AAA
Secondary button7.83:1AAA
Muted text8.36:1AAA
Accent7.83:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.22:1AAA
Secondary button7.83:1AAA
Muted text9.36:1AAA
Accent7.83:1AAA
Destructive4.10:1AA Large

CSS variables

Paste this into your globals.css to use Cuff-link in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.023 121.091);
  --muted: oklch(0.928 0.005 301.405);
  --muted-foreground: oklch(0.372 0.012 300.994);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.131 0.023 121.091);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.131 0.023 121.091);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.879 0.015 121.76);
  --primary-foreground: oklch(0.369 0.024 122.567);
  --secondary: oklch(0.859 0.015 301.218);
  --secondary-foreground: oklch(0.334 0.025 300.271);
  --accent: oklch(0.859 0.015 301.218);
  --accent-foreground: oklch(0.334 0.025 300.271);
  --destructive: oklch(0.452 0.182 29.912);
  --destructive-foreground: oklch(0.915 0.044 21.541);
  --ring: oklch(0.879 0.015 121.76);
  --chart-1: oklch(0.879 0.015 121.76);
  --chart-2: oklch(0.859 0.015 301.218);
  --chart-3: oklch(0.859 0.015 301.218);
  --chart-4: oklch(0.884 0.012 301.274);
  --chart-5: oklch(0.882 0.018 121.825);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.015 121.158);
  --foreground: oklch(0.982 0.007 121.609);
  --muted: oklch(0.199 0.007 300.889);
  --muted-foreground: oklch(0.791 0.01 301.298);
  --popover: oklch(0.102 0.015 121.158);
  --popover-foreground: oklch(0.982 0.007 121.609);
  --card: oklch(0.102 0.015 121.158);
  --card-foreground: oklch(0.982 0.007 121.609);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.879 0.015 121.76);
  --primary-foreground: oklch(0.369 0.024 122.567);
  --secondary: oklch(0.859 0.015 301.218);
  --secondary-foreground: oklch(0.334 0.025 300.271);
  --accent: oklch(0.859 0.015 301.218);
  --accent-foreground: oklch(0.334 0.025 300.271);
  --destructive: oklch(0.621 0.252 29.638);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.879 0.015 121.76);
  --chart-1: oklch(0.879 0.015 121.76);
  --chart-2: oklch(0.859 0.015 301.218);
  --chart-3: oklch(0.859 0.015 301.218);
  --chart-4: oklch(0.884 0.012 301.274);
  --chart-5: oklch(0.882 0.018 121.825);
}