Claude-skill-registry html-style
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/html-style" ~/.claude/skills/majiayu000-claude-skill-registry-html-style && rm -rf "$T"
manifest:
skills/data/html-style/SKILL.mdsource content
html-style
Transform barebones HTML into styled output using a specific design system.
Workflow
- Read the user's HTML
- Identify elements to style (tables, lists, status text, buttons, sections)
- Inject
block from<style>assets/base.css - Add appropriate classes to HTML elements
- Add interactive JS if needed (copy buttons, drafts, collapsible sections)
Quick Class Reference
| Element | Class | Effect |
|---|---|---|
| Status text | | Red/green/orange inline text |
| Trend | | Green ↑ / Red ↓ |
| Category tag | | Blue/purple/orange pill |
| Status pill | | Filled green/red/orange |
| Filter toggle | | Outline / filled black |
| Time filter | | Small pill, black when active |
| Stat box | > + | 28px number, 12px label |
| Table | default or | Minimal or colored values |
| Section header | | Dark bar with white text |
| Collapsible | + | Native HTML collapse |
| Insight | | Italic, yellow background |
| Tier | | Row background colors |
Element Styling Rules
Tables
- Default: minimal borders, no hover
- Add
for: hover effect,.table-styled
/.positive
cell colors,.negative
rows.highlight - Sortable: add
withth.sortable<a href="?sort=col">Col ▼</a>
Status Indicators
- Text status (
/.stale
/.warm
): Use for inline status in sentences.pending - Status pills (
): Use for badge-style indicators, typically with icon (✓ ✗ ◷).status-* - Trends (
/.trend-up
): Use for numeric changes, adds arrow automatically.trend-down
Sections
Use
.section-header with emoji prefix for visual breaks:
<div class="section-header">🔴 URGENT</div> <div class="section-header">🟠 PENDING</div>
Interactive Elements
When HTML has drafts or copy buttons, add this JS:
function saveDraft(el) { localStorage.setItem('draft:' + el.dataset.threadId, el.textContent); } function copyToClipboard(text, btn) { navigator.clipboard.writeText(text).then(() => { btn.textContent = 'Copied!'; setTimeout(() => btn.textContent = 'Copy', 1500); }); }
Deep Links
Convert URLs to native app links:
- Telegram:
tg://resolve?domain=username - SMS:
sms:+14155551234
Theme
- Default: Light (
)background: #fff - Dark mode: Add
toclass="dark"
when user requests dark theme or context is trading/real-time<body>
Compatibility with Structure Skills
When styling output from
quick-view or table-filters, these class mappings apply:
quick-view classes
| Their Class | Style As |
|---|---|
| (blue border) |
| (orange border) |
| (green border) |
| Already styled (muted, small) |
| Already styled (muted header) |
| Inline button group |
table-filters classes
| Their Class | Style As |
|---|---|
| Flex row with gap |
| Inline chip container |
| Dark pill with |
| Dropdown panel () |
| Centered, muted text |
The
base.css includes styles for these classes automatically.
Resources
- Full style reference: Read references/style-guide.md for detailed CSS patterns and examples
- Base CSS: Inject assets/base.css into
tag in<style><head>