'use client'; import { Layout, Section, Article, Masthead, Headline, Subhead, Kicker, BodyText, } from 'newspaperui-components'; import Link from 'next/link'; const demos = [ { href: '/blocks/zh-frontpage', lang: '中文 · Chinese', title: '人民周报 · 头版', description: '思源宋体 + 克制朱红 + 紧凑排版。中文报纸传统视觉语言。', color: '#CC2929', }, { href: '/blocks/zh-feature', lang: '中文 · Chinese', title: '人民周报 · 副刊专题', description: '深度专题排版:访谈、人物、文化评论。', color: '#CC2929', }, { href: '/examples/nyt-frontpage', lang: 'English', title: 'The Daily Chronicle · NYT Style', description: 'Classic American serious newspaper. Cormorant Garamond masthead, multi-column flow with drop cap.', color: '#1A1A1A', }, { href: '/blocks/en-feature', lang: 'English', title: 'The Daily Chronicle · Long-form Feature', description: 'Editorial long-form piece with pull quotes and editorial design.', color: '#1A1A1A', }, { href: '/blocks/jp-horizontal', lang: '日本語 · Japanese', title: '朝日新聞 · 横組み', description: 'Modern horizontal Japanese newspaper layout. Noto Serif JP.', color: '#1B2A4A', }, { href: '/blocks/jp-vertical', lang: '日本語 · Japanese', title: '朝日新聞 · 縦組み', description: 'Traditional vertical writing-mode Japanese layout.', color: '#1B2A4A', }, { href: '/examples/blackletter-frontpage', lang: 'Deutsch', title: 'Die Frankfurter Zeitung', description: 'Blackletter masthead with UnifrakturMaguntia. German broadsheet tradition.', color: '#1A1A1A', }, ]; export default function LandingPage() { return (
About 生产级报纸布局组件库

参考 InDesign 与经典严肃风排版传统(NYT / The Times / FAZ),基于 24 列栅格、CSS Grid + Multi-column 双层机制构建。

Print-grade typography, on the modern web. 18 components, 24-column grid, classic serif typography, real multi-column flow.
Quick Start Install

pnpm add newspaperui-components newspaperui-theme

Documentation →
Live Demos · Production-grade Examples
Multi-language Newspaper Showcase 7 complete newspaper layouts in Chinese, English, German, and Japanese
{demos.map((demo, idx) => (
{demo.lang}
Demo #{String(idx + 1).padStart(2, '0')}

{demo.title}

{demo.description}

View demo →
))}
Design Philosophy Print Tradition, Web Implementation

NewspaperUI 借鉴 InDesign 段落样式系统的设计 token 思想,把字体、字号、字重、行高、颜色、间距统一收敛到视觉权重映射表(visualWeights)。组件从单一数据源读取样式,修改一处即全局生效。

排版机制采用 Hybrid 双层:CSS Grid 负责大块布局,CSS Multi-column 负责正文流。这是报纸排版传统在 Web 上的最佳还原。

Tech Stack React 18 · TypeScript 5 · CSS Grid + Multi-column

4 packages:newspaperui-themenewspaperui-utilsnewspaperui-components(18 components)、@newspaperui/docs

Built with pnpm workspaces + Turborepo. Vite for libraries, Next.js 15 for docs.

); }