Inspect & Reverse-Engineer Website Style
ink_inspect_website_styleExtract a website's color palette, typography, shadows, and layout from HTML/CSS, then convert them into OKLCH design tokens for reuse.
Instructions
PURPOSE: Deconstruct existing live websites or HTML/CSS templates to reverse-engineer color palettes, typography scales, elevation shadows, and layout DNA into modern OKLCH tokens.
BEHAVIOR: Fetches public website markup over HTTPS or parses local HTML/CSS code strings in-memory. Strictly read-only with zero disk modifications. Remote network requests enforce a 10s timeout, safe redirect limits, and private subnet IP blocking. Converts extracted HEX/RGB values into perceptual OKLCH color variables.
USAGE GUIDELINES:
When to use: Use when analyzing a reference website or mockup to extract its visual hierarchy, typography system, and color ramps.
When NOT to use: Do NOT use to generate novel color tokens from scratch (use ink_generate_palette_tokens instead) or to evaluate code for anti-slop compliance (use ink_validate_design instead).
Alternatives: Use ink_generate_palette_tokens to synthesize new design tokens; use ink_capture_viewport to capture visual screenshots.
RETURNS: ResultEnvelope containing detected 'archetype', extracted 'colors' (with HEX and OKLCH conversions), 'typography' hierarchy, 'shadows', 'layoutDna', and an actionable recommended OKLCH palette stylesheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urlOrCode | Yes | Public website URL (e.g. 'https://stripe.com') or raw HTML/CSS code snippet to reverse-engineer | |
| extractOklchPalette | No | When true, converts extracted HEX and RGB colors into perceptual OKLCH color tokens |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Domain-specific typed payload returned by the tool | |
| status | Yes | Execution outcome status | |
| summary | Yes | Concise, human-readable executive summary of the tool outcome | |
| evidence | No | Audit trail, source references, and generated artifact locations | |
| warnings | Yes | Operational cautions, craft advice, or non-blocking warnings | |
| nextActions | No | Actionable sequential recommendations or subsequent tool suggestions |