Overview
Overview
Icons are visual cues that support content, communicate actions and indicate status. When we use icons consistently, people can scan interfaces more easily and understand what they can do.
The Queensland Government Design System uses Google Material Symbols as the foundation of its icon library. We chose material symbols because they’re simple and recognisable. We use the rounded style with a 300 font weight, an optical size of 40 px and no fill to create a consistent thin line appearance.
We supply icons used in Design System components as SVGs through our icon sprite sheet. Designers can also find them in the QGDS UI kit.
Using a consistent set of functional, alert and descriptive icons across Queensland Government websites helps people recognise familiar actions and information. All brands must use the same functional and alert icons to maintain consistency across services.
Functional icons
Function icons are those that form part of our components and are the key functionality of the Design System. Functional icons are those that indicate actions and activities. These are reserved icons that need to be used with caution outside of their existing patterns and components.
Functional icons are implemented as SVGs and a sprite sheet. this is done in favour of using an icon font because it improves the performance, scalability, maintainability, and accessibility of your website or application.
Below is sample of function icons. See the implementation tab for the full list.
<ul class="qld__link-list qld__link-list--inline">
<li><a href="#" class="qld__text-link">
<svg class="qld__icon qld__icon--lg qld__icon--lead" role="img">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#menu"></use>
</svg>Menu</a>
</li>
<li><a href="#" class="qld__text-link">
<svg class="qld__icon qld__icon--lg qld__icon--lead" role="img">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#home"></use>
</svg>Home</a>
</li>
<li><a href="#" class="qld__text-link">
<svg class="qld__icon qld__icon--lg qld__icon--lead" role="img">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#close"></use>
</svg>Close</a>
</li>
<li><a href="#" class="qld__text-link">
<svg class="qld__icon qld__icon--lg qld__icon--lead" role="img">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#chevron-left"></use>
</svg>Chevron feft</a>
</li>
<li><a href="#" class="qld__text-link">
<svg class="qld__icon qld__icon--lg qld__icon--lead" role="img">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#arrow-right"></use>
</svg>Arrow right</a>
</li>
</ul>
Preset sizes
We have 6 preset sizes for icons ranging from extra small (xs) to extra extra large (xxl) and a dedicated feature size for large or detailed icons. Feature icons use a background shade to help make it stand out from other elements on the page.
This size range allows for flexibility and adaptability in various design contexts while maintaining visual harmony and balance. These predefined sizes ensure that icons are proportionate and legible, enhancing their effectiveness and the overall aesthetic of the site.
<ul class="qld__link-list qld__link-list--inline">
<li>
<svg class="qld__icon qld__icon--sm" role="img" aria-label="Profile">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#profile"></use>
</svg>
</li>
<li>
<svg class="qld__icon qld__icon--md" role="img" aria-label="Profile">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#profile"></use>
</svg>
</li>
<li>
<svg class="qld__icon qld__icon--lg" role="img" aria-label="Profile">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#profile"></use>
</svg>
</li>
<li>
<svg class="qld__icon qld__icon--xl" role="img" aria-label="Profile">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#profile"></use>
</svg>
</li>
<li>
<svg class="qld__icon qld__icon--xxl" role="img" aria-label="Profile">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#profile"></use>
</svg>
</li>
<li>
<svg class="qld__icon qld__icon--feature-lg" role="img" aria-label="Profile">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#profile"></use>
</svg>
</li>
</ul>
Colour
Icons used for actions
Icons that are clickable should use secondary action colour. This allows them to be consistent with other action items on the site but differentiated from links and link text which ordinarily are the same as the primary action colour.
Decorative icons
Icons that are used to help convey information but aren't associated with actions are by default set to use the text-heading colour. This makes them stand out from content on the page but not in any way be clickable. As an alternative users can override these icons and use the sites brand accent colour, but care should be taken so that this doesn't make these icons appear interactive.
Alert icons
Icons used to represent alert information should use the appropriate colour, for example an icon used to represent an error should use the red error colour.
<ul class="qld__link-list">
<li>
<a href="#"><svg class="qld__icon qld__icon--xl qld__icon--lead" role="img" aria-label="Profile">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#profile"></use>
</svg>Icon associated with an action</a>
</li>
<li>
<svg class="qld__icon qld__icon--xl qld__icon--lead" role="img" aria-label="Chart">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#chart"></use>
</svg>Decorative or descriptive icon
</li>
<li>
<svg class="qld__icon qld__icon--xl qld__icon--lead" role="img" aria-label="Warning">
<use href="./?a=169317:dist/mysource_files/img/QLD-icons.svg#status-warning"></use>
</svg>Warning icon
</li>
</ul>
Usage guidelines
It's crucial that each icon serves a singular, functional purpose consistently across a site or service, reinforcing user understanding and interaction.
When to use icons
To aid understanding: Icons can act as visual aids to help users understand concepts, actions, or feedback. They can simplify complex ideas and make them easier to grasp.
To enhance navigation: Icons can be used in primary navigation to support way-finding. They can help users find their way around a website or application.
To draw attention: Icons can be used to draw attention to specific areas, actions, or information. They can be used in banners to highlight specific themes, such as announcements or errors.
To add clarity: Icons can be used inline with text to add clarity. They can help to clarify the content by providing a visual cue and improve the legibility and scalability of the user interface.
To represent actions, objects, or concepts: Icons can represent specific actions, objects, or concepts. They should be used when they can clearly represent a specific action or concept.
When to avoid icons
Avoid ambiguity: If the meaning of an icon is ambiguous by itself, it needs accompanying text. Icons shouldn't be used if they can lead to confusion or misinterpretation.
Avoid overuse: Overuse of icons can result in user interfaces that are visually overwhelming or distracting. Icons should be used sparingly and only when they add value to the user experience.
Don't use icons to replace text: Icons shouldn't be used to replace the name of a product or feature. The purpose of an icon is to clarify the content, not to replace it.
Compensating for page structure. Icons can't solve problems with a poorly organised page. They aren't a quick fix for a confusing layout or hard-to-find content. Before using an icon to highlight something important, make sure the content is well-structured and easy to find.
How to use
The following are some general best practice guidlines for using icons:
- sites benefit from all using the same default functional and alert icons
- while it is recommend that Material Symbols be used for descriptive icons, you may choose alternative icons if an appropriate option is not available. When adding custom fonts though try to ensure they match the same visual weight and appearance as other icons on the site
- avoid having icons alone without text this is because they may be interpreted differently by different users
- use the same icons consistently across your site or app to maintain a familiar and intuitive user experience
- avoid redefining established icons. Icons that have been used for a long time worldwide have a higher chance of being recognise and understood quickly. Don't reinvent an icon that's already been accepted as the convention.