html-style
Original:🇺🇸 English
Translated
Apply opinionated styling to barebones HTML. Use when user has plain/unstyled HTML and wants to apply consistent visual styling. Triggers: style this HTML, apply styling, make this look good, /html-style, or when user shares HTML that needs CSS. Transforms tables, lists, status indicators, buttons, and layouts into a cohesive design system.
5installs
Sourceshipshitdev/library
Added on
NPX Install
npx skill4agent add shipshitdev/library html-styleTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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/.positivecell colors,.negativerows.highlight - Sortable: add with
th.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 with emoji prefix for visual breaks:
.section-headerhtml
<div class="section-header">🔴 URGENT</div>
<div class="section-header">🟠 PENDING</div>Interactive Elements
When HTML has drafts or copy buttons, add this JS:
javascript
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 to
class="dark"when user requests dark theme or context is trading/real-time<body>
Compatibility with Structure Skills
When styling output from or , these class mappings apply:
quick-viewtable-filtersquick-view classes
| Their Class | Style As |
|---|---|
| |
| |
| |
| 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 includes styles for these classes automatically.
base.cssResources
- 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>