StyleKit

Data Dense

数据密集

Rate this style

High-density admin panel style with compact spacing and small components. Prioritizes data tables and operational efficiency.

data densehigh density uicompact uidata table designadmin paneldense dashboardenterprise uiinformation densitycompact spacingoperational dashboardback office ui

Best For

data dense / high density ui / compact ui

Primary Move

Use white bg-white with very light blue-gray bg-[#f8fafc] alternating rows

Watch Out

Never use large spacing p-6+ (wastes data display space)

design.md

Data Dense as a design document

One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.

Document view

Data Dense — Style Reference

Every pixel carries data: type at 10 to 12px, spacing on a 4px step, no ornament at all.

Theme: light

Data Dense serves an operations desk, so every aesthetic metric is minimised: 10 to 12px type, 28px rows, spacing in 4px steps, 4px radii, no shadow and no gradient. Hierarchy comes from three things only — alternating row grounds (white and a very pale blue-grey), 1px dividers, and the color blocks of status tags. Figures, IDs and code all run monospace and right-align so columns can be compared vertically. The value of this style is the density itself: forty rows per screen instead of twelve. Any change that adds whitespace is a regression.

Colors

NameValueTokenRole
White#ffffff--color-whiteTable and panel ground, forming the lightest separation against the alternating row tone.
Row Tint#f8fafc--color-row-tintAlternating rows and header ground — one step off white, felt through repetition rather than contrast.
Ink#1e293b--color-inkPrimary text and figures — deep slate that stays crisp at dense sizes.
Muted#64748b--color-mutedHeaders, secondary columns and notes, always paired with 10px uppercase.
Primary Blue#3b82f6--color-primary-bluePrimary actions, selected rows and focus — the only saturated block allowed in a table.
Danger#ef4444--color-dangerDeletion and error states, only on text and 10% ground tags.
Success#22c55e--color-successGrowth and completion, matched to danger in both area and weight.

Typography

Inter — The only face, capping at 18px. The 10px uppercase header is this style's identifying mark.
  • Substitute: system-ui, -apple-system, 'Segoe UI', sans-serif
  • Weights: 400, 500, 600
  • Sizes: 10, 11, 12, 14, 18
  • Line height: 1.2 (display), 1.3 (headings), 1.45 (body)
  • Letter spacing: -0.01em on display, 0.06em on uppercase labels
JetBrains Mono — Figures, IDs, timestamps and code — the monospace makes vertical comparison possible.
  • Substitute: ui-monospace, SFMono-Regular, Menlo, monospace
  • Weights: 400, 500
  • Sizes: 11, 12, 14
  • Line height: 1.4 (display), 1.4 (headings), 1.45 (body)
  • Letter spacing: 0 on display, 0.02em on uppercase labels
Type Scale
RoleFamilyWeightSizeLine HeightLetter SpacingToken
heading—60018px1.3—--text-heading
body-lg—50014px1.45—--text-body-lg
body—40012px1.45—--text-body
body-sm—40011px1.4—--text-body-sm
label—50010px1.30.06em--text-label

Spacing & Layout

Base unit: 4px Density: compact

Spacing Scale
NameValueToken
44px--spacing-4
88px--spacing-8
1212px--spacing-12
1616px--spacing-16
2424px--spacing-24
3232px--spacing-32
Border Radius
ElementValue
cards4px
buttons4px
inputs4px
tags4px
  • Page max-width: 1600px
  • Section gap: 16px
  • Card padding: 12px
  • Element gap: 4px

Components

Data Table

Role: The primary data table

A 1px #e2e8f0 frame, 4px radius, no shadow. The header is 32px tall on #f8fafc with 10px uppercase at 0.06em in grey 500. Rows are 28px with 8px 12px padding, alternating to #f8fafc. Numeric columns run monospace and right-align; the status column holds color tags. Hover tints the whole row #eff6ff over 120ms.

  • Sizes: row 28px; header 32px
  • States: hover: row #eff6ff
Action Button

Role: Row actions and toolbar buttons

24px tall, 4px 10px padding, 4px radius, 11px/500, no shadow. Primary actions take a blue fill with white text, secondary actions a white fill with a 1px #e2e8f0 border, destructive actions red text on transparent. Hover changes only the ground, over 120ms.

  • Sizes: height 24px; label 11px
Stat Card

Role: Top-row stats

White fill, 1px #e2e8f0 border, 4px radius, 10px 12px padding, no shadow. The first line is a 10px uppercase grey label, the second an 18px/600 monospace figure, the third a 10px delta in green or red. Three or more sit in an equal-width row with 12px gaps.

Status Tag

Role: Status and category tags

10px/500 on a 4px radius with 2px 6px padding and no border. In-progress uses a 10% blue ground with blue 700 text, success 10% green, failure 10% red. Color always pairs with a text label, never carrying meaning alone.

Admin Rail

Role: Left navigation rail

192px wide on #f8fafc with a 1px #e2e8f0 border on the right and 12px vertical padding. Items are 26px tall on a 4px radius with 12px type and a 14px icon. Selection fills blue with white text; hover gives a white ground with ink text. Group labels sit 12px above at 10px uppercase grey.

Do's and Don'ts

Do
  • Type between 10 and 12px, capping at 18px
  • Spacing moves in 4px steps
  • Pin row height at 28px
  • Run figures and IDs monospace and right-aligned
  • Layer with alternating rows and 1px rules
  • Status colors always pair with a text label
Don't
  • No padding above 16px
  • No radius above 8px
  • No shadows on tables
  • No decorative gradients
  • Never add whitespace for looks
  • Never signal status by hue alone

Surfaces

LevelNameValuePurpose
0White#ffffff表格与面板
1Row Tint#f8fafc交替行与表头
2Rail#f8fafc左侧导航

Elevation

  • None: none — 1px borders only

Imagery

Almost no imagery. Avatars at 20px, icons at 14px and sparklines no taller than 24px are the entire budget. No large images, illustration or background texture — they directly reduce the row count.

Layout

A 192px rail beside a content area capped at 1600px with 16px padding. The stat row uses 12px gaps and the table below fills the remaining height. Every gap is a multiple of four, rows are pinned at 28px, and the target is thirty-five rows per screen.

Agent Prompt Guide

Implementation Contract
  • Use the requested page, user task and real content as the brief. Implement only the requested scope; identify missing business information instead of inventing data or capabilities.
  • Inspect the current project, stack and components first. Reuse its structure, routes, dependencies and components; do not rebuild unrelated pages or features.
  • Use the project's breakpoints to adapt columns and spacing for narrow and desktop screens. Preserve hierarchy and prevent accidental horizontal overflow.
  • For interactions in scope, support keyboard focus and reduced motion, with applicable disabled, loading, empty and error states.
  • Run the project's existing checks after implementation. Report only tests and visual checks actually run, and list unverified behavior.

QUICK COLOR REFERENCE:

  • text: #1e293b
  • background: #ffffff
  • rowTint: #f8fafc
  • accent: #3b82f6
  • muted: #64748b
  • border: #e2e8f0

EXAMPLE COMPONENT PROMPTS:

  1. Build a data table: a 1px #e2e8f0 frame, 4px radius, no shadow. The header is 32px tall on #f8fafc with 10px uppercase at 0.06em in #64748b. Rows are 28px with 8px 12px padding, alternating to #f8fafc and tinting to #eff6ff on hover. Numeric columns use tabular-nums and right-align; status cells hold 10px tags (10% ground with solid text, 4px radius, 2px 6px padding).

Similar Brands

  • Dashboard Layout — Also an operations surface, though Dashboard uses 20px padding and larger cards
  • Linear — Also pursues density, though Linear buys character with dark tones and large titles

Quick Start


:root {
  /* Colors */
  --color-white: #ffffff;
  --color-row-tint: #f8fafc;
  --color-ink: #1e293b;
  --color-muted: #64748b;
  --color-primary-blue: #3b82f6;
  --color-danger: #ef4444;
  --color-success: #22c55e;

  /* Typography — Font Families */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typography — Scale */
  --text-heading: 18px;
  --leading-heading: 1.3;
  --text-body-lg: 14px;
  --leading-body-lg: 1.45;
  --text-body: 12px;
  --leading-body: 1.45;
  --text-body-sm: 11px;
  --leading-body-sm: 1.4;
  --text-label: 10px;
  --leading-label: 1.3;
  --tracking-label: 0.06em;

  /* Typography — Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --spacing-unit: 4px;
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;

  /* Layout */
  --page-max-width: 1600px;
  --section-gap: 16px;
  --card-padding: 12px;
  --element-gap: 4px;
  --density: compact;

  /* Border Radius */
  --radius-cards: 4px;
  --radius-buttons: 4px;
  --radius-inputs: 4px;
  --radius-tags: 4px;

  /* Surfaces */
  --surface-white: #ffffff;
  --surface-row-tint: #f8fafc;
  --surface-rail: #f8fafc;
}

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

Button

FAQ

Data Dense — Frequently Asked Questions

What is the Data Dense design style?
High-density admin panel style with compact spacing and small components. Prioritizes data tables and operational efficiency. Its core principle: Data Dense is an efficiency-first admin interface design language.
What colors does Data Dense use?
Data Dense uses #ffffff as its primary color and #f8fafc as its secondary color, with accent colors #3b82f6, #ef4444, #22c55e, #64748b. Every hex value can be copied from the palette on this page.
How do I apply Data Dense correctly?
Key practices: Use white bg-white with very light blue-gray bg-[#f8fafc] alternating rows. Table rows use compact py-2 text-sm or text-xs. Status badges use color coding bg-blue-50 text-blue-700 rounded px-1.5 py-0.5 text-xs.
What are common mistakes with Data Dense?
Avoid: Never use large spacing p-6+ (wastes data display space). Never use large rounded-xl+ corners (wastes pixels). Never use large text-lg+ for table data.
How do I prompt AI to generate Data Dense UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: data dense, high density ui, compact ui, data table design.
Global Styles

Global CSS

css
.data-dense-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  border-radius: 0.25rem;
  font-weight: 500;
}
.data-dense-badge--success { background: #f0fdf4; color: #15803d; }
.data-dense-badge--warning { background: #fffbeb; color: #a16207; }
.data-dense-badge--error { background: #fef2f2; color: #b91c1c; }
.data-dense-badge--info { background: #eff6ff; color: #1d4ed8; }
@keyframes data-dense-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes data-dense-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.data-dense-card {
  position: relative;
  overflow: hidden;
}

.data-dense-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.data-dense-card:hover::before {
  opacity: 1;
}

.data-dense-gradient {
  background: linear-gradient(135deg, #ffffff, #3b82f6);
}

.data-dense-gradient-text {
  background: linear-gradient(135deg, #ffffff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.data-dense-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);
}

.data-dense-accent-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}

.data-dense-animate-in {
  animation: data-dense-fade-in 0.5s ease-out both;
}

Related Styles

Related Styles

Explore these styles for ready-made tokens and components.

Data Dense and Asymmetric Grid sit closest to each other. The table below gives the real differences in color, use case, and tags, so the choice between them is made on facts.

AttributeData DenseAsymmetric Grid
Primary color#ffffff#0f0f0f
Secondary color#f8fafc#ffffff
Best fordata dense / high density ui / compact uiasymmetric grid / broken grid layout / asymmetrical layout
Unique tags—high-contrast
Design Philosophy

Data Dense is an efficiency-first admin interface design language.