casper-design-system▌
casper-studios/casper-marketplace · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
A clean, elevated SaaS design system built on shadcn/ui, Tailwind CSS v4, and React (Vite). Every interface generated for Casper Studios — whether a client demo, internal tool, or quick prototype — must follow these rules to maintain a consistent, professional visual identity across the team.
Casper Studios Design System
A clean, elevated SaaS design system built on shadcn/ui, Tailwind CSS v4, and React (Vite). Every interface generated for Casper Studios — whether a client demo, internal tool, or quick prototype — must follow these rules to maintain a consistent, professional visual identity across the team.
Before generating any UI code, read this file completely and the reference files listed below. You MUST read the reference files — they contain rules and code examples that are required for correct output. Skipping them will produce incorrect, off-brand UI.
Required for EVERY project:
references/components.md— ALWAYS read. Reusable pieces: stat cards, list items, filter bars, kanban boards, profile cards, product cards, activity feeds, toast notifications, form validation states. Required whenever building UI elements inside a layout.references/theme.css— ALWAYS read. Tailwind CSS v4 theme tokens. Copy this file into your project as-is.assets/— Contains Casper Studios logo SVGs in 4 variants (default, variant, mono-black, mono-white). Use the correct variant based on background color — see the Logo section below.
Required based on platform:
references/web-layouts.md— MUST read when the project is a web application. Web-specific responsive rules + code examples: app shell, sidebar nav, dashboard grid, data table page, page header.references/mobile.md— MUST read when the project is a mobile application. Mobile-specific rules + code examples: device frame, top bar, bottom tab navigation, form patterns, pinned-button layout, list views, card stacks, full screen compositions, contextual actions (menus + bottom sheets).
Non-negotiable: Do not generate UI without reading the platform reference file first. If you are unsure whether the project is web or mobile, ask the user before proceeding.
Before You Generate: Required Context
Before producing any UI code, confirm the following with the user. If their prompt already answers these clearly, proceed without asking. If not, ask before generating anything.
- Platform — Is this a web application or a mobile application? (Determines which reference file to follow.)
- Dark mode — Should the interface support dark mode, or is it light mode only? (Determines whether to implement
.darkclass overrides, usebg-neutral-0for surfaces, and include the mono-white logo variant.)
Do NOT assume defaults for these. If the user says "build me a dashboard," you don't know if it's web or mobile, or if it needs dark mode. Ask.
Summary
The Casper aesthetic is clean authority — a professional SaaS style that feels premium without trying too hard. It uses generous whitespace, a restrained purple accent, and soft rounded surfaces to create interfaces that feel trustworthy and modern. Think Linear meets Notion: structured, breathable, quietly confident.
Core Principles
- Whitespace is a feature. Generous padding, breathing room between sections. Never cram.
- One accent, used sparingly. Brand purple (
#5900FF) appears on active states, primary buttons, and key CTAs — nowhere else. If everything is purple, nothing is. - Rounded but not bubbly. 10px default radius for cards (shadcn default). Buttons and inputs use 8px. Feels modern without feeling like a toy.
- Flat with depth hints. No heavy shadows. Use
shadow-smfor cards,shadow-mdfor popovers. Never useshadow-lgon in-page elements. - Content over chrome. The UI should disappear. Users notice the data, not the design.
Tech Stack
- React (Vite) with TypeScript
- Tailwind CSS v4 — Use the theme file at
references/theme.cssas Casper brand overrides - shadcn/ui — Initialize a standard shadcn/ui project first (
shadcn init), then layer Casper brand tokens fromreferences/theme.csson top. The shadcn semantic layer (bg-background,text-foreground,bg-primary,border-border, etc.) is the base — Casper's theme.css adds brand colors, typography, shadows, and spacing on top of it, not as a replacement. Use shadcn components directly. Do NOT create custom base components that duplicate shadcn functionality - Lucide React — Icon library. Always use Lucide, never Heroicons or FontAwesome
- Fonts —
DM Sanswithsans-serifas fallback for all UI text. Load via Google Fonts or bundle
Color System
The palette is intentionally restrained. Most of the UI is neutral gray + white, with purple as a sharp accent.
Usage Rules
| Role | Token | Hex | When to use |
|---|---|---|---|
| Brand accent | brand-500 |
#5900FF |
Active nav items, primary buttons, links, focus rings |
| Brand subtle | brand-50 |
#EEE5FF |
Active nav background, selected row highlight, hover tints |
| Brand light | brand-100 |
#DECCFF |
Icon circle backgrounds, soft tag fills |
| Default text | neutral-950 |
#0A0A0A |
Page titles, headings |
| Body text | neutral-900 |
#171717 |
Primary body text |
| Subtext | neutral-500 |
#737373 |
Metadata, timestamps, secondary labels |
| Borders | neutral-200 |
#E5E5E5 |
Card borders, dividers, table lines |
| Surface | neutral-50 |
#FAFAFA |
Page background behind cards |
| Card surface | neutral-0 |
#FFFFFF |
Card backgrounds, panels (use bg-neutral-0 for dark mode compatibility — see Dark Mode section) |
Semantic Colors
Use these ONLY for status indicators, badges, and contextual feedback — never as decorative accents.
- Success —
success-500(#22C55E) for badges/icons,success-50for pill backgrounds - Error —
error-500(#EF4444) for badges/icons,error-50for pill backgrounds - Warning —
warning-500(#F59E0B) for badges/icons,warning-50for pill backgrounds
What NOT to do
- Do NOT use brand purple for backgrounds on large surfaces
- Do NOT use semantic colors decoratively
- Do NOT introduce new colors. If you need a new shade, use the neutral scale
- Do NOT use opacity-based colors when a token exists (e.g., don't do
text-black/50, useneutral-500)
Typography
All text is set in DM Sans with sans-serif as fallback (font-family: 'DM Sans', sans-serif). Monospace (font-mono) is acceptable for code blocks, data labels, and IDs only.
Scale
| Style | Size | Weight | Line Height | Use |
|---|---|---|---|---|
| Heading 1 | 30px | 500 | 36px | Page titles only. One per view. |
| Heading 2 | 20px | 500 | 24px | Section titles within a page |
| Heading 3 | 16px | 500 | 20px | Card titles, subsection labels |
| Body | 14px | 400 | 20px | Default paragraph and UI text |
| Body Bold | 14px | 500 | 20px | Emphasis within body text, table headers |
| Caption | 12px | 400 | 16px | Timestamps, helper text, metadata |
| Caption Bold | 12px | 500 | 16px | Badge labels, small category tags |
Rules
- Headings are always
mediumweight (500), never bold (700) - NEVER use all-caps except for tiny metadata labels (e.g., "STATUS", "OWNER" in table column headers) set at caption size
- Links use
brand-500color with no underline by default, underline on hover - Do NOT vary font size beyond this scale. If something feels wrong, adjust spacing not font size
Spacing & Layout
Spacing Scale
Use Tailwind's default spacing scale. Key values:
4px(p-1) — icon padding, tight gaps8px(p-2) — badge padding, small gaps12px(p-3) — input padding, card internal gaps16px(p-4) — card padding, section gaps24px(p-6) — between cards, content sections32px(p-8) — major section separation48px(p-12) — page-level padding on large screens
Layout Rules
- Page background:
neutral-50(#FAFAFA) - Content is always organized inside Cards (white background, border, rounded)
- Maximum content width:
1280pxcentered - On pages with a sidebar, sidebar is
240pxfixed width - Main content area uses remaining space with
24pxpadding
Shadows & Elevation
The design is predominantly flat. Shadows are used to indicate layers, not to add decoration.
| Token | Use |
|---|---|
shadow-sm |
Cards, inputs at rest |
shadow-md |
Dropdown menus, popovers, tooltips |
shadow-lg |
Modals, command palettes, overlays ONLY |
shadow-overlay |
Semantic alias for shadow-lg — identical value. Use on modals/sheets so the intent reads clearly in code |
NEVER apply shadow-lg (or its alias shadow-overlay) to cards or in-page elements. These are reserved for floating layers only.
Border Radius
The theme file (references/theme.css) uses the shadcn/ui radius system — a single --radius base variable in :root that controls the entire scale via calc(). This is mapped into Tailwind classes via @theme inline. No Tailwind v4 defaults are overridden.
| Token | Tailwind Class | Default Value | Use |
|---|---|---|---|
--radius-sm |
rounded-sm |
6px | Inner elements, nav items, small nested controls |
--radius-md |
rounded-md |
8px | Buttons, inputs, popovers, tooltips, chart tooltips |
--radius-lg |
rounded-lg |
10px | Cards, panels, large containers |
--radius-xl |
rounded-xl |
14px | Modal containers, dialogs, hero cards |
| (Tailwind built-in) | rounded-full |
9999px | Badges, pills, avatars, icon circles |
The base value --radius: 0.625rem (10px) is the shadcn default. To make the entire UI sharper or rounder, change this single value — all tokens recalculate automatically.
Cards always use rounded-lg (10px). Buttons and inputs always use rounded-md (8px). Nested elements inside cards should use rounded-sm (6px) for non-interactive elements to maintain visual hierarchy — the inner radius should always be smaller than the outer.
Iconography
- Use Lucide React exclusively. Import as:
import { IconName } from "lucide-react" - Default icon size:
16pxfor inline,20pxfor standalone - Icon color follows its text context (e.g.,
neutral-500for subtext,brand-500for active) - For icons inside circular backgrounds (common in lists and dashboards):
- Circle:
40pxdiameter,brand-50orbrand-100background,rounded-full - Icon:
20px,brand-500color - For semantic contexts, swap to the matching semantic color pair (e.g.,
error-50bg +error-500icon)
- Circle:
Casper Studios Logo
The Casper Studios logo has four variants stored in assets/. Use the correct variant based on the background it sits on:
| Variant | File | When to use |
|---|---|---|
| Default (full color) | assets/logo-on-white-default.svg |
Light/white backgrounds. Gradient icon + purple "CASPER" + dark "STUDIOS". This is the primary logo — use it whenever possible. |
| Variant (full color) | assets/logo-on-white-variant.svg |
Light/white backgrounds when you want all-black text instead of purple + dark gray. Same gradient icon. |
| Mono Black | assets/logo-mono-black.svg |
Light backgrounds where color is unavailable (e.g., print, grayscale contexts). Grayscale icon + near-black text. |
| Mono White | assets/logo-mono-white.svg |
Dark backgrounds only. Gray icon + white text. Use this whenever the logo sits on a dark surface (dark nav bars, dark hero sections, overlays, dark mode). |
Rules
- Light mode (default): Use
logo-on-white-default.svgorlogo-on-white-variant.svg - Dark mode or dark surfaces: Use
logo-mono-white.svg— never place the default or black logo on a dark background - The logo should appear in the sidebar header (web) or top bar (mobile) at the sizes defined in those patterns
- Do NOT resize the logo disproportionately — maintain the original aspect ratio
- Do NOT place the logo on busy backgrounds or low-contrast surfaces. If contrast is insufficient, use the mono variant that provides the best visibility
- Minimum clear space around the logo:
8pxon all sides
shadcn/ui Component Theming
Use shadcn/ui components as your base layer. Theme them using the CSS variables in references/theme.css. Here is how specific components should be configured:
Button
- Primary:
brand-500bg,text-white(literal white, not a token),rounded-md. Hover:brand-600. - Secondary: White bg,
neutral-200border,neutral-900text,rounded-md. Hover:neutral-50bg. - Ghost: No bg, no border.
neutral-600text,rounded-md. Hover:neutral-100bg. - Destructive:
error-500bg,text-white,rounded-md. - All buttons:
rounded-md(8px),14pxfont. - Default height:
48px(h-12). Use this on standalone pages, forms, modals, and any top-level content area. - Compact height:
36px(h-9). Use when the button lives inside a smaller container — cards, panels, table rows, sidebar nav, filter bars, inline actions. The tighter context calls for a tighter control.
Badge
rounded-full(pill shape). Height22px. Caption-bold text (12px, 500 weight).- Semantic badges: Use pastel bg + darker text. E.g., success badge =
success-50bg,success-700text. - Neutral badge:
neutral-100bg,neutral-700text. - Brand badge:
brand-50bg,brand-700text. - Always include a small dot or icon before the label when indicating status.
Card
- White background (
bg-neutral-0).1pxneutral-200border.rounded-lg(10px).shadow-sm. - Internal padding:
16pxminimum,24pxfor spacious cards. - Card headers:
Heading 3(16px/500) with optional "View all" link aligned right. - Separate header from content with a
1pxneutral-200divider.
Table
- Use shadcn
<Table>. No outer border on the table itself — let the parent Card provide the container. - Column headers: Caption-bold (12px/500),
neutral-500color, uppercase. - Row height:
48-56px. Rows separated by1pxneutral-200bottom border. - Row hover:
neutral-50background. - No alternating row colors.
Input / Textarea
rounded-md(8px).1pxneutral-200border.neutral-50bg or white bg.- Focus:
2pxbrand-500ring (use Tailwindring-2 ring-brand-500). - Labels MUST be visible and external — render a
<label>element above every input, never inside it. Labels use14px/400 inneutral-900. The gap between label and input is6px(space-y-1.5). - Placeholder text MUST be de-emphasized —
neutral-400color, normal weight (400), short hint text (e.g., "e.g. [email protected]"). Placeholders are supplementary hints, not labels. - Select inputs follow the same pattern: visible label above, de-emphasized placeholder inside.
- Spacing between fields:
16px(space-y-4orgap-4). - Default height:
48px(h-12). Use for inputs on standalone pages, forms, modals, and any top-level content area. - Compact height:
36px(h-9). Use when the input lives inside a smaller container — cards, panels, table rows, filter bars, inline search fields. Same logic as compact buttons.
Sidebar (App Shell)
See references/web-layouts.md for the full sidebar code pattern. Key specs:
- Width:
240px. White background. Right border:1pxneutral-200. - Nav items:
36pxheight (compact — inside sidebar panel),rounded-sm(6px),12pxleft padding.- Default:
neutral-600text. Active:brand-50bg,brand-500text,font-weight: 500. Hover:neutral-100bg.
- Default:
- Group labels: Caption (12px/400),
neutral-400,24pxtop margin between groups. - On mobile: Sidebar collapses to a
Sheet(slide-in from left).
Tabs
- Use shadcn
<Tabs>. Underline variant. - Active tab:
brand-500bottom border (2px),neutral-900text. - Inactive tab: no border,
neutral-500text. Hover:neutral-900text.
Dialog / Sheet
- Overlay:
black/50opacity. - Container: white bg,
rounded-xl(14px),shadow-overlay. - Always include a close button (X icon) top-right.
Composite Patterns
For rules and code examples, read the appropriate reference file:
references/web-layouts.md— Responsive rules, App Shell, Sidebar Navigation, Dashboard Grid, Data Table Page, Page Headerreferences/components.md— Stat Card, List Item Row, Filter Bar, Kanban Board, Profile/Discovery Card, Product Card, Activity Feed Item, Toast Notifications, Form Validation Statesreferences/mobile.md— Mobile rules, Device Frame Shell, Mobile Top Bar, Bottom Tab Navigation, Mobile Form Layout, Pinned Bottom Button, Mobile List View, Mobile Card Stack, Full Screen Composition, Contextual Actions
Web vs Mobile Context
Every project is either a web application or a mobile application — the layout approach is fundamentally different. You MUST have already read the appropriate platform reference file (as instructed at the top of this document) before reaching this point. If you haven't, stop and read it now:
- Web application →
references/web-layouts.md(responsive breakpoints, sidebar behavior, layout patterns) - Mobile application (native app, iOS, Android, phone-based experience) →
references/mobile.md(device frame, touch targets, pinned buttons, navigation, mobile-specific rules)
Do NOT treat a mobile app as a responsive web page. Mobile apps render inside a device frame and follow entirely different navigation, spacing, and interaction patterns.
Image Placeholders
When no real image is available, use soft gradient mesh backgrounds — NOT gray boxes. These should feel like abstract art, not loading states.
Gradient recipes (CSS linear-gradient or radial-gradient combos):
- Mint/Teal:
linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #a8edea 10
How to use casper-design-system on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add casper-design-system
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches casper-design-system from GitHub repository casper-studios/casper-marketplace and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate casper-design-system. Access the skill through slash commands (e.g., /casper-design-system) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★36 reviews- ★★★★★Tariq Bhatia· Dec 28, 2024
I recommend casper-design-system for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Oshnikdeep· Dec 24, 2024
Keeps context tight: casper-design-system is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Tariq Dixit· Dec 4, 2024
casper-design-system has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Ishan Perez· Nov 23, 2024
Keeps context tight: casper-design-system is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Shikha Mishra· Nov 15, 2024
casper-design-system has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Ishan Mensah· Oct 14, 2024
casper-design-system is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Sakshi Patil· Oct 6, 2024
Solid pick for teams standardizing on skills: casper-design-system is focused, and the summary matches what you get after install.
- ★★★★★Kabir Farah· Sep 25, 2024
I recommend casper-design-system for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Chinedu Thompson· Sep 17, 2024
We added casper-design-system from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Neel Smith· Sep 5, 2024
casper-design-system fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 36