ardot-design-to-code

Convert Ardot design files into frontend HTML/CSS/JS code and extract design tokens from websites.

68|25|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/rojim666/SztuCode --skill ardot-design-to-code-rojim666
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ardot-design-to-code
Source: https://github.com/rojim666/SztuCode/tree/main/py-runtime/src/sztu_code/core/prompts/workbuddy/skills/ardot-design-to-code
Command: npx skills add https://github.com/rojim666/SztuCode --skill ardot-design-to-code-rojim666

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Turning a visual design into working frontend code by hand is slow and error-prone, and reverse-engineering a website's visual style into a reusable design system requires tedious manual inspection. This Skill automates both directions: pixel-accurate design-to-code conversion from .ardot canvas files, and structured style-guide extraction from live websites. ## Core Features & Use Cases - Design-to-Code Conversion: Reads .ardot design files, exports image/SVG assets, and generates HTML/CSS/JS with correct layout, typography, gradients, and slide transitions, defaulting to a single self-contained HTML file. - Website Style Extraction: Fetches a site's HTML/CSS, captures screenshots with Playwright, and builds a full design style guide (color palette, typography, components, spacing, motion) inside an .ardot file with reusable design tokens. - Framework-Aware Implementation: Ships implementation guidelines for vanilla CSS and Tailwind v4, including CSS variable mapping, font loading, and SVG path extraction. - Use Case: A designer hands you a multi-slide .ardot presentation design; the Skill analyzes each frame, exports only the image assets, and produces a single HTML file with keyboard/wheel slide navigation and responsive scaling that opens directly in a browser. ## Quick Start Ask the agent to convert the currently open Ardot design into a single self-contained HTML page with slide transitions and responsive scaling.

Frequently Asked Questions about ardot-design-to-code

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

FAQPage Schema
How do I convert a design file to HTML/CSS/JS code?▼

Open the .ardot design file, confirm the output format through the structured dialog (single HTML file is the default), then the workflow analyzes each frame, exports image and SVG assets, and generates the HTML structure, CSS styles, and JS interactions. The output opens directly in a browser with no build step.

How to extract a design system or style guide from a website?▼

Provide the website URL and the workflow fetches its HTML and CSS with curl or WebFetch, captures screenshots with Playwright, then builds a style guide in an .ardot file covering color palette, typography, components, spacing, radius, and motion. Design tokens are created as reusable variables via apply_variables.

What output formats does design-to-code conversion support?▼

The default and preferred output is a single self-contained HTML file with inline CSS and JS. Alternatives include multi-file web projects, React, Vue, WeChat Mini Program, Flutter, React Native, SwiftUI, and Jetpack Compose, selected through a mandatory multiple-choice dialog before generation.

Does the generated code work with Tailwind CSS?▼

Yes, the Skill includes Tailwind v4 implementation guidelines covering the @import "tailwindcss" syntax, CSS custom properties in :root, font loading via link tags or next/font, and fill_container/hug_contents mapping to flex-1 and w-fit/h-fit classes. Inline styles are prohibited in favor of Tailwind classes.

Why do exported images fail during design-to-code conversion?▼

Image exports typically fail when the output directory does not exist or the batch is too large. Create directories with mkdir -p first, export no more than 5 image nodes per batch, and retry with a smaller batch if a failure occurs.

Should entire slides be exported as images when converting designs?▼

No, only image-fill nodes such as backgrounds and scene art should be exported as PNG/JPEG, and vector decorations as SVG. Exporting whole slides loses editability; text, gradients, and solid shapes should be reproduced directly in CSS for a faithful, maintainable result.