GrammarlyBrand
DESIGN.md · measured October 21, 2026
Rust design system
Dark interface measured from rust-lang.org: Alfa Slab One type with Fira Sans, dark teal accents, flat surfaces and 4px corners.
- Background
- #0B7261
- Primary
- #0B7261
- Type
- Alfa Slab One
- Corners
- 4px
From rust-lang.org ↗ · 115 elements at 1440×900 and 390×844 · Independent analysis, not affiliated with Rust
Rust colors
10 roles measured on the page, grouped by where each color is used.
Surfaces
#0B7261backgroundPage background · 1×Text
#000000on-surfacePrimary text and headings · 12×#FFFFFFon-surface-strongHeadings and emphasis · 37×#2A3439on-surface-variantSecondary text · 13×#FFFFFFon-primaryText and icons on primaryAccents
#0B7261primaryBrand color on large areas · 1×#4299BFsecondaryAccent · 1×Borders
#A72145outlineBorders and dividers · 4×#2E2459outline-variantSecondary dividers · 3×Status
#FFC832warningWarnings and highlights · 16×Rust fonts
2 families.
mobile 40px
mobile 30px
mobile 22.5px
Contrast
Text on #0B7261
3.6:15.8:12.2:1Spacing
No strict grid · 47% are multiples of 4px
xs2pxsm6pxmd12pxlg30pxxl60pxsection60pxcontainer1152pxBreakpoints: 545px 550px 769px
Shapes
Corner radii, most used first.
Depth
Flat: no shadows measured.
Components
Rebuilt from the measured CSS.
Motion
No short transitions measured
Do’s and don’ts
Rules written from the measurements, so a coding agent stays on style.
- Use #0B7261 for the page.
- Keep text in 3 levels: #000000, #FFFFFF, #2A3439.
- Use #0B7261 as the brand accent: header, logo and key highlights.
- Reuse the measured spacing steps (6px, 12px, 30px).
- Use 4px corners on most elements.
- Use #000000 for body text; it reaches 3.6:1 on #0B7261. Keep it for large text or metadata.
- Use #2A3439 for body text; it reaches 2.2:1 on #0B7261. Keep it for large text or metadata.
- Add drop shadows for depth; use borders and contrast.
- Introduce new font families beyond Alfa Slab One and Fira Sans.
- Use #0B7261 for large backgrounds or body text.
---
version: alpha
name: Rust
description: "Dark interface measured from rust-lang.org: Alfa Slab One type with Fira Sans, dark teal accents, flat surfaces and 4px corners."
colors:
background: "#0B7261"
surface: "#0B7261"
on-surface: "#000000"
on-background: "#000000"
on-surface-strong: "#FFFFFF"
on-surface-variant: "#2A3439"
outline: "#A72145"
outline-variant: "#2E2459"
primary: "#0B7261"
on-primary: "#FFFFFF"
secondary: "#4299BF"
warning: "#FFC832"
typography:
headline-display:
fontFamily: Alfa Slab One
fontSize: 96px
fontWeight: 300
lineHeight: 1.2
letterSpacing: 0.01em
headline-lg:
fontFamily: Fira Sans
fontSize: 36px
fontWeight: 800
lineHeight: 1.25
letterSpacing: 0.028em
headline-md:
fontFamily: Fira Sans
fontSize: 27px
fontWeight: 600
lineHeight: 1.3
body-md:
fontFamily: Fira Sans
fontSize: 18px
fontWeight: 400
lineHeight: 1.6
body-lg:
fontFamily: Fira Sans
fontSize: 21.5px
fontWeight: 600
lineHeight: 1.6
body-sm:
fontFamily: Fira Sans
fontSize: 15px
fontWeight: 400
lineHeight: 1.15
label-md:
fontFamily: Fira Sans
fontSize: 14.5px
fontWeight: 600
lineHeight: 1.6
letterSpacing: 0.083em
headline-display-mobile:
fontFamily: Alfa Slab One
fontSize: 40px
fontWeight: 300
lineHeight: 1.2
letterSpacing: 0.025em
headline-lg-mobile:
fontFamily: Fira Sans
fontSize: 30px
fontWeight: 800
lineHeight: 1.25
letterSpacing: 0.033em
headline-md-mobile:
fontFamily: Fira Sans
fontSize: 22.5px
fontWeight: 600
lineHeight: 1.3
rounded:
md: 4px
spacing:
xs: 2px
sm: 6px
md: 12px
lg: 30px
xl: 60px
section: 60px
container: 1152px
components:
button-outline:
backgroundColor: "{colors.outline}"
textColor: "{colors.on-surface-strong}"
typography: "{typography.label-md}"
rounded: "{rounded.md}"
padding: 8px 30px
height: 41px
button-secondary:
backgroundColor: "{colors.warning}"
textColor: "{colors.on-surface}"
typography: "{typography.headline-md}"
rounded: "{rounded.md}"
padding: 20px
height: 85px
input-field:
backgroundColor: "{colors.on-surface-strong}"
textColor: "{colors.on-surface-variant}"
typography: "{typography.body-sm}"
rounded: 0px
padding: 2px 6px
link:
textColor: "{colors.warning}"
---
# Rust Design System
## Overview
Rust describes itself as: “A language empowering everyone to build reliable and efficient software.” The interface is dark, built on **Dark Teal (#0B7261)** with **Near Black (#000000)** text, and **Dark Teal (#0B7261)** as the main accent.
Type is set in **Alfa Slab One** and **Fira Sans**. Headlines run large; body text is 18px. The surface language is flat. Corners are mostly 4px.
Measured from [rust-lang.org](https://rust-lang.org/) on October 21, 2026 at 1440×900 and 390×844 from 115 rendered elements. Values are computed styles from the live page, not the original source files.
## Colors
The palette has 10 roles.
- **Dark Teal (#0B7261):** Page background, seen 1 time. Token `background`.
- **Near Black (#000000):** Primary text and headings, seen 12 times. Token `on-surface`.
- **White (#FFFFFF):** Headings and emphasis, seen 37 times. Token `on-surface-strong`.
- **Cool Graphite (#2A3439):** Secondary text, seen 13 times. Token `on-surface-variant`.
- **Pink (#A72145):** Borders and dividers, seen 4 times. Token `outline`.
- **Dark Indigo (#2E2459):** Secondary dividers, seen 3 times. Token `outline-variant`.
- **Dark Teal (#0B7261):** Brand color on large areas, seen 1 time. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Cyan (#4299BF):** Accent, seen 1 time. Token `secondary`.
- **Vivid Amber (#FFC832):** Warnings and highlights, seen 16 times. Token `warning`.
## Typography
**Alfa Slab One** and **Fira Sans** share the interface. Fallback stack: `Alfa Slab One, serif`.
- **headline-display:** Alfa Slab One 96px at weight 300, line height 1.2, tracking 0.01em (40px on mobile). Page title (h1).
- **headline-lg:** Fira Sans 36px at weight 800, line height 1.25, tracking 0.028em (30px on mobile). Section headings (h2).
- **headline-md:** Fira Sans 27px at weight 600, line height 1.3 (22.5px on mobile). Sub-section headings.
- **body-md:** Fira Sans 18px at weight 400, line height 1.6. Body text.
- **body-lg:** Fira Sans 21.5px at weight 600, line height 1.6. Lead paragraphs.
- **body-sm:** Fira Sans 15px at weight 400, line height 1.15. Secondary and small text.
- **label-md:** Fira Sans 14.5px at weight 600, line height 1.6, tracking 0.083em. Buttons, navigation and labels.
## Layout
Spacing does not follow a strict grid: 47% of measured values are multiples of 4px, so match the measured steps rather than rounding to a grid.
- **Scale:** xs 2px, sm 6px, md 12px, lg 30px, xl 60px.
- **Sections:** 60px vertical padding between major sections.
- **Container:** content is capped at 1152px.
- **Breakpoints:** 545px, 550px, 769px.
## Elevation & Depth
The design is flat: no shadows were measured. Hierarchy comes from color contrast and #A72145 borders.
## Shapes
Most elements use 4px corners. Measured radii, most used first:
- **md (4px):** 40 elements.
## Components
Measured from the rendered page. Token values reference the tokens above.
- **button-outline (“BUILDING TOOLS”):** #A72145 fill, #FFFFFF text, 14.4px/600, 4px radius, padding 8px 30px, border 1px solid #A72145.
- **button-secondary (“GET STARTED”):** #FFC832 fill, #000000 text, 27px/600, 4px radius, padding 20px, border 1px solid #FFC832.
- **input-field:** #FFFFFF fill, #2A3439 text, 15px/400, padding 2px 6px, border 1px solid #2A3439.
- **link:** transparent fill, #FFC832 text, padding 0px.
## Do's and Don'ts
- Do use #0B7261 for the page.
- Do keep text in 3 levels: #000000, #FFFFFF, #2A3439.
- Do use #0B7261 as the brand accent: header, logo and key highlights.
- Do reuse the measured spacing steps (6px, 12px, 30px).
- Do use 4px corners on most elements.
- Don't use #000000 for body text; it reaches 3.6:1 on #0B7261. Keep it for large text or metadata.
- Don't use #2A3439 for body text; it reaches 2.2:1 on #0B7261. Keep it for large text or metadata.
- Don't add drop shadows for depth; use borders and contrast.
- Don't introduce new font families beyond Alfa Slab One and Fira Sans.
- Don't use #0B7261 for large backgrounds or body text.
Generated by [Sitepeel](https://sitepeel.dev/design-md/rust-lang.org/), the free DESIGN.md generator.
What you can build with it
Landing pages, pricing tables, dashboards: your AI coding agent builds them in this style, with these colors, fonts, spacing and buttons instead of its defaults.
Download DESIGN.md, put it in your project’s root folder, then ask your agent for a page.
Build a landing page for my product. Follow for every color, font, spacing value, corner and button.
Need more than one page?
Design MD in the Sitepeel tools for Chrome measures pages behind a login, combines several pages into one file and works on any site you open.
More designs
See all →FAQ
Questions
What can I build with the Rust DESIGN.md?
Any page or component in this style: a landing page, pricing table, dashboard or sign-up form. Your AI coding agent uses the measured colors, Alfa Slab One type, spacing, corners and buttons instead of its own defaults.
How do I use it with Claude Code or Cursor?
Download the file and put it in your project’s root folder, then ask your agent to follow DESIGN.md. Step-by-step guides: Claude Code, Cursor, Codex, GitHub Copilot.
Is this Rust’s official design system?
No. Sitepeel measured it from rust-lang.org’s public page on October 21, 2026. It is an independent analysis, not made or approved by Rust.
Can I use Rust’s style in my own product?
Use it to learn, prototype and compare. For a real product, make the style your own, and never copy Rust’s logo, name, pictures or text.
How accurate are the values?
Each value was measured on the rendered page after it fully loaded, on desktop and mobile: colors where they appear, type with tracking, spacing, corners, shadows and hover states. Sites change, so check the date at the top.




