Skill library

Agent skill Frontend

Tailwind UI

Build or refine reusable components for a web interface.

  • UI components
  • Accessibility
  • Tailwind CSS

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/Boise-State-Development/agentcore-public-stack/tree/main/.claude/skills/tailwind-ui --skill tailwind-ui --agent claude-code --yes

Check this file in your project.claude/skills/tailwind-ui/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/Boise-State-Development/agentcore-public-stack/tree/main/.claude/skills/tailwind-ui --skill tailwind-ui

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use an existing Tailwind v4 project. The publisher targets v4.1, and its actual starter asset was compiled in a Tailwind 4.3.5 fixture. Confirm the app’s dark-mode mechanism first.

View operation manual

What this skill helps with

  • Build or refine reusable components for a web interface.

Good for

  • Component implementation
Skill name
tailwind-ui
Scenario
Migrate a focused action bar to Tailwind v4 utilities
Deliverable
An action bar with equivalent spacing and a visible focus outline under the active theme.
Skill name
tailwind-ui

Define a component task with an observable result

A request with an unclear outcome

Replace old outline utilities without checking the keyboard focus state.

The upgraded class can compile while leaving the control without a visible focus indicator.

A workflow with observable results

  1. Check the Tailwind version and action classes
  2. Migrate the local utilities
  3. Check focus under both themes

Boise State Tailwind UI operation manual

Match the v4 reset and utility names, then verify keyboard focus in light and system dark modes.

Replace the bracketed details with your own project and target.

  1. Check the Tailwind version and action classes

    Identify focus, gap and the dark selector.

    Prompt · Step 1
    Use Boise State’s `tailwind-ui` skill on [action bar]. Confirm the installed Tailwind version, CSS entry and existing dark-mode trigger. List spacing, border-radius and focus classes used on the buttons and links. Compare them with the v4 migration and accessibility references.
  2. Migrate the local utilities

    Apply an explicit visible focus treatment.

    Prompt · Step 2
    Use Boise State `tailwind-ui` to update [approved action bar]. Use gap for the flex spacing and v4 rounded utilities matching the intended size. Add an explicit focus-visible outline width, color and offset. Reuse the app’s light and dark roles. Confirm the chosen dark selector compiles in this project.
  3. Check focus under both themes

    Test Tab order and compare rendered outlines.

    • Keyboard focus remains visible on each control in both modes.
    • The actual dark-mode trigger and observed theme values are recorded.
    Prompt · Step 3
    Use Boise State `tailwind-ui` to build [local route], then Tab through button and link in the project’s light and dark modes. Inspect outline width, color and offset, and verify computed page background changes with the declared theme trigger. State whether the theme follows the system or a project selector.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

A class toggle does not switch themeReference
Command or reference
assets/theme-starter.css
Examples
The starter followed system dark in 4.3.5. Verify an app-specific selector against current Tailwind dark mode docs.

Boise State Tailwind UI troubleshooting

How do I support an explicit class toggle?

Configure the dark variant according to the current Tailwind dark-mode documentation and verify it independently of the OS preference. The bundled starter did not respond to a root .dark class under a light OS setting in the fixture.