2026-11-17·作者 Sijie Wang

color-discipline

Color discipline gives every color a fixed role — 60-30-10 shares, WCAG contrast, and semantic colors — so color carries meaning instead of decoration.

Color discipline means giving every color a job and refusing to add colors that have none. Color is used for content and meaning, not for decorating containers. A disciplined palette is small, role-based, and applied the same way on every screen.

Why restraint works

Fewer colors make an interface calm and professional, because the eye has less competing signal to sort through. When each color has a fixed role, the user learns the meaning once and recognizes it everywhere: the same accent always means the same action, the same red always means the same kind of problem. Consistent usage makes the product look reliable, because nothing changes meaning from one screen to the next.

GOOD: a settings page in grays and white with a single blue accent reserved for the one primary action. The user spots the action in one glance.

BAD: a rainbow dashboard where every section has its own bright color — sidebar purple, cards orange, headers teal, buttons pink. Nothing reads as important, because everything shouts.

The 60-30-10 rule

The 60-30-10 rule divides a screen into three shares: 60% main color, usually a neutral; 30% secondary color; 10% accent color. Neutrals — gray, white, black — form the base, because they carry text and structure without competing with the content. The accent is spent sparingly, so that when it appears, it is noticed.

GOOD: a reading app with a white background, gray text and dividers (the 60%), a muted secondary tone for side panels (the 30%), and one warm accent used only for the current reading position and the primary button (the 10%).

BAD: three equally strong colors split 33-33-33 across a page. With no dominant neutral base, the page has no visual hierarchy and the accent has nothing to stand out against.

Roles, not decoration

Each color has a role. Primary is the brand color and the main action. Secondary supports it. Accent highlights the single most important action. Semantic colors carry meaning: success, error, warning, info. Neutral colors carry background and text. A color is never added because a container "looks empty" — empty space is fine, and a decorative color steals attention from the colors that mean something.

GOOD: one accent color for the one primary action per screen. On a checkout screen the accent appears exactly once, on the pay button; every other button is neutral.

BAD: an accent color reused for headings, icons, borders, and footers on the same screen. By the time the user reaches the real action button, the accent no longer signals anything.

Contrast numbers: WCAG

Contrast is measured as a ratio between the lighter and darker color, from their relative luminances L1L_1 and L2L_2:

Contrast=L1+0.05L2+0.05Contrast = \frac{L_1 + 0.05}{L_2 + 0.05}

WCAG AA requires a contrast ratio of 4.5:1 for normal text and 3:1 for large text. WCAG AAA requires 7:1 for normal text and 4.5:1 for large text. The numbers exist because contrast is not a taste question: below the threshold, text is unreadable for many people and in many conditions.

GOOD: body text in dark gray on white at 7:1 or better. It stays readable in sunlight and for users with low vision.

BAD: light gray text on white at roughly 2:1 contrast. It fails WCAG AA, and it is unreadable in sunlight — the design only works in a dark room on a good screen.

Semantic and state colors

Semantic colors have fixed meanings: green means success, red means error, yellow means warning, blue means info. State colors distinguish control states: selected, active, hover, disabled, and focus. A semantic color must never be borrowed for an ordinary purpose, because the user has already learned what it means.

These meanings are conventions, not universals. In Chinese contexts red also means celebration and good fortune, and in mainland stock markets red means a price rise, green a fall — the reverse of Western markets. A red underline can also read as a teacher's correction mark. For a product with Chinese users, pair semantic colors with an icon or text so the meaning never rests on hue alone.

GOOD: red appears only on error messages and destructive actions such as Delete. The user trusts that red means "stop and check."

BAD: red used for an ordinary button, such as "See more." The user reads it as danger, hesitates, and the semantic meaning of red is weakened everywhere else in the product. This is a semantic collision.

GOOD: a disabled button is visibly muted — low contrast gray, no accent — so the user reads "unavailable" before clicking.

BAD: a disabled button that looks identical to an enabled one. The user clicks, nothing happens, and the state system has taught them nothing.

The Lucerna rule: POST solid black, GET light

In Lucerna, POST actions use solid black and GET actions use light colors. POST changes data — uploading a book mutates state — so it must stand out as a consequential action. GET only reads or navigates — switching tabs changes nothing on the server — so it stays light. The weight of the color matches the weight of the consequence: the action that cannot be undone by looking away is the one that looks heaviest.

GOOD: the "Upload book" button is solid black, while tab switches are light gray text. The user feels the difference between changing data and just looking around before they read a label.

BAD: the upload button and the tab switches share the same bright accent. Changing the library and changing the view look equally important, so the consequential action hides among the harmless ones.

Lucerna example: the reading page

On the Lucerna reading page, color roles are visible in one screen. The neutral base — white background, dark gray text, light gray dividers — carries the book itself, which is the content. A muted secondary tone marks the navigation and the reader chrome. One accent marks the current position and the single primary action. Green appears only when a save succeeds, red only when something fails. The page stays quiet so the book can be loud.

GOOD: the reader's eye goes to the text first, then to the accent marking where they are. Color serves the reading.

BAD: the same page with a colored header, a colored progress bar, colored chapter links, and a colored toolbar. The chrome competes with the book, and the reader's attention is spent on the interface instead of the text.

Checklist

  • One accent color, one primary action per screen.
  • 60% neutral base, 30% secondary, 10% accent.
  • Every color has a role; no color decorates a container.
  • Normal text meets at least 4.5:1 contrast (WCAG AA); aim for 7:1 (AAA).
  • Red means error or destructive, never ordinary. Green, yellow, and blue keep their semantic meanings too.
  • The heavier the consequence, the heavier the color: POST solid black, GET light.
關於這一條

sijie 的一條 wiki 條目。本站的 AI 以同一套語料庫為依據、以 sijie 的口吻作答,並附有指向此類條目的引用——回答會花 sijie 的錢,所以它在存取碼後等待: 輸入存取碼 →