Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

msandroid/DESIGNMD

Repository files navigation

DESIGNMD Banner

🎨 DESIGNMD: The Ultimate Design Extractor

Transform any website into a structured design system (DESIGN.md) instantly by just entering a URL.

MIT License VS Code Extension Local LLM


✨ The "URL to Design" Experience

DESIGNMD is a VS Code extension that directly analyzes a website's CSSOM (CSS Object Model) and leverages local LLMs (via llama.cpp) to generate comprehensive design guidelines ready for implementation.

  • πŸš€ Instant Extraction: Extract colors, typography, spacing, and components from any URL in seconds.
  • 🧠 AI-Powered Insights: Uses llama.cpp to automatically generate design philosophy, Do's & Don'ts, and component usage guidance.
  • πŸ“‚ Multi-Format Export:
    • DESIGN.md: Structured documentation optimized for AI agents (Cursor, Windsurf, etc.).
    • Tailwind v4: Modern @theme block format for seamless integration.
    • CSS Variables: Ready-to-use :root custom properties.
    • DTCG JSON: Standard format for design tools like Figma.

πŸ›  How to Use

  1. Launch Command: Press Ctrl+Shift+D or select Design Extractor: Extract Design System from URL from the Command Palette.
  2. Enter URL: Provide the website URL you wish to analyze.
  3. Preview: Review the extracted design system in the interactive Webview panel.
  4. Save: Download your preferred format and drop it into your project.

πŸ“ Generation Example

A snippet from a real DESIGN.md extracted from https://note.com:

## Overview
Design tokens extracted via CSSOM frequency analysis.
## Colors
- **Primary-1** (#08131a): Deep, professional main color
- **Surface** (#ffffff): Clean base white
- **Accent** (#1e7b65): Vibrant accent for interactive elements
## Typography
Clean sans-serif based on Helvetica Neue for high readability.
## Do's and Don'ts
βœ… Do: Maintain consistent white space using the base grid.
βœ… Do: Use the accent color only for the primary call-to-action.
❌ Don't: Mix different border-radii within a single view.

πŸš€ Technical Architecture

graph TD
 A[URL Input] --> B[HTML/CSS Fetcher]
 B --> C[CSSOM Parser]
 C --> D{Token Extractor}
 D -->|Frequency Analysis| E[Raw Tokens]
 E --> F[Local LLM - llama.cpp]
 F --> G[Prose & Rationale]
 G --> H[Final Outputs]
 H --> I[DESIGN.md]
 H --> J[Tailwind v4]
 H --> K[CSS Vars]
 H --> L[DTCG JSON]
Loading

πŸ“₯ Setup

1. Installation

git clone https://github.com/msandroid/DESIGNMD.git
cd DESIGNMD
npm install
npm run compile

2. Local AI Integration (Recommended)

Run llama.cpp as a backend to enable high-quality prose generation.

./llama-server -m model.gguf --port 8000

By default, the extension connects to http://localhost:8000.


🀝 Support & Contribution

Buy Me a Coffee at ko-fi.com

If you find this project helpful, please give us a star! You can also support the developer on Ko-fi.


Built with ❀️ for AI-native developers.
Optimized for AI agents like Cursor, Windsurf, and Claude Code.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /