← 返回
未分类 Key 中文

Design Mirror

Replicate the visual style of any website and apply it to your existing codebase. Use this skill whenever the user wants to match a site's design, mirror a U...
复制任何网站的视觉风格并应用到现有代码库中。当用户想要匹配某个网站的设计时使用此技能。
meirk-brd
未分类 clawhub v1.0.0 1 版本 99615.4 Key: 需要
★ 0
Stars
📥 259
下载
💾 0
安装
1
版本
#latest

概述

Design Mirror

Capture the visual design language of any website and apply it to your existing codebase — colors, typography, spacing, layout rhythm, component shapes, and overall aesthetic — all extracted live via Bright Data's Web Unlocker.

What This Skill Does

  1. Capture — Screenshot + HTML scrape the inspiration site via Bright Data
  2. Extract — Identify the full design system: colors, fonts, spacing scale, border radii, shadows, component patterns
  3. Analyze — Study the screenshot visually and the CSS structurally to understand the design language
  4. Apply — Translate that design system into the user's existing codebase (their framework, their components)

You are not copying content or functionality. You're understanding the design language — the palette, the type scale, the card shapes, the hover states, the overall aesthetic feel.

> Important: This skill is for design inspiration and learning — extracting publicly visible design tokens (colors, fonts, spacing) to inform your own UI work. Always use it respectfully and in accordance with the terms of service of the sites you reference.

Setup

Requires:

  • BRIGHTDATA_API_KEY — from brightdata.com/cp → Account Settings
  • BRIGHTDATA_UNLOCKER_ZONE — create an Unlocker zone at brightdata.com/cp
export BRIGHTDATA_API_KEY="your-api-key"
export BRIGHTDATA_UNLOCKER_ZONE="your-zone-name"

Step-by-Step Process

Step 1: Capture the Inspiration Site

Run both captures in parallel — screenshot (for visual analysis) and HTML scrape (for CSS extraction):

# Screenshot (save as PNG)
bash scripts/screenshot.sh "https://inspiration-site.com" "/tmp/target_screenshot.png"

# HTML + CSS scrape
bash scripts/scrape_html.sh "https://inspiration-site.com" "/tmp/target_page.html"

Read references/capture-guide.md for how to extract CSS from the raw HTML and handle common issues.

Step 2: Analyze the Design System

After capturing, analyze both in parallel:

Visual analysis (screenshot): Read the PNG image and identify:

  • Primary, secondary, accent colors
  • Background colors (page bg, card bg, surface hierarchy)
  • Typography: font families visible, size hierarchy (h1 → body → caption)
  • Layout: is it centered/constrained-width? Grid? Sidebar?
  • Card/container shapes: border radius size, shadow style (hard, soft, none, colored)
  • Button styles: pill, rectangle, ghost, gradient?
  • Navigation: sticky? Glass/blur effect? Dark or light?
  • Overall mood: dark, light, minimal, brutalist, glassmorphism, corporate, startup?

CSS analysis (HTML): Extract from