baseline-ui

Enforces opinionated UI constraints for Tailwind CSS and React component code.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/Aki2022/skills --skill baseline-ui-aki2022
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baseline-ui
Source: https://github.com/Aki2022/skills/tree/main/baseline-ui
Command: npx skills add https://github.com/Aki2022/skills --skill baseline-ui-aki2022

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-generated interfaces often produce inconsistent, inaccessible, or visually sloppy code. This Skill applies a fixed set of UI constraints so every component follows the same standards for styling, animation, accessibility, and layout. ## Core Features & Use Cases - Constraint Enforcement: Applies opinionated rules across stack, components, interaction, animation, typography, layout, performance, and design when doing UI work. - File Review Mode: Reviews a specific file against all constraints and outputs violations with quoted snippets, explanations, and concrete code-level fixes. - Use Case: You ask an AI to build a settings page. Invoke the baseline so it uses Tailwind defaults, accessible primitives like Base UI or Radix, h-dvh instead of h-screen, and compositor-only animations instead of ad-hoc styling. ## Quick Start Ask the AI to apply the baseline-ui constraints while building or reviewing your React and Tailwind UI code.

Frequently Asked Questions about baseline-ui

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

FAQPage Schema
How do I enforce consistent UI standards in AI-generated React code?

Invoke the baseline before any UI work so the AI follows fixed constraints for Tailwind styling, accessible primitives, animation, and layout. You can also pass a specific file to get a violation report with quoted snippets and concrete fixes.

What animation library should I use with React and Tailwind?

Use motion/react (formerly framer-motion) when JavaScript animation is required, and tw-animate-css for entrance and micro-animations in Tailwind. Animate only compositor properties like transform and opacity, and keep interaction feedback under 200ms.

Base UI vs Radix vs React Aria for accessible components?

All three provide accessible primitives for keyboard and focus behavior. Prefer your project's existing primitives first, never mix systems within one interaction surface, and choose Base UI for new primitives if compatible with your stack.

Why should I use h-dvh instead of h-screen in mobile layouts?

h-screen uses the static viewport height, which causes layout issues when mobile browser chrome appears or hides. h-dvh tracks the dynamic viewport height, and fixed elements should also respect safe-area-inset for notched devices.

When should animations be avoided in UI development?

Never add animation unless explicitly requested. When used, avoid animating layout properties like width or margin, avoid large blur or backdrop-filter surfaces, pause looping animations off-screen, and respect prefers-reduced-motion.