@tekcify/figma-plugin-getskillmd
v0.1.1
Published
Figma plugin that imports a skillmd skill bundle and creates paint and text styles in the current file.
Maintainers
Readme
@tekcify/figma-plugin-getskillmd
Figma plugin that fetches a skillmd skill bundle and creates paint styles (one per palette color) and text styles (paired primary/body fonts at every type-scale size) in the current file.
Features
- Paste a bundle URL (e.g.
https://getskillmd.com/api/v1/skills/<slug>/bundle). - The UI iframe performs the fetch (Figma's main thread cannot use
fetchdirectly), then hands the bundle to the plugin code. - Paint styles are named
getskillmd/<slug>/<group>/<index>and carry the original hex value in their description. - Text styles are named
getskillmd/<slug>/text/<role>-<size>for bothprimaryandbodyroles. Missing fonts fall back to Inter Regular. - Failures are reported back to the UI so you can see exactly which colors or font sizes did not import.
Build
pnpm install
pnpm --filter @tekcify/figma-plugin-getskillmd buildThe build emits code.js next to manifest.json. The manifest already references code.js and src/ui.html, so you can import the plugin straight from this directory.
Install in Figma
- Run the build above.
- In Figma desktop: Plugins → Development → Import plugin from manifest…
- Pick
packages/figma-plugin/manifest.json. - Open any file and run Plugins → Development → skillmd.
- Paste a bundle URL and press Apply.
Notes
manifest.jsonlistshttps://getskillmd.comundernetworkAccess.allowedDomains; the UI iframe is the only side that callsfetch.- The plugin uses
documentAccess: dynamic-page, which is required by the Figma 1.0.0 API for files that may not be fully loaded. - Re-running the plugin against the same slug appends a fresh batch of styles — Figma does not deduplicate by name. Delete the previous batch first if you want a clean apply.
