Documentation / Visual craft

Icons, images and media

Load when choosing icons, placing photography, screenshots, logos, avatars, video or illustration, and when optimising media.

skills/design-skill/references/iconography-imagery.md

Load when choosing icons, placing photography, screenshots, logos, avatars, video or illustration, and when optimising media. Pair with visual craft for the hero visual and direction / composition / assets for rights. Requirement = correctness/accessibility obligation; Pattern = adaptable starting point; Taste hypothesis = design judgment to validate in context.

1. Icons

One set, one grid, one weight

  • Confidence Level: Pattern
  • Purpose: Make icons read as one family.
  • Reasoning: Mixing sets (a filled Material icon next to a 1.5px Lucide outline) is an immediate sign of assembly from parts.
  • Constraint: Pick one licensed set and use it everywhere: Lucide (ISC), Phosphor (MIT), Heroicons (MIT), Tabler (MIT) or Radix Icons (MIT). Keep one stroke width (1.5px for refined, 2px for bold) and one style (outline or filled; filled may mark the active state). Sizes: 16px inline with 14px text and in dense UI, 20px in default buttons and nav, 24px for standalone or touch. Icons inherit currentColor. Optically centre icons in buttons; align to the text's cap height, not its box.
  • Example:
    • Bad: Emoji as feature icons beside outline icons, each in a different coloured circle.
    • Good: Lucide at 1.5px stroke, 16px in the table toolbar and 20px in the sidebar, all currentColor.
  • Exceptions: A brand-supplied custom icon set.

Icons support words

  • Confidence Level: Requirement
  • Purpose: Keep meaning clear and accessible.
  • Reasoning: Few icons are universally understood (search, close, menu, home); most need a label.
  • Constraint: Pair icons with text labels by default. Icon-only buttons are allowed for universal or repeated actions in toolbars, and must have an accessible name (aria-label or visually hidden text) plus a tooltip on hover and focus. Decorative icons next to a text label get aria-hidden="true". Do not use an icon per feature card just to fill space; use a product fragment instead (see visual craft).
  • Exceptions: None for accessible names.

2. Images and photography

Choose real, relevant images

  • Confidence Level: Requirement
  • Purpose: Show something true about the product.
  • Reasoning: Generic stock (handshakes, people pointing at laptops) and unrelated scenery signal filler.
  • Constraint: Prefer, in order: real product screenshots or UI built in code, the client's own photography, licensed photography that depicts the actual subject, then generated or abstract visuals clearly not pretending to be real people or results. Record the source and licence. Never use images of real people as fake customers or team members.
  • Exceptions: Explicit mood boards and concept work, labelled as such.

Art-direct and frame consistently

  • Confidence Level: Pattern
  • Purpose: Make a set of images look like one product.
  • Reasoning: Mixed aspect ratios, colour temperatures and crops make a page feel collaged.
  • Constraint: Pick a small set of aspect ratios (16:9 or 3:2 for media, 4:5 for portraits and product cards, 1:1 for avatars and thumbnails) and use aspect-ratio with object-fit: cover; set object-position to keep the subject. Keep colour treatment consistent (same temperature, similar contrast; a subtle overlay can unify). Screenshots sit in a frame (border, radius 12–24px, soft shadow) at 2x resolution, cropped to the relevant part rather than the whole screen. Text over images needs a scrim or gradient and a measured contrast check at every breakpoint.
  • Example:
    • Bad: A 4:3 team photo, a 16:9 office photo and a square logo in one row, each a different height.
    • Good: Three 4:5 portraits, same crop height, same warm grade.
  • Exceptions: Editorial layouts that deliberately vary scale.

Alt text that does a job

  • Confidence Level: Requirement
  • Purpose: Convey the image's purpose to people who cannot see it.
  • Reasoning: "image.png" and "photo" are noise; a full description of a decorative image is also noise.
  • Constraint: Informative images: describe what matters in context in one sentence, without "image of". Images that are links or buttons: describe the destination or action. Decorative images: alt="". Charts and diagrams: short alt plus a text or table alternative nearby. Text in images: include the text in the alt (and avoid text in images).
  • Exceptions: None.

3. Logos, avatars and brand marks

Handle logos with care

  • Confidence Level: Requirement
  • Purpose: Present marks accurately and legally.
  • Reasoning: Squashed, recoloured or invented "customer" logos damage trust and may infringe.
  • Constraint: Use only logos you have permission to show and that represent real relationships. Use SVG; never stretch; keep clear space; provide light and dark variants or a monochrome version for logo walls. Size logo walls by optical weight, not equal width. Avatars: circle or rounded square, initials fallback on a tinted background derived from the name, consistent sizes (24/32/40/64px).
  • Exceptions: Clearly labelled fictional brands in demos.

4. Delivering media

Fast, stable, sharp

  • Confidence Level: Requirement
  • Purpose: Keep pages fast and free of layout shift.
  • Reasoning: Unsized and oversized images are the most common cause of slow loading and jumping layouts.
  • Constraint: Always set width and height (or aspect-ratio) so space is reserved. Serve AVIF or WebP with responsive srcset/sizes (or the framework's image component, such as next/image). Lazy-load images below the fold (loading="lazy") but never the LCP hero image; give the hero fetchpriority="high" and preload it if it is a CSS background. Export UI screenshots at 2x and compress. Use SVG for icons, logos and simple illustrations, and strip editor metadata. Video: muted, playsinline, a poster image, no autoplay with sound, controls available, and a reduced-motion alternative for background video.
  • Exceptions: None.

5. Media checklist

  1. One icon set, one stroke and style, sizes from 16/20/24.
  2. Icon-only controls have accessible names and tooltips.
  3. Images are real or clearly illustrative, sourced and licensed.
  4. Consistent aspect ratios and colour treatment; text over images passes contrast.
  5. Alt text matches purpose; decorative images use alt="".
  6. Every image reserves space; hero is prioritised; others lazy-load; formats are modern.

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