baseline-ui

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

4|Updated Sep 30, 2024
One-click install
npx skills add https://github.com/okm321/dotfiles --skill baseline-ui-okm321
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: baseline-ui
Source: https://github.com/okm321/dotfiles/tree/main/claude/skills/baseline-ui
Command: npx skills add https://github.com/okm321/dotfiles --skill baseline-ui-okm321

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 the exact snippet, why it matters, and a concrete code-level fix. - Use Case: You ask an AI to build a settings page. With this Skill active, the output uses Tailwind defaults, accessible primitives like Base UI or Radix, h-dvh instead of h-screen, and no gratuitous gradients or layout-property animations. ## Quick Start Ask the AI to apply the baseline-ui constraints to review your React component file and list all violations with fixes.

Frequently Asked Questions about baseline-ui

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

FAQPage Schema
How do I review a React file for UI consistency issues?▼

Invoke the Skill with a file path, for example /baseline-ui followed by the filename. It checks the file against all constraints and returns each violation with the exact snippet, a one-sentence rationale, and a concrete code-level fix.

What component libraries should I use for accessible React primitives?▼

Use accessible primitives such as Base UI, Radix, or React Aria for anything with keyboard or focus behavior. Prefer your project's existing primitives first, never mix primitive systems in one surface, and choose Base UI for new primitives when compatible.

Which CSS properties are safe to animate in React?▼

Animate only compositor properties: transform and opacity. Never animate layout properties like width, height, top, left, margin, or padding, and keep interaction feedback under 200ms with ease-out timing on entrances.

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, and fixed elements must also respect safe-area-inset values for proper display on modern devices.

When should animations be added to a UI?▼

Only add animation when explicitly requested. When used, respect prefers-reduced-motion, pause looping animations when off-screen, avoid animating large blur or backdrop-filter surfaces, and never introduce custom easing curves unless asked.