DesignScan

v0.4.0
io.github.ms-zaman/designscan Checked 3 days ago Published 5 months ago

Extract a website’s design tokens (colors, type, spacing, shadows) as DESIGN.md, W3C, or CSS.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_design_tokens Extract a website's design tokens

Render a URL in a headless browser and extract its design system as tokens: colors (background/text/primary + observed button :hover), typography scale, spacing, radii, shadows, and component specs. Formats: md = DESIGN.md (YAML front matter + prose, includes 'Notes for your coding agent'), w3c = W3C Design Tokens JSON, css = CSS custom properties, json = the raw DesignProfile. Takes ~10-30s (a real browser drives the page).

ParameterTypeDescription
url *stringPage to analyze, e.g. https://stripe.com (https:// is assumed if missing)
formatstringOutput format (default: md)
themestringColor scheme(s) to capture via prefers-color-scheme (default: light; 'both' merges a distinct dark pass into the output)
timeoutMsintegerPer-navigation timeout in ms (default: 45000)