shadcnpreview

Purple Chalkboard

Luma · Purple + Mist · Nunito Sans / Public Sans

Preset codeb159PJG9lh
Open in shadcn/create
Loading preview…
Components by shadcnblocks.com, rendered in the luma style with Base UI.

Install Purple Chalkboard

npx shadcn@latest init --preset b159PJG9lh --base base --template next
Open in shadcn/createOpen in v0

Only want the colors without the CLI? Copy the Purple Chalkboard palette CSS.

Purple Chalkboard is a Shadcn UI preset in the Luma style. It's a clear, encouraging preset for learning products.

Best for

  • Tutoring apps
  • Online courses
  • School and university sites

Style

Luma is inspired by macOS: rounded geometry, soft elevation and breathable layouts, without the glass effect. It feels calm and modern. A large radius gives cards, inputs and buttons a soft, friendly shape.

Color

The Mist base is a cool grey with a soft blue-green tint, used for backgrounds, borders and muted text. Purple is the theme color, so primary buttons, focus rings and active states pick it up. Charts use a Mist ramp, so data stays understated.

Typography

Headings use Nunito Sans, a sans-serif face, paired with Public Sans for body text. That gives headings more character while keeping paragraphs and UI labels easy to read.

Icons and menus

Lucide is Shadcn UI's default icon set: clean, consistent 2px strokes. Menus are inverted (dark in light mode, light in dark mode), with a subtle highlight on the active item.

Color contrast

How each text and button pairing scores against WCAG. Normal text needs 4.5:1 to meet AA. 7 of 8 pairs pass in both modes.

PairTokensLightDark
Body textforeground / background19.7119.00
Muted textmuted-foreground / background4.618.07
Card textcard-foreground / card19.7116.74
Primary buttonprimary-foreground / primary6.668.27
Secondary buttonsecondary-foreground / secondary16.1114.26
Accent / hoveraccent-foreground / accent15.6114.25
Muted surfacemuted-foreground / muted4.156.05
Destructive textdestructive / background4.916.87

CSS variables

globals.css
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.148 0.004 228.8);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.148 0.004 228.8);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.148 0.004 228.8);
  --primary: oklch(0.496 0.265 301.924);
  --primary-foreground: oklch(0.977 0.014 308.299);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.963 0.002 197.1);
  --muted-foreground: oklch(0.56 0.021 213.5);
  --accent: oklch(0.963 0.002 197.1);
  --accent-foreground: oklch(0.218 0.008 223.9);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.925 0.005 214.3);
  --input: oklch(0.925 0.005 214.3);
  --ring: oklch(0.723 0.014 214.4);
  --sidebar: oklch(0.987 0.002 197.1);
  --sidebar-foreground: oklch(0.148 0.004 228.8);
  --sidebar-primary: oklch(0.558 0.288 302.321);
  --sidebar-primary-foreground: oklch(0.977 0.014 308.299);
  --sidebar-accent: oklch(0.963 0.002 197.1);
  --sidebar-accent-foreground: oklch(0.218 0.008 223.9);
  --sidebar-border: oklch(0.925 0.005 214.3);
  --sidebar-ring: oklch(0.723 0.014 214.4);
  --chart-1: oklch(0.872 0.007 219.6);
  --chart-2: oklch(0.56 0.021 213.5);
  --chart-3: oklch(0.45 0.017 213.2);
  --chart-4: oklch(0.378 0.015 216);
  --chart-5: oklch(0.275 0.011 216.9);
  --radius: 0.875rem;
}

.dark {
  --background: oklch(0.148 0.004 228.8);
  --foreground: oklch(0.987 0.002 197.1);
  --card: oklch(0.218 0.008 223.9);
  --card-foreground: oklch(0.987 0.002 197.1);
  --popover: oklch(0.218 0.008 223.9);
  --popover-foreground: oklch(0.987 0.002 197.1);
  --primary: oklch(0.438 0.218 303.724);
  --primary-foreground: oklch(0.977 0.014 308.299);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.275 0.011 216.9);
  --muted-foreground: oklch(0.723 0.014 214.4);
  --accent: oklch(0.275 0.011 216.9);
  --accent-foreground: oklch(0.987 0.002 197.1);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.56 0.021 213.5);
  --sidebar: oklch(0.218 0.008 223.9);
  --sidebar-foreground: oklch(0.987 0.002 197.1);
  --sidebar-primary: oklch(0.627 0.265 303.9);
  --sidebar-primary-foreground: oklch(0.977 0.014 308.299);
  --sidebar-accent: oklch(0.275 0.011 216.9);
  --sidebar-accent-foreground: oklch(0.987 0.002 197.1);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.56 0.021 213.5);
  --chart-1: oklch(0.872 0.007 219.6);
  --chart-2: oklch(0.56 0.021 213.5);
  --chart-3: oklch(0.45 0.017 213.2);
  --chart-4: oklch(0.378 0.015 216);
  --chart-5: oklch(0.275 0.011 216.9);
}

Variations

Purple Chalkboard with one setting changed. Each opens in the preset builder with its own code.

Similar presets

Aa
ContinueCancelNew
you@example.com

Purple Lumen

Luma · Purple + Mist · Inter

b1aKPnlvk
Aa
ContinueCancelNew
you@example.com

Purple Sprinkle

Luma · Purple + Mist · Outfit / Figtree

b2yETcbnKE
Aa
ContinueCancelNew
you@example.com

Purple Homework

Luma · Purple + Mist · Figtree / Nunito Sans

b1MK4Rt3EZ
Aa
ContinueCancelNew
you@example.com

Rose Quiz

Luma · Rose + Mist · Nunito Sans / Noto Sans

b159PJpsVk