DiceXDiceX/ Blog

Iconify icons: how to find, customise and export them with icons.dicex.me and Pixel

Search every Iconify set in one place, take an icon as a name, code or SVG file, use it through the Iconify API, and turn your own SVG or image into an Iconify-ready icon. A practical guide to icons.dicex.me and Pixel's icon studio.

4 min read

Iconify icons are icons from the many open icon sets that the Iconify project brings together under one format, each named as prefix:name (for example solar:home-2-linear). The quickest way to use them is to search all sets at once, then take the icon as a name for your code, an SVG file or an Iconify API response. DiceX's icons.dicex.me does all three, with every Iconify set plus DiceX's own; Pixel's icon studio turns your own SVG or image into an Iconify-ready icon. This guide covers both.

Find Iconify icons across every set

Open icons.dicex.me and type what you need, such as home, arrow or calendar. The search looks across every set and puts the best fit first:

  • an icon whose name equals your query comes first, then one that starts with it, then one that contains it;
  • among equals, the shorter name and DiceX's own sets come first;
  • every word you type must be in the icon's name or in its other names and categories.

To browse instead, open Sets. Each set shows its author, licence and number of icons, and you can filter by Iconify category. Inside a set, search by part of an icon's name.

Read the icon page

Each icon has its own page. There you can see it at any size and colour, and take its name, its code or its SVG file. The page also lists the same name in other sets, which is useful when you like a shape but need a different style, such as outline or filled.

Check the licence

Icon sets come from different authors under different licences. icons.dicex.me shows the author and licence on each set's page: read it before you use the icons in a product.

Export an icon as an SVG file

Every icon is also an SVG file, for an img tag, CSS, an email or a design tool. The address follows one pattern:

```
https://icons.dicex.me/solar/home-2-linear.svg?height=48&color=%23e11d48
```

Parameter

What it does

width, height

Size: a number with any unit (48, 3rem) or auto. Give one and the other follows the icon's proportions.

color

Replaces currentColor. Any CSS colour; write # as %23.

rotate

1 to 3 quarter turns, or 90deg, 180deg, 270deg.

flip

horizontal, vertical, or both separated by a comma.

download

With 1, the browser saves the file.

box

With 1, adds a transparent rectangle the size of the viewBox, for tools that do not read the viewBox.

Without parameters, the icon is one em high. In an img tag currentColor shows as black, so pass the colour you want with color.

Use Iconify icons in your code

icons.dicex.me speaks the official Iconify API, so any Iconify client works with it. With React:

```bash
npm install @iconify/react
```

```tsx
import { addAPIProvider, Icon } from "@iconify/react";

addAPIProvider("", { resources: ["https://icons.dicex.me"] });

export const Home = () => <Icon icon="solar:home-2-linear" />;
```

The empty string is the default provider. The client asks only for the icons on the page, one request per set, and the browser keeps each answer for a week. Iconify's clients for other frameworks take the same address.

The API at a glance

Path

Returns

/collections

Every set, keyed by prefix: name, author, licence, number of icons and more

/collection?prefix=dicex

The icon names of one set, by category

/search?query=home&limit=12

Icons of every set, best fit first, as prefix:name

/solar.json?icons=home-2-linear

Icon data in Iconify's JSON format

/solar/home-2-linear.svg

One icon as an SVG

Answers are open to any page (CORS *) and a plain GET is enough. Icon data and SVGs are cached for a week, lists and searches for an hour. An unknown set or icon returns 404. The documentation has a ready request under each path. For more developer material, see the developers hub.

Turn your own SVG or image into an Iconify icon

Sometimes the icon you need is your own: a product mark, a client logo, a custom glyph. Pixel's Icon studio at pixel.tools.dicex.me converts an SVG or an image into a clean, Iconify-ready icon.

  1. Drop an SVG or an image. Raster images are vectorized automatically; turn on colour vectorization to keep colours.
  2. Choose dynamic colour. With currentColor, the icon takes the colour of the text around it.
  3. Name the icon, then copy its name, copy the SVG code or download the SVG.
  4. Build a pack. Give the pack a name and a prefix, add icons, and use Export Iconify pack for an IconifyJSON file, or Download SVGs for the separate files.

An IconifyJSON pack can be served by an Iconify-compatible server or loaded by Iconify's clients, so your own icons work the same way as any other set. Like Pixel's image optimizer, the icon studio works in the browser.

DiceX's own icons

icons.dicex.me includes a set with the prefix dicex: the marks of DiceX's products and of the messengers they send through. In DiceX apps, the DiceX Design library registers icons.dicex.me as Iconify's provider when it is imported, so any icon of any set is drawn by its name. DiceX Design itself is shown on tools.dicex.me and will be installable soon.

Next step

Search for one icon you use often on icons.dicex.me, compare the same name across sets, and copy its SVG address with your brand colour. For images, read how to compress images without uploading them, and see the design tools hub for everything else.

Frequently asked questions

What is icons.dicex.me?

DiceX's icon service: a search across Iconify's sets plus DiceX's own set, with an Iconify-compatible API. The DiceX panels take their icons from it.

Can I use icons.dicex.me with Iconify's official React component?

Yes. Install @iconify/react, register the server's address with addAPIProvider, and draw any icon by its prefix and name, such as solar:home-2-linear.

How do I download an icon as an SVG with my own colour?

Open the icon's SVG address and add parameters: height for the size, color for the colour (write # as %23), and download=1 to save it as a file.

Can I turn my own logo into an Iconify icon?

Yes. Pixel's icon studio takes an SVG or an image (raster images are vectorized), and exports SVG files or an Iconify pack in IconifyJSON with your own prefix.

Are all icons free to use in any project?

Each set has its own author and licence, which icons.dicex.me shows on the set's page. Check the licence of the set before you use its icons.

Guides

Related articles