Data Table Scannability
Structure table rows and columns so the eye can scan down and across without losing its place.
Paste this into your agent.
A table that's technically correct can still be unreadable if rows blur together and the eye can't track across a wide table without losing the row.
When to use
- Any data table over ~5 rows or ~4 columns, especially with numeric data.
Principles
- Zebra striping and hover-row highlighting solve different problems: striping helps scan down a wide table, hover highlighting helps track across a specific row. Use hover highlighting first; add striping only for genuinely wide, dense tables.
- Column alignment communicates data type before the user reads it: right-align numbers, left-align text, center-align short categorical/status values.
- The first column usually needs to stay pinned/sticky on horizontal scroll — it's the row's identity, and losing it while scrolling right defeats the table's purpose.
Instructions
- Left-align text columns, right-align numeric columns, and never center-align a numeric column — centering breaks the ability to compare magnitudes at a glance.
- Add a hover state on the full row (not just the cell under the cursor) so users can track a row across many columns.
- Keep row height consistent and generous enough for touch targets (44px minimum) if the table is interactive, tighter (32–36px) if it's read-only and dense.
- Sort indicators belong in the column header, always visible on hover, and should show current sort direction, not just "sortable."
- For very wide tables, pin the identifying column(s) with
position: sticky; left: 0and give it a subtle shadow/border to indicate it's floating above scrolled content.
Examples
csstbody tr:hover { background: var(--surface); }
td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { position: sticky; left: 0; background: inherit; }
Avoid
- Don't strip all visual separation between rows in the name of minimalism — some boundary (hover, subtle border, or striping) is necessary once a table exceeds a handful of rows.
- Don't truncate identifying text (names, IDs) without a tooltip or expand affordance — silent truncation makes rows indistinguishable.
References
- Common convention across spreadsheet software (right-aligned numbers) applied to web data tables.
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Antfu Designby antfu
antfu-style design conventions, broadened. UnoCSS-first, class-based semantic tokens with dual light/dark for tooling and devtools UIs, plus design-read, anti-slop, and micro-interaction polish for landing pages and product surfaces. Use when building or refactoring any interface with UnoCSS.
LayoutExternalGitHub stars: 6K
Banner Designby nextlevelbuilder
Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.
VisualExternalGitHub stars: 142.5K
Beautiful Shadowsby MengTo
Use when a UI needs better depth, elevation, and shadow treatment without looking muddy.
VisualExternalGitHub stars: 7.1K
Bencium Innovative Ux Designerby bencium
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
VisualExternalGitHub stars: 470