Project and document structure

You’re welcome to set up projects and documents in a way that works for you, but we have some suggestions that may help. Feel free to adopt or ignore them as you see fit.

Projects are files and folders #

Rather than a giant document containing everything, Skala uses separate files for components, collections, and images, making larger projects and libraries easy to manage. The structure can be whatever you’d like. For example, you may wish to store your components and images in separate folders, or even folders with subfolders. That’s not essential, but it keeps things nice and neat.

Using folders can also separate your design system and components from documents used to create wireframes, mockups and asset exporting. Skala can work with any folder structure that makes sense for your project, interleaved with notes, fonts, and other supporting files.

Working this way also means batch renaming and other Finder features can be used to help organise Skala documents. Scripts can also be used to automate changes.

Components and images are referenced #

Components and image layers reference the original documents. They do not get embedded into Skala documents. This means the original component or image file is the only source of truth. For example, if a component is changed, that change will be immediately reflected everywhere the component is used. There is no need to approve changes.

This is a good thing, but it is different to how some other apps treat components and images.

Relative paths #

The paths used for components and images should typically be relative paths. This means the paths are relative to where the enclosing Skala document lives. For example, if your components are kept in a “components” folder that’s alongside your main Skala documents, the path shown in the component properties tab for a button might be components/button.skala. Skala automatically uses relative paths, where possible.

Using relative paths means projects can easily be moved to different places, and between different computers without issues.

Collections #

Larger projects may benefit from using Skala’s collections feature. Collections are intended to be used for libraries of components, design systems, and any situation where it makes sense to get an overview of many documents at once.

Design system versioning #

There’s multiple ways design systems can be managed and versioned in Skala.

If your design system is predominately a folder with Skala components and other items in it, and you’re using Git, branches can be used to work on upcoming versions of your design system. This is a good strategy if you typically only want to have the latest stable version in your main branch. This method also means it’s easy to switch branches, to see how a design works with different versions of a design system. This could even be used to build images of layouts using different design system versions, then perform an image diff to see what’s changed. Skala’s Git integration can also show the history of each document, with previews of every version.

Skala projects are just folders and files, so many different approaches can be used.

Deprecated components #

Maybe you’d like deprecated components to show a message or appear tinted red on the canvas? Deprecated components can have overlays that just appear on the canvas, and not in exports. To do this, turn off Include in build on the build tab for the layer you’d like to use as an overlay.

Alternatively, components can contain a description with instructions or notes. This would also be a good place to mention if a component is deprecated. Click the Description button on the document tab to edit a document’s description.

Archiving projects #

Given Skala projects are just files and folders, they can be archived in any way you’d typically archive files and folders. Storing your components or design system alongside the project with relative paths means everything can be archived together. This keeps the project as a complete snapshot in time.

Asset exporting #

At Bjango, our production asset export documents are typically set up as a sticker sheet, with everything laid out in a grid with labels. With everything in one place, maintenance and re-exporting is easier. Production asset export documents are typically separated from documents used for wire-framing and mockups.

Visual diffing #

The Difference color blending can be used to diff anything with anything. This allows sticker sheets containing components to be compared with other versions. For example, if a full page image was exported of a specific version of a sticker sheet, that image could be a layer with difference blending over the top of the live components, indicating any changes since the image was created.

It would be possible to store a full catalog of all components for every version, with diffs showing what changed, if you wanted to.

Design tokens #

Skala’s constants can be used for many types of design tokens.

Localisation via constants #

String constants can be used for localisation. Working this way means languages can be loaded via JSON constant files, and editing of strings can optionally be done in a text editor, outside of Skala.

Localisation switching can also be done via scripting.

Spacing units #

Unit constants can be used to define design system grid units, if you’d like. For example, if a unit constant called gu was created and given a value of 8, then 1gu could be typed into an input field to get 8 pixels. If 2gu was typed into an input field, it would result in a value of 16.

If you prefer using percent-scale style spacing systems, a unit constant called sp could be created with a value of 0.08. Typing 100sp into an input field would result in 8 pixels. 50sp would result in 4 pixels. 200sp would result in 16 pixels.

One rem can equal 16 Skala pixels, if you’d like. You can create as many different unit constants as you need, with almost any name you’d like.

Pixel density #

We recommend working so that 1 Skala document pixel equals 1 CSS px, or 1 iOS point, or 1 macOS point, or 1 Android dp. This means the values in the properties panel will likely match the values needed in code. The canvas can also be previewed at different pixel densities, to match how the final app or website will look on device. To learn more, visit the pixel density page.