Ant Design Svelte

Ant Design Concept

Ant Design helps you build consistent interfaces, from the overall page structure to the state of an individual field. Start with the user's task, then choose components and establish a visual hierarchy.

Original library ↗

Principles

Ant Design is built on natural interaction, certainty, meaningful design, and growth.

  • Natural interaction. Familiar actions, clear labels, and predictable placement make interfaces easier to learn.
  • Certainty. Solve similar problems consistently. Users should understand what is selected, what is happening, and what the result will be.
  • Meaningful design. Every element helps complete a task. Important actions stand out without competing with secondary details.
  • Growth. Support the transition from simple tasks to complex ones and provide timely feedback.

Visual language

Color communicates roles and states. Typography establishes the reading order. Grid and spacing bring elements together into clear groups.

Icons make actions and states easier to recognize; visible labels and accessible names preserve their meaning.

Shadows and layers express the relationship between pages, cards, popups, and dialogs.

Motion connects states and shows the result of an action. Transitions should keep the interface responsive and respect reduced-motion preferences.

Design tokens

Design tokens are named values in a design system for colors, sizes, spacing, typography, border radii, and shadows. For example, colorTextSecondary specifies the color of secondary text. Light and dark themes can use different values while preserving the same purpose.

Global design tokens keep components visually consistent, while component tokens customize an individual family, such as Button. Use a shared design token system for related screens. See the theme guide for configuration examples.

From tasks to components

Start with Form for data entry, Table for records, and Menu and Breadcrumb for navigation. Match similar tasks to solutions you already use.

Check the interface

Check empty data, loading, errors, long text, keyboard interaction, and narrow screens. Labels and messages should remain clear when the theme or component size changes. See the development guide for practical settings.

Adapted from the guide by Ant Design. MIT.