figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

Adjust order of tokens in Inspect/Annotate

Open six7 opened this issue 2 years ago • 1 comments

We currently show tokens as they were applied, both in Inspect and when creating annotation layers.

We should use a certain specified order so that it's easier to predict where a property will appear.

In this example, it's hard to read as every value appears in another place.

Image

Image

For example, an order could be

  • color (fill, border)
  • spacing (all, pt, pr, pb, pl, vertical, horizontal, gap)
  • sizing (all, width, height)
  • border (width: all, top, right, bottom, left, radius)
  • shadow
  • opacity
  • typography: first typography then all properties
  • composition
  • documentation: name, raw value, value, description

We could use the properties listing stored in src/constants/Properties.ts - we might need to change that order to reflect the above.

six7 avatar Jun 12 '22 21:06 six7

This is not working as expected

esthercheran avatar Jul 15 '22 11:07 esthercheran