brand_preflight
Validate HTML and CSS for brand compliance by checking colors, fonts, logos, and design patterns to ensure visual content meets brand standards.
Instructions
Check HTML/CSS against brand rules — catches off-brand colors, wrong fonts, missing logo, and anti-pattern violations (drop shadows, gradients, etc.). Pass an HTML string or file path. Mode 'check' (default) runs all compliance checks and returns pass/warn/fail per rule. Mode 'rules' lists all active preflight rules without checking content. Use after generating any visual content to validate brand compliance. Returns overall status and per-check details. NOT for scoring content copy — use brand_audit_content. NOT for brand directory validation — use brand_audit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML to validate: either a full HTML string (with <style> blocks) or a file path ending in .html (e.g. 'output.html') | |
| mode | No | 'check' (default): validates HTML against all brand rules. 'rules': lists all active rules without running checks. | check |