Documentation / Visual craft

Visual craft baseline

Load for any marketing page, landing page, portfolio or product screen where visual quality matters, and whenever the project has no established design system.

skills/design-skill/references/visual-craft.md

Load for any marketing page, landing page, portfolio or product screen where visual quality matters, and whenever the project has no established design system. Ready-made tokens and components implementing this baseline live in the starter kit. Requirement = correctness/accessibility obligation; Pattern = adaptable starting point; Taste hypothesis = design judgment to validate in context.

This is a quality floor, not a house style. An existing brand, design system or user instruction wins. When none exists, build to these specs instead of improvising. The values come from measuring well-regarded commercial site templates (Framer and Figma community) and describe how polished pages are actually built: one calm type family, small precise controls, generous space and one high-fidelity visual.

1. Typography

Choose from the curated list

  • Confidence Level: Pattern
  • Purpose: Prevent random or novelty font choices.
  • Reasoning: Most polished templates use one neutral grotesk for nearly everything. Novelty display faces, condensed all-caps and three-family mixes are the fastest way to look amateur.
  • Constraint: Without a brand font, pick one primary family from the list below. Add at most one partner: a display serif for a single accent role, or a mono for labels and data. The primary family sets at least 90% of the text. Check the license, language coverage and needed weights before use.
  • Example:
    • Bad: Plex for the SaaS page, Fraunces for the studio page, a condensed grotesk in caps for the event page, each chosen to feel different.
    • Good: Inter for a SaaS page, with Inter Display tracking on the headline and Geist Mono only for figures.
  • Exceptions: An established brand typeface, a supplied font or an explicit user choice replaces the list.
Role Families (all SIL OFL unless noted) Use for
Primary grotesk Inter (with display optical size), Geist, Instrument Sans, Manrope, Plus Jakarta Sans, DM Sans Everything by default
Display serif accent Instrument Serif, Newsreader One headline phrase or editorial display, never body
Mono Geist Mono, JetBrains Mono, IBM Plex Mono Code, figures, small labels
License-check first Satoshi, General Sans, Cabinet Grotesk (Fontshare licence) Only after confirming terms

These are the defaults for the Clean product direction. Expressive directions (editorial, luxury, bold, playful, retro and others) have their own vetted lists in style directions; use those when that direction is chosen. Never pick a font that appears in neither place unless the brand supplies it. Do not mix two grotesks, and keep condensed all-caps display for the Bold expressive direction.

Use the type scale

  • Confidence Level: Pattern
  • Purpose: Get hierarchy from size contrast, not weight or colour noise.
  • Reasoning: Templates pair a large, light-weight headline with small, quiet UI text. Heavy bold display type reads as shouting.
  • Constraint: Start from this scale (desktop / mobile). Tighten tracking only on large sizes. Use sentence case for headings.
Token Size Weight Line height Tracking
Display (hero h1) 64–72px / 40–44px 500 (400–600) 1.0–1.08 −0.04em to −0.05em
H2 (section) 40–48px / 30–34px 500 1.1 −0.03em
H3 (card title) 20–24px / 18–20px 500 1.3 −0.015em
Body large (hero sub) 18px / 16–17px 400 1.55 0
Body 15–16px 400 1.6 0
UI label, nav, button 14px 500 1.2 −0.005em
Caption, eyebrow 12–13px 500 1.4 0, or +0.06em if uppercase
  • Example:
    • Bad: A 180px weight-800 condensed headline and 17px nav links.
    • Good: A 68px weight-500 headline over two lines, an 18px muted sub of at most 560px, 14px nav.
  • Exceptions: Editorial or event brands may push display size; keep UI text small regardless.

Write headlines that fit

  • Confidence Level: Pattern
  • Purpose: Make the hero read in one glance.
  • Reasoning: Strong templates use 4–9 word headlines on two balanced lines.
  • Constraint: Two lines at desktop, no orphan word, text-wrap: balance. Sub copy one or two sentences in a muted colour. Accent a phrase with colour or the serif partner, not both.
  • Example:
    • Bad: A four-line headline with the last word alone.
    • Good: "The workspace for clear, / connected workflows."
  • Exceptions: Very short brand statements may sit on one line.

2. Space and layout

Use one spacing scale

  • Confidence Level: Pattern
  • Purpose: Make rhythm consistent without eyeballing every gap.
  • Reasoning: Uneven gaps are the most common sign of an unpolished page.
  • Constraint: 4px base: 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96, 120, 160. Container 1200px (max 1280) with 24px side padding (20px on mobile). Section padding 120px desktop, 80px tablet, 64px mobile. Hero top padding 96–140px. Header 64–72px. Card padding 24–32px. Grid gaps 12–20px.
  • Example:
    • Bad: Sections at 70, 96 and 104px; card padding 18px in one card and 30px in the next.
    • Good: Every section 120px, every card 28px, every bento gap 16px.
  • Exceptions: Dense product UI uses a tighter 4–12px internal rhythm.

Keep copy blocks narrow

  • Confidence Level: Pattern
  • Purpose: Leave space around the message.
  • Reasoning: Templates feel premium partly because text never spans the full container.
  • Constraint: Hero headline max about 14–18 words wide (roughly 760px), hero sub max 560px, section intro max 600px, body prose 60–70ch.
  • Exceptions: Tables and data.

3. Surfaces

Radius, borders, shadow

  • Confidence Level: Pattern
  • Purpose: Make cards, frames and controls feel from one system.
  • Reasoning: Mixed radii and heavy borders read as assembled from parts.
  • Constraint: Pick one radius family. Controls 8–10px (or full pill, chosen once per site). Cards 16px. Large panels and media frames 20–24px. Inner radius = outer radius − padding. Borders 1px at low contrast: light rgba(0,0,0,0.08), dark rgba(255,255,255,0.08). Shadows soft and layered, for example 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12). No hard offset shadows unless the brand uses them.
  • Example:
    • Bad: 6px buttons, 18px cards, 12px frames and a 2px dark border.
    • Good: 10px buttons, 16px cards, 24px hero frame, 1px 8% borders throughout.
  • Exceptions: Brutalist or retro brands may choose hard edges deliberately.

4. Colour

Neutral foundation, one accent

  • Confidence Level: Pattern
  • Purpose: Let content and the visual carry colour.
  • Reasoning: Templates are mostly neutral; the accent appears in the primary action, one highlight and the hero visual.
  • Constraint: Neutrals carry 90% of the surface. One accent for the primary action, links and a key highlight. Semantic colours (success, warning, danger) only for status. Gradients and multi-colour belong in visuals and backgrounds, not text and buttons.
Token Light Dark
Background #FFFFFF or #FAFAF9 #000000 or #0A0A0A
Raised surface #F5F5F4 #111111
Card #FFFFFF with border #0F0F10 with border
Text #0A0A0A #FAFAFA
Muted text #57534E–#6B7280 #A1A1AA
Border rgba(0,0,0,.08) rgba(255,255,255,.08)
  • Exceptions: Strong brand palettes; verify contrast for every text pair.

5. Controls

Buttons and inputs

  • Confidence Level: Pattern
  • Purpose: Make actions look precise and consistent.
  • Reasoning: Oversized, multicoloured or inconsistent buttons are an immediate quality tell.
  • Constraint: Height 40px (36px compact, 44–48px for the hero only). Horizontal padding 16–20px. Label 14–15px weight 500. Primary: filled with the accent or the inverse neutral. Secondary: subtle fill or 1px border, never a second accent. At most two buttons side by side. Icons 16px, one icon set (Lucide or Phosphor) at one stroke width. Inputs match button height and radius. Hover shifts background a few percent; press scales to 0.98; focus shows a 2px ring with 2px offset.
  • Example:
    • Bad: A pink 52px pill next to a lime 40px pill.
    • Good: Black 40px "Get started" plus a bordered 40px "Book a demo", same radius.
  • Exceptions: Touch-first products keep 44px minimum targets.

6. The visual

One high-fidelity hero visual

  • Confidence Level: Requirement
  • Purpose: Give the page a focal point that looks finished.
  • Reasoning: The hero visual is what makes a template look expensive. Crude drawings undo every other decision.
  • Constraint: Choose one, in this order of preference:
    1. Real product UI built in code: realistic sample data, correct density, inside a frame (window chrome or device), 20–24px radius, soft shadow, often over a gradient or shader field.
    2. Licensed photography or renders supplied by the user or from a source whose licence allows the use; record the source.
    3. Generative visuals: shader or gradient fields (for example Paper Shaders: MeshGradient, GrainGradient, Dithering, GodRays; Apache-2.0), used as a field behind UI or as the visual itself.
    4. Typographic or abstract composition for editorial pages. Never ship hand-drawn SVG "illustrations" of real objects, clip-art, emoji as icons or decorative blobs as the main visual unless a skilled illustration was supplied.
  • Example:
    • Bad: Three flat SVG pots on a brown line as a ceramics hero.
    • Good: A product window showing the real workflow over a soft mesh gradient.
  • Exceptions: Supplied brand illustration.

Mini visuals in cards

  • Confidence Level: Pattern
  • Purpose: Make feature cards show rather than tell.
  • Reasoning: Template bento cards contain small UI fragments, charts or states, not icons and three lines of text.
  • Constraint: Each feature card gets a small, real-looking fragment of the product (a list row, a chart, a toggle, a notification) at the top, then title and one sentence. Keep fragments monochrome with the accent only where it means something.

7. Motion detail

  • Confidence Level: Pattern
  • Constraint: Entrance: opacity plus 8–16px rise, 500–700ms, ease-out cubic-bezier(.2,.7,.2,1), stagger 60–80ms, once. Hover: 150–200ms. No bounce, no parallax on text. Shader speed slow. Everything static under prefers-reduced-motion. See motion.

8. Craft checklist before shipping

Check the rendered page at 1440px and 390px, light and dark where supported:

  1. One primary family; at most one partner; no faux bold or italics.
  2. Hero headline two balanced lines, no orphan, tracking tightened.
  3. Every button the same height and radius family; one primary style.
  4. All section paddings from the scale; all card paddings identical.
  5. Copy blocks within the max widths above.
  6. One radius family; borders the same alpha everywhere.
  7. One icon set, one size per context, optically centred.
  8. The hero visual is high fidelity and crisp at 2x.
  9. Accent used only for actions, links and one highlight.
  10. No text below 12px; muted text still passes contrast.
  11. Mobile hero: headline, sub and primary action visible without scrolling past a visual.
  12. Nav has five or fewer items plus one action.
  13. Nothing overflows horizontally; long words wrap.
  14. Images, logos, numbers and testimonials are real or labelled as samples.

Report which checks were inspected in a real render and which were not.

Guides & section titles

IntroductionWhat Design Skill does and when to use it.What is Design Skill?IntroductionHow to think about itIntroductionStart buildingIntroductionInstallationAdd Design Skill to your coding assistant.Install with the skills CLIInstallationInstall from a local checkoutInstallationVerify the installationInstallationDesign workflowFrom understanding the product to inspecting the result.Understand and chooseDesign workflowCompose and expressDesign workflowBuild and interactDesign workflowVerify and reviseDesign workflowCommands & promptsWays to ask your assistant to use Design Skill.Request conventionsCommands & promptsAn example briefCommands & promptsGuidance & exceptionsUnderstand requirements, patterns and design judgment.Instruction rolesGuidance & exceptionsWhen to break a patternGuidance & exceptionsResearch with referencesGuidance & exceptionsSkill filesRead the actual Markdown included in the skill.Explore the sourceSkill filesLoad guidance selectivelySkill filesSkill libraryEvery file in the skill, rendered from the same Markdown and CSS your assistant reads.Start hereSkill libraryDirection & compositionSkill libraryVisual craftSkill libraryProduct UISkill libraryBuild & behaviorSkill libraryQualitySkill libraryCSS kitsSkill libraryCustomizationAdapt Design Skill to your brand and project.Bring your own directionCustomizationWrite useful constraintsCustomizationPair with Glaze componentsCustomizationTroubleshootingResolve installation, discovery and output issues.The assistant cannot find Design SkillTroubleshootingThe result feels genericTroubleshootingCopy or theme is unavailableTroubleshootingVerificationCheck the implementation and report evidence honestly.Before shippingVerificationEvaluating the skillVerificationCurrent evidence limitsVerificationSources & licenseAttribution, license and reference use.Source acknowledgmentsSources & licenseMIT licenseSources & licenseSKILL.mdThe entry point: workflow, instruction roles, what to load when and the four request modes.Instruction rolesSKILL.mdWorkflowSKILL.mdLoad selectivelySKILL.mdCommands (assistant request conventions)SKILL.mdCoherence without samenessSKILL.mdCategory playbookLoad at the start of any landing, marketing or brand page.Technical productsCategory playbookConsumer apps and servicesCategory playbookCommerceCategory playbookLocal businesses and servicesCategory playbookCreative work and peopleCategory playbookEvents, community and causesCategory playbookCombining rowsCategory playbookStyle directionsLoad after the category playbook suggests directions, or whenever a page needs a defined look.1. Clean productStyle directions2. Dark technicalStyle directions3. Luminous AIStyle directions4. EditorialStyle directions5. Warm organicStyle directions6. Luxury refinedStyle directions7. Bold expressiveStyle directions8. PlayfulStyle directions9. Brutalist rawStyle directions10. Retro nostalgicStyle directions11. Trust and clarityStyle directions12. Cinematic immersiveStyle directions13. Commerce catalogStyle directionsLanding page compositionLoad when building or redesigning a landing, marketing, launch or waitlist page.Pick one hero patternLanding page compositionHero anatomyLanding page compositionSection libraryLanding page compositionBento gridsLanding page compositionKeep it honestLanding page compositionLanding-page reference researchLoad when exploring reference libraries or real landing pages to inform a composition.Research the question, not the trendLanding-page reference researchTranslate observation into a decisionLanding-page reference researchCompose around evidenceLanding-page reference researchKeep rights separate from inspirationLanding-page reference researchOptional research sourcesLanding-page reference researchDirection, composition and assetsLoad when choosing a visual direction, comparing compositions or sourcing images, fonts and other assets.Compare meaningful directionsDirection, composition and assetsChoose a personality carrierDirection, composition and assetsUse references responsiblyDirection, composition and assetsComposition and layoutLoad when setting hierarchy, proportions, density and depth on any screen.Compose before polishingComposition and layoutCoherent roles, varied screensComposition and layoutDepth must preserve usabilityComposition and layoutVisual craft baselineLoad for any marketing page, landing page, portfolio or product screen where visual quality matters, and whenever the project has no established design system.1. TypographyVisual craft baseline2. Space and layoutVisual craft baseline3. SurfacesVisual craft baseline4. ColourVisual craft baseline5. ControlsVisual craft baseline6. The visualVisual craft baseline7. Motion detailVisual craft baseline8. Craft checklist before shippingVisual craft baselineStarter kitLoad when building a landing page, marketing page or product screen without an existing design system.TokensStarter kitComponentsStarter kitHero markupStarter kitSectionsStarter kitProduct kitStarter kitTailwind mappingStarter kitAfter buildingStarter kitTypographyLoad when choosing typefaces, setting type hierarchy and rhythm, or loading fonts.Choose for actual contentTypographySet hierarchy and rhythmTypographyLoad fonts responsiblyTypographyColor roles and contrastLoad when defining colour roles, palettes, contrast or light and dark themes.Choose roles before countsColor roles and contrastMeasure contrast in contextColor roles and contrastDeliberate themesColor roles and contrastBuild palettes systematicallyColor roles and contrastDesign tokens, theming and dark modeLoad when setting up or extending a design system, adding dark mode or themes, mapping a design into Tailwind/shadcn/CSS variables, or auditing hard-coded values.1. Token architectureDesign tokens, theming and dark mode2. Colour scalesDesign tokens, theming and dark mode3. Dark modeDesign tokens, theming and dark mode4. Mapping tokens into common stacksDesign tokens, theming and dark mode5. Tokens checklistDesign tokens, theming and dark modeIcons, images and mediaLoad when choosing icons, placing photography, screenshots, logos, avatars, video or illustration, and when optimising media.1. IconsIcons, images and media2. Images and photographyIcons, images and media3. Logos, avatars and brand marksIcons, images and media4. Delivering mediaIcons, images and media5. Media checklistIcons, images and mediaBackgrounds and surfacesLoad when choosing page surfaces, background imagery, gradients or textures.Choose from the contentBackgrounds and surfacesLayer without obscuringBackgrounds and surfacesProduct UI: apps, dashboards and toolsLoad for any logged-in product surface: web apps, dashboards, admin panels, internal tools, settings, editors, developer tools and data-heavy screens.1. Start from the jobProduct UI: apps, dashboards and tools2. The app shellProduct UI: apps, dashboards and tools3. Common screensProduct UI: apps, dashboards and tools4. Feedback and system statusProduct UI: apps, dashboards and tools5. Product craft checklistProduct UI: apps, dashboards and toolsForms, input and validationLoad for sign-up, checkout, settings, onboarding, search, filters, multi-step flows and any screen where people type or choose.1. FieldsForms, input and validation2. ValidationForms, input and validation3. Structure and flowForms, input and validation4. Special inputsForms, input and validation5. Forms checklistForms, input and validationData visualizationLoad for charts, KPI tiles, sparklines, maps, reports and any screen that turns numbers into a judgment.1. Choose the form from the questionData visualization2. Encoding and honestyData visualization3. Colour for dataData visualization4. Numbers and labelsData visualization5. Interaction and accessData visualization6. Data visualization checklistData visualizationComponents and interaction statesLoad when designing or reviewing individual components and their interaction states.Choose structure from the taskComponents and interaction statesState behavior is part of designComponents and interaction statesFocused patterns (adapt to actual content)Components and interaction statesUX writing and contentLoad whenever the interface has words: headlines, buttons, labels, errors, empty states, notifications, onboarding, pricing and confirmation dialogs.1. Real words firstUX writing and content2. Interface textUX writing and content3. Voice, tone and formatUX writing and content4. Internationalisation-ready copyUX writing and content5. UX writing checklistUX writing and contentFunctioning implementationLoad when building UI in code: states, data flow, persistence and project boundaries.Build the whole relevant flowFunctioning implementationKeep state and response coherentFunctioning implementationRespect provenance and project boundariesFunctioning implementationConditional stack guidanceLoad when the work touches a specific stack such as React, Next.js, Vue, Svelte, Tailwind or shadcn/ui.Use the actual projectConditional stack guidanceFramework-specific implementationConditional stack guidanceInteraction and motionLoad when adding transitions, animation, gestures or any movement.Decide whether to animateInteraction and motionHandle interruption and originsInteraction and motionGestures and reduced motionInteraction and motionMeasure animation performanceInteraction and motionResponsive behaviorLoad when making layouts work across widths, zoom levels, touch and long content.Break at content pressureResponsive behaviorOverflow deliberatelyResponsive behaviorMobile navigation and touchResponsive behaviorAccessibilityLoad for every interface: keyboard, focus, semantics, names, contrast, targets and user preferences.Concrete patternsAccessibilityAccessibility checklistAccessibilityFrontend performanceLoad when building pages that must feel fast, adding fonts, images, video, shaders or heavy client code, or when an audit reports slowness.1. TargetsFrontend performance2. Loading (LCP)Frontend performance3. Stability (CLS)Frontend performance4. Responsiveness (INP)Frontend performance5. Weight and effectsFrontend performance6. Performance checklistFrontend performanceAvoid unconsidered defaultsLoad when output risks looking generic, or when reviewing for unconsidered defaults.Question defaults, not vocabulariesAvoid unconsidered defaultsShow something trueAvoid unconsidered defaultsEarn the decorationAvoid unconsidered defaultsCommon tells of unconsidered outputAvoid unconsidered defaultsVerify rendered resultsLoad before reporting work as done: rendered checks, measurement and honest evidence.Inspect, revise, repeatVerify rendered resultsMeasure and qualifyVerify rendered resultsEvaluate the skill fairlyVerify rendered resultsAudit rubricLoad for /design-skill audit, design reviews, pre-launch checks and "why does this look off?" questions.1. How to auditAudit rubric2. What to scoreAudit rubric3. SeverityAudit rubric4. Report formatAudit rubric5. Quick triage (five-minute pass)Audit rubricstarter.cssLanding-page kit: tokens, header, hero, frames, bento, pricing, FAQ, footer and twelve direction presets.How to usestarter.cssSourcestarter.cssproduct.cssProduct kit: app shell, forms, tables, badges, alerts, tabs, dialogs, toasts, density modes and dark tokens.How to useproduct.cssSourceproduct.css
Tab to move · Enter to open · Esc to close