ui-modern

ui-modern is a command for Claude Code from HermeticOrmus/LibreUIUX-Claude-Code. It costs 12 tokens per session (1,681 once invoked), scanned A, original, MIT.

A command for generating a UI component such as a button, card, form, or navigation panel, using an existing design system when the project has one.

In plain words
What is it for?
It helps create components with spacing, colors, rounded corners, shadows, transitions, hover behavior, focus states, and active states.
Why use it?
It gives the agent concrete guidance for checking project conventions and applying consistent visual, interactive, and accessibility-related states.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

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 commands/hermeticormus/libreuiux-claude-code/ui-modern
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreUIUX-Claude-Code

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-modern

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libreuiux-claude-code/ui-modern.svg)](https://agentmods.dev/commands/hermeticormus/libreuiux-claude-code/ui-modern)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libreuiux-claude-code/ui-modern"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreuiux-claude-code/ui-modern.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,681 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.1 $0.00012 $0.01681
Opus 5 $0.00006 $0.00840
Sonnet 5 $0.00002 $0.00336
Haiku 4.5 $0.00001 $0.00168

Measured 6d ago against content hash 5fd6884bafb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ui-modern 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 6d 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.

.claude/commands/ui-modern.md · 277 lines

How it starts

The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Modern UI Component Generator

Generate modern, production-ready UI components that follow current design trends and best practices.

Usage

/ui-modern [component-type] [variant]

Examples:

  • /ui-modern button
  • /ui-modern card pricing
  • /ui-modern form contact
  • /ui-modern nav sidebar

Instructions for Claude

When the user runs /ui-modern [component], create a modern component with these requirements:

1. Design System Compliance

Check for existing design system:

  • Look for CLAUDE.md, DESIGN_SYSTEM.md, or similar
  • If found, use those tokens and conventions
  • If not found, use modern defaults below

2. Modern Design Patterns (2025-2026)

Apply current design trends:

Visual Style:

  • Clean, minimal aesthetics
  • Generous whitespace
  • Subtle shadows (shadow-lg, shadow-xl)
  • Smooth rounded corners (rounded-lg to rounded-2xl)
  • Modern color palette (vibrant but professional)

Interactive Elements:

  • Smooth transitions (duration-200 to duration-300)
  • Hover effects (scale, shadow, color change)
  • Clear focus states (ring-4 with brand color)
  • Active states (slight scale-down: scale-98)

Modern Patterns to Consider:

  • Glassmorphism (backdrop-blur + transparency) for overlays
  • Subtle gradients (not excessive)
  • Micro-interactions
  • Smooth animations
  • Card-based layouts

3. Component-Specific Guidelines

Buttons
Modern button should include:
- Primary: bg-[brand] with hover state darker
- Shadow: shadow-md hover:shadow-lg
- Rounded: rounded-lg
- Padding: px-6 py-3 (comfortable click target)
- Transition: transition-all duration-200
- Focus: ring-4 ring-[brand]/20
- Active: active:scale-98
- Text: font-semibold
Cards
Modern card should include:
- Background: bg-white
- Shadow: shadow-lg hover:shadow-xl
- Rounded: rounded-xl or rounded-2xl
- Padding: p-6 or p-8
- Hover: subtle lift (hover:-translate-y-1)
- Transition: transition-all duration-300
- Overflow: overflow-hidden (for images)

Read the full file on GitHub · 277 lines

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. 6d ago First seen · 277 lines · 12 tokens per session scan A 5fd6884bafb4

Subscribe to this mod's changes

ui-modern is a command published in the GitHub repository HermeticOrmus/LibreUIUX-Claude-Code (101 stars, last pushed 3mo ago), licensed MIT. It adds 12 tokens to every session and 1,681 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.