# Classic UI Design Principles

> Turn vague UI requests ("modern", "clean", "premium") into measurable design decisions across Components, Pages, and Multi-Screen Apps — with WCAG AA contrast (oklch/Tailwind v4), 9-state coverage, GPU-composited motion, and automated static + Playwright visual checks.

Classic UI Design Principles is a free AI agent skill on Agensi by Hamza Malik YILDIZ, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Hamza Malik YILDIZ](https://www.agensi.io/creators/hamza-malik-yildiz)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/classic-ui-design-principles
- Tags: ui-ux, web-design, tailwind-css, shadcn-ui, accessibility, ui-design, design-system, wcag

## About this skill

Turn vague UI adjectives ("modern", "clean", "fun", "premium") into measurable design and engineering decisions — without turning every app into the same flat grey template.

### What It Does

`classic-ui-design-principles` gives your AI coding agent a structured workflow from single-component tweaks to full multi-screen web applications:

- **3 Adaptive Modes:**
  - **Component Mode:** Fast path for buttons, modals, forms, and cards with strict accessibility and spacing rules.
  - **Page Mode:** Landings, dashboards, and editorial pages with a clear mood profile, signature visual element, and hierarchy.
  - **App Mode:** Multi-screen product workflow (`P0/P1/P2` screen inventory, shared token/shadcn foundation, realistic seeded data, and a mandatory screen-by-screen coverage report).
- **5 Mood Profiles:** `Trust`, `Bold`, `Playful`, `Editorial`, and `Technical` — each with tailored surface hierarchy, typography scale, spacing rhythm, and motion personality.
- **9-State & Time-Aware UX:** Goes beyond happy-path screenshots with rules for `Empty`, `Loading`, `Long-loading (>3s)` (named stages, elapsed + ETA, productive preview, Cancel + Notify), `Error`, `Partial`, `Locked`, `Success`, `Offline`, and `Stale`.
- **Motion & Micro-Moments:** Standard motion tokens (`80–500ms`), GPU-composited/paint-safe animation policy, result micro-moments (score ring count-up, row highlight flash, Undo toast, sliding tab pill), and strict `prefers-reduced-motion` fallbacks.
- **Modern Stack & Locale Ready:** Supports Tailwind v3/v4, CSS Color 4/5 (`oklch`, `oklab`, `color-mix`), `var(--x)` token chains, `cva` variants, shadcn/ui baseline fixes, Next.js App Router `layout.tsx`, Vue/Svelte SFCs, `text-wrap: balance/pretty`, `tabular-nums`, `Intl` formatting, Turkish `lang="tr"` uppercase safety, and reachable dark-mode toggles.

### Included Verification Tooling

- **`scripts/verify.py` (Single-Command Verifier):** Runs static `uitools.py` audit and rendered `render.py --check` (`--motion`) in one call with unified text/JSON output.
- **`scripts/uitools.py` (Static Audit & Design Math):** `contrast` (`oklch`/`oklab`/Tailwind v4 `olive`/`mist`/`taupe` + same-hue AA fixes), `scale`, `radius`, `snap`, and `audit` with `--route` / `--routes-glob` cross-file inlining, `cva`, reasoned `uitools-ignore`, and `--baseline`.
- **`scripts/render.py` (Rendered Visual, A11y & Motion Checks):** Full-page screenshots, authenticated `--url`/`--routes`, headless Chromium `axe-core` + 375px mobile checks, and `--motion` 0–1000ms filmstrip audit.

### Local Requirements

- **Core skill & `scripts/uitools.py`:** Python 3 (standard library only, zero external packages required).
- **Optional `scripts/render.py` visual/motion verification:** Python `playwright` + Chromium/Chrome, plus `node`/`npm` (for `axe-core` and offline Tailwind/font fallback). The skill works cleanly even if Playwright/Node are not installed; visual checks are simply skipped.

## Requires

- Python
- tailwindcss
- Node.js
- Git

## Known limitations

Requires Python for audit scripts. Best results with Tailwind/shadcn. Automated visual checks require a headless browser/Chrome.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Classic UI Design Principles skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill ensure design consistency compared to a standard 'make it look modern' prompt?

Unlike generic prompts, this skill uses a mathematical 8pt grid and a Python-based validation script (`verify.py`) to programmatically catch alignment, overflow, and WCAG AA contrast issues that manual eyes often miss.

### What tech stacks and frameworks are compatible with this design skill?

The skill is optimized for environments using Tailwind CSS and shadcn/ui across React, Vue, and Svelte frameworks, but it can adapt to any project using raw CSS variables and semantic tokens.

### What is the '9-state matrix' and why is it important for my app?

The '9-state matrix' ensures your UI is production-ready by automatically building views for loading, error, empty, offline, and focused states, preventing the 'broken' look when data isn't perfectly populated.

### Are there any specific technical requirements or dependencies needed to run the audits?

You will need Python installed to run the automated accessibility audits and a local headless browser if you wish to utilize the Playwright-based visual verification and screenshot audits.

### Can I customize the visual 'mood' of the generated components?

The skill includes five distinct profiles—Playful, Trust, Bold, Editorial, and Technical—which automatically map specific palettes, border radii, and typographic scales to your project's brand voice.

### What exactly is included in the purchase of the Classic UI Design Principles skill?

You receive the full logic for multi-mode design (Component vs. App), the signature SVG generation engine, the 60-30-10 color rule enforcement scripts, and the `verify.py` accessibility auditing suite.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
