93 const std::string& property_path);
144 const std::string& new_value);
149 const std::string& anchor_id,
150 const std::string& property_path,
151 const std::string& new_value);
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
std::optional< TokenTarget > classify_token_tweak(const std::string &anchor_id, const std::string &property_path)
Classify a tweak as token-typed or not.
TokenLockResult lock_token_in_designmd(const std::string &markdown, const TokenTarget &target, const std::string &new_value)
Lock a single token tweak back into DESIGN.md text.
const char * token_group_key(TokenGroup group)
Stringify a TokenGroup as its DESIGN.md frontmatter key.
TokenGroup
The four canonical DESIGN.md frontmatter token groups this engine can lock into.
Definition token_lock.hpp:62
@ spacing
spacing: map — dimension values.
Definition token_lock.hpp:64
@ typography
typography: map — nested per-level field maps.
Definition token_lock.hpp:66
@ colors
colors: map — hex string values.
Definition token_lock.hpp:63
@ rounded
rounded: map — corner-radius dimension values.
Definition token_lock.hpp:65
Outcome of a lock_token_in_designmd call.
Definition token_lock.hpp:99
int line
1-based line number within DESIGN.md that was rewritten; 0 on failure.
Definition token_lock.hpp:113
bool ok
Definition token_lock.hpp:100
std::string previous_value
The value found at the token before the rewrite — lets the inspector show a "was X,...
Definition token_lock.hpp:110
std::string error
Human-readable failure reason when ok is false; empty on success.
Definition token_lock.hpp:102
std::string updated_markdown
The rewritten DESIGN.md text.
Definition token_lock.hpp:106
A tweak classified as targeting a design token.
Definition token_lock.hpp:73
std::string field
For typography tokens only: the field within the level map, e.g.
Definition token_lock.hpp:80
std::string name
The token name within the group, e.g. "primary", "md", "lg".
Definition token_lock.hpp:76
TokenGroup group
Definition token_lock.hpp:74