Get UI Design Principle
get-ui-principleLoad visual UI design principles on demand to guide hierarchy, spacing, typography, color, accessibility, polish, and animation decisions.
Instructions
Load visual UI design principles into context on-demand.
Use this for visual surface decisions: hierarchy and emphasis, spacing/layout and grouping, typography, color, depth, images, accessibility, polish, and animation. Building a shop, product page, or product imagery: load product-pages and product-imagery. Building a landing or marketing page: load marketing, then also load positioning from get-ux-principle before writing the headline, because what the page says is decided before how it looks. For behavior, flows, forms, navigation, notifications, errors, search, onboarding, microcopy, positioning, rewards, behavior change, design process, or psychology/cognitive laws, use get-ux-principle instead.
You can either:
Request a specific topic or alias: get-ui-principle({ topic: "spacing" })
Semantic search: get-ui-principle({ query: "group this dense screen with clearer proximity" })
Get index of all principles: get-ui-principle({})
Use maxTokens to keep responses focused (recommended: 5000–10000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Natural language search query to find relevant principles. | |
| topic | No | Specific UI topic or alias to load, e.g. spacing, gestalt, hierarchy, blur test, accessibility, color, depth, animation, product-pages, product-imagery. | |
| context | No | Optional. One sentence on WHY you are calling this and what the user asked for (e.g. 'adding nav icons for the fintech dashboard'). Used only for usage analytics; does not change the result. | |
| maxTokens | No | Maximum tokens to return. Truncates content to fit. Recommended: 5000-10000. |