跳至主要内容
GitLab

GitLab DESIGN.md 设计系统与风格规范

Developer ToolsPro 专属v1.0.0 (最新)
about.gitlab.com•关联于 2026年12月2日 04:00•审核 Bestony

DevSecOps platform for software engineering, security, and AI-assisted delivery in one control plane.

Pro 专属网站

当前可免费阅读 GitLab 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 49 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。

显示 8 / 11 个颜色
深色 (6%)
Aa 示例文字#45424D
outline
rgb(69, 66, 77)
深色 (15%)
Aa 示例文字#7759C2
primary
rgb(119, 89, 194)
深色 (1%)
Aa 示例文字#18171D
surface
rgb(24, 23, 29)
深色 (1%)
Aa 示例文字#18171D
secondary
rgb(24, 23, 29)
浅色 (100%)
Aa 示例文字#FFFFFF
on-primary
rgb(255, 255, 255)
浅色 (97%)
Aa 示例文字#FCFBFC
on-surface
rgb(252, 251, 252)
浅色 (97%)
Aa 示例文字#FCFBFC
inverse-surface
rgb(252, 251, 252)
深色 (2%)
Aa 示例文字#28272D
surface-container
rgb(40, 39, 45)
获取完整色板、CSS 变量与 DESIGN.md 源码

升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。

设计规范

Overview

GitLab’s captured homepage presents an enterprise DevSecOps platform through a dramatic, high-contrast dark theme. A nearly black plum canvas, fine geometric dot patterns, and oversized white headlines create a technical, editorial atmosphere, while modular content tiles and trusted-customer marks add structure. The familiar orange fox mark is the main warm brand element; violet link accents and gradient calls to action add a limited secondary color range. Other captured pages for the platform, pricing, and Duo Agent Platform reinforce the same modular, high-information system.

Colors

Deep charcoal-plum (surface) is the main hero and header background, paired with near-white text for strong contrast. A slightly lighter charcoal surface separates cards and editorial tiles. Muted gray supports secondary copy, while GitLab violet (primary) is reserved for links and small interaction accents. The orange brand mark is primarily imagery; avoid expanding its warm tone into large interface fills. Light content sections use warm white against the dark sections for clear pacing.

Typography

GitLab Sans and GitLab Mono are both loaded. The hero heading reaches 96px at a heavy variable weight, with tight negative tracking and compact line-height. Secondary display headings use a 64px scale; body text is 16px with a comfortable 24px line-height. GitLab Mono appears in uppercase metadata labels, providing a technical contrast to the geometric sans-serif.

Layout

The header is a full-width dark navigation row with product, solutions, pricing, resources, company, and contact links, followed by search, demo, trial, sign-in, and locale controls. The hero uses a broad modular grid: oversized headline and CTA sit beside patterned negative space and small content tiles, with a customer-logo band below. Further sections alternate dark and light surfaces, align to a centered desktop container near 1110px, and use substantial vertical spacing. Collapse complex panels into a clear single-column sequence on small screens.

Elevation & Depth

Depth is architectural rather than shadow-based. Use tonal changes between near-black and charcoal, 1px dividers, subtle dotted patterns, and large open space. Cards are mostly flat rectangular panels, occasionally with a translucent fill. Avoid decorative drop shadows that compete with the geometric background.

Shapes

The interface is predominantly square-edged, with 4px rounding on buttons and a few full-pill utility controls. Broad feature tiles remain rectangular to support the architectural grid. Reserve rounded shapes for compact controls rather than applying them to every panel.

Motion & Micro-interaction

Common color and transform feedback is brief, around 180–300ms, with a few longer opacity or decorative transitions. Keep hover and menu states understated and functional. Any large background or content movement should remain smooth and secondary to the editorial layout.

Voice & Content Strategy

Copy is confident, outcome-oriented, and aimed at engineering and security leaders. Examples include “Speed you can trust, all the way to production,” “Ship faster. Stay in control,” and “One control plane.” Navigation labels are concise, while section headlines frame a clear operational benefit. Use uppercase monospace sparingly for categories such as “BLOG” and other small metadata.

Components

The global navigation sits over the dark canvas with light text and compact, 4px-rounded actions. The primary free-trial button reverses the palette with a white surface and dark text; demo and sign-in controls remain quieter against the background. The hero CTA is a wide horizontal gradient panel with a directional arrow. Editorial tiles use a translucent charcoal fill and clear category/title hierarchy. Trusted-customer logos form a horizontal strip that visually closes the hero.

Do's and Don'ts

  • Do use GitLab Sans for interface and display text, with GitLab Mono for compact metadata.
  • Do use near-black plum surfaces with high-contrast off-white typography.
  • Do make hero headlines oversized and tightly tracked.
  • Do organize product information in a centered, modular grid with generous section spacing.
  • Do use violet for subtle links and use the orange brand mark as an image accent.
  • Do use restrained 4px rounding on actions and keep feature cards mostly rectangular.
  • Do alternate dark and light sections to pace long-form product information.
  • Don't rely on soft shadows to create depth; use tonal surfaces and thin dividers.
  • Don't introduce broad bright color fields that compete with the dark architectural canvas.

如何在 AI agent 里使用 GitLab 的 DESIGN.md

  1. 获取 GitLab 的 DESIGN.md

    请求 https://www.designmdpro.app/websites/gitlab-1.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "gitlab-1"),即可获取公开版本;完整 tokens 需要 Pro。

  2. 保存为项目根目录下的 DESIGN.md

    把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。

  3. 让 agent 按它来写

    例如:“按照 DESIGN.md 里的 GitLab 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”

GitLab 风格 AI Prompt

参照 GitLab(about.gitlab.com)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。

## 配色
- outline: #45424D
- primary: #7759C2
- surface: #18171D
- secondary: #18171D
- on-primary: #FFFFFF
- on-surface: #FCFBFC
- inverse-surface: #FCFBFC
- surface-container: #28272D

## 字体
- body-lg: "GitLab Sans", 24px, weight 400, line-height 1.33, letter-spacing -0.02em
- label-sm: "GitLab Mono", 12px, weight 400, line-height 1.5, letter-spacing 0.06em

## 圆角
- sm: 4px
- full: 120px

## 规则
- 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。
- 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。
- 圆角和间距取自上面的尺度,让各组件保持一致。

完整 DESIGN.md:https://www.designmdpro.app/websites/gitlab-1.md
在 V0 Prompt 生成器中自定义 →

常见问题

GitLab 的主色是什么?

GitLab 的品牌主色是靛蓝(#7759C2),其 DESIGN.md 共定义了 11 个颜色 token。

GitLab 用的是什么字体?

GitLab 的主要字体是 GitLab Sans 和 GitLab Mono。

如何在 Tailwind CSS 或 shadcn/ui 中使用 GitLab 的设计 token?

本页公开了 GitLab 的主色 #7759C2。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。

这份 GitLab DESIGN.md 是官方的吗?

不是。这份文件由 DesignMD Pro 从 about.gitlab.com 的公开页面提取,与 GitLab 无关联,也未获其认可。

GitLab 的 DESIGN.md 最近一次更新是什么时候?

当前版本 1.0.0 提取于 2026年12月2日。

GitLab 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 GitLab 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。