Best For
magazine grid / magazine layout / editorial design
杂志网格布局
Rate this styleMulti-column grid layout inspired by print magazines, creating rich visual hierarchy through varied content block sizes. Ideal for news, blogs, and content aggregation.
Best For
magazine grid / magazine layout / editorial design
Primary Move
Use CSS Grid to create complex grids grid-template-areas
Watch Out
Do not make all content blocks the same size
design.md
One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.
The layout does the talking: big blocks carry the lead story, small ones fill in, and size is priority.
Theme: light
Magazine Grid carries print layout logic onto the page: grid-template-areas draws blocks of unequal size, the lead takes 2×2, the second feature 2×1, briefs 1×1, and importance is legible at a glance. Three rules hold it — no two blocks may share a size, since that erases hierarchy; image crops must stay consistent or the grid warps; and body paragraphs never take displacement animation, because reading stability outranks flourish. Title hover only changes color, never glow or shadow.
| Name | Value | Token | Role |
|---|---|---|---|
| Ink | #1a1a1a | --color-ink | Headings and body — a newsprint dark grey, easy over long reading. |
| Paper | #fafafa | --color-paper | The page ground — near white without glare, letting images carry contrast. |
| Red | #e63946 | --color-red | Lead markers and section labels — the loudest color on the page. |
| Teal | #2a9d8f | --color-teal | Secondary categories and culture sections. |
| Gold | #e9c46a | --color-gold | Pull-quote grounds and highlights, marking a passage worth reading alone. |
| Navy | #264653 | --color-navy | Long reads and feature labels, used less than red and teal. |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | Playfair Display | 900 | 56px | 1.05 | -0.02em | --text-display |
| heading-lg | Playfair Display | 700 | 40px | 1.1 | — | --text-heading-lg |
| heading | Playfair Display | 700 | 28px | 1.2 | — | --text-heading |
| subheading | Playfair Display | 400 | 20px | 1.3 | — | --text-subheading |
| body | Inter | 400 | 15px | 1.7 | — | --text-body |
| label | Inter | 500 | 12px | 1.4 | 0.1em | --text-label |
Base unit: 8px Density: comfortable
| Name | Value | Token |
|---|---|---|
| 8 | 8px | --spacing-8 |
| 16 | 16px | --spacing-16 |
| 24 | 24px | --spacing-24 |
| 32 | 32px | --spacing-32 |
| 48 | 48px | --spacing-48 |
| 64 | 64px | --spacing-64 |
| 96 | 96px | --spacing-96 |
| Element | Value |
|---|---|
| cards | 8px |
| buttons | 4px |
| images | 4px |
Role: The lead block at 2×2
Two columns by two rows, holding a 16:9 image on a 4px radius with a fixed crop, then a 40px/700 serif headline and a 20px standfirst of two lines at most. A 12px uppercase 0.1em red section label sits top-left. No shadow anywhere on the block.
Role: Secondary and brief blocks
1×1 or 2×1 with images locked to 1:1 or 4:3 — equal-sized blocks must share a ratio. Headline at 28px/700 in both cases, description at 15px on 1.7 leading, three lines at most. Label color is fixed by section: teal for culture, navy for long reads.
Role: The pull quote
A gold ground (25% #e9c46a) or a solid gold block on a 4px radius with 24px padding. The quote runs 28px serif italic at 1.4 leading, with a 13px sans attribution beneath. Reserved for the one passage worth reading on its own, at most one per screen.
Role: Section and category labels
12px/500, uppercase, 0.1em tracking, no ground and no border. Colors are fixed per section and never swapped: red for leads, teal for culture, navy for long reads, ink for opinion. The label always sits 8px above the headline.
Role: The title hover rule
Hover changes the headline to its section's accent in 120ms — no underline, no shadow, no glow, no movement. That is this style's definition of crisp.
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Paper | #fafafa | 页面底 |
| 1 | Card White | #ffffff | 内容块 |
| 2 | Gold Quote | #e9c46a | 引文块 |
none — the grid does the separating0 4px 16px rgba(26,26,26,0.08)News and editorial photography with locked crop ratios (16:9 for leads, 1:1 or 4:3 for small blocks). People, scenes and charts all work. No illustration or decorative graphics.
Capped at 1280px with 24px padding over a four-column grid at 24px gutters, with grid-template-areas spelling out the layout. Sections sit 64px apart. Below 1024px it drops to two columns, and below 768px everything stacks with the lead no longer spanning.
QUICK COLOR REFERENCE:
#1a1a1a#fafafa#ffffff#e63946#2a9d8f#e9c46aEXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-ink: #1a1a1a;
--color-paper: #fafafa;
--color-red: #e63946;
--color-teal: #2a9d8f;
--color-gold: #e9c46a;
--color-navy: #264653;
/* Typography — Font Families */
--font-serif: 'Playfair Display', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 56px;
--leading-display: 1.05;
--tracking-display: -0.02em;
--text-heading-lg: 40px;
--leading-heading-lg: 1.1;
--text-heading: 28px;
--leading-heading: 1.2;
--text-subheading: 20px;
--leading-subheading: 1.3;
--text-body: 15px;
--leading-body: 1.7;
--text-label: 12px;
--leading-label: 1.4;
--tracking-label: 0.1em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-bold: 700;
--font-weight-black: 900;
/* Spacing */
--spacing-unit: 8px;
--spacing-8: 8px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-96: 96px;
/* Layout */
--page-max-width: 1280px;
--section-gap: 64px;
--card-padding: 24px;
--element-gap: 16px;
--density: comfortable;
/* Border Radius */
--radius-cards: 8px;
--radius-buttons: 4px;
--radius-images: 4px;
/* Surfaces */
--surface-paper: #fafafa;
--surface-card-white: #ffffff;
--surface-gold-quote: #e9c46a;
}
Component Templates
FAQ
/* Magazine Grid Global Styles */
/* Base magazine grid */
.magazine-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}
@media (min-width: 768px) {
.magazine-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.magazine-grid {
grid-template-columns: repeat(4, 1fr);
}
}
/* Featured item spans */
.magazine-featured {
grid-column: span 2;
grid-row: span 2;
}
@media (max-width: 767px) {
.magazine-featured {
grid-column: span 1;
grid-row: span 1;
}
}
/* Article card styles */
.magazine-article {
position: relative;
}
.magazine-article img {
transition: transform 0.3s ease;
}
.magazine-article:hover img {
transform: scale(1.05);
}
/* Category tags */
.magazine-category {
display: inline-block;
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
border-radius: 0.25rem;
}
/* Category colors */
.magazine-category-tech { color: #3b82f6; background: #eff6ff; }
.magazine-category-business { color: #10b981; background: #ecfdf5; }
.magazine-category-culture { color: #f59e0b; background: #fffbeb; }
.magazine-category-opinion { color: #8b5cf6; background: #f5f3ff; }
.magazine-category-featured { color: white; background: #dc2626; }
/* Line clamp for excerpts */
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Magazine Grid Design Tokens */
:root {
--magazine-grid-primary: #1a1a1a;
--magazine-grid-secondary: #fafafa;
--magazine-grid-accent: #e63946;
--magazine-grid-glow: rgba(26, 26, 26, 0.3);
}
@keyframes magazine-grid-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes magazine-grid-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.magazine-grid-card {
position: relative;
overflow: hidden;
}
.magazine-grid-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(26, 26, 26, 0.05), transparent);
pointer-events: none;
}
.magazine-grid-card:hover::before {
opacity: 1;
}
.magazine-grid-gradient {
background: linear-gradient(135deg, #1a1a1a, #e63946);
}
.magazine-grid-gradient-text {
background: linear-gradient(135deg, #1a1a1a, #e63946);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.magazine-grid-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(26, 26, 26, 0.08);
}
.magazine-grid-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.magazine-grid-animate-in {
animation: magazine-grid-fade-in 0.5s ease-out both;
}Compatible Visual Styles
Magazine Grid is a layout pattern that can be paired with the following visual styles.
Related Styles
Explore these styles for ready-made tokens and components.
Magazine Grid and Bento 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.
| Attribute | Magazine Grid | Bento Grid |
|---|---|---|
| Primary color | #1a1a1a | #18181b |
| Secondary color | #fafafa | #fafafa |
| Best for | magazine grid / magazine layout / editorial design | bento grid / bento layout / bento box design |
| Unique tags | — | — |
Magazine Grid borrows the typographic wisdom of traditional print magazines, creating professional editorial effects through multi-column and mixed-size content blocks.
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.