Classic UI Design Principles

    by Hamza Malik YILDIZ

    1

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

    Free

    Security scanned

    Works with the AI Agents you already use

    Classic UI Design Principles

    Example session with this skill installed

    Build a Trust-themed dashboard page for a fintech app using shadcn/ui. Use realistic data for a transaction list and include a signature interaction.

    • Read your context and instructions
    • Compiled the classic ui design
    • Generated the UI component

    I have designed and implemented the fintech dashboard using the

    Trust mood profile. The UI follows a strict 8pt grid, utilizes oklch semantic tokens for WCAG AA compliance, and includes a signature "Transaction Detail" slide-over interaction.

    Fintech Dashboard Implementation

    // components/dashboard/transaction-list.tsx
    import { format } from "date-fns"
    import { ArrowUpRight, ArrowDownLeft, Wallet } from "lucide-react"
    
    const transactions = [
      { id: "1", name: "Stripe Payout", amount: 4500.00, type: "incoming", date: "2024-03-10T10:30:00Z" },
      { id: "2", name: "AWS Infrastructure", amount: -1200.45, type: "outgoing", date: "2024-03-09T15:20:00Z" },
      { id: "3", name: "WeWork Office", amount: -800.00, type: "outgoing", date: "2024-03-08T09:00:00Z" }
    ]
    
    export function TransactionList() {
      return (
        <div className="rounded-xl border border-border bg-card p-6 shadow-sm">
          <div className="mb-6 flex items-center justify-between">
            <h2 className="text-xl font-semibold tracking-tight text-foreground">Recent Activity</h2>
            <button className="text-sm font-medium text-primary hover:underline">View All</button>
          </div>
          <div className="space-y-4">
            {transactions.map((tx) => (
              <div key={tx.id} className="flex items-center justify-between p-2 hover:bg-muted/50 rounded-lg transition-colors group">
                <div className="flex items-center gap-4">
                  <div className={`p-2 rounded-full ${tx.type === 'incoming' ? 'bg-emerald-100 text-emerald-700' : 'bg-orange-100 text-orange-700'}`}>
                    {tx.type === 'incoming' ? <ArrowDownLeft size={18} /> : <ArrowUpRight size={18} />}
                  </div>
                  <div>
                    <p className="text-sm font-medium leading-none">{tx.name}</p>
                    <p className="text-xs text-muted-foreground">{format(new Date(tx.date), "MMM d, h:mm a")}</p>
                  </div>
                </div>
                <p className={`text-sm font-mono font-bold ${tx.type === 'incoming' ? 'text-emerald-600' : 'text-foreground'}`}>
                  {tx.type === 'incoming' ? '+' : ''}{tx.amount.toLocaleString('en-US', { style: 'currency', currency: 'USD' })}
                </p>
              </div>
            ))}
          </div>
        </div>
      )
    }
    

    Next steps

    1. Run python scripts/verify.py dashboard.tsx --mood trust to confirm contrast ratios.
    2. Implement the Loading skeleton state for the transaction list using the 9-state matrix.
    3. Add the Intl.NumberFormat utility to the balance card for localized currency support.

    dashboard.tsx

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    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 for audit scripts. Best results with Tailwind/shadcn. Automated visual checks require a headless browser/Chrome.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    PythontailwindcssNode.jsGit

    Permissions

    Terminal / Shell
    Write Files
    Browser
    Network Access
    Read Files
    Environment Variables

    Allowed Hosts

    cdn.tailwindcss.com
    fonts.googleapis.com
    Listed10 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    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.

    New in Frontend & Web Apps

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.

    Free