Purpose and identity
Scope: every Mpalo surface, in every medium, at every scale.
Mpalo is one institution with five public expressions. A person should recognize the same judgment, restraint, and clarity on a marketing page, a developer reference, an API contract, an account screen, and the Mind Platform. The system achieves that through shared tokens, shared components, and a shared voice, not through a repeated slogan or a decorative motif.
Rule. The brand is the institution's judgment made visible. It is not a skin applied after the work is finished, and it is not a performance of depth through decoration.
Do: make the institution legible: what it believes, what it builds, what it will not do, and what a person can decide next.
Do not: add a motif, a gradient, a slogan, or a warm sentence to make a surface feel more institutional.
Eleven principles
These apply to every surface. A surface chooses its ramp and type pairing, not whether to follow them.
- One ramp per layer
- The surface is the hierarchy. The page is step 1, a card is step 2, a button or field is step 3, hover is step 4, and selected is step 5. The header is step 1 and the footer is step 0. Overlays sit two steps above the surface beneath them. Nothing skips a step, and nesting stops at step 7.
- Solid fills
- Buttons, badges, chips, fields, and cards are solid fills. There are no borders, no alpha tints, no left-border accents, and no opacity variants. The modal scrim and the media player's controls and caption are the only translucent layers; the developer navigation keeps a scroll-driven blur as a documented exception.
- One radius
- The system uses 8px. Nested shapes use the outer radius minus the inset, with a floor of 0. Corners are continuous. The avatar is the only circle.
- Focus is visible
- Keyboard focus is a 2px outline in the focus color with a 2px offset. Fields use a 0 offset. Focus is never removed to make a surface look quieter.
- Proximity carries grouping
- Items inside a group sit 8px apart. Groups sit 32px apart. There are no nested cards and no divider rules. Space does the work that a line would otherwise do.
- Documentation rhythm
- Documentation follows the API scale. The article heading uses 32px top and 40px bottom padding with a 32px gap. Sections use 32px padding and a 32px gap. A title sits 24px above its lead. A lead sits 20px above the next block. Body paragraphs sit 24px apart. A section heading sits 16px above its description and 24px above the first paragraph. A subheading sits 8px above its text. Body line height is 1.625. Callouts use 24px margin and 16px by 20px padding. Tables use 20px margin.
- Motion is linear and short
- Transitions use 0.15s, 0.2s, or 0.3s and linear timing. Animate color, outline, transform, and opacity. Motion shows state; it does not perform personality. Reduced motion stops it, but the state signal remains.
- Type carries authority
- Radley is the display face on main, dev, and api. Helvetica is the body and interface face on those surfaces. Mind uses Eina for display and ASM for body and interface. Welcome uses Helvetica only. Body tracking is -0.03em. The scale runs from 12px to 48px; do not invent intermediate sizes.
- One icon set and one logo set
- Icons ship from the Mpalo Symbols font, filled with currentColor. The canonical names and drawings live in
design/icons/manifest.json. Logos come from the canonical files. Do not add a second icon set, an emoji, or a logo variant outside the documented set. - Dark is deliberate
- main, dev, and api are dark only. mind and welcome have a light ramp where the page is the darkest step and each layer lightens toward white. A surface does not opt into the other mode.
- Status is never color alone
- Pair every state with a word. Errors report what was observed and what to do next. Consequential actions name the real operation and its consequence.
Applying the principles
The principle answers the question before a local pattern is invented.
| Do | Do not |
|---|---|
| Use the next surface step for a card on a page. | Add a border to separate a card from the page. |
| Use 8px of space within a group and 32px between groups. | Add a divider rule between groups. |
| Use one 8px radius, including on nested shapes at the inset radius. | Use a pill for a status chip or a 6px corner for a card. |
| Pair a status color with its word. | Let a green badge carry "active" on its own. |
| Use the canonical logo files. | Redraw, recolor, or add a logo variant. |
| Use the named icon subject from the manifest. | Use an emoji or a second icon family. |
| Let the work carry the surface. | Add a decorative motif to signal institutional depth. |
Why. A local exception becomes a second design system. The next person copies the exception, and the institution loses the ability to change one value in one place.
Decision order
Resolve a design question in a fixed order so the answer stays the same across surfaces.
- Start with the person and the decision in front of them. Name the action, the consequence, and the next step before choosing a component.
- Apply the rule. If the surface ramp, the focus ring, the radius, or the motion rule answers the question, use the answer. Do not invent a local exception.
- Choose the surface. A surface sets
data-surfaceand, for Mind and welcome,data-theme. It does not redefine tokens. - Use the component. If a shared component covers the need, use it. If the component is wrong, fix the component. Do not restyle it in the page.
- Write one canonical explanation. Link related pages instead of repeating the explanation in a second place.
- Review for authenticity, intention, and a unified world. Ask whether the result could belong to another institution. If it could, it is not finished.
A token change is a system change. Edit the token source, build, run the token checks, and preview every surface before production. Do not fork a value into a page.
Enforcement
A visual rule that is not checked will be reintroduced.
- Run
npm run check:design-rulesafter changing tokens, shared components, or developer styles. It rejects borders, non-token radius, unapproved shadows, alpha values, hard-coded hex values, and easing curves. - Run
npm run check:design-runtimefor runtime design surfaces and control contrast. - Build the developer site and preview the page at desktop and mobile widths.
- Check keyboard focus, reduced motion, selected states, and overlay surfaces.
- Do not ship a visual change without a preview. Do not change a surface that serves production traffic without one.
Owner: the Design owner. Review: before publication. Authority: internal/doctrine/0-5-brand-identity-and-brand-design.md for brand decisions, and the design-system documents for their surfaces.