ui-styling

Implement Workbench UI components and styling using Shell primitives and design tokens.

2|Updated Aug 17, 2026
One-click install
npx skills add https://github.com/yyy0107/pi-workbench --skill ui-styling-yyy0107
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ui-styling
Source: https://github.com/yyy0107/pi-workbench/tree/main/.agents/skills/ui-styling
Command: npx skills add https://github.com/yyy0107/pi-workbench --skill ui-styling-yyy0107

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? This Skill guides AI agents through implementing UI components, layout, and appearance changes in the Pi Workbench repository while respecting its existing Shell component system, semantic design tokens, and theme conventions, preventing duplicated UI systems or inconsistent styling. ## Core Features & Use Cases - Shell Component Reuse: Directs changes to the correct owner in packages/workbench/shell/src/ui/, reusing primitives like WorkspaceSelector, SelectorDropdown, and DropdownMenu instead of copying implementations. - Token Hierarchy Enforcement: Maintains the theme/base → semantic → component token chain, using shared --button-*, --control-*, --input-control-*, and --switch-* tokens rather than arbitrary fixed dimensions. - Reference Library: Bundles shadcn/ui component, theming, and accessibility guides plus Tailwind utility, responsive, and customization references for unresolved implementation questions. - Use Case: When asked to add a new settings toggle or restyle a dialog, the agent consults this Skill to pick the right Shell variant, derive sizing from density and radius tokens, preserve keyboard focus states, and verify behavior across supported themes. ## Quick Start Ask the agent to restyle a Workbench dialog or add a new control variant using the ui-styling skill so it follows the Shell token system.

Frequently Asked Questions about ui-styling

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

FAQPage Schema
How do I add a new UI component variant in a shadcn-style project?▼

Define the variant's semantic purpose and its default, hover, focus-visible, active, disabled, and error states, reusing shared state styles. Extend shared component variants only when the behavior is shared by multiple consumers; keep one-feature layouts local.

How do I use design tokens instead of fixed sizes in Tailwind?▼

Derive dimensions from shared control tokens such as --button-*, --input-control-*, and --dropdown-control-* in the consuming scope. Use semantic classes like bg-background and text-muted-foreground rather than arbitrary fixed pixel values.

When should I use this ui-styling skill versus editing code directly?▼

Use it for unresolved styling or interaction implementation questions, new controls, and layout or appearance changes. Routine copy edits and pure logic changes do not need this skill.

Does this approach support dark mode and multiple themes?▼

Yes. Changed tokens must respond to supported themes, global colors, density, and radius settings. Verification includes checking affected states in each applicable theme rather than assuming one theme proves another.

Why should I avoid copying shadcn example code directly into the project?▼

Generic reference examples are topic guidance, not the project's component API. The installed declarations and existing Shell implementations are the authority; copying examples risks creating a parallel UI or theme system.

How do I keep dialogs and dropdowns accessible with keyboard navigation?▼

Reuse Shell primitives built on accessible foundations, preserve visible focus-visible indicators, and keep overlays in the owning Shell Portal container. The bundled accessibility reference covers focus traps, ARIA labels, and keyboard patterns.