designlang allows users to reverse-engineer any website's complete design system with a single command. By utilizing a headless browser, it extracts styles, layout patterns, and responsive behaviors, generating multiple output files, including Tailwind configurations and Figma variables, while ensuring WCAG accessibility compliance.
design-extract provides a powerful solution for reverse-engineering the complete design language of any website in a single command. Utilizing a headless browser, it extracts a wide array of style properties, including colors, typography, spacing, shadows, and much more. This tool generates eight distinct output files that offer comprehensive insights into the site's design structure, facilitating seamless design adaptation and application.
Extract the design language of a site with a simple command:
npx designlang https://stripe.com
For a complete rundown with all additional features:
npx designlang https://stripe.com --full
The following files are generated:
| File | Description |
|---|---|
*-design-language.md | AI-optimized markdown for LLM usage |
*-preview.html | Visual report including swatches and typography |
*-design-tokens.json | W3C Design Tokens format |
*-tailwind.config.js | Tailwind CSS theme configuration |
*-variables.css | CSS custom properties |
*-figma-variables.json | Supports Figma import with dark mode |
*-theme.js | Compatible themes for React and CSS-in-JS |
*-shadcn-theme.css | shadcn/ui global variable CSS |
Running the command for a website will produce detailed insights:
designlang https://vercel.com --full
Expected Summary:
Designed with community in mind, contributions are encouraged through the GitHub repository. Engage with documentation and enhancement opportunities to further refine the functionality of design-extract.
No comments yet.
Sign in to be the first to comment.