v0.5.4 — Figma Extraction Upgrade
From dogfooding brand_extract_figma against the C5 brand file.
Problem Found
The Figma MCP's get_variable_defs returns a simple { name: hex } map, but our tool only accepted structured { name, resolvedType, value } arrays. Also, get_design_context returns code with embedded colors that aren't Figma variables (e.g., raw bg fills). The old tool missed these entirely.
Fixed
- New
variable_mapparam: accepts the simple{ "C5 Orange": "#f44d37" }format directly fromget_variable_defs - New
design_contextparam: accepts rawget_design_contextoutput and automatically parses colors from CSSvar()fallbacks,bg-[#hex]classes, andHEX: XXXXXXtext labels - New
figma_urlparam: accepts full Figma URLs and auto-extracts the file key - Better role inference: color names like "C5 Orange" map to primary, "Dark Grey" to text, "White" to surface, "Acid Green" and "Light Pink" to accent
- Design context font parsing: extracts font families and sizes from generated Tailwind code
Result
C5 brand file extraction: 4 colors from variables + 2 additional from design context = 6 total (previously would have been 0 without the right input format).