Adherence was subjective
Every review measured it differently. With no common yardstick, there was no way to compare squads, files or progress over time.
A Figma plugin that measures how much of a prototype follows the design system — and tells screens from documentation without spending a single AI token.
DS adherence was measured by eye — and the documentation inside the files sabotaged any attempt at automation.
A plugin with a custom algorithm that separates screens from documentation and calculates adherence per frame, page and file.
From problem to code: classification heuristic, metric, plugin interface and development.
An objective DS maturity yardstick, running locally — with zero AI tokens.
At Getnet, several design teams work in parallel, in large files, on journeys that span app, web and internal systems. The design system existed and was solid. The question nobody could answer was a different one: how much of what we design actually uses the DS?
Without that answer, adoption conversations turned into opinions. Reviews depended on who was looking, and leadership had no way to track the system’s maturity over time — or to know where to invest in components, documentation or training.
"It’s pretty compliant" is not a metric.— every design review, before the plugin
Every review measured it differently. With no common yardstick, there was no way to compare squads, files or progress over time.
Real files mix screens with specs, redlines, flows and notes. A naive audit counts all of that as "off the DS" — and the number stops meaning anything.
Classifying thousands of frames with Figma’s AI would burn tokens, be slow and could give different answers for the same file.
Before measuring, the plugin decides what is a screen. Each top-level frame gets a score from structural signals — dimensions, components, auto layout, names, text density, connectors and annotations. All computed locally, in milliseconds.
Below is a simplified version of the heuristic. Toggle the signals and watch the classification change.
Simplified version for teaching purposes — the real heuristic uses more signals and weights calibrated on real files.
Walks each page’s node tree without leaving Figma.
Screen × documentation via structural signals — zero tokens.
Compares each visual node with the DS libraries, styles and variables.
Score per frame, page and file — always traceable to the node.
Instances from the official libraries, plus published styles and variables: color, typography, spacing and effects.
Detached instances, hardcoded values, local styles and fonts off the type scale.
Documentation frames, hidden layers and annotations — they neither help nor hurt.
Pages and files use a weighted average by node count: a complex screen weighs more than a simple modal, and the final number reflects the real effort of keeping the product within the system.
Three tabs, three levels of reading: from the file overview down to the exact node that’s off the system, with the suggested fix. This is a navigable prototype — click the tabs and the frames.
The best AI decision in this project was not using AI where it wasn’t needed.
AI tokens spent separating screens from documentation
levels of reading: frame, page and file
to audit a large file, locally
average adherence gain across audited files in 3 months
More than a number, the plugin changed the conversation: design reviews started with the report, leadership gained a way to track DS maturity by squad, and the gaps it flagged became a backlog of components and documentation.
Paste the Figma link. Get the flow in code.
See all cases