Basic sizes, rules for building and using icons. Icons can be outlined or bold, it all depends on the specific case. But, in most cases, we use outline icons.
Usage
vue
<script setup>
import { AcvIcon } from '@acronis-platform/ui-component-library';
// or
import Icon from '@/components/icon/icon.vue';
</script>
<template>
<AcvIcon
name="info--16"
color="brand-primary"
/>
<Icon name="chevron-up--16" />
</template>
Basic usage
All icons in Acronis UI Component Library will, henceforth, be implemented as SVG icons.
TIP
The naming convention
acv-icon
- the base class for the iconacv-icon--size
- the size of the iconacv-icon--color
- the color of the iconacv-icon--bold
- the bold icon
Source code
vue
<script setup>
import Button from '@/components/button/button.vue';
import Icon from '@/components/icon/icon.vue';
</script>
<template>
<PreviewGroup class="qa-icon-basic">
<Preview
name="Ghost button"
span="6"
>
<Button variant="ghost">
<Icon name="Workstation16" />
</Button>
</Preview>
<Preview
name="Secondary button"
span="6"
>
<Button
type="secondary"
icon="Workstations32"
>
Button
</Button>
</Preview>
<Preview
name="Primary button"
span="6"
>
<Button icon="Sync16">
Button
</Button>
</Preview>
<Preview
name="Multicolor icon"
span="6"
>
<Icon name="Sync16" />
</Preview>
<Preview
name="Legacy"
span="6"
>
<Icon
name="workstations--32"
color="brand-primary"
legacy
/>
</Preview>
</PreviewGroup>
</template>
Monochrome icons
States
Disabled
Sizes
Alignment
acv-text--display-large
acv-text--display-medium
acv-text--display-regular
acv-text--HEADING
acv-text--strong
acv-text--subheading
acv-text--body-24
acv-text--ACCENT
Multicolor icons
Tree-shaking
The icons are tree-shakable, so only the icons that are used in the project will be included in the final bundle.
vue
<script setup>
// Tree-shaking import
import { IconSettings16 } from '@acronis-platform/icons/settings';
</script>
<template>
<IconSettings16 />
</template>