Iconography
Iconography in Quantum Design System plays an essential role. It helps to create visual indicators and enhance readability of components, and guide users through a better understanding of actions when used correctly.
- Quantum Design System uses Material Icons.
- For Thales complex systems and specific needs, we also provide a Business Icon library.
Learn more about Quantum iconography and the related design decisions here
Material Icons
Install
The Quantum Design System was designed with the Material icons in mind. The Material icons will not automatically be loaded by the Quantum Design System. The developer is responsible for loading all icons used in their application.
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp"
rel="stylesheet"
/>
Usage
You can display an icon using the .qtm-icon
class combined with the material-icons-{variant}
class.
For custom icon, you can wrap your asset with the Quantum icon class.
<div>
Icon with filled variant by default
<i class="qtm-icon material-icons">account_circle</i>
Icon with outlined variant
<i class="qtm-icon material-icons-outlined">account_circle</i>
Icon with sharp variant
<i class="qtm-icon material-icons-sharp">account_circle</i>
Icon with two-tone variant
<i class="qtm-icon material-icons-two-tone">account_circle</i>
Icon with round variant
<i class="qtm-icon material-icons-round">account_circle</i>
<i class="qtm-icon"><img src="/img/figma_logo.svg" alt="figma" /></i>
</div>
Quantum Business icons
In Thales, we understand the importance of having a diverse and comprehensive set of business icons that cater to the unique needs of different businesses. However, there may be instances where the Material design library does not include icons that are suitable for specific use cases. That's where the Quantum Business icon library comes in. It's a collaborative platform that enables Thales designers to create and share icons in Figma, providing an efficient process for designers/developers to access these icons.
Install
npm i @qtm/icons
or
yarn add @qtm/icons
Usage
You can display an icon using the .qtm-icon
class combined with the .qtm-{icon_name}
class.
Example:
<i class="qtm-icon qtm-aircraft"></i>
Find below the list of the supported business icons.
Icon Size
You can change size of .qtm-icon
element by just adding .qtm-icon-{size}
.
- ClassProperties
- qtm-icon-xsmall
--icon-size-value: var(--spacing-s);
font-size: var(--icon-size-value);
width: var(--icon-size-value);
height: var(--icon-size-value);
- qtm-icon-small
--icon-size-value: var(--spacing-m);
font-size: var(--icon-size-value);
width: var(--icon-size-value);
height: var(--icon-size-value);
- qtm-icon-medium
--icon-size-value: 1.25rem;
font-size: var(--icon-size-value);
width: var(--icon-size-value);
height: var(--icon-size-value);
- qtm-icon-large
--icon-size-value: var(--spacing-l);
font-size: var(--icon-size-value);
width: var(--icon-size-value);
height: var(--icon-size-value);
- qtm-icon-xlarge
--icon-size-value: var(--spacing-xl);
font-size: var(--icon-size-value);
width: var(--icon-size-value);
height: var(--icon-size-value);
- qtm-icon-xxlarge
--icon-size-value: var(--spacing-3xl);
font-size: var(--icon-size-value);
width: var(--icon-size-value);
height: var(--icon-size-value);
With Material Icons
<i class="qtm-icon material-icons qtm-icon-xsmall">account_circle</i>
<i class="qtm-icon material-icons qtm-icon-small">account_circle</i>
<i class="qtm-icon material-icons qtm-icon-medium">account_circle</i>
<i class="qtm-icon material-icons qtm-icon-large">account_circle</i>
<i class="qtm-icon material-icons qtm-icon-xlarge">account_circle</i>
<i class="qtm-icon material-icons qtm-icon-xxlarge">account_circle</i>
With Business Icons
<i class="qtm-icon qtm-aircraft qtm-icon-xsmall"></i>
<i class="qtm-icon qtm-aircraft qtm-icon-small"></i>
<i class="qtm-icon qtm-aircraft qtm-icon-medium"></i>
<i class="qtm-icon qtm-aircraft qtm-icon-large"></i>
<i class="qtm-icon qtm-aircraft qtm-icon-xlarge"></i>
<i class="qtm-icon qtm-aircraft qtm-icon-xxlarge"></i>