16#include <unordered_map>
61 std::vector<std::string>* unresolved_widget_tokens =
nullptr);
69 const std::vector<std::string>& unresolved);
Normalized intermediate representation (IR) for imported designs: the IR value model (style,...
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
Theme parse_stitch_design_system(const std::string &json)
Parse a Stitch Design System JSON (from MCP list_design_systems/get_screen) into a Pulp Theme.
IRTokens theme_to_ir_tokens(const Theme &theme)
Convert a Pulp Theme to W3C-compatible IR tokens.
std::string export_css_variables(const Theme &theme)
Export a Pulp Theme to CSS custom properties (variables).
Theme ir_tokens_to_theme(const IRTokens &tokens, std::vector< std::string > *unresolved_widget_tokens=nullptr)
Convert IR tokens to a Pulp Theme.
std::string export_stitch_design_system(const Theme &theme)
Export a Pulp Theme as Stitch Design System-compatible JSON.
std::string token_css_var(const std::string &token_name)
The CSS custom-property id a token binds through: -- + the token name with its trailing ....
Theme parse_figma_variables(const std::string &json)
Parse Figma Variables JSON (from MCP get_variable_defs) into a Pulp Theme.
std::string export_figma_variables(const Theme &theme)
Export a Pulp Theme as Figma Variables-compatible JSON.
std::optional< ImportDiagnostic > unmapped_widget_token_diagnostic(const std::vector< std::string > &unresolved)
The diagnostic naming the widget keys a design supplied no colour for, or nothing when it supplied th...
Design token collection (W3C-compatible).
Definition design_ir.hpp:782
W3C Design Tokens <-> Pulp Theme conversion (runtime-needed subset).