Sitepeel
Swagger website (swagger.io) as measured on November 4, 2026

Developer tools · DESIGN.md · measured November 4, 2026

Swagger design system

Swagger’s website (swagger.io) uses the DM Sans font and #1874FE as its main color on a white background. Measured by Sitepeel on November 4, 2026.

  • #FFFFFF
  • #212529
  • #1874FE
  • #F56A00
Download DESIGN.md

From swagger.io ↗ · 259 elements at 1440×900 and 390×844 Independent analysis, not affiliated with Swagger

Swagger color palette

8 colors with hex codes, grouped by where each one is used on the page.

Surfaces

White#FFFFFFbackground · --tw-ring-offset-colorPage background · 3×
Mist 20%#E6E6E633overlayTranslucent fill for cards and controls · 1×

Text

Cool Graphite#212529on-surfacePrimary text and headings · 31×
Deep Blue#173647on-surface-variantSecondary text · 4×
White#FFFFFFon-primaryText and icons on primary

Accents

Vivid Blue#1874FEprimaryBrand color on large areas · 27×
Vivid Orange#F56A00secondarySecondary buttons · 2×
Deep Blue#061C5AtertiaryAccent in text, fills and borders · 10×

Swagger fonts and type scale

One family carries the whole interface.

AaDM SansWeights 400, 600, 700DM Sans, sans-serif
headline-displayPage title (h1)Swagger40px · 700 · 1.2
headline-lgSection headings (h2)The quick brown fox jumps over the lazy dog32px · 700 · 1.25
headline-mdSub-section headingsThe quick brown fox jumps over the lazy dog24px · 600 · 1.33
body-mdBody textThe quick brown fox jumps over the lazy dog14px · 400 · 1.43
body-lgLead paragraphsThe quick brown fox jumps over the lazy dog18px · 600 · 1.45
label-lgLarge buttons and tabsThe quick brown fox jumps over the lazy dog16px · 400 · 1.6
label-mdButtons, navigation and labelsThe quick brown fox jumps over the lazy dog14px · 700 · 1.43
label-smSmall labels and badgesThe quick brown fox jumps over the lazy dog12px · 700 · 1.33

Contrast

Text on #FFFFFF

AaAAA15.4:1
AaAAA12.6:1

Spacing

No strict grid · 81% are multiples of 4px

xs2px
sm8px
md12px
lg20px
xl40px
gutter8px
section128px

Breakpoints: 450px 576px 640px 649.98px 650px 768px 980px 992px 1030px 1200px 1229.98px 1230px 1232px 1280px 1328px 1440px

Shapes

Corner radii, most used first.

sm4px · 20×
md8px · 16×

Depth

Flat: no shadows measured.

Swagger UI components

Rebuilt from the measured CSS.

Get started
button-primaryFilled button · hover to see the measured hover state
See how we do it
button-secondaryFilled button · hover to see the measured hover state
Sign In
button-outlineOutlined button
Products
button-ghostText button
Inline link
linkInline link

Motion

Interface transitions

0.3s0.2s0.15s
easecubic-bezier(0.4, 0, 0.2, 1)

Do’s and don’ts

Rules written from the measurements, so a coding agent stays on style.

  • Use #FFFFFF for the page.
  • Keep text in 2 levels: #212529, #173647.
  • Use #1874FE as the brand accent: header, logo and key highlights.
  • Reuse the measured spacing steps (8px, 12px, 20px).
  • Use 4px corners on most elements; larger surfaces also use 8px.
  • Add drop shadows for depth; use borders and contrast.
  • Introduce new font families beyond DM Sans.
  • Use #1874FE for large backgrounds or body text.
  • Make interface transitions slower than 0.3s.
Swagger DESIGN.md189 lines

Fonts

What font does Swagger use?

Swagger uses DM Sans (weights 400, 600 and 700) on swagger.io. Page titles are 40px at weight 700 and body text is 14px. Measured on November 4, 2026.

  • AaDM Sans · 400, 600, 700
Find every font on swagger.io with Font finder →

Colors

Swagger colors: palette and hex codes

Swagger’s main colors are #FFFFFF (white) for the background, #212529 (cool graphite) for text and #1874FE (vivid blue) as the main accent, with #F56A00 (vivid orange) and #061C5A (deep blue) as other accents. Measured on November 4, 2026.

  • #FFFFFF · white
  • #212529 · cool graphite
  • #173647 · deep blue
  • #1874FE · vivid blue
  • #F56A00 · vivid orange
  • #061C5A · deep blue
Get swagger.io’s palette as CSS or Tailwind with Colors →

Tech stack

What is Swagger built with?

Swagger’s website (swagger.io) is built with Astro, React, Emotion, Headless UI and Tailwind CSS. Measured on November 4, 2026.

JavaScript framework
Astro 5.18.1, React 18.3.1
Analytics
RudderStack, Microsoft Advertising, Microsoft Clarity 0.8.75, Google Analytics
Hosting & CDN
Cloudflare, Cloudflare Images
Marketing & support
Marketo
UI & CSS
Emotion, Headless UI, Tailwind CSS 3.x
Fonts & icons
Font Awesome, Google Fonts
Check swagger.io live with Tech stack →

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.

Prompt · DESIGN.md attached

Build a landing page for my product. Follow for every color, font, spacing value, corner and button.

Need a page behind a login?

The DESIGN.md generator Chrome extension makes one from any page you have open, including dashboards and pages behind a login.

See the Chrome extension

FAQ

Swagger design system questions

What font does Swagger use?

Swagger’s website uses DM Sans (weights 400, 600 and 700). Page titles are 40px at weight 700 and body text is 14px. Measured on November 4, 2026.

What are the Swagger colors and hex codes?

On swagger.io: #FFFFFF (white) for the background, #212529 (cool graphite) for text and #1874FE (vivid blue) as the main accent, with #F56A00 (vivid orange) and #061C5A (deep blue) as other accents. The color palette above lists all 8 colors with their hex codes and where each one is used.

What is the Swagger design system?

The design system on this page is swagger.io’s, as measured on November 4, 2026: DM Sans type, #1874FE as the main color and 4px corners, written down as a DESIGN.md. It is not Swagger’s own documentation.

What is Swagger built with?

Swagger’s website (swagger.io) is built with Astro, React, Emotion, Headless UI and Tailwind CSS. The full tech stack Sitepeel found: Astro, React, RudderStack, Cloudflare, Microsoft Advertising, Microsoft Clarity, Marketo, Emotion, Headless UI and Tailwind CSS. Measured on November 4, 2026.

What is the Swagger DESIGN.md?

A plain-text file with Swagger’s measured colors, type, spacing, corners and components as tokens, plus short rules, in the DESIGN.md format Google published with Stitch. Your AI coding agent reads it and builds in this style. More about DESIGN.md.

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 Swagger’s official design system?

No. Sitepeel measured it from swagger.io’s public page on November 4, 2026. It is an independent analysis, not made or approved by Swagger.

Can I use Swagger’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 Swagger’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.