baseline-ui

Validate Tailwind CSS UI against animation, typography, accessibility, and layout constraints.

114|8|Updated Mar 4, 2025
One-click install
npx skills add https://github.com/gustavscirulis/snapgrid --skill baseline-ui-gustavscirulis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baseline-ui
Source: https://github.com/gustavscirulis/snapgrid/tree/main/.agents/skills/baseline-ui
Command: npx skills add https://github.com/gustavscirulis/snapgrid --skill baseline-ui-gustavscirulis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents AI-generated UI from becoming a disorganized mess by enforcing a strict set of design and development constraints.

Core Features & Use Cases

  • Animation Validation: Ensures animations are performant and adhere to duration limits.
  • Typography Enforcement: Maintains a consistent typographic scale and readability.
  • Accessibility Checks: Verifies components meet accessibility standards.
  • Layout Anti-patterns: Prevents common layout mistakes like using h-screen or arbitrary z-index values.
  • Use Case: When reviewing AI-generated React components, use this Skill to ensure they are accessible, performant, and visually consistent with the project's design system.

Quick Start

Apply these constraints to any UI work in this conversation.

Frequently Asked Questions about baseline-ui

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

FAQPage Schema
How do I enforce UI consistency in AI-generated React components?

To enforce UI consistency in AI-generated React components, apply strict design constraints that validate animation durations, typography scale, component accessibility, and layout anti-patterns. This prevents disorganized output by ensuring adherence to established Tailwind CSS defaults.

What are common layout anti-patterns to check for in Tailwind CSS projects?

Common layout anti-patterns in Tailwind CSS projects include using h-screen for viewport sizing and applying arbitrary z-index values. Reviewing these patterns prevents visual inconsistencies and unintended overlapping behaviors in your React view styling.

Can I use this UI accessibility checker with Radix or React Aria?

Yes, you can use this UI accessibility checker with Radix, React Aria, or Base UI. It verifies that your accessible component primitives meet required standards while enforcing a strict typographic scale and performant animation limits.

What is the best way to validate animation durations in a design system?

The best way to validate animation durations in a design system is to enforce specific performance constraints using motion/react for animations and tw-animate-css for micro-animations. This ensures all transitions remain performant and visually consistent.

Why does my AI-generated UI look inconsistent and how do I fix it?

AI-generated UI looks inconsistent because it lacks enforced design constraints. Fix it by applying an opinionated UI baseline that validates typography, prevents layout anti-patterns, and checks component accessibility against Tailwind CSS defaults.

Do I need Tailwind CSS to enforce a strict UI baseline for accessibility?

Yes, you need Tailwind CSS to enforce this strict UI baseline for accessibility. The validation rules specifically target Tailwind CSS projects, requiring adherence to its defaults alongside accessible component primitives like Base UI, Radix, or React Aria.