W3C Design Tokens and external-tool token sync. More...
#include <pulp/view/design_ir.hpp>#include <pulp/view/theme.hpp>#include <pulp/view/w3c_tokens.hpp>#include <optional>#include <string>#include <unordered_map>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | pulp |
| namespace | pulp::view |
| Hover-cursor tracking for platform window hosts. | |
Functions | |
| std::string | pulp::view::export_css_variables (const Theme &theme) |
| Export a Pulp Theme to CSS custom properties (variables). | |
| std::string | pulp::view::token_css_var (const std::string &token_name) |
| The CSS custom-property id a token binds through: -- + the token name with its trailing .dark mode suffix stripped and every .
| |
| Theme | pulp::view::ir_tokens_to_theme (const IRTokens &tokens, std::vector< std::string > *unresolved_widget_tokens=nullptr) |
| Convert IR tokens to a Pulp Theme. | |
| std::optional< ImportDiagnostic > | pulp::view::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 them all. | |
| IRTokens | pulp::view::theme_to_ir_tokens (const Theme &theme) |
| Convert a Pulp Theme to W3C-compatible IR tokens. | |
| Theme | pulp::view::parse_figma_variables (const std::string &json) |
| Parse Figma Variables JSON (from MCP get_variable_defs) into a Pulp Theme. | |
| std::string | pulp::view::export_figma_variables (const Theme &theme) |
| Export a Pulp Theme as Figma Variables-compatible JSON. | |
| Theme | pulp::view::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. | |
| std::string | pulp::view::export_stitch_design_system (const Theme &theme) |
| Export a Pulp Theme as Stitch Design System-compatible JSON. | |
W3C Design Tokens and external-tool token sync.
Converts between Pulp Theme, the normalized IR token collection, and the on-disk token formats emitted by W3C tooling, Figma Variables, and Google Stitch.