Include font icons as a widget dependency
task australia Updated Sep 10, 2026 1 min read font-icons-dependency.md
You can include font icons wherever a widget is loaded by including them as a widget dependency.
Before you begin
Role required: admin or sp_admin
About this task
Note: CSS included as a widget dependency is not scoped and can disrupt other CSS on a page.
Procedure
-
In the platform UI, navigate to Service Portal > CSS and create a new style sheet.
-
Attach the font-icon set to the sp_css record you created, and use the sys_id of the attachment as the
srcfor the font icon.For example:
CSS@font-face { font-family: 'Material Icons'; font-style: normal; font-weight: 400; src: url('/828b8ca8b7033010897725cbde11a9f7.iix') format('woff2');} .material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 24px; /* Preferred icon size */ display: inline-block; line-height: 1; text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr; /* Support for all WebKit browsers. */ -webkit-font-smoothing: antialiased; /* Support for Safari and Chrome. */ text-rendering: optimizeLegibility; /* Support for Firefox. */ -moz-osx-font-smoothing: grayscale; /* Support for IE. */ font-feature-settings: 'liga';} -
Navigate to Service Portal > Dependencies and create a new dependency.
-
Attach the CSS record you created to the new dependency using the CSS Includes related list.
Parent Topic:Create a widget dependency
76 lines · 2.4 KB
---
title: Include font icons as a widget dependency
description: You can include font icons wherever a widget is loaded by including them as a widget dependency.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/platform-user-interface/service-portal/font-icons-dependency.html
release: australia
product: Service Portal
classification: service-portal
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Create a widget dependency, Developing custom widgets, Service Portal, Configure UIs and portals, Configure user experiences]
---
# Include font icons as a widget dependency
You can include font icons wherever a widget is loaded by including them as a widget dependency.
## Before you begin
Role required: admin or sp\_admin
## About this task
**Note:** CSS included as a widget dependency is not scoped and can disrupt other CSS on a page.
## Procedure
1. In the platform UI, navigate to **Service Portal** > **CSS** and create a new style sheet.
2. Attach the font-icon set to the sp\_css record you created, and use the sys\_id of the attachment as the `src` for the font icon.
For example:
```css
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url('/828b8ca8b7033010897725cbde11a9f7.iix') format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
}
```
3. Navigate to **Service Portal** > **Dependencies** and create a new dependency.
4. Attach the CSS record you created to the new dependency using the **CSS Includes** related list.
**Parent Topic:**[Create a widget dependency](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/service-portal/widget-dependencies.md)
| title | Include font icons as a widget dependency |
| description | You can include font icons wherever a widget is loaded by including them as a widget dependency. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/platform-user-interface/service-portal/font-icons-dependency.html |
| release | australia |
| product | Service Portal |
| classification | service-portal |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Create a widget dependencyDeveloping custom widgetsService PortalConfigure UIs and portalsConfigure user experiences |