You can apply a range of different fills to layers including a solid color, different types of gradients, as well as image fills. To switch between the different types of fills, click the Fill color button, then choose one of the five icons at the top of the popover.
From left to right the fill options are:
- Solid Fill
- Linear Gradient
- Radial Gradient
- Angular Gradient
- Image Fill
Note: You can quickly toggle the visibility of all fills from a layer by pressing the F key.
To add a new Fill attribute to a layer, just click the add button in the Fills section title. A layer can have any number of fills which will be stacked on top of each other from bottom to top. Each fill will have its own blend mode, which can be adjusted next to the color button and you can adjust opacity between them too.
In between the color, and opacity fields are options related to the type of fill you are using. Solid colors will display the HEX value directly in the Inspector, easy to copy and paste, without having to reveal the color popover, whilst gradient and image fill options allow you adjust their type.
Note: that if the top-most fill is completely opaque you won’t be able to see the fills under it, but Sketch will still display them.
Clicking the Image Fill button will allow you to insert a custom image as a fill, or you can choose one of the available presets. You can set the image to either Fill, Fit, Stretch, or Tile from the pop-up menu.
- Fill: This adjusts the size of the image to fit the layer’s width.
- Fit: This adjusts the size of the image to fit the layer’s height.
- Stretch: The image will be stretched to fit the layer’s height and width ratio.
- Tile: This will keep the image at its original size, but tile it to fit the layer. Its size can be manually adjusted. Useful for creating tiled patterns.
To the right of the ‘Images’ title, there is the option to view the most frequently used images in your document — ideal for quickly applying an image, that’s already in your design, to your layer.
With a fill applied to a layer, you’ll see a Settings button in the Fills section title. Here you can adjust something called the winding rule. This option allows you to define how to fill complex shapes with overlapping paths.