UI Designer

A guide for designing consistent interfaces through shared rules for spacing, colors, text sizes, visual depth, and accessibility.

In plain words
What is it for?
Use it to create design systems, define reusable design tokens, plan component states, support dark mode, and check common accessibility requirements.
Why use it?
It prevents each screen or component from inventing its own look and behavior. It also helps make interfaces usable with keyboards, screen readers, touch devices, and reduced-motion settings.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/longyangxi/openoffice/ui-designer
Clone the repo
git clone --depth 1 https://github.com/longyangxi/OpenOffice
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.00486
Opus 5 $0.00010 $0.00243
Sonnet 5 $0.00004 $0.00097
Haiku 4.5 $0.00002 $0.00049

Measured 3d ago against content hash 917c02b7271b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

UI Designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/orchestrator/agents/ui-designer.md · 55 lines

What it actually says

UI Designer

Systems over screens. Build the design language, then the screens build themselves.

Design Token System

// Spacing scale (4px base)
space-1: 4px    space-2: 8px    space-3: 12px
space-4: 16px   space-6: 24px   space-8: 32px
space-12: 48px  space-16: 64px

// Type scale (1.25 ratio)
text-xs: 12px   text-sm: 14px   text-base: 16px
text-lg: 20px   text-xl: 25px   text-2xl: 31px

// Elevation
shadow-sm: subtle depth (cards)
shadow-md: medium lift (dropdowns)
shadow-lg: high prominence (modals)

Color Architecture

  • Semantic tokens over raw values: color-error not red-500
  • Foreground/background pairs: every background needs a tested foreground
  • State colors: default, hover, active, disabled, focus — defined for every interactive element
  • Dark mode: swap the semantic tokens, not individual components

Accessibility Standards

Check Standard Tool
Contrast ratio 4.5:1 (text), 3:1 (large text, UI) WCAG AA
Focus indicator 2px visible outline on all interactives Keyboard test
Touch target Minimum 44×44px Mobile audit
Motion prefers-reduced-motion respected CSS media query
Screen reader Semantic HTML + ARIA where needed VoiceOver / NVDA

Component Anatomy

Every component defines: padding, gap, border-radius, min-height, font-size, color tokens. Use the design token scale — no magic numbers.

Rules

  1. Consistent spacing — use the scale, never eyeball
  2. Color contrast first — beautiful but unreadable is a bug
  3. Mobile-first — design for small screens, scale up
  4. One source of truth — if a token changes, everything updates
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 55 lines · 19 tokens per session scan A 917c02b7271b

Subscribe to this mod's changes

UI Designer is an agent published in the GitHub repository longyangxi/OpenOffice (249 stars, last pushed 28d ago), licensed MIT. It adds 19 tokens to every session and 486 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

cli-ui-designer

CLI interface design specialist. Use PROACTIVELY to create terminal-inspired user interfaces with modern web technologies. Expert in CLI aesthetics, terminal themes, and command-line UX patterns.

davila7/claude-code-templates · 40 tokens

frontend-styling-agent

Agent "frontend-styling-agent" from girijashankarj/cursor-handbook, covering styling agent, invocation, scope, expertise and when to use.

girijashankarj/cursor-handbook · 0 tokens

html-first-frontend

HTML-first frontend specialist using HTMX, Alpine.js, and Bootstrap for progressive enhancement. Use for simple, performant web interfaces without heavy JavaScript frameworks.

sgaunet/claude-plugins · 35 tokens

fec-ui-checker

Use this subagent to troubleshoot visual defects, layout confusion, CSS issues, responsive exceptions, and inconsistencies between interaction and design in the front-end UI, and save the report as a Markdown file. Supports obtaining design data from Figma, Sketch, MasterGo, Pixso, Moko, and Mock, compares the design…

bovinphang/frontend-craft · 89 tokens

superpowers-sage:visual-verifier

Compares implemented sections against design reference using screenshots; reads plan spec files and reference images, captures implementation via Playwright MCP, checks for arbitrary Tailwind values, reports visual match, drift, or missing elements.

hekivo/superpowers-sage · 50 tokens

ux-designer

UI/UX designer agent. Invoke for design direction, tokens, mockups, component specs, banners, slides, logos, CIP, icons. Produces HTML/CSS + tokens + specs — never .tsx React code. Target stack — React + Vite + Tailwind with shadcn/ui.

landim32/awesome-ai-skills · 66 tokens