trayui
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-reactalongside 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/buildwithclaudeRun it inside Claude Code once, then install the plugin below.
Install
/plugin install trayui@buildwithclaudeRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceBuild 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(everydata-trayand 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.mdis 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 initcopies the three files and the font intotrayui/;npx trayui@0.4.1 add login-01puts a block beside the pages, its links pointed attrayui/.- In a React app (Vite, Next.js),
npx trayui@0.4.1 initandnpx trayui@0.4.1 add tabs login-01copy the components' and the blocks' source intosrc/components/trayui/, for the project to own. Or use the package:npm install trayui-react@0.4.1andimport 'trayui-react/styles.css';references/docs/react.mdsays how. npx trayui@0.4.1 diffshows what was changed since; a file someone edited is never overwritten without--overwrite.references/docs/cli.mdhas 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-screenwithtray-screen__body(--narrow,--center); a product,tray-appwith 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 inreferences/docs/behaviour.md). Markup added after the page loaded needsTrayUI.init(root). A toast isTrayUI.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 inreferences/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
- One yellow per view.
tray-btnalone is the yellow primary; every other button istray-btn--quiet,--ghost,--dark,--linkor--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. - Selected is solid ink, never yellow.
- 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.
- Headings in order, one
<h1>. - 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-labelthat 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 thearia-labelalone, 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"(oremail) andcurrent-password; sign-up:new-password. - Every
aria-controls,aria-labelledby,aria-describedby,foranddata-targetpoints 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.mdandreferences/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
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:
| Type | Count | Description |
|---|---|---|
| Agents | 117 | Specialized AI experts (Python, Go, DevOps, Security, etc.) |
| Commands | 175 | Slash commands for automation (/commit, /docs, /tdd) |
| Hooks | 28 | Event-driven automation (notifications, git, formatting) |
| Skills | 26 | Reusable capabilities from plugins |
| Plugins | 51 | Bundled 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 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 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 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
- Create a new directory in
plugins/following the naming convention - Add your plugin files (agents, commands, hooks)
- Run
npm testto validate - 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.
Links
- Web UI: buildwithclaude.com
- Documentation: Claude Code Docs
- Plugin Marketplaces: Plugin Docs
- Issues: GitHub Issues
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- treeproofv0.1.2
- ultracostv0.3.7
- ultramodv1.0.11
- usage-limitsv1.0.0
- usethisskillv1.2.0
- uxkinv1.3.0
- vibe-prospectingv0.1.56
- vibesenpaiv0.1.0
- visibilityv0.2.1
- voicemoat-skillsv1.1.2
- watch-for-mev0.1.4
- website-designv1.0.0
- when-to-clearv0.1.1
- wiro-aiv1.3.3
- wudlandv0.1.0
- yaptakev0.1.3
- yylo-skillsv2.0.3
- zeptapv1.0.2
- account-executive-jobsv1.1.1
- active-memoryv0.2.4
- agent-cityv0.1.0
- agent-standupv1.42.0
- agent-standup-bandv1.42.0
- agentkit-dev-skillsv1.2.2
Similar to trayui
More Design & UI/UXui-ux-pro-maxnextlevelbuilder/ui-ux-pro-max-skill153.9K starsProfessional UI/UX design intelligence for AI coding assistants. Includes searchable databases of styles, colors, typography, charts, and UX guidelines for Reac
impeccablepbakaus/impeccable118.6K starsDesign fluency for frontend development. 1 skill with 24 commands (/impeccable polish, /impeccable audit, /impeccable critique, etc.) and curated anti-pattern d
diagram-designcathrynlavery/diagram-design72.3K starsEditorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimla
hallmarkNutlope/hallmark60.7K starsA design skill for Claude Code, Codex, Cursor and OpenCode that refuses to look AI-generated. Powered by Together AI.
brand-guidelinesComposioHQ/awesome-claude-skills51.5K starsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand color
agentic-bundle-design-howsickn33/agentic-awesome-skills50.5K starsInstall the "Design.how" editorial skill bundle for Claude Code.