| Crates.io | webtk |
| lib.rs | webtk |
| version | 0.1.0 |
| created_at | 2025-12-02 05:53:57.349159+00 |
| updated_at | 2025-12-02 05:53:57.349159+00 |
| description | Web asset toolkit utility to transpile, generate, and mix web assets. |
| homepage | https://github.com/jeremychone/rust-webtk |
| repository | https://github.com/jeremychone/rust-webtk |
| max_upload_size | |
| id | 1961171 |
| size | 78,800 |
webtk is a command-line tool designed to interact with and manage assets from design files, starting with Sketch files.
See Prerequisites (in short, have sketchapp installed which should have sketchtool as well)
Use the --help flag for detailed command information:
webtk --help
The sketch subcommand handles Sketch file operations.
# List all of the Artboards
webtk sketch list-artboards tests/data/sample-sketch.sketch
# List all Artboards with glob
webtk sketch list-artboards -g "ico/*" tests/data/sample-sketch.sketch
# Export all ico/ artboards
webtk sketch export -g "ico/*" --format "svg,png" -o ".out/icons" tests/data/sample-sketch.sketch
# Export as SVG symbols (all icons combined into one SVG with <symbol> elements)
webtk sketch export -g "ico/*" --format "svg-symbols" -o ".out/icons/symbols.svg" tests/data/sample-sketch.sketch
-g is a glob on the artboard name. For mulitple globs do -g "ico/*" -g "logo/*--format is the format of the export. Can be svg, png, jpeg, svg-symbols.
--format "svg,png or multiple --format svg --format pngsvg-symbols exports all matched artboards as SVG <symbol> elements in a single SVG fileThis tool relies on the official sketchtool binary. Ensure Sketch is installed on your system. The current implementation assumes sketchtool is located at:
/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool