6 releases
Uses new Rust 2024
| 0.0.12 | May 8, 2026 |
|---|---|
| 0.0.11 | May 7, 2026 |
#2551 in Development tools
Used in plumb-cli
365KB
7.5K
SLoC
plumb-codegen
Source-tree token inference for Plumb.
Walks a project directory, discovers design-token sources (CSS custom
properties, Tailwind config files, DTCG token JSON), and bootstraps a
best-effort plumb.toml. Wired through the plumb init --from <path>
subcommand.
Public API
infer_config— walk a source tree and return anInferredConfigcontaining a populatedplumb_core::Configand a per-source summary.render_toml— serialize anInferredConfiginto aplumb.tomlwith a header comment describing the inputs.CodegenError— typed error enum for inference failures.
Determinism
Source files are walked in sorted order, scales are sorted ascending
with duplicates removed, and tokens land in indexmap::IndexMap
preserving discovery order. Two runs over the same tree produce
byte-identical output.
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.
Dependencies
~21MB
~323K SLoC