Skip to content
中文

Icon

This system’s own icons: 39 of them, line style, monochrome.

Demo

今日today
札记notes
我的person
文件夹folder
设置settings
搜索search
新建plus
减少minus
关闭close
编辑edit
删除trash
分享share
复制copy
下载download
上传upload
链接link
发送send
筛选filter
更多more
向左chevron-left
向右chevron-right
向下chevron-down
向上chevron-up
提示info
成功success
提醒warning
出错error
日历calendar
时间clock
通知bell
图片image
书签bookmark
锁定lock
查看eye
昼sun
夜moon
邮件mail
印seal
首页gate
Todaytoday
Notesnotes
Personperson
Folderfolder
Settingssettings
Searchsearch
Addplus
Removeminus
Closeclose
Editedit
Deletetrash
Shareshare
Copycopy
Downloaddownload
Uploadupload
Linklink
Sendsend
Filterfilter
Moremore
Backchevron-left
Forwardchevron-right
Expandchevron-down
Collapsechevron-up
Infoinfo
Successsuccess
Warningwarning
Errorerror
Calendarcalendar
Clockclock
Notificationsbell
Imageimage
Bookmarkbookmark
Locklock
Vieweye
Daysun
Nightmoon
Mailmail
Sealseal
Homegate

Usage

In an interface, use <i class="hao-icon hao-icon--name" aria-hidden="true"></i>; the color follows the text it sits with, and hao-icon--sm is the 20px size. The same drawings also ship as SVG files in the Icons group under resources, for design files and documents.

How they’re drawn

  • A 24px grid, the drawing filling the middle 18 to 20px, with clear space on every side.
  • The stroke is 1.5px, with round caps and round joins. No fills, apart from a few solid dots.
  • Leave a breathing gap. Every closed outline holds a small opening instead of being drawn shut: the circle breaks at the upper right, the square at the lower left. It reads like the lift of the brush at the end of a stroke, and it lets the icon breathe at small sizes. This is what sets these icons apart most from other line icons.
  • Draw only the strokes that are needed. If three strokes tell it, don’t use five.

A few drawn from objects

  • Seven icons leave the common drawing for the shape of a studio object: edit is a brush (edit), the folder is a book case (folder), the image is a hanging scroll (image), notes are a thread-bound book (notes), the bookmark is a lamp (bookmark), the signature is a seal (seal), and home is a moon gate (gate).
  • The rest keep the common drawing. Search, close, the chevrons and the four states have to be recognized at a glance, and are not redrawn for character.
  • To draw another of this kind, look in the table under “Imagery”: decide what has to be said, then find an object that already means it; drop anything that can’t be read at 24px.

How to use them

  • Only two sizes: 24px and 20px. Where something larger is called for, use a vignette or the mark, not a scaled-up icon.
  • An icon never carries meaning on its own: it sits beside text, or the button carries an aria-label. The icon itself always takes aria-hidden="true".
  • Color follows the text; an icon is never colored on its own. The color of a status icon is set by the banner it sits in.
  • Each of the four states has its fixed icon: info, success, warning, error. Don’t trade them around, and don’t use other icons for states.
  • The checks inside checkboxes, chips, and toasts are the other brush form (the upward hook stroke)—part of those controls themselves, not part of this set.

Adding an icon

First look through the 39 for one that says close to the same thing. If none does, draw to the rules above—the same grid, stroke, and round caps, plus one breathing gap—then add it to the table. Don’t mix in icons from another set.

In native interfaces on Apple platforms, SF Symbols at the Regular weight can stand in; the two run close in weight.