Metadata conventions
Categories and tags: how every icon is classified and made findable, with the full category list and guidance for writing good tags.
Last updated
Each icon has two pieces of metadata, both written as attributes on the <svg> root: one category and a list of tags.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256"
data-category="Interface" data-tags="home,house,building,residence">
Category
A category is a stable subject area for browsing. Every icon has exactly one, from this list. [lint meta]
- Brands652
- Interface489
- Design346
- Devices331
- Commerce300
- Editor277
- Arrows276
- Media273
- Files247
- Maps238
- Objects211
- Communication194
- Development182
- Home181
- People177
- Food172
- Letters & Numbers154
- Transport141
- Sports135
- Security123
- Health122
- Science119
- Symbols110
- Time107
- Nature98
- Business94
- Weather79
- Charts64
- Emoji61
- Education55
- Animals46
How to choose:
- Pick the category where someone would look for the icon first.
- A variant (
bell-slash,file-plus) goes where its base icon is. - A brand logo is always in Brands.
- Do not make a new category for one icon. New categories need a reason and a set: several icons, and a place people would look.
Tags
Tags make an icon findable by words that are not in its name. Search matches the name and the tags.
An icon must have between 3 and 12 tags, all lowercase, no duplicates, no double spaces. [lint meta, lint tags]
What makes a good tag
- Synonyms.
houseis taggedhome,building,residence. - The action or the use.
trashis alsodelete,remove,garbage. - Related terms people type.
gearis alsosettings,preferences,cog. - Common alternative spellings.
favouriteandfavorite. - The brand or product, for logos, as people write it.
What to leave out
- The name itself: it is searched already.
- Style words (
outline,bold,filled,thin): the weight is chosen elsewhere. - Vague words (
icon,symbol,graphic,ui). - Tags that belong to another concept. If people searching it would be surprised, remove it.
- A pile of loosely related words. Twelve tags is the limit; a handful of good ones is better.
data-tags="trash,delete,remove,garbage,bin,discard" good
data-tags="trash,icon,thin,ui,graphic,thing" not useful
Write down what it is for
Tags are the easiest way to record an icon’s use cases. If a concept could be used in several places, say so in the tags (notification, alert, reminder for bell), so that someone searching for the job finds the icon even if they do not know its name.
Checking
uv run scripts/icon.py check <name> reports a category not on the list, too few or too many tags, and bad tags.