Agent skill

Tailwind Plus Elements

by rocky-data in rocky-data/rocky

Using TailwindPlus Elements (@tailwindplus/elements) in the Rocky VS Code webviews.

Apache-2.0Auto-check passedFrontend & Design

Install Tailwind Plus Elements

skills CLI
$ npx skills add rocky-data/rocky --skill tailwind-plus-elements -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rocky-data/rocky tailwind-plus-elements --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rocky-data/rocky.git skills-src && mkdir -p .claude/skills && cp -r skills-src/editors/vscode/.claude/skills/tailwind-plus-elements .claude/skills/tailwind-plus-elements && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tailwind-plus-elements
GitHub stars
304
Token cost
~1.7k tokens
SKILL.md length
770 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
Apache-2.0

At a glance

Using TailwindPlus Elements (@tailwindplus/elements) in the Rocky VS Code webviews.

  • Upgrading an interactive webview component — a command palette / model search
  • SKILL.md covers When to use this skill, Install + bundling (no CSP…, Theming — keep the --vscode-*… and React 19 interop, plus 3 more sections
  • Calls npm; reaches cdn.jsdelivr.net
  • A confirmation dialog

What it does

Tailwind Plus Elements is an agent skill from rocky-data/rocky. Using TailwindPlus Elements (@tailwindplus/elements) in the Rocky VS Code webviews. Use when building or upgrading an interactive webview component — a command palette / model search, a confirmation dialog, an autocomplete or select model picker, a dropdown/popover menu, a collapsible disclosure, or tabs. Covers the esbuild-bundle install (no CSP change vs the CDN), the --vscode- theming + Tailwind v4 data-variant nuance, React 19 custom-element interop (boolean attrs, native events via ref, the elements:ready…

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering CSS and styling and Theming and dark mode. It works with Tailwind CSS, Visual Studio Code and React. The repository describes itself as: A SQL transformation engine that type-checks your whole pipeline and catches breaking changes before they run — branches, replay, column-level lineage, compile-time contracts… The licence is Apache-2.0.

When your agent uses it

  • Upgrading an interactive webview component — a command palette / model search
  • A confirmation dialog
  • An autocomplete
  • Select model picker

Example prompts

  • “/tailwind-plus-elements”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 46be77e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • cdn.jsdelivr.net

    Also links to:

    • tailwindcss.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tailwind Plus Elements loads about 1.7k tokens when it runs. Until then it costs about 148 tokens; SKILL.md has 770 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~148
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rocky-data/rocky at commit 46be77e, republished under its Apache-2.0 licence (© rocky-data). 770 words, ~1,721 tokens.

Download SKILL.mdSave it as .claude/skills/tailwind-plus-elements/SKILL.md (or your agent's skills folder).
name
tailwind-plus-elements
description
Using TailwindPlus Elements (@tailwindplus/elements) in the Rocky VS Code webviews. Use when building or upgrading an interactive webview component — a command palette / model search, a confirmation dialog, an autocomplete or select model picker, a dropdown/popover menu, a collapsible disclosure, or tabs. Covers the esbuild-bundle install (no CSP change vs the CDN), the --vscode-* theming + Tailwind v4 data-variant nuance, React 19 custom-element interop (boolean attrs, native events via ref, the elements:ready gate), and which element fits which Rocky surface.

TailwindPlus Elements in Rocky webviews

TailwindPlus Elements (@tailwindplus/elements) is a framework-agnostic library of headless web components — <el-dialog>, <el-command-palette>, <el-autocomplete>, <el-select>, <el-dropdown>, <el-popover>, <el-disclosure>, <el-tabs> — that provide accessible, keyboard-friendly interactive behavior with no styling of their own. You style them with Tailwind. We hold a Tailwind Plus license; the full per-component API lives in the TailwindPlus account, not in this repo (see "Licensing" below). They slot into the React + Tailwind webviews under editors/vscode/webview-ui/.

When to use this skill

  • Building a new interactive webview surface: a Cmd+K command palette / model search, a confirmation dialog (e.g. the apply-gate), an autocomplete/combobox model picker, a dropdown or popover menu, a collapsible section, or tabs.
  • Upgrading a hand-rolled webview interaction (e.g. the lineage canvas context menu) to an accessible primitive.
  • Not for the ReactFlow canvas itself (that's @xyflow/react), and not a reason to re-skin a surface that already works.

Install + bundling (no CSP change)

Add it as a devDependency in editors/vscode and import it once from a webview entry — esbuild bundles it into the panel chunk, so it loads under our existing nonce:

bash
npm install -D @tailwindplus/elements   # in editors/vscode
ts
// webview-ui/panels/<panel>/main.tsx — once per entry that uses Elements
import "@tailwindplus/elements";

Do not add the jsDelivr <script src="…/@tailwindplus/elements"> CDN tag the official docs show: that would force a script-src https://cdn.jsdelivr.net into the webview CSP (src/webviews/host/html.ts) we don't otherwise need. Bundling via the import keeps everything under the nonce. The import registers the <el-*> custom elements at module-eval, before React mounts.

Theming — keep the --vscode-* discipline

The elements paint no palette of their own, so theming is just our normal classes. Style the <el-*> wrappers and the native <dialog>/<input>/<button> they slot with the --vscode-*-aliased Tailwind classes from webview-ui/styles/base.css. Preflight is off, so the base.css <button> + border reset already applies to the native elements inside — theme them like any other control.

Transitions use read-only data-closed / data-enter / data-leave / data-transition attributes. We are on Tailwind v4 (webview-ui/styles/base.css is the v4 entry). The arbitrary-variant form — data-[closed]:opacity-0, transition data-[closed]:scale-95 — works; v4 also accepts the data-closed: boolean-attribute shorthand the official docs use. No webview exercises these yet, so verify against the current v4 docs when you add the first transition.

React 19 interop

  • Use the typed React wrappers, not raw <el-*> tags: import { ElDialog, ElDialogPanel, ElDialogBackdrop, ElCommandPalette, ElCommandList, ElDisclosure, ElSelect, ElDropdown, … } from "@tailwindplus/elements/react". They're typed (HTMLAttributes), so no hand-rolled JSX intrinsics. Also add a static import "@tailwindplus/elements" in the webview entry (main.tsx) for eager registration — the wrappers otherwise lazy-import the base lib on mount via a runtime dynamic chunk.
  • Open/close — drive from React state via the element's imperative methods behind a ref: ref.current.show() / .hide() on <el-dialog>, gated on customElements.whenDefined("el-dialog"). The declarative open / hidden attributes also work but aren't on the wrapper's HTMLAttributes type (so you'd cast); the Invoker Commands API (command="show-modal" commandfor) works for button triggers.
  • Events (change, open, close, cancel, …) are native CustomEvents, not React synthetic — wire via a ref + addEventListener in a useEffect, not onChange. Sync React state back on close / cancel so it doesn't desync; cancel is preventDefault()-able.
  • Don't let React re-apply attributes the element manages. The command palette toggles hidden on its option buttons to filter; if React re-renders that list it fights the palette. Keep the options stable (memoize them, stable callbacks) so React doesn't reconcile them after the element has filtered.
  • Focus on open: React's autoFocus fires at mount (while the dialog is still hidden), so focus the input explicitly via a ref when you open the dialog.
  • Imperative — instances also expose toggle() / reset() / setFilterCallback(cb).
Show full SKILL.md (210 more words)Show less

Which element fits which Rocky surface

ElementRocky use
el-command-palette (inside el-dialog)Cmd+K model search / a Rocky command launcher in a webview
el-dialogConfirmations (the AI apply-gate), a settings panel
el-autocomplete / el-selectModel picker / "jump to model"; the color-by and overlay selects
el-dropdown / el-popoverThe lineage canvas context menu; info popovers on nodes
el-disclosureCollapsible Overview / Columns sections in the Inspector
el-tabsThe Inspector tab bar (the hand-rolled one works — swap only for the a11y/keyboard win)

Gotchas

  • Cmd+K collides with VS Code's chord prefix — a webview keydown for Meta/Ctrl+K may be swallowed by the workbench. Give the feature a visible button trigger as the reliable path; treat the shortcut as a bonus.
  • el-command-palette empty state: with no <el-defaults>, an empty query renders <el-no-results> even while the option list is visible. For a browse-then-filter palette, drop <el-no-results> (empty = browse all, typing filters) or supply <el-defaults>.

Licensing

Using the library in this (open-source) extension app is fine — it's an app, not a component library. Do not commit TailwindPlus's component markup or docs verbatim into the repo; adapt the patterns and re-theme to --vscode-*. That re-theming is required anyway (their palette would clash with the workbench), so it falls out naturally.

See the webview architecture in editors/vscode/CLAUDE.md and the React apps under editors/vscode/webview-ui/.

© rocky-data, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in editors/vscode/.claude/skills/tailwind-plus-elements of rocky-data/rocky.

Open the folder on GitHubat commit 46be77e

Compare with similar skills

Tailwind Plus Elements next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tailwind Plus Elements compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tailwind Plus Elements this skillrocky-data/rocky304—~1.7kAutomated safety check: PassApache-2.0
Ask Sonnerleepokai/Codync1774 repos~1.8kAutomated safety check: WarnMIT
Tailwind CSS Patternsever-works/ever-works1583 repos~1.6kAutomated safety check: NotesAGPL-3.0
Tailwind V4 Shadcnever-works/ever-works1582 repos~3.8kAutomated safety check: PassMIT
Bryl Minimal Designbryllim/bryl-minimal-design114—~2.9kAutomated safety check: PassMIT
UI UX Pro Maxshobcoder/shob577—~3.7kAutomated safety check: PassMIT

Similar skills

  • Ask Sonner

    leepokai/Codync

    Guide to Sonner, the React toast library — install and wire up the Toaster, pick the right toast() call, promise and loading toasts, updating, dismissing and persisting toasts, styling, theming and…

    177 GitHub starsUsed in 4 repos~1.8k tokens
    Frontend & DesignAuto-check: warnings
  • Tailwind CSS Patterns

    ever-works/ever-works

    Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices.

    158 GitHub starsUsed in 3 repos~1.6k tokens
    Frontend & DesignAuto-check: notes
  • Tailwind V4 Shadcn

    ever-works/ever-works

    Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React.

    158 GitHub starsUsed in 2 repos~3.8k tokens
    Frontend & DesignAuto-check passed
  • Bryl Minimal Design

    bryllim/bryl-minimal-design

    Apply the bryl-minimal design language — a monochrome, typography-driven minimal aesthetic with halftone dot textures, pixel-font display headings, tiny uppercase monospace labels, soft large-radius…

    114 GitHub stars~2.9k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • UI UX Pro Max

    shobcoder/shob

    UI/UX design intelligence expert for web and mobile applications.

    577 GitHub stars~3.7k tokensUpdated 20 days ago
    Frontend & DesignAuto-check passed
  • Frontend UI Foundry

    jiushiwon/wg-skills

    A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…

    112 GitHub stars~1.4k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from rocky-data/rocky

All 22 skills in this repo
  • Fivetran

    rocky-data/rocky

    Fivetran REST API reference for Rocky's source adapter. An agent skill from rocky-data/rocky.

    304 GitHub stars~914 tokensUpdated today
    Auto-check passed
  • Databricks

    rocky-data/rocky

    Databricks REST API and SQL reference for Rocky's warehouse adapter.

    304 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Rocky Codegen

    rocky-data/rocky

    Rocky CLI JSON-output schema cascade. An agent skill from rocky-data/rocky.

    304 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Rocky Dev

    rocky-data/rocky

    Top-level router for Rocky development tasks. An agent skill from rocky-data/rocky.

    304 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Rocky Dsl Change

    rocky-data/rocky

    Rocky DSL (.rocky file) cross-subproject cascade. An agent skill from rocky-data/rocky.

    304 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Rocky New Adapter

    rocky-data/rocky

    Adding a new warehouse or source adapter crate to the Rocky engine.

    304 GitHub stars~2k tokensUpdated today
    Auto-check passed

Questions about Tailwind Plus Elements

What does Tailwind Plus Elements do?

Using TailwindPlus Elements (@tailwindplus/elements) in the Rocky VS Code webviews. Tailwind Plus Elements is an agent skill from rocky-data/rocky. Using TailwindPlus Elements (@tailwindplus/elements) in the Rocky VS Code webviews.

When should I use Tailwind Plus Elements?

Tailwind Plus Elements fits situations like: upgrading an interactive webview component — a command palette / model search; A confirmation dialog; an autocomplete; select model picker.

How do I install Tailwind Plus Elements in Claude Code?

Run `npx skills add rocky-data/rocky --skill tailwind-plus-elements -a claude-code`. Or copy the skill folder (editors/vscode/.claude/skills/tailwind-plus-elements in rocky-data/rocky) into .claude/skills/tailwind-plus-elements in your project. Claude Code loads it when a task matches its description.

How do I install Tailwind Plus Elements in Codex?

Run `npx skills add rocky-data/rocky --skill tailwind-plus-elements -a codex`. Or copy the skill folder (editors/vscode/.claude/skills/tailwind-plus-elements in rocky-data/rocky) into .agents/skills/tailwind-plus-elements in your project. Codex loads it when a task matches its description.

Can I use Tailwind Plus Elements in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rocky-data/rocky --skill tailwind-plus-elements -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tailwind-plus-elements, .gemini/skills/tailwind-plus-elements, .github/skills/tailwind-plus-elements and .opencode/skills/tailwind-plus-elements in your project.

What does Tailwind Plus Elements need to run?

Going by SKILL.md and its folder, Tailwind Plus Elements needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Tailwind Plus Elements access the network?

SKILL.md names 2 domains. In commands or code: cdn.jsdelivr.net; the agent is likely to contact it when it follows the instructions. As links in the text: tailwindcss.com. This is read from the text; nothing was executed.

Is Tailwind Plus Elements safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tailwind Plus Elements use?

Tailwind Plus Elements is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tailwind Plus Elements use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tailwind Plus Elements?

Skills that share tags, products or a category with Tailwind Plus Elements: Ask Sonner (leepokai/Codync, 177 stars), Tailwind CSS Patterns (ever-works/ever-works, 158 stars), Tailwind V4 Shadcn (ever-works/ever-works, 158 stars) and Bryl Minimal Design (bryllim/bryl-minimal-design, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tailwind Plus Elements?

rocky-data (a GitHub organization) maintains it in rocky-data/rocky, which has 304 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 8, 2026.

Source: rocky-data/rocky on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.