ui-skills

Guide Tailwind CSS and React UI components with accessibility and motion rules.

2|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/AmbitionsXXXV/FolioNote --skill ui-skills-ambitionsxxxv
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ui-skills
Source: https://github.com/AmbitionsXXXV/FolioNote/tree/main/.cursor/skills/ui-skill
Command: npx skills add https://github.com/AmbitionsXXXV/FolioNote --skill ui-skills-ambitionsxxxv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Aligning UI across agent-facing interfaces is challenging; this skill codifies design constraints to deliver consistent, accessible, and fast user experiences.

Core Features & Use Cases

  • Use Tailwind CSS defaults for spacing, typography, radii, and shadows to ensure visual consistency.
  • MUST use motion/react for any JavaScript animation to ensure smooth, accessible motion.
  • SHOULD use tw-animate-css for entrance and micro-animations in Tailwind CSS to reduce boilerplate.
  • MUST use the cn utility (clsx + tailwind-merge) for conditional class logic.
  • Components: MUST use accessible primitives for interactions and respect existing primitives first; NEVER mix primitive systems; SHOULD prefer Base UI for new primitives if compatible.
  • MUST add an aria-label to icon-only buttons.
  • NEVER rebuild keyboard or focus behavior by hand unless explicitly requested.
  • Interaction: MUST use an AlertDialog for destructive actions; SHOULD use skeletons for loading states; NEVER use h-screen, use h-dvh; MUST respect safe-area-inset; MUST show errors next to the action.
  • Animation: MUST animate only compositor props (transform, opacity); NEVER animate layout or paint properties; MUST use ease-out on entrance; NEVER exceed 200ms; MUST pause looping animations when off-screen; MUST respect prefers-reduced-motion.
  • Typography: MUST use text-balance for headings and text-pretty for body; MUST use tabular-nums; SHOULD truncate with line-clamp for dense UI; NEVER modify letter-spacing.
  • Layout: MUST use a fixed z-index scale; SHOULD use size-x for square elements.
  • Performance: NEVER animate heavy blur or backdrop-filter; NEVER use will-change outside active animation; NEVER use useEffect for render logic.
  • Design: NEVER use gradients unless requested; NEVER use purple or multicolor gradients; NEVER use glow as primary affordances; SHOULD use Tailwind default shadows; MUST give empty states a clear next action; SHOULD limit accent color usage to one per view; SHOULD use existing theme tokens.

Quick Start

Audit an existing agent-facing UI screen and refactor it to conform with these constraints.

Frequently Asked Questions about ui-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the React and Tailwind CSS accessibility rules for building agent-facing UI components?▼

Accessible UI components must add aria-labels to icon-only buttons, use AlertDialog for destructive actions, respect safe-area-inset, and never rebuild keyboard or focus behavior by hand.

How do I ensure smooth and accessible motion in Tailwind CSS and React applications?▼

Ensure accessible motion by using motion/react for JavaScript animations and tw-animate-css for Tailwind entrance animations. You must respect prefers-reduced-motion and pause looping animations when off-screen.

What are the performance constraints for animating Tailwind CSS UI components?▼

Performance constraints dictate animating only compositor props like transform and opacity, never animating heavy blur or backdrop-filter, and never using will-change outside active animation.

Does this UI design guide work with existing Tailwind CSS primitive components?▼

Yes, the guide mandates respecting existing accessible primitives first and never mixing primitive systems. You should prefer Base UI for new primitives if compatible with your current setup.

Why should I use h-dvh instead of h-screen for React web interface layouts?▼

You must use h-dvh instead of h-screen to correctly handle dynamic viewport heights on mobile devices, preventing layout shifting and ensuring consistent UI experiences across browsers.

What typography rules should I apply for consistent Tailwind CSS user interfaces?▼

Consistent typography requires using text-balance for headings, text-pretty for body, tabular-nums for numbers, and line-clamp for dense UI. You must never modify letter-spacing.