Pixel density
Skala’s canvas can be set to various different pixel densities.
1× Res means 1 Skala document pixel equals one canvas pixel. 2× Res means 1 Skala document pixel equals two canvas pixels. The canvas pixel density can be set via the View › Pixel Density menu, or in the popup menu just under the tools area. The pixel density is saved with the document, so it’ll be the same next time you open it.
This is useful when mimicking how a design will look on a specific device, while also keeping values in the same unit type used to implement the design — an iPad Air sized document could be set up as 820×1180 pixels, with a canvas pixel density of 2× Res. This matches how the elements will be specified using iOS points, and also matches the pixel density of the device.
Pixel density options #
The View › Pixel Density menu contains the following options.
4× Res(⌥⌘3).2× Res(⌥⌘2).1× Res(⌥⌘1).1/2× Res(⌥⌘4).1/4× Res,1/8× Res,1/16× Res,1/32× Res, and1/64× Res(⌥⌘5to⌥⌘9).
Pixel density and zoom #
Pixel density and zoom work together. Pixel density decides how many pixels the artwork is rendered with, and zoom decides how large those pixels are shown. If you’ve pinched or scrolled to an in-between zoom amount, choose View › Zoom › Round Zoom Amount (⌥⌘0) to snap to the nearest zoom level. ⌘1 to ⌘4 zoom to 100% through 400%.
Further reading: Keyboard shortcuts
Pixel density and exporting #
Pixel density only changes the canvas preview. It has no effect on exported images. The size of exported images is set by the scale of each output in a build task — a scale of 2 exports at double the document size, no matter which pixel density the canvas is set to.
Further reading: Build settings
Recommended workflows #
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. However, there might be times where other approaches are required. Unit constants can be helpful when using unit types that don’t map 1:1 with document pixels.
Skala can preview the canvas at a wide range of pixel densities, including double (2× Res), half (1/2× Res) etc, all the way down to 1/64× Res. This means a 1024×1024px Mac app icon document can be created, and previewed all the way down to the 16×16px version. This works in conjunction with the wide range of pixel snapping amounts — snapping can be set up to round to any pixel density.
Skala’s pixel density and snapping features are flexible enough to support many different workflows.
No way to disable pixel preview? #
It’s common for many other apps to render vector shapes at a resolution that matches the current zoom level. We feel this is not the correct approach for software and screen design — it is always good to see how the design will be rendered in the running app or website. It’s incredibly dangerous to limit correct previews to a special mode that needs to be enabled, because it makes mistakes more likely. This is why Skala always shows pixels on the canvas.
Skala’s method also increases performance, and stops cracks from appearing, which happens in other tools that can turn pixel preview off. What do we mean by “cracks”? Imagine there is a grid of squares that are exactly 8×8px, placed so they are edge to edge. Now imagine you’re zooming in and out via a scroll wheel or pinch gesture. At most zoom levels, the edges of the squares will not fall precisely on a pixel boundary. Due to the way antialiasing works, gaps appear in between the squares, showing the color of the underlying canvas or other objects. It shimmers as the canvas is zoomed in and out.
This happens for every edge on every object, and is especially apparent where objects sit flush next to each other. The example below should be a solid color at all zoom levels. It’s an actual screen recording from another app.
Skala’s method avoids this issue completely.
![]()