Skip to content

Design system skill that gives Claude Code Tray UI rules, docs, and a markup checker.

CCM score
59 of 100
version
0.4.1
GitHub stars
3.8K

Own this plugin? Claim it

What it does

  • Covers 108 components, 64 blocks (whole screens), 118 icons, and 10 themes in plain HTML and CSS
  • Provides the typed React components from trayui-react alongside the plain markup library
  • Includes a bundled Node checker, scripts/check.mjs, that runs on the markup the agent writes
  • Needs no account, API key, or server, and only reads the files it is given

Build and fix web pages and app screens with Tray UI, an MIT-licensed design system in plain HTML and CSS: 108 components, 64 blocks (whole screens), 118 icons and 10 themes, and the typed React components in trayui-react. The skill gives the agent the rules, every page of the docs as Markdown, and a bundled Node checker (scripts/check.mjs) that it runs on the markup it writes; the checker only reads the files it is given. Needs no account, key or server.

Add marketplace

/plugin marketplace add davepoon/buildwithclaude

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install trayui@buildwithclaude

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Build with Tray UI

Tray UI 0.4.1 is plain HTML with tray- classes, styled by two stylesheets and wired by one script: 108 components, 64 blocks (whole screens), 118 icons and 10 themes. There is no build step and no framework. A white page, grey trays with very round corners, ink type, and one yellow for the thing to do.

Where the pages are

Every page of https://trayui.com is also Markdown, and this skill holds those of the docs, the components, the blocks and the charts under references/, by the same path: https://trayui.com/components/button.md is references/components/button.md, https://trayui.com/docs/accessibility.md is references/docs/accessibility.md. A link in one of them to another page of the site is a file here. Fetch from the site only for a page that is not here.

  • references/blocks.md: the 64 blocks, group by group, a line on each. references/blocks/<id>.md: when to choose it, what it is made of, and the whole page of HTML.
  • references/components.md: the 108 components. references/components/<id>.md: the markup to copy, the classes and variants, the behaviour, the Accessibility section.
  • references/docs/: brand-book.md (the rules), layouts.md (page frames), behaviour.md (every data-tray and its events), accessibility.md, grounds.md (which fill sits on which), colours.md, typography.md, space-and-shape.md (the tokens), icons.md (the names), theming.md, themes.md, installation.md, cli.md, react.md. references/docs.md is the introduction; references/charts/ covers charts in React.

1. Put the system in the page

Link the three files, in this order:

<!doctype html>
<html lang="en" data-theme="light">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>…</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/trayui@0.4.1/tokens.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/trayui@0.4.1/components/bundle.css">
  <script src="https://cdn.jsdelivr.net/npm/trayui@0.4.1/components/bundle.js" defer></script>
</head>

If the project already has its own copies (a trayui/ folder, or the trayui package among its dependencies), link those instead. data-theme is one of light, dark, linen, mint, sky, rose, lilac, midnight, forest or espresso.

Or let the command line put it in, when the project may have files added (Node 18 or later):

  • npx trayui@0.4.1 init copies the three files and the font into trayui/; npx trayui@0.4.1 add login-01 puts a block beside the pages, its links pointed at trayui/.
  • In a React app (Vite, Next.js), npx trayui@0.4.1 init and npx trayui@0.4.1 add tabs login-01 copy the components' and the blocks' source into src/components/trayui/, for the project to own. Or use the package: npm install trayui-react@0.4.1 and import 'trayui-react/styles.css'; references/docs/react.md says how.
  • npx trayui@0.4.1 diff shows what was changed since; a file someone edited is never overwritten without --overwrite. references/docs/cli.md has the rest.

2. Start from the nearest block, never from an empty page

Pick the nearest of the 64 blocks in references/blocks.md (sign-in, sign-up, dashboard, settings, tables, pricing, checkout, shop, articles, blog, wiki, sidebars, empty states), read references/blocks/<id>.md, and change it. Its <head> links ../tokens.css, because the file sits in blocks/ one folder below the three files: point those lines at the project's copies, or at the CDN lines above.

3. Read a component's page before writing it

Before you write a component, read references/components/<id>.md. Copy the markup and its ARIA as written, and change the words. Use the browser's element: <button type="button"> that does, <a href> that goes, <dialog>, <details>, real checkboxes and radios.

4. The conventions

  • Classes: tray-block, tray-block__part, tray-block--variant. Use only classes that exist. Never invent one, never add Tailwind or other utility classes, never write a <style> of your own.
  • Type styles are plain classes from tokens.css: display (once a page), headline, title, subtitle, figure, lead, body, caption, label.
  • Layout: tray-container, tray-section, tray-stack (--sm, --lg), tray-row, tray-bento; outside a product, tray-screen with tray-screen__body (--narrow, --center); a product, tray-app with its sidebar and top bar (references/docs/layouts.md).
  • Where a layout needs a value no class gives, use a token: style="margin-block-start: var(--space-6)". Never a literal colour or size (references/docs/space-and-shape.md, colours.md).
  • State lives in attributes, never in classes: aria-selected, aria-current, aria-pressed, aria-expanded, aria-invalid, aria-busy, open, hidden, disabled.
  • Behaviour: data-tray="name" on the element the component's page names (tabs, menu, open, dialog, select, combobox, reveal, tooltip, copy…; all in references/docs/behaviour.md). Markup added after the page loaded needs TrayUI.init(root). A toast is TrayUI.toast({ title, text }). Behaviours report with bubbling events: tray:change, tray:select, tray:open, tray:close.
  • Icons: <svg class="tray-icon" aria-hidden="true"><use href="#tray-i-name"/></svg> with the names in references/docs/icons.md (Lucide's); the script adds the sprite.
  • Depth is fill: page white, a card (tray-card) grey, a field inside it white again by itself. Never set those fills by hand.

5. The rules agents break most

  1. One yellow per view. tray-btn alone is the yellow primary; every other button is tray-btn--quiet, --ghost, --dark, --link or --danger. At most one large yellow surface (tray-card--accent, tray-island) per screen. A dialog is a view of its own and may have its own yellow button.
  2. Selected is solid ink, never yellow.
  3. Words: sentence case; a button starts with a verb and names the outcome ("Sign in", "Save changes"), never "OK", "Submit" or "Yes"; an error says what to do; no emoji, no exclamation marks, no italics.
  4. Headings in order, one <h1>.
  5. The invented brands of the blocks (Counter, Perly Farm), and their names, prices and quotes, are examples: replace them with the user's.

6. Accessibility the markup must carry

  • Every field has a visible <label class="tray-label" for>, or sits inside its label.
  • An icon-only button always has an aria-label that says what it does. Wrap it in a Tooltip that repeats the label (<span class="tray-anchor" data-tray="tooltip" data-tip="Remove the spoons">) where it stands alone and its icon could mean several things: a row action such as Remove, the icons of a collapsed sidebar. Where its place says what it does, the blocks give it the aria-label alone, no Tooltip: a button inside a field (the eye that shows a password, a clear or copy button in an input group), the close button of a dialog, the menu button of a phone header, the minus and plus of a stepper, previous and next, the x of a chip, and a button that opens its own menu or popover.
  • Sign-in fields: autocomplete="username" (or email) and current-password; sign-up: new-password.
  • Every aria-controls, aria-labelledby, aria-describedby, for and data-target points at an id that exists, and no id is used twice.
  • Never remove a focus ring. Never set text in a data colour, or on yellow in anything but on-accent.
  • The full rules are in references/docs/accessibility.md and references/docs/brand-book.md.

7. Check before handing over

Run the checker that comes with this skill on every page you wrote (Node 18 or later; give the path to this skill's folder):

node <this skill's folder>/scripts/check.mjs page.html

In a project with npm, npx trayui@0.4.1 check page.html runs the same checker. It reports classes, behaviours and icons that do not exist, more than one yellow button in a view, buttons and fields without names, missing autocomplete, broken references and repeated ids, tabs wired wrong, skipped headings, literal colours and sizes, a <style> of its own, and the three files missing or out of order. Fix every error and every warning you can. Then say what it cannot check: look at the page at 1280, 768 and 390px wide, in light and dark, and tab through it.

From the davepoon/buildwithclaude README

Build with Claude

Claude Skills, Agents, Commands, Hooks, Plugins, Marketplaces collections for and extend Claude Code

Open Source License: MIT PRs Welcome GitHub stars

A plugin marketplace and discovery platform for Claude Code. Browse curated plugins, discover community contributions, and extend your Claude Code workflows.

Quick Start

# Add the Build with Claude marketplace
/plugin marketplace add davepoon/buildwithclaude

# Browse available plugins
/plugin search @buildwithclaude

# Install plugins
/plugin install <plugin-name>@buildwithclaude

What's Included

Build with Claude Plugins

Curated collections maintained in this repository:

TypeCountDescription
Agents117Specialized AI experts (Python, Go, DevOps, Security, etc.)
Commands175Slash commands for automation (/commit, /docs, /tdd)
Hooks28Event-driven automation (notifications, git, formatting)
Skills26Reusable capabilities from plugins
Plugins51Bundled plugin packages by category

Community Discovery

The platform indexes plugins from the broader Claude Code ecosystem:

  • 20k+ Community Plugins from external marketplaces
  • 4,500+ MCP Servers for database, API, and tool connections
  • 1,100+ Plugin Marketplaces from the community

Web UI

Browse, search, and explore everything at buildwithclaude.com

Build with Claude Homepage

Browse Plugins

Browse Skills

Browse MCP Servers

Browse Plugin Marketplaces

Features

  • Browse all plugin types with filtering
  • Search across plugins, agents, commands, hooks, skills
  • Copy install commands with one click
  • View full documentation and usage examples
  • Discover MCP servers and community plugins

Installation Options

Option 1: Plugin Marketplace (Recommended)

# Add marketplace
/plugin marketplace add davepoon/buildwithclaude

# Install specific plugins
/plugin install agents-python-expert@buildwithclaude
/plugin install commands-version-control-git@buildwithclaude
/plugin install hooks-notifications@buildwithclaude

# Or install everything
/plugin install all-agents@buildwithclaude
/plugin install all-commands@buildwithclaude
/plugin install all-hooks@buildwithclaude

Option 2: Manual Installation

# Clone repository
git clone https://github.com/davepoon/buildwithclaude.git
cd buildwithclaude

# Install agents
find plugins/agents-*/agents -name "*.md" -exec cp {} ~/.claude/agents/ \;

# Install commands
find plugins/commands-*/commands -name "*.md" -exec cp {} ~/.claude/commands/ \;

# Restart Claude Code

Available Plugin Categories

Agents (11 categories)

  • Development & Architecture - Backend, frontend, mobile, GraphQL experts
  • Language Specialists - Python, Go, Rust, TypeScript, C/C++ experts
  • Quality & Security - Code review, security audit, debugging
  • Infrastructure & Operations - DevOps, cloud, database optimization
  • Data & AI - ML engineering, data pipelines, AI development
  • Crypto & Blockchain - Trading systems, DeFi, Web3 development

Browse all agents →

Browse Subagents

Commands (22 categories)

  • Version Control - Commit, PR creation, branch management
  • Code Analysis - Testing, review, optimization
  • Documentation - Docs generation, changelogs, API specs
  • Project Management - Todos, PRDs, task tracking

Browse all commands →

Browse Commands

Hooks (8 categories)

  • Notifications - Slack, Discord, Telegram alerts
  • Git - Auto-staging, smart commits
  • Development - Lint on save, auto-format
  • Security - File protection, vulnerability scanning

Browse all hooks →

Browse Hooks

Usage Examples

Using Agents

Agents are automatically invoked based on context, or explicitly called:

"Use the python-pro to optimize this function"
"@agent-security-auditor review this authentication code"
"Have the devops-troubleshooter help debug this deployment"

Using Commands

Commands use the / prefix:

/commit                    # Create conventional commit
/create-pr                 # Create pull request
/docs                      # Generate documentation
/tdd                       # Start test-driven development
/code_analysis             # Analyze code quality

Using Hooks

Hooks run automatically on events like tool calls or session start.

Contributing

We welcome contributions!

Adding Plugins

  1. Create a new directory in plugins/ following the naming convention
  2. Add your plugin files (agents, commands, hooks)
  3. Run npm test to validate
  4. Submit a pull request

Plugin Format

Agent (plugins/agents-*/agents/*.md):

---
name: agent-name
description: When to invoke this agent
category: category-name
tools: Read, Write, Bash
---

You are a [role description]...

Command (plugins/commands-*/commands/*.md):

---
description: What this command does
category: category-name
argument-hint: <args>
---

Command implementation...

Hook (plugins/hooks-*/hooks/*.md):

---
hooks: PreToolUse, PostToolUse
description: What this hook does
---

Hook implementation...

See CONTRIBUTING.md for detailed guidelines.

Contributors

This project exists thanks to all the people who contribute.

Contributors

Contribute on our GitHub

Links

License

MIT License - see LICENSE for details.


Made with ❤️ by Dave Poon

Details

Marketplace
davepoon/buildwithclaude
Source
system/dist/skills/trayui
Author
Vladyslav Korzh
Category
Development
License
MIT
Keywords
design-system, html, css, ui, accessibility, tray-ui
Listed since
Nov 23, 2026

Questions

What does the trayui plugin add to Claude Code?

The trayui plugin gives Claude Code the Tray UI design system, an MIT-licensed set of 108 components, 64 blocks for whole screens, 118 icons and 10 themes, all in plain HTML and CSS. Its skill supplies the rules and docs, and a bundled Node checker that reviews the markup the agent writes.

How do I install the trayui plugin?

Run /plugin marketplace add davepoon/buildwithclaude in Claude Code, then run /plugin install trayui@buildwithclaude. After that the plugin's skill is available to build and fix pages and app screens in Tray UI.

Does trayui need an account, API key or server?

No, the listing says trayui needs no account, key or server. The design system is plain HTML and CSS with no build step and no framework.

Where does trayui rank among design plugins?

Trayui ranks in the top 50 of the Design & UI/UX category on Claude Marketplaces. It stands out for shipping a design system with whole-screen blocks and a checker that runs on the markup the agent writes.

More from davepoon/buildwithclaude

All 257

Similar to trayui

More Design & UI/UX