Table patterns
Skill Dragoon0x/everything-design-taste/skills/table-patterns
Data table design, sorting, filtering, pagination, responsive tables, and dense data display.From its SKILL.md
npx -y skills add Dragoon0x/everything-design-taste --skill table-patternsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.9 KB, 396 tokens by cl100k_base, as published. Nobody here has run it
Table Patterns
When to Use Tables
- Comparing multiple items across the same attributes
- Displaying structured data that users need to scan, sort, or filter
- NOT for layout. NOT when a card list would be more scannable.
Column Design
- Left-align text, right-align numbers. Decimal points should line up vertically.
- First column is the identifier. Name, title, ID, whatever uniquely identifies the row.
- Action column goes last. Edit, delete, view buttons on the right.
- Pin the identifier column on horizontal scroll. Users need context when scrolling wide tables.
Sorting
- Default sort should be the most useful order (usually most recent first or alphabetical)
- Show sort direction with an arrow icon
- Allow sorting on any column that makes sense
- Remember sort preference across sessions
Pagination vs Infinite Scroll vs Virtual Scroll
| Method | Best For | Avoid When |
|---|---|---|
| Pagination | Large datasets, precise navigation | Quick browsing |
| Infinite scroll | Feed-like content, browsing | Users need to reach the footer, precise navigation |
| Virtual scroll | Very large lists (1000+), performance | Simple short lists |
Responsive Tables
- Under 768px: Convert to card list, stacked key-value pairs, or horizontal scroll
- Never just shrink the table until text wraps into unreadable blocks
- Priority columns: show the most important 2-3 columns, hide rest behind expansion
Density
- Compact: 32px row height, 12px padding. For power users, data-heavy dashboards.
- Default: 48px row height, 16px padding. Most contexts.
- Comfortable: 64px row height, 24px padding. When rows have multiple lines or images.
- Offer a density toggle for data-heavy applications.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.