Cute for shadcn/ui

Cute is a shadcn/ui theme built around a muted deep violet primary color (#2d2537) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#2d2537) on a neutral background (#ffffff).

Color palette

TokenLightDark
Background
#ffffffwhite
#ffffffwhite
Foreground
#333333darkslategray
#333333darkslategray
Card
#fafafasnow
#fafafasnow
Card foreground
#262626darkslategray
#262626darkslategray
Popover
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Popover foreground
#1a1a1ablack
#1a1a1ablack
Primary
#2d2537darkslategray
#2d2537darkslategray
Primary foreground
#c6bcd2thistle
#c6bcd2thistle
Secondary
#bfbac5silver
#bfbac5silver
Secondary foreground
#26232adarkslategray
#26232adarkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d9d9d9gainsboro
#d9d9d9gainsboro
Accent foreground
#404040darkslategray
#404040darkslategray
Destructive
#a41204darkred
#a41204darkred
Destructive foreground
#fedfdcmistyrose
#fedfdcmistyrose
Border
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Input
#ebebeblinen
#ebebeblinen
Ring
#2d2537darkslategray
#2d2537darkslategray

Contrast

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

Light mode
Text on background12.63:1AAA
Text on card14.48:1AAA
Primary button8.04:1AAA
Secondary button8.10:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.30:1AA
Dark mode
Text on background12.63:1AAA
Text on card14.48:1AAA
Primary button8.04:1AAA
Secondary button8.10:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.30:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.321 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.216 0 180);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.27 0 180);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.282 0.033 304.908);
  --primary-foreground: oklch(0.81 0.031 305.935);
  --secondary: oklch(0.795 0.017 306.156);
  --secondary-foreground: oklch(0.262 0.013 305.774);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.458 0.179 30.201);
  --destructive-foreground: oklch(0.929 0.035 23.983);
  --ring: oklch(0.282 0.033 304.908);
  --chart-1: oklch(0.282 0.033 304.908);
  --chart-2: oklch(0.795 0.017 306.156);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.82 0.015 306.198);
  --chart-5: oklch(0.279 0.038 304.639);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.321 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.216 0 180);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.27 0 180);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.282 0.033 304.908);
  --primary-foreground: oklch(0.81 0.031 305.935);
  --secondary: oklch(0.795 0.017 306.156);
  --secondary-foreground: oklch(0.262 0.013 305.774);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.458 0.179 30.201);
  --destructive-foreground: oklch(0.929 0.035 23.983);
  --ring: oklch(0.282 0.033 304.908);
  --chart-1: oklch(0.282 0.033 304.908);
  --chart-2: oklch(0.795 0.017 306.156);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.82 0.015 306.198);
  --chart-5: oklch(0.279 0.038 304.639);
}