design-dna

Extract design tokens, style attributes, and visual effects from references into structured JSON profiles.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/brunoolf/frontend-craft --skill design-dna-brunoolf
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-dna
Source: https://github.com/brunoolf/frontend-craft/tree/main/skills/design-dna
Command: npx skills add https://github.com/brunoolf/frontend-craft --skill design-dna-brunoolf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Translating a visual reference into a reproducible design is slow and inconsistent: colors get eyeballed, typography is guessed, and effects like WebGL or scroll animations are forgotten. This Skill turns screenshots, URLs, or descriptions into a complete three-dimension Design DNA JSON that can drive consistent design generation. ## Core Features & Use Cases - Three-dimension schema: Captures measurable design system tokens (color, typography, spacing, layout, shape, elevation, motion, components), qualitative design style (mood, composition, brand voice), and visual effects (particles, 3D, shaders, scroll, cursor, glassmorphism). - Reference analysis: Analyzes images, screenshots, or URLs into a fully populated Design DNA JSON with no empty fields, noting dominant patterns when references conflict. - DNA-driven generation: Builds self-contained HTML/CSS/JS designs from a DNA JSON, mapping tokens to CSS custom properties and implementing effects with CSS, Canvas, GSAP, Three.js, or GLSL based on performance tier. - Use Case: Provide a screenshot of a site you admire, get its full Design DNA JSON, then generate a landing page for your own product in the same style with matching palette, type scale, and scroll effects. ## Quick Start Analyze this screenshot and extract its full design DNA JSON, then generate a landing page in the same style.

Frequently Asked Questions about design-dna

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract design tokens from a screenshot?▼

Provide the screenshot and the skill analyzes it across three dimensions: measurable tokens like color hex values and type scales, qualitative style attributes like mood and composition, and visual effects. It outputs a complete Design DNA JSON with every field populated.

How to generate a website design from a reference style?▼

First analyze the reference into a Design DNA JSON, then provide your content for generation. The skill maps tokens to CSS custom properties, applies style guidance to layout decisions, and implements effects, producing a self-contained HTML file.

What visual effects can be captured from a design reference?▼

The schema covers particle systems, 3D elements, shader effects, scroll parallax and triggers, text animations, cursor effects, image distortions, glassmorphism, canvas drawings, and SVG animations. Effects not present are marked with enabled set to false.

Does the generated design work on low-end devices?▼

Yes. Each DNA profile includes a fallback strategy and performance tier. Generation respects prefers-reduced-motion, disables effects on low-end hardware, and uses requestAnimationFrame for animation loops.

When should I use design DNA analysis instead of writing CSS directly?▼

Use it when replicating an existing visual style, documenting a design system from live references, or keeping multiple generated pages consistent. For one-off original designs with no reference, direct CSS authoring is simpler.