Skip to content
中文

毫Hairline

The restraint of iOS, with an East Asian sensibility.

A design system in Chinese and English, with day and night themes. It sets out rules for everything from app screens to posters.

components
60
icons
39
files
2

The three rules

Where a traditional element goes, and how much of it, comes down to these three. When you’re not sure, leave one thing out.

Read the design principles

One touch of cinnabar

Red appears once per screen: a seal, a badge, a delete button, or a stamp. Pick one of the four.

One scene per screen

Patterns, vignettes, and mountings are scenes. A screen gets one at most. Task screens get none.

Shape follows the control

Progress is a waxing moon. A check is one upward hook stroke. A control’s own shape can carry meaning, but each kind of control gets only one.

At night, a different ink.

The night theme isn’t the day theme inverted. Azurite gets lighter, cinnabar gets darker, and every color is mixed again.

See both sets of color values

Chinese and English, each set its own way.

An English interface isn’t a Chinese one with the characters swapped for letters. Titles, line height, and the signature each have their own setting. The seal stays in Chinese.

Read the rules for English interfaces

English
中文

Components

60 of them, from buttons to handscrolls. Each one is shown in Chinese and in English.

Browse components

Icons

39 icons, drawn with a 1.5px round-capped line. Every closed outline leaves a small opening, called the breathing gap.

See all icons

Color

Azurite does the work. Cinnabar marks the point. Every color has a day value and a night value.

See the color tokens

Type

Titles are set in serif, text in sans-serif. English has its own set of title styles.

See the type styles

Two files, yours to use.

One stylesheet and one script. No build tools, no framework. Swap in your own seal character, product name, and signature.

<link rel="stylesheet" href="hairline.css">

<!-- Your content -->

<script src="hairline.js"></script>
  • hairline.cssTokens and the styles for every component109 KB
  • hairline.jsBehavior for dialogs, menus, the calendar, and more34 KB