跳到主要內容

🚀 design-extract: One Command to Bridge the Gap Between Web Design and Code | 一鍵提取網站設計系統,終結前端對接噩夢

🚀 design-extract: One Command to Bridge the Gap Between Web Design and Code | 一鍵提取網站設計系統,終結前端對接噩夢

對於開發者來說,最痛苦的時刻莫過於拿到一個『只要參考這個網站』的指令,卻得花數小時在 Chrome DevTools 中反覆切換、手動抄寫顏色代碼、字體大小和間距。即使有了 Figma,現實中的網站實作往往與設計稿存在落差。design-extract 擊碎了這種低效的『手動對齊』過程。在 AI 驅動開發的時代,LLM 需要精確的上下文(Context)才能生成高品質 UI,而此工具能將整個網站的設計語言轉化為 AI 可讀的 Markdown 與 Token,讓 AI 能精準地幫你重建任何視覺風格,將數天的對接時間縮短至秒級。

For developers, one of the most frustrating experiences is being told to 'just refer to this website' and spending hours toggling through Chrome DevTools, manually copying color codes, font sizes, and spacing. Even with Figma, real-world implementations often drift from original designs. design-extract shatters this inefficient 'manual alignment' process. In the era of AI-driven development, LLMs require precise context to generate high-quality UI. By transforming a website's design language into AI-optimized Markdown and Tokens, this tool allows AI to accurately recreate any visual style, reducing days of manual bridging to mere seconds.

🛠️ 核心功能 | Key Features

  • 全自動設計提取: 一行指令即可抓取所有計算後的樣式(Computed Styles),免去手動對比。
  • 8 種多平台輸出: 同時生成 Tailwind v4 配置、Figma 變數、shadcn/ui 主題、W3C Token 等,無需重複定義。
  • 深度捕捉佈局與交互: 不僅是顏色,還能提取 Grid/Flexbox 佈局、4 個斷點的響應式行為以及 Hover/Focus 交互狀態。
  • WCAG Accessibility 審計: 自動評估無障礙分數並提供修復建議,將合規性檢查納入自動化流程。
  • AI 友好的 Markdown 報告: 提供包含 19 個章節的詳細設計語言文檔,直接餵給 Claude 或 GPT 即可快速開發。
  • Automated Design Extraction: Extract all computed styles with a single command, eliminating manual inspection.
  • 8 Multi-platform Outputs: Simultaneously generate Tailwind v4 configs, Figma variables, shadcn/ui themes, and W3C Tokens—no more redundant definitions.
  • Deep Layout & Interaction Capture: Beyond colors, it captures Grid/Flexbox patterns, responsive behavior across 4 breakpoints, and interaction states (hover/focus).
  • WCAG Accessibility Audit: Automatically scores accessibility and provides remediation paths, integrating compliance into the workflow.
  • AI-Optimized Markdown Reports: A detailed 19-section design language document that can be fed directly into Claude or GPT for rapid development.

💡 技術亮點 | Why It Matters

與傳統的 CSS 提取器不同,design-extract 的核心創新在於其「語義化轉換能力」。它不只是抓取單一屬性,而是將其組織成完整的設計系統(Semantic + Primitive + Composite)。此外,它針對現代 AI 工作流(如 Cursor, Windsurf)提供了 MCP Server 支持,讓 AI 助手能直接從磁碟讀取設計健康數據與組件定義,真正實現從『視覺觀察』到『代碼生成』的閉環自動化。

Unlike traditional CSS extractors, the core innovation of design-extract lies in its 'Semantic Translation Capability.' It doesn't just scrape attributes; it organizes them into a full design system (Semantic + Primitive + Composite). Furthermore, it provides MCP Server support for modern AI workflows (like Cursor or Windsurf), enabling AI assistants to read design health data and component definitions directly from disk, achieving a true closed-loop automation from 'visual observation' to 'code generation.'

📦 快速上手 | Quick Start

無需安裝,直接使用 npx 即可解決問題:

# 快速提取基礎設計系統
npx designlang https://stripe.com

# 提取完整版(含所有 8 種輸出文件)
npx designlang https://stripe.com --full

No installation required; solve your design gap instantly using npx:

# Quick extraction of basic design system
npx designlang https://stripe.com

# Full extraction (including all 8 output files)
npx designlang https://stripe.com --full

design-extract 將網站從一個「不可編輯的視覺結果」轉變為「可工程化的設計數據」。無論你是需要快速遷移風格的前端工程師,還是希望 AI 精準生成 UI 的開發者,這都是目前最強大的設計同步工具。立即前往 GitHub 探索!
👉 查看 GitHub 倉庫

design-extract transforms websites from 'uneditable visual results' into 'engineerable design data.' Whether you are a frontend engineer needing rapid style migration or a developer wanting AI to generate precise UI, this is the most powerful design sync tool available. Explore it on GitHub now!
👉 Visit GitHub Repository

🔗 View on GitHub

留言

這個網誌中的熱門文章

text-to-cad: 讓 AI 驅動的參數化 CAD 建模成為現實 / text-to-cad: Bringing AI-Driven Parametric CAD Modeling to Reality

一個讓 AI 代理能生成、預覽並迭代 3D CAD 模型的開源框架 / An open-source harness for AI agents to generate, preview, and iterate 3D CAD models. 🔎 工具速覽 / AT A GLANCE Category AI-Powered CAD Tooling / AI 驅動 CAD 工具 Pricing Free (Open Source) / 免費(開源) BestFor Robotics engineers and product designers using AI coding agents / 使用 AI 程式碼代理的機器人工程師與產品設計師 GitHub Stars ⭐ 93 🚀 引言 / Introduction text-to-cad 是一個強大的開源框架,旨在填補大型語言模型(LLM)與專業 3D 建模之間的鴻溝。它允許開發者利用 Claude Code 或 Codex 等 AI 代理,透過程式碼生成精確的參數化幾何模型,並提供即時預覽與迭代能力。 text-to-cad is a powerful open-source harness designed to bridge the gap between Large Language Models (LLMs) and professional 3D modeling. It enables developers to leverage AI agents like Claude Code or Codex to generate precise parametric geometry via code, providing real-time preview and iteration capabilities. 🛠️ 核心功能 / Key Features 與 Codex 或 Claude Code 等代理...

kimiflare:將 Moonshot Kimi-K2.6 直接部署於 Cloudflare 的終端 AI 編碼助手 | kimiflare: A Terminal Coding Agent Powered by Moonshot Kimi-K2.6 on Cloudflare

無需中繼,在你的 Cloudflare 帳戶中直接運行強大的 Kimi 終端編碼智能體。 | No middleman, run the powerful Kimi terminal coding agent directly on your own Cloudflare account. 🔎 工具速覽 / AT A GLANCE Category AI Coding Agent / Developer Tool Pricing Free (Open-weight model / Cloudflare Workers AI pricing) BestFor Developers seeking a private, high-context terminal AI assistant with direct infrastructure control. GitHub Stars ⭐ 36 🚀 引言 / Introduction kimiflare 是一款為開發者量身打造的終端編碼智能體,它將 Moonshot 的 1 兆參數開源模型 Kimi-K2.6 與 Cloudflare Workers AI 完美結合。不同於傳統 AI 工具,kimiflare 讓流量直接在你的 Cloudflare 帳戶中流動,徹底擺脫第三方代理或 AI 閘道的束縛,實現最高等級的控制力與隱私。 | kimiflare is a terminal coding agent tailored for developers, seamlessly combining Moonshot's 1T-parameter open-source model Kimi-K2.6 with Cloudflare Workers AI. Unlike traditional AI tools, kimiflare routes traffic directly through your Cloudflare account, eliminating the n...

Orca Skills: 開源賦能,加速雲安全工作流

加速雲安全工作流 - Orca Skills 整合多種工具與插件,打造高效安全環境 | Accelerate Cloud Security Workflows with Orca Skills, a Suite of Tools and Plugins 🔎 工具速覽 / AT A GLANCE Category 开源安全工具 Pricing 开源免费 BestFor 雲安全团队、DevSecOps工程师 GitHub Stars ⭐ 33 🚀 引言 / Introduction 在雲端環境中,確保安全不僅是一種技術挑戰,更是對工作效率的一場考驗。Orca Skills 是一款專為加速 Orca 云平台安全工作流而設計的开源插件工具包。透過整合多種工具和插件,幫助我們在複雜的安全環境下保持高效率。 🛠️ 核心功能 / Key Features Orca Skills 提供了一系列功能強大的安全工作流工具,包括警報處理、影響分析、配置源頭追溯等。這些工具不僅能夠幫助我們快速定位問題,還能確保在解決問題時避免造成不必要的後續問題。 💡 技術亮點 / Tech Highlights Orca Skills 真正的亮點在于其開放性與兼容性。它不僅支持Anthropic Claude Code、Cursor 和 Codex,還能夠與 MCP(Orca Security)集成,為安全團隊提供全面的支持。 📦 快速上手 / Quick Start 要快速開始使用 Orca Skills,首先需要安裝所需環境和工具。接下來,配置 MCP 以實現與 Orca Cloud Platform 的集成。最後,測試各個技能插件以確保其正常運行。 中英文對照: 要快速開始使用 Orca Skills 首先需要安裝所需環境和工具 接著配置 MCP 以實現與 Orca 云平台的集成 最...