Lintmend docs

1. Lint

Open Plugins > Lintmend, pick Selection, Page or Whole file, and press Lint. Whole file loads every page first, so a big file takes a moment. One run reads up to 40,000 layers; past that it stops and says how many weren't checked, so lint a page or a selection instead.

Issues are grouped by rule. Open a rule to see each layer with the page and the frames it sits in; click the layer's name to select it (Lintmend switches page if it has to), or Select all to select every layer with that issue. After a lint the file shows a Lint again button in Figma's properties panel with the last score.

Layers inside instances take their look from the main component, so only contrast and tap targets are checked inside them unless you turn on "Lint inside instances too". Layers whose names match your skip patterns (_* by default) are skipped with everything inside them. Children of hidden layers aren't checked; the hidden layer itself is.

2. The rules

RuleWhat it flagsFix
Hard-coded colourA visible solid fill or stroke with no variable bound and no colour styleBind the nearest colour variable whose scopes allow this use (text fill, frame fill, shape fill, stroke), within your tolerance; or apply a colour style with the same colour when the layer has one fill
Hard-coded typeText with no text style and no typography variables (per range)Apply the text style with the same font, style and size; it's a safe fix when line height and letter spacing match too
Hard-coded effectShadows and blurs that aren't an effect style or bound to variablesApply an effect style with identical effects
Missing styleA style id that can't be found: deleted, or from a library the file no longer usesPick a current style by hand
Off-scale spacingAuto layout gap, row gap or padding off your scale and not boundSnap to the nearest step, or bind the number variable holding it (GAP scope)
Off-scale radiusCorner radius off your radius steps and not bound; anything at least half the layer's short side counts as a pill and passesSnap, or bind the number variable holding it (CORNER_RADIUS scope)
Inconsistent auto layoutLeft and right (or top and bottom) padding 1 to 2 px apart; and a gap or padding that differs from at least two thirds of three or more same-named siblingsEven it out, or use the siblings' value
Low text contrastText under 4.5:1 (3:1 for large text) at AA, or 7:1 (4.5:1) at AAAOne at a time: bind the nearest text colour variable that passes
Text over an imageText over a photo, video, gradient without stops or a background that changes under the textLook at it; add a solid backing if needed
Small tap targetA layer with a click, press or drag interaction, or a button-like instance (button, link, checkbox, radio, toggle, tab, chip, close, menu), smaller than your minimumResize by hand
Default layer nameFrame 12, Rectangle 3, Group 5 and the other names Figma gives new layersRename from its text, its layout (Row, Stack, Grid) or what it draws (Photo, Icon, Circle, Divider)
Duplicate layer nameSiblings with the same name, except repeated instances of one component and text layersNumber the later ones
Hidden layerA hidden layer that no component property or variable controlsOne at a time: delete
Empty layerA frame, group or section with nothing inside and nothing drawn (in auto layout it may be a spacer), or text with no charactersOne at a time: delete
Mixed fontsOne text layer with several font families, or styled and hard-coded ranges mixedFix by hand
Detached instanceA frame Figma remembers was detached from a componentSwap it back to an instance by hand
Outdated instanceAn instance of a library component whose library has a newer published versionOne at a time: update to the latest version

3. Contrast, worked out

For each text layer Lintmend looks down through the layers behind it: siblings below it that cover it, the frames it sits in, down to the page background. Translucent solid fills are composited over the first opaque one, and the text's own opacity (and its frames') is applied. The ratio is WCAG's relative luminance formula. Large text is 24 px and up, or 18.66 px and up at bold. On a gradient both ends are checked. Photos, video and backgrounds that change under the text can't be measured from layers, so they're listed separately instead of being passed.

4. Settings (saved in the file)

5. Fixes

Fix all safe applies every fix that keeps the design as it looks within your tolerance, or that only changes structure: binding variables, applying matching styles, snapping to the scale, evening padding, renaming. Deleting layers, updating instances and contrast colour changes are offered one at a time. Every fix is checked against the layer as it is now, so a lint that's out of date never writes the wrong thing, and a whole run is one undo step (Cmd+Z or Ctrl+Z).

6. Ignoring

Click Ignore on an issue to excuse that layer from that rule. The ignore list is saved in the file with who ignored it and when, so the whole team sees the same results. Ignored issues don't count against the score and are left out of exports. Undo any of them in Ignore list.

7. The score

Each category (tokens and styles, spacing and layout, accessibility, components, layer hygiene) scores 100 minus the share of checked layers with a problem in it, weighted by severity (error 1, warning 0.6, info 0.25, worst per layer), where a quarter of the layers at full weight scores 0. The overall score weights the categories 30, 20, 25, 15 and 10. Grades: A from 90, B from 80, C from 70, D from 60.

8. Sharing and exports

9. Trial and license

The trial gives 20 fixes or exports over 7 days, starting with the first one; trial fixes change up to 50 layers at a time. Linting, the score and sharing the score are always free. After the trial a license is needed to see each issue, fix and export: $25 a month or $250 a year per seat, at addons.greatwork.company. Enter the key from your email in Plans and license key.

Questions: hello@greatwork.company.