Skip to content

Icons โ€‹

Slidev allows you to have access to virtually all open-source icon sets directly in your markdown after installing the corresponding package. Powered by unplugin-icons and Iconify.

The naming follows Iconify's convention of {collection-name}-{icon-name}. For example:

bash
pnpm add @iconify-json/[the-collection-you-want]
bash
npm install @iconify-json/[the-collection-you-want]
bash
yarn add @iconify-json/[the-collection-you-want]

We use Iconify as our data source of icons. You need to install the corresponding icon-set in dependencies by following the @iconify-json/* pattern. For example, @iconify-json/mdi for Material Design Icons, @iconify-json/tabler for Tabler. You can refer to Icรดnes or Iconify for all the collections available.

Styling Icons โ€‹

You can style the icons just like other HTML elements. For example:

html
<uim-rocket />
<uim-rocket class="text-3xl text-red-400 mx-2" />
<uim-rocket class="text-3xl text-orange-400 animate-ping" />

Released under the MIT License.