GitHub

深色画布,点亮开发者故事A dark canvas for bold developer stories

深色主题开发者工具developer platform homepage深色渐变编辑式排版开发者工具模块化网格原网页 github.com ↗ · 2026-10-12 采集 · 1440×900 桌面端
GitHub 首屏

GitHub以近黑色、留白充足的画布搭配鲜明的紫蓝氛围光,突出开发者工具。清晰的文字、纤细分隔线、产品界面图和模块化内容面板,将页面从平台功能自然延伸至客户案例与页脚导航。

North star · Keep the interface nearly black and quiet, reserving luminous gradients and accent colors for product storytelling and clear actions.

The page is anchored by a near-black canvas, with deep navy-violet gradients concentrated behind hero and product media rather than used as flat brand fills. White headings and muted gray supporting copy create a high-contrast reading hierarchy; pale blue links and restrained green signup actions provide precise points of emphasis. Mona Sans supplies the clean, contemporary voice, with measured headings set firmly and body copy kept open and readable. Content alternates between centered introductions and broad two-column or multi-column modules, using thin charcoal dividers to organize long stretches of dark space. Product screenshots and interface mockups sit inside softly rounded frames, while atmospheric purple-blue light gives them depth without adding heavy card chrome. Generous section breathing room lets each feature story stand independently, then compact footer columns restore navigation density.

配色

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

品牌色
强调色
表层色
中性色
功能色
页面底色 · Midnight Canvas表层 · GitHub Charcoal表层 2 · Deep Graphite表层 3 · Forest Black表层 4 · Panel Gray主文字 · Bright Paper次要文字 · Soft Sage弱文字 · Glacier Link描边 · Divider Slate强调 · Glacier Link强调 2 · Action Green强调 3 · Lilac Glow
文字背景对比度WCAG
#ffffff Bright Paper#000000 Midnight Canvas21:1AAA
#ffffff Bright Paper#0d1117 GitHub Charcoal18.92:1AAA
#ffffff Bright Paper#0f0f0f Deep Graphite19.17:1AAA
#ffffff Bright Paper#0f1511 Forest Black18.49:1AAA
#a4aea6 Soft Sage#000000 Midnight Canvas9.18:1AAA
#a4aea6 Soft Sage#0d1117 GitHub Charcoal8.28:1AAA

字体

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

Aa 设计

Mona Sans

网络字体 · 字重 400 / 500 / 425 / 480 / 460 / 600 / 440 / 800 · 占比 77%
免费替代:Inter

Main display and interface sans for headings, body, buttons, and navigation.

Aa 设计

Mona Sans VF

系统字体 · 字重 400 / 600 · 占比 20%
免费替代:Inter

Supporting headings, captions, links, and interface text.

Aa 设计

Mona Sans Mono

网络字体 · 字重 500 / 480 / 400 · 占比 3%
免费替代:Space Mono

Compact code-like labels and technical metadata.

角色示例字号字重行高字距
一级标题
Primary hero or feature headline.
GitHub
40px4601.20
二级标题
Section titles and prominent content headings.
The quick brown fox 敏捷的狐狸
24px6001.50
三级标题
Supporting feature and customer-story headings.
The quick brown fox 敏捷的狐狸
22px4001.40
正文
Explanatory copy beneath headings and within feature panels.
The quick brown fox 敏捷的狐狸
18px4001.50.01em
辅助文字
Small labels, footnotes, and image or interface captions.
The quick brown fox 敏捷的狐狸
14px4001.50
按钮
Signup, subscribe, and other action labels.
The quick brown fox 敏捷的狐狸
16px5001.50.015em
导航
Header navigation and compact menu labels.
The quick brown fox 敏捷的狐狸
14px5001.50.015em
链接
Inline feature links and customer-story actions.
The quick brown fox 敏捷的狐狸
14px4001.50
代码
Compact technical labels or code-oriented metadata.
const style = 1;
12px5001.50

间距与布局

基准单位 8px · 密度:宽松

96px版块间距
12px元素间距
8px卡片内边距
1280px内容最大宽度
2px
4px
8px
12px
16px
20px
24px
32px
40px
44px
48px
64px
96px

Use a spacious centered content frame with a measured maximum width of 1280px and a measured base spacing unit of 8px. The page moves between centered feature introductions, wide media-led sections, and two- or four-column content and footer layouts. Keep section transitions generous, with a measured section gap of 96px, while content-level spacing stays tighter. Thin borders define card and column edges without enclosing every text group. The visual density is low across feature stories and higher in the footer link columns.

圆角与层次

按钮 · 9999px
输入框 · 8px
卡片 · 16px
图片 · 16px
导航 · 4px
inset · nav

The design is mostly flat, relying on charcoal hairlines and dark panel boundaries rather than strong drop shadows. Rounded media frames and overlapping product mockups create depth, while the purple-blue glow provides the most visible elevation. Keep navigation and content surfaces restrained; a subtle inset treatment is measured in the navigation.

组件

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

Top navigation

Compact horizontal header with GitHub mark, white navigation links, search, sign-in, and signup controls against the dark canvas.

Signup action

Green (#08872b) action with white text; the measured signup button has a compact rounded treatment.

Feature link

Pale blue (#a2daff) text link used for product exploration and customer-story actions.

Product media panel

Dark framed interface imagery with rounded corners, fine charcoal edges, and atmospheric purple-blue light behind the media.

Feature split

Alternating text and product media in broad columns, separated from adjacent stories by thin dark rules.

Footer newsletter

Newsletter heading and supporting copy above a green subscribe button, followed by dense multi-column site links.

Imagery · Favor product UI mockups, code and dashboard screenshots, customer marks, and occasional Octocat or character illustrations over conventional photography. Frame media in dark, rounded panels and let soft violet, blue, and lilac glows bloom behind it. Keep the surrounding page black so each interface image reads as a luminous focal point; treat screenshot colors as content, not as a replacement for the brand palette.

页面版块

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

该做与不该做

✓ 该做

  • Use near-black as the dominant page canvas.
  • Reserve violet-blue gradients for hero and product media backgrounds.
  • Use white for key headings and navigation.
  • Apply pale blue to text links and selective emphasis.
  • Use green for clear signup and subscribe actions.
  • Separate long content with fine charcoal dividers.
  • Give feature sections generous breathing room.

✕ 不该做

  • Do not turn gradient colors into broad flat section fills.
  • Do not use bright accents for ordinary body copy.
  • Do not frame every text block as a card.
  • Do not add heavy shadows to otherwise flat content.
  • Do not let product screenshots dictate the overall palette.
  • Do not compress feature sections into a dense dashboard layout.

给 AI 的提示词

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

Build a new page in GitHub’s developer-platform visual style. Use Midnight Canvas (#000000) as the main background, with GitHub Charcoal (#0d1117) and Forest Black (#0f1511) only for measured dark surfaces. Set clear white headings and navigation, Soft Sage (#a4aea6) for secondary copy, and Glacier Link (#a2daff) for links. Use Action Green (#08872b) sparingly for primary actions. Place violet and lilac glow gradients behind product screenshots, not as broad solid fills. Use Mona Sans or a close sans-serif substitute, a centered wide content frame, generous section spacing, thin Divider Slate (#21262d) rules, and softly rounded media panels. Alternate centered introductions with modular feature splits; keep ordinary text areas mostly unboxed and the footer more compact.

相似风格

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