baseline-ui

Reviews and fixes UI code for spacing, typography, animation, and accessibility violations.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill baseline-ui-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baseline-ui
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/agents/.agents/skills/baseline-ui
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill baseline-ui-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-generated interface code often ships with inconsistent spacing, poor typography, unsafe animations, and accessibility gaps. This Skill applies an opinionated baseline of UI constraints to clean up that slop and enforce consistent frontend quality. ## Core Features & Use Cases - Constraint Enforcement: Applies opinionated rules across stack, components, interaction, animation, typography, layout, performance, and design for any UI work in the conversation. - File Review Mode: Audits a specific file and reports violations with the exact offending snippet, a one-sentence rationale, and a concrete code-level fix. - Use Case: After generating a React dashboard with Tailwind CSS, run a review pass to catch issues like h-screen instead of h-dvh, missing aria-label on icon buttons, animations on layout properties, or gradients that violate the design rules. ## Quick Start Ask the assistant to review your UI file against the baseline-ui constraints and list every violation with a concrete fix.

Frequently Asked Questions about baseline-ui

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

FAQPage Schema
How do I clean up AI-generated UI code?

Run a baseline review pass that checks the code against constraints for spacing, typography, animation, and accessibility. The review quotes each violating snippet, explains why it matters in one sentence, and suggests a concrete code-level fix.

What animation properties are safe to animate in CSS?

Only compositor properties like transform and opacity should be animated. Animating layout properties such as width, height, top, left, margin, or padding triggers expensive reflows and should be avoided.

Should I use h-screen or h-dvh for full-height layouts?

Use h-dvh instead of h-screen. The dynamic viewport height unit accounts for mobile browser chrome like address bars, preventing content from being cut off or causing unexpected scroll behavior.

Which component primitives work with React accessibility requirements?

Base UI, React Aria, and Radix provide accessible primitives with built-in keyboard and focus behavior. Pick one system per interaction surface and never mix primitive systems or rebuild focus handling by hand.

When should I not add animations to an interface?

Do not add animation unless it is explicitly requested. When animation is required, keep interaction feedback under 200ms, use ease-out on entrances, respect prefers-reduced-motion, and pause looping animations when off-screen.