Build in Nyla resources & best practices

This article covers key concepts and best practices that will help you to master building with Nyla and getting the most of out of the tooling. 

The basics 

Before diving into building with Nyla, make sure you know the basics of how to use the tool, such as: 

The Nyla 101 training modules take you through these concepts to prepare you for using the tool in more depth. 

Optimising for the site management experience: 

When building in Nyla, it's important to think about the editing experience of the person or team who will be using the Nyla sections, templates and features that you build. 

Being familiar with the entities and best practices lets you most of the Nyla tooling and can set up your future users for success.

Design tokens

  • Keeping custom design tokens to a minimum and clearly naming them makes it easier for users to choose the right styles for their use case and maintains brand consistency. 

Section and Page Templates

  • Section and Page templates are key to making sure that the things you build are easy to manage and usable for the users managing their sites.
  • For section templates:

Sources and Properties

Page source

  • When a source should be referenced throughout an entire page (e.g a PDP or PLP), make sure to use Page Sources and reference
  • You can also reference the relevant page source properties in order to create more dynamic experiences, or manage section visibility dynamically.

Optimise your workflows:

Nyla templates:

  • Nyla templates can serve as easy jumping off points for you to build your own custom sections and features. 

Blocks:

  • Blocks can significantly accelerate your workflow, and enable you to save useful components for users to use when building their own layouts.  
  • Nyla blocks also serve as jumping off points or drop-in app/features for you to use out of the box 

In-context editing: 

  • Take advantage of in-context selection to speed up your building workflows and visualise the padding, margin and the content block you are working in. 

Concurrency:

Power user features


Conditional Visibility 

Iterating over a source and creating dynamic layouts 

Shopify and Nyla: 

Custom properties:

Link actions & Form actions

  • Link actions enable you to create advanced interactions
  • Form actions enable to you to submit forms to drive app/feature functionality

Nyla custom app

  • Create your own custom integrations, form actions and link actions with Nyla using the Nyla custom app