Documentation
Figma guidelines

Typography & effects

Keep type and effects in real text styles and structured properties so devlooper reads exact metrics, not guesses.

devlooper reads type metrics and visual effects as exact numbers from the node tree. The more of your styling lives in real, structured properties (a text style, a stroke, an effect) rather than in a flattened picture, the more of it comes across precisely - because a pixel diff is weak at exactly these things.

Typography

For every text layer the tool reads: font family, size, weight, line-height, letter-spacing, text case, alignment, italic and colour. Missing letter-spacing and wrong line-height are among the most common fidelity gaps - and both are things you set once and forget.

Do:

  • Use text styles (or type variables) so each style is consistent and named - Heading/H1, Body/Base, Label/Caps.
  • Set line-height and letter-spacing explicitly, including tight tracking like -0.02em. If you eyeballed spacing by nudging, the number the tool reads won't match what you see.
  • Use real text case (the Uppercase setting) rather than typing in caps, so the original string is preserved and the transform is a style.
  • Name the exact font. Use the font's real family name as it appears in Figma (Inter, Geist, Plus Jakarta Sans). If it's a web font, that name is what the build loads.
  • Keep copy as live text, verbatim - devlooper copies every string exactly, in document order. Don't outline text you want rendered as text.

Don't:

  • Don't fake a type scale with dozens of one-off sizes - use a handful of styles.
  • Don't outline headings (that turns them into vectors / assets).
  • Don't rely on the visual to convey tracking/leading - set the values.

Gradient text

If a heading has a gradient fill (not a flat colour), keep it as a real gradient fill on the text. The tool flags gradient text and implements it with background-clip: text. Flattening it to an image loses the live, selectable text.

Hand-typed text sizes and a border drawn as a rectangle on the left, a text style and a real stroke on the right.

Borders - the single most-missed element

Every container that has a stroke has a border, and this is the element most often silently dropped in a build (the fill and radius get copied, the 1px stroke does not - and a pixel diff won't flag it).

  • Use a real stroke for every panel, card, chip, table cell, badge and section frame that has an outline - even a very faint one (1px at 8% alpha). devlooper reads the stroke weight and colour (including low alpha) and emits a real CSS border.
  • A stroke needs a visible paint to register - a stroke weight with no visible stroke colour is treated as "no border." So if you want a border, make sure the stroke paint is actually on and visible.
  • Corner radius is read exactly, including per-corner radii (e.g. a section that joins the next one → 12 12 0 0). Set them intentionally.

Shadows & blur

  • Shadows are read layer-by-layer (x, y, blur, spread, colour, opacity) - including Figma's stacked 2 to 4 shadow layers. Build them as real effect layers, not a baked-in soft rectangle, and all layers carry across.
  • Layer blur → filter: blur(); background blur → backdrop-filter (frosted glass). Use the real Figma blur effects so the value is exact. For a glass panel, a real background blur + a semi-transparent fill is what tells the tool it's glassmorphism.

Blend modes

Blend modes are read exactly and applied verbatim. A layer-level blend → mix-blend-mode; a fill-level blend → background-blend-mode. Two things help the build get them right:

  • Use blend modes intentionally on decorative layers (a screen flare, a multiply texture) - they carry across exactly.
  • Keep a blended layer compositing directly over the real background it's meant to blend with. A blend only works against what's behind it, so don't wrap a blended flare in a group that has its own opacity/effect - that breaks the blend in code just as it would on the canvas.

Gradients

Linear, radial and angular/conic gradients are read with exact stops, positions and angle. Keep them as real gradient fills (not a rasterised gradient image) and the build reproduces them precisely - a gradient is one of the things a screenshot conveys worst, so the real fill matters.

Quick self-check

  • Do all headings/body use a small set of named text styles with explicit line-height and letter-spacing?
  • Does every outlined panel/card have a real, visible stroke (even a faint one)?
  • Are shadows real effect layers, and glass panels real background blurs?
  • Are gradients and gradient text real fills, not flattened images?
  • Is all copy live, verbatim text (not outlined, not placeholder lorem)?