My FNZ Studio Version
The article you are currently reading is not compatible with your selected My Appway version.

Screen-Driven Model

Latest Update: 18.07.2022 |
Recipe
6

Problem

I'm using Appway 6 and would like to include icons in the CSS. Is this possible? What about icon sizing?

Solution

Yes — Icons can be used in your CSS Resources using a placeholder:

{ # Icon:my.beautiful.icon}

where my.beautiful.icon is the icon's ID. Remove the spaces around the hash sign to make this work in your app.

How do you find an icon's ID? Here's one way: Select the icon in an editor, and switch the property to a Script property. This will reveal that selected icon's ID:

Icon Sizing

You also have the option of requesting a specific icon size in your CSS:

{ # Icon:my.beautiful.icon:32}

In this example, 32 is the preferred icon size. As icons are square, "size" is both the icon's width and its height in pixels.

It's important to understand that Appway takes this value as a preferred size, not as a specific instruction. In other words, Appway will return the next-largest size icon it actually has access to.

If you request an icon of size 32 pixels, and Appway only has icons of 16, 64, 128, and 1024 pixels, Appway will return the icon of size 64 pixels. If you're requesting a size that's larger than the largest size available to Appway, Appway will return the largest size it has access to.

This means that you can't just rely on the browser's image size detection to show the icon at the desired size: You also have to manually set the size in your CSS. Otherwise, the browser will show the icon at the size Appway returns, rather than the size you requested.

© 2026 Appway AG. All Rights Reserved