Updated: June 22, 2022

Design Stencils for Figma (Mac and Windows)

Intro

You can use this stencil set to create high-fidelity SAP Fiori designs using Figma.

For more information about SAP Fiori design stencils in general, see Design Stencils.

For information on how to use the Figma stencils with Sketch, Axure RP, or Adobe XD, see Using Figma Stencils with Other Design Tools.

Prerequisites

To use the SAP Fiori stencils, you need to install SAP’s 72 font family and the SAP icon font on your machine.

Information
Depending on your operating system, we recommend uninstalling any previous SAP icon font version and rebooting your system before installing the latest version.

Download and Installation



Information
We’re currently working on a new stencil library for the upcoming Horizon visual theme. The Quartz Light stencil library will remain available but is no longer being updated. For the latest SAPUI5 control implementations, check out the samples.
  1. Install the Figma software here: www.figma.com
  2. Download the latest Figma SAP Fiori Design Stencils.
  3. Install font 72*.
    1. Choose the folder Font 72 /  72_Desktop.
    2. Double-click each .ttf file and click Install.
  4. Install the SAP icon font.
    1. Remove any former versions of the SAP icon font.
    2. Choose the folder Icon Fonts / …final icon package / Fonts
    3. Double-click the SAP-icons.ttf file and click Install.
  5. Optional: Install the SAP Business Suite icon font.
    1. Remove any former versions of the SAP Business Suite icon font.
    2. Choose the folder Icon Fonts / …final icon package / Fonts
    3. Double-click the BusinessSuiteInAppSymbols.ttf file and click Install.

*The 72 font download is made available under the Apache 2.0 license.

Activating the Figma Library

The procedure for using the Figma library depends your Figma license plan. Follow the link for your license plan below.

Option A: With a Figma Professional Plan

Information
From stencil version 1.98, there are two separate libraries per stencil version: a compact library and a cozy library.

If you already use one of the older Fiori Web Stencil libraries (v1.80 – v1.96), please use the swap library feature to swap the old library to one of the new files – either compact or cozy, depending on the form factor you are using in your file. If you are using both form factors in one design file, please swap to the library for the most-used form factor.

With this, most components in your file will be swapped. You’ll be able to update any remaining components manually later on using the swap instance function for your file.

  1. Import the two .fig files Fiori Web Stencils Compact and Fiori Web Stencils Cozy as well as the .fig file Quartz Light Colors MASTER into Figma and publish them as libraries.
  1. Create a new design file and activate the published Fiori Web Stencil libraries and Quartz Light Colors library in the asset panel on the left. To do this, click the library icon on the top right of the asset panel and activate the libraries using the switch in the dialog.
  1. After activating a library, you’ll see all the activated libraries as a list within the asset panel on the left. From there, you can easily drag and drop the stencil you need to your canvas.

Option B: Without a Figma Professional Plan

  1. Import the two .fig files Fiori Web Stencils Compact and Fiori Web Stencils Cozy as well as the .fig file Quartz Light Colors MASTER [Resource] into Figma and publish the styles of the Quartz Light Colors MASTER [Resource].
  1. Create a new design file and activate the published Quartz Light Color library in the asset panel on the left. To do this, click the library icon on the top right of the left side panel and activate the library using the switch in the dialog.
  1. You are now able to copy and paste the stencil you need from the two Fiori Web Stencil files into your project file and change the styles of your own elements to the Figma Quartz Light Color Styles via the design panel on the right.

Top Tips

Variants

Check out the variants section within the design panel on the right to adapt the stencil as needed. Possible settings include:

  • Content Density
  • Size
  • Visual State
  • Value State
  • Actions

For more information, see Create and use variants on the Figma website.

Swap Instances (Figma Professional Plan Only)

You can easily switch between instances of a component (for example, to switch a “button” component to a “menu button” component). You do this via the instance menu in the design panel on the right.

Map Components to Other Libraries (Figma Professional Plan Only)

If a component has the same name in different libraries, you can swap instances manually (in other words, map components to the components of a different library). For example, you can swap a button from an unavailable library (e.g. “Fiori Web Stencils v1.96”) to a button from the library “Fiori Web Stencils v1.98 Compact“. Simply choose the component you want to swap and search for the same component name within the Swap Instance popup.

Important: If the component doesn’t seem to be available any more, please do not click on “Restore Component”.

For more information, see Swap between component instances in a file on the Figma website.

Swap Library (Figma Professional Plan Only)

You can use the “Swap library” function to update all instances in your file (for example, to update your components from an older stencil version to the latest version).

Procedure:

  1. In the asset pane, open the team library dialog.
  2. Choose the library you activated for the file by clicking on the line item.
  3. Click the Swap library button.
  4. Choose the library you want to use to update your components.
  5. Confirm by clicking the Swap library button again.

Whenever the selected target library matches the style and component naming, it is applied automatically.

Figma doesn’t swap unmatched assets. These stay connected to the original library. If needed, you can swap individual instances manually using the swap instances function.

For more information, see Swap style and component libraries on the Figma website.

Using the Style Library

You can use the Quartz Light Colors by activating the Quartz Light Colors MASTER [Resource] library. You’ll find the menu in the right-hand panel within the “Fill”, “Stroke”, and “Effects” sections. The styles are structured in groups, such as “Reference”, “Main UI Colors”, and many more.

Auto Layout

Auto layout is a feature that enables a container to adapt dynamically to the elements inside it.

  • Everything adjusts automatically when an element within the component is shown or hidden.
  • If a text is changed within the component, everything adjusts automatically to the new text length.
  • The padding is managed dynamically and always remains correct.

You can show/hide elements within components easily using the layer panel on the left.

For more information, see Create dynamic designs with Auto layout on the Figma website.

How to Use SAP Icons

You can copy and paste any SAP icon from the Icon Explorer to Figma:

  1. Make sure that you have installed the icon font you want to use properly. For more information, see Download Icon Font.
  2. In the Icon Explorer, select the icon you want to use.
  3. Select the relevant icon font in the Figma Text element (for example, SAP-icons).
  4. In the Copy section at the top of the right-hand panel, copy the icon to the clipboard (copy the second item with the icon and icon name).
  5. In Figma, simply paste the icon from the clipboard.

Note: If you switch between different icon fonts, you may need to restart Figma for the new setting in the Text element to take effect.

Related Links