Tailwind CSS

以明亮画布呈现代码与设计A bright canvas for code, craft, and utility.

浅色主题开发者工具developer tools homepage极简面向开发者浅色编辑式排版实用优先原网页 tailwindcss.com ↗ · 2026-10-12 采集 · 1440×900 桌面端
Tailwind CSS 首屏

Tailwind CSS 以醒目的大标题开场,搭配代码演示、功能卡片和真实网站作品集。近乎纯白的页面与深色文字保持清爽克制,少量鲜亮色彩则突出代码细节和交互重点。

North star · Keep the page bright and spacious, and let dark code panels and restrained syntax accents carry the visual emphasis.

The page uses white as an expansive canvas, with pale gray bands and hairlines gently distinguishing content rather than enclosing every section. Near-black headings provide strong contrast; cool muted grays carry supporting copy, while cyan, mint, and pink appear as compact accents in code, labels, and selected controls. Inter supplies the large, tightly tracked hero and clear sans-serif hierarchy. Plex Mono gives technical labels, snippets, and small metadata a distinctly developer-oriented voice. The layout alternates a spacious single-column opening with split product demonstrations, a dense four-column sponsor field, and a varied feature-card grid. Dark code panels create focused contrast against the light page; screenshots, UI examples, and the site gallery provide visual variety without changing the underlying design language. Rounded pill CTAs and softly rounded cards keep the otherwise precise, grid-based system approachable.

配色

点色块复制色值。用途说明来自对页面的实测位置(背景、文字、描边、按钮)与截图判读。

品牌色
强调色
表层色
中性色
功能色
页面底色 · Gallery White表层 · Mist Divider表层 2 · Night Ink表层 3 · Editor Charcoal主文字 · Night Ink次要文字 · Slate Copy弱文字 · Frost Text描边 · Mist Divider强调 · Sky Syntax强调 2 · Signal Pink强调 3 · Mint Syntax
文字背景对比度WCAG
#030712 Night Ink#ffffff Gallery White20.13:1AAA
#030712 Night Ink#f2f2f3 Mist Divider18:1AAA
#030712 Night Ink#1d202a Editor Charcoal1.24:1不达标
#4a5565 Slate Copy#ffffff Gallery White7.56:1AAA
#4a5565 Slate Copy#f2f2f3 Mist Divider6.76:1AA
#4a5565 Slate Copy#030712 Night Ink2.66:1不达标

字体

字号阶梯:Perfect Fifth(比例约 1.492,正文 13px)。示例用免费替代字体渲染,数值为实测。

Aa 设计

inter

网络字体 · 字重 400 / 500 / 600 / 700 · 占比 62%
免费替代:Inter

Hero and section headings, navigation, body copy, links, and primary controls.

Aa 设计

plexMono

网络字体 · 字重 400 / 500 / 600 · 占比 38%
免费替代:IBM Plex Mono

Code, technical captions, uppercase eyebrows, and compact metadata.

角色示例字号字重行高字距
特大标题
Oversized hero statement at the top of the homepage.
Tailwind CSS
96px4001-0.05em
一级标题
Primary page title and prominent heading treatment.
Tailwind CSS
40px5001-0.05em
二级标题
Major section titles, such as feature and showcase introductions.
Tailwind CSS
36px6001.330
三级标题
Feature-card and subsection headings.
Tailwind CSS
30px6001.20
四级标题
Smaller content headings and demonstration labels.
The quick brown fox 敏捷的狐狸
24px5001.670
正文
Compact monospaced technical and supporting copy.
The quick brown fox 敏捷的狐狸
13px4001.850
辅助文字
Small metadata, code labels, and secondary annotations.
The quick brown fox 敏捷的狐狸
12px40020
按钮
CTA labels and compact interface controls.
The quick brown fox 敏捷的狐狸
12px4001.670
链接
Navigation, footer links, and inline destinations.
The quick brown fox 敏捷的狐狸
14px4001.710
眉题
Uppercase section markers above major headings.
The quick brown fox 敏捷的狐狸
12px6001.330.1em
代码
Syntax-highlighted examples inside editor-style panels.
const style = 1;
13px4001.850

间距与布局

基准单位 8px · 密度:紧凑

32px版块间距
8px元素间距
8px卡片内边距
1360px内容最大宽度
4px
8px
12px
16px
24px
32px
40px
64px

The page sits on a centered, wide canvas with a measured maximum width of 1360px. It opens with a single-column, left-aligned hero, then moves through split demonstrations, a four-column sponsor field, and a varied multi-column feature grid. Large white intervals separate major stories; inside cards, content is compact and carefully aligned. The measured spacing system uses an 8px base, with density described as compact. The footer returns to a simple three-column link arrangement followed by a separate copyright row.

圆角与层次

按钮 · 9999px
卡片 · 16px
图片 · 50%
inset · other, media
inset · card
inset · card, button
inset · card

The overall treatment is mostly flat: white canvas, subtle gray borders, and carefully separated card surfaces. Measured cards use 16px rounding; buttons are pill-shaped in the primary CTA treatment. Use restrained inset edge definition and a light media shadow only where the screenshot or product mockup needs separation, not as a page-wide effect.

组件

下面的预览按实测的按钮、输入框、徽标、卡片样式重建(字体用替代字体)。

Pill CTA

A dark, white-label primary action with a pill silhouette; the measured Get started buttons use a 32px radius and compact horizontal padding.

Code editor panel

A dark charcoal rounded surface containing monospaced, syntax-colored snippets, line numbers, and restrained editor chrome.

Sponsor grid

A clean multi-column field of partner logos on white, with generous separation and no heavy card framing.

Feature card

A softly rounded white card pairing a concise title and copy with a product UI example, screenshot, or small illustrative icon.

Section eyebrow

A compact uppercase monospaced label in a small accent color, placed immediately above a larger Inter section heading.

Product gallery

A dense collage of real website screenshots, framed as a broad visual field rather than a uniform set of identical tiles.

Imagery · Images are primarily product evidence: dark editor panels, UI mockups, interface screenshots, and a gallery of varied real websites. Feature examples include property photography and interface previews, while sponsor logos add a typographic rather than photographic image field. Keep assets in clean, softly rounded cards; preserve screenshot content and color where present, and avoid adding decorative imagery that competes with code.

页面版块

共 8 个版块,按页面从上到下排列,每个都标了类型、布局和交互套路。

该做与不该做

✓ 该做

  • Use white as the dominant page canvas.
  • Reserve near-black for strong headings and dark code surfaces.
  • Use cyan, mint, and pink as small technical accents.
  • Pair Inter interface text with Plex Mono technical labels.
  • Let whitespace separate major sections.
  • Use pale hairlines to define cards without heavy framing.

✕ 不该做

  • Do not turn accent colors into large page backgrounds.
  • Do not add decorative gradients unsupported by the page.
  • Do not use heavy shadows on every card.
  • Do not crowd the hero with extra content.
  • Do not make supporting copy compete with the headline.
  • Do not standardize the varied gallery into repetitive placeholders.

给 AI 的提示词

想快速出一个同风格的新页面,把这段话连同 DESIGN.md 一起发给 AI。

Build a new developer-tools page in Tailwind CSS's bright, code-centric visual language. Use Gallery White (#ffffff) as the dominant canvas, Night Ink (#030712) for headings and key contrast, and Mist Divider (#f2f2f3) for quiet card edges. Use Slate Copy (#4a5565) for supporting text. Pair Inter with Plex Mono for code, metadata, and uppercase section eyebrows. Keep the opening headline large, left aligned, and spacious; follow it with product evidence in dark Editor Charcoal (#1d202a) panels. Add only small Sky Syntax (#74d4ff), Mint Syntax (#96f7e4), and Signal Pink (#f6339a) accents. Organize later content into crisp grids, screenshot-led feature cards, and a broad real-product gallery. Use restrained borders, rounded cards, and a dark pill CTA; keep the page flat, readable, and distinctly technical.

相似风格

Tailwind CSS 设计系统 — 配色、字体与 DESIGN.md | Design DNA