Back to Plugins
Write Layouts

Write Layouts

The plugin lets you input AutoLayout settings

auto layoutkeyboardcode-generators

Plugin Preview

Write Layouts preview

About this plugin

The plugin enables you to input AutoLayout settings using a syntax like Tailwind CSS.

It automatically sets layer names based on the AutoLayout settings, keeping your custom layer names.


The props syntax:

  • Direction: col | row | wrap
  • Justify Content: g-auto
  • Gap: g-{number}
  • Gap Vertically: gy-{number}
  • Gap Horizontally: gx-{number}
  • Padding: p-{number}
  • Padding Vertically: py-{number}
  • Padding Horizontally: px-{number}
  • Padding Top: pt-{number}
  • Padding Bottom: pb-{number}
  • Padding Left: pl-{number}
  • Padding Right: pr-{number}


Input these props separated by a space. 

When the 'Direction' prop is included, it will override all props, with any unspecified props defaulting to 0. 

When omitting the 'Direction' prop, only specific props will be overwritten.


Example:

'col g-24'

'row g-auto py-8 px-16'

'wrap gx-16 gy-32'

Plugin Details

Version13
CreatedMarch 12, 2023
Last UpdatedJuly 15, 2023
CategorySoftware development
Creator見野 伸太郎
Stats70 installs, 4 likes
PricingFree

Technical Details

  • API:1.0.0
  • main:dist/code.js
  • Editor Types:
    figma