Publishing layouts
When you're happy with your layout and you want others to distribute it, you can publish the layout to our layout library.
To make using the layout as easy as possible, make sure you've done the following:
Use design-tokens Fonts, colors and sizes can all be tokenized. This allows others to quickly adjust and find values that suit their own branding. Name design tokens after their intention, not after their value: For example, for a color intended as primary color, use "Primary" instead of "Blue". After making adjustments, always check if the tokens are still applied as widely as possible.
Use a readable slug By default layout get a random slug. For publishing, you should change this to a readable slug
Normalize variables Make sure your variables use standardized naming as much as possible. This helps the AI with understanding the structure. Usually writing variables in
snake_case
works best.Add translations Adding translations is a great way to make a layout more widely usable. Usually, layouts only include a few static pieces of text, so translating can be a quick win.