Skip to main content
Microsoft Learn

Microsoft Learn DESIGN.md design system & style guide

EducationProv1.0.0 (Latest)
learn.microsoft.com•Linked Nov 29, 2026, 04:00 AM•Reviewed by Bestony

Microsoft Learn's Fluent 2 entry surface: a single Segoe UI Variable family at thirteen sizes and two weights, a 187-property theme token layer, one blue doing every interactive job, and a warm grey accent ground that carries the hero, the MCP band and the footer.

Pro website

You can read Microsoft Learn's full design narrative and up to 8 primary colors free. Upgrade to Pro for all 87 design tokens, full DESIGN.md downloads, and 1 revisions.

Showing 8 of 11 colors
Dark (1%)
Aa Test Sample#161616
ink
rgb(22, 22, 22)
Light (79%)
Aa Test Sample#E6E6E6
outline
rgb(230, 230, 230)
Dark (14%)
Aa Test Sample#0F6CBD
primary
rgb(15, 108, 189)
Light (79%)
Aa Test Sample#E8E6DF
surface
rgb(232, 230, 223)
Light (100%)
Aa Test Sample#FFFFFF
background
rgb(255, 255, 255)
Dark (8%)
Aa Test Sample#505050
ink-subtle
rgb(80, 80, 80)
Light (100%)
Aa Test Sample#FFFFFF
on-primary
rgb(255, 255, 255)
Dark (13%)
Aa Test Sample#0065B3
primary-link
rgb(0, 101, 179)
Get the full palette, CSS variables, and DESIGN.md source

Upgrade to DesignMD Pro to copy all colors as :root CSS variables, inspect component token references, and download the full source file.

Design Guidelines

Overview

learn.microsoft.com is the entry point to Microsoft's documentation, training and Q&A surface, built on Fluent 2 — Microsoft's own design system. The home page is only 1,564px tall and carries five blocks: a 54px header, a 400px hero, a three-card resource section, an MCP Server band and a 125px footer. The four pages captured (/en-us/, /en-us/training/, /en-us/answers/, /en-us/docs/) share one token layer, one typeface and one shadow.

One typeface, thirteen sizes, no second family. Every element on the page — headings, body, links, buttons, inputs, footer — renders in Segoe UI, loaded as the variable face Segoe UI Variable Text (weight axis 100–700). There is no serif, no mono in the interface and no webfont fallback beyond the system stack. The 47 computed uses across the page all resolve to the same family string.

The design system is a 187-property custom-property layer. Fluent 2 ships as --theme-* custom properties on :root, and the page reads them rather than hard-coding values: --theme-text: #161616, --theme-primary-base: #0f6cbd, --theme-body-background-accent: #e8e6df, --theme-box-shadow-medium: #00000021. The whole palette, both shadow recipes and the three theme variants (light, dark, high-contrast) live in that one block.

One blue does every interactive job. #0F6CBD is the search button, the card links, the "Browse all" links and the primary button ground. #0065B3 is the darker link variant used in the footer and on the docs page. There is no second accent colour anywhere in 1,564px — except the hero headline, which is the page's one piece of decoration.

The accent ground is a warm grey, not white. #E8E6DF — a beige-tinted grey — carries the hero, the MCP band and the entire footer. #FAFAFA is the header. White is reserved for the three resource cards and the search field, so the page reads as a warm-grey document with white cards floating in it.

Colors

primary — #0f6cbd. Fluent's brand background. White on it is 5.38:1 and it on white is 5.38:1 — it clears AA in both directions, which is why the same value is the search button's ground and the card links' ink. Its hover is #115EA3 (6.66:1 on white) and its active #0C3B5E (11.65:1), so the whole interaction ramp darkens rather than shifting hue.

primary-link — #0065b3. A second, darker blue used for hyperlinks specifically — the footer's "Sign in", the "Browse all product documentation" link, and 76 of the text colours on /docs/. On white it is 5.98:1; on the accent ground 4.79:1; on #F0F0F0 5.25:1. It is the only colour on the page that is used more on an inner page than on the home page.

ink — #161616, ink-subtle — #505050. The entire text ladder is two values. #161616 is the headings, the hero subtitle, the nav and the footer (18.10:1 on white, 14.49:1 on #E8E6DF). #505050 is every card paragraph (8.06:1 on white, 6.46:1 on the accent). There is no third grey, no muted-grey and no light-grey text anywhere on the page.

background — #ffffff, and three greys around it. #E8E6DF is --theme-body-background-accent, the warm grey behind the hero, the MCP band and the footer. #FAFAFA is --theme-body-background-medium, the header. #EBEBEB is --theme-secondary-base, the selected state in the theme menu. A fourth value, #F0F0F0 (--theme-code-block), is declared for inline code and appears once on the page. The greys are all within 8% of each other in luminance, so the page's structure comes from block placement rather than from contrast.

primary-vivid — #b84dc6, primary-vivid-alt — #0078d4. The hero headline's gradient stops, --theme-gradient-vivid-start and --theme-gradient-vivid-end: a magenta and an Azure blue. They appear exactly once on the page, as a linear-gradient(90deg, #b84dc6, #0078d4) clipped to the <h1> with color: transparent. Fluent also ships the accessible solid counterparts — --theme-text-gradient-purple: #702573 (9.54:1 on white) and --theme-text-gradient-blue: #0f548c (7.87:1) — for exactly this reason.

outline — #e6e6e6. Fluent's border token, the 1px separator under the header and the rule around inline code. The search field's 1px border is a step darker at #D1D1D1 (--theme-control-border) and is the only input border on the page — component tokens carry no border colour, so it lives here rather than in the front matter.

What is declared but not rendered. The Fluent layer defines a complete semantic palette that the home page never touches: --theme-success-base: #107c10, --theme-info-base: #8661c5, --theme-warning-base: #f7630c, --theme-danger-base: #bc2f32, --theme-tertiary-base: #243a5e, the whole --theme-*-background-hover / -selected / -foreground-selected matrix, --theme-facepile-red/teal/blue, --theme-code-highlight-background: #fef7b2 and --theme-visited: #6659a5. The info pair does surface once on /docs/ as an #EFD9FD ground with #3B2E58 text (9.32:1). Everything else is available to inner pages and invisible here.

Typography

Thirteen roles, one family, four sizes of heading. The scale runs 40 → 32 → 20 → 18 → 16 → 14. There is no 48px, no 28px and no 12px anywhere — the entire page is built from six pixel sizes and two weights (400 and 600).

Design system specification
RoleSize / LeadingWeightColourWhere
display40px / 45px600gradientthe <h1>
heading32px / 36px600#161616the two <h2>s
wordmark20px / 35px600#161616"Learn" in the header
title20px / 25px600#161616the three card titles
button-lg18px / 27px600#FFFFFFthe search button
body16px / 28px400#161616the hero subtitle, the band copy
link16px / 20px600#0F6CBDthe card links
button16px / 24px600#161616"Start building"
body-sm14px / 24.5px400#161616the card lists
link-sm14px / 24.5px600#0065B3"Browse all…"
button-sm14px / 21px600#161616the theme and locale buttons
label14px / 21px400#161616the nav items, the footer links
caption14px / 17.5px400#505050the card paragraphs

Leading is a fixed ratio that tightens as type shrinks. 1.13 at 40px, 1.13 at 32px, 1.75 at 20px (the wordmark), 1.25 at 20px (the card titles), 1.50 at 18px, 1.75 at 16px, 1.75 at 14px and 1.50 at 14px. The two 20px roles deliberately disagree — the wordmark is set loose at 1.75 because it is a logo, the card titles tight at 1.25 because they are headings.

Weight is a two-step ladder: 400 and 600. Nothing on the page is set at 500, 700 or bold. Every heading, button, link and the wordmark is 600; every paragraph, list item, nav item and footer link is 400. It is the single most consistent decision on the page, and it is what lets a 14px nav item and a 40px headline share a family without the small type looking weak.

Tracking is normal at every size. Not one element in the computed styles carries a non-normal letter-spacing, from the 40px headline to the 14px footer links. The page's only typographic variation comes from size, weight and colour.

The variable face is doing the work. Segoe UI Variable Text is loaded with a 100–700 weight axis, and the page interpolates it rather than loading static cuts. The only other font face loaded is docons — Microsoft's icon font — which supplies the card icons and the chevrons.

Layout

One container, one gutter, five blocks. The content container is 1,392px at margin: 0 24px on a 1,440px viewport — a hard 1,392px, no max-width, no fluid measure. Every section uses the same 24px side margin, and the only different gutter is the MCP band's 48px inner padding.

  • Header — [0, 0, 1440, 54], background-color: #FAFAFA, static (not fixed), a 1px #E6E6E6 bottom border. The Microsoft four-square logo and the 20px/600 "Learn" wordmark sit at the left, then four nav items (Documentation, Training & Labs, Q&A, Topics) at 14px/400 with 4.25px 8px padding and a 53px tall hit area, then a search icon and a 14px "Sign in" link at the right.
  • Hero — [0, 54, 1440, 400], background-color: #E8E6DF, padding: 0 24px, flex column. A 626px content column holds the 578×69 <h1> at y=118, a 16px/28px subtitle, and a 578px search row: a 466×41 input beside a 105×41 blue button. The right 814px carries the page's only illustration — an isometric processor-and-chip render in the same magenta and blue as the headline.
  • Resource section — [0, 454, 1440, 597], padding: 48px 0, transparent. A centred 32px/36px <h2> ("Popular technical resources and training") at [24, 502, 1392, 36], then three 432×417 cards at x=24/504/984 with a 48px gap.
  • MCP band — [0, 1083, 1440, 308] inside a 1,392px wrapper, background-color: #E8E6DF, border-radius: 6px, padding: 0 48px, margin: 32px 0 48px. A 583px content column holds a 32px/36px <h2> and a 144×36 outlined button; the right 809px carries a second isometric illustration.
  • Footer — [0, 1439, 1440, 125], background-color: #E8E6DF, padding: 24px, flex. A top row holds the locale selector (183×32), the privacy-choices control (196×32) and the theme dropdown (100×32); a bottom row holds ten 14px links and "© Microsoft 2026".

The measure is 626px for prose and 1,392px for grids. The hero content column is capped at max-width: 50rem (800px) and renders 626px; the MCP band's column is 583px. The card grid uses the full container. Nothing on the page sets a ch measure or a fluid max-width.

The page is short by design. At 1,564px the entire home page fits in under two viewports, and the three inner pages captured run 2,081px (/answers/), 2,241px (/docs/) and 3,259px (/training/) — the home page is a hub, not a scroll, and every block on it is a door.

Elevation & Depth

One shadow, used three times. rgba(0,0,0,.13) 0 1.6px 3.6px, rgba(0,0,0,.11) 0 .3px .9px — Fluent's depth-4-plus-depth-2 pairing — lands on the three resource cards and on nothing else in 1,564px. It is the only box-shadow in the computed styles.

The shadow is neutral, tiny and paired with a radius. 1.6px of blur at 13% and 0.3px at 11% is the smallest elevation that still reads at 1440px, and it is the same value Fluent uses for a resting card everywhere. The cards it lands on are the only white surfaces on a warm-grey page, so the shadow is doing the work a border would do on a white page.

Fluent's full depth ramp is declared and unused. --theme-box-shadow-light: #0000001c, --theme-box-shadow-medium: #00000021, --theme-box-shadow-heavy: #0000002e, --theme-box-shadow-extra-heavy and --theme-overlay: #000000b3 are all present in the token layer. None of them renders on the home page — the three cards use the hard-coded Fluent card shadow instead.

Depth is otherwise absent. No gradient, no blur, no parallax, no overlapping element, no layered mockup and no sticky anything. The header is position: static and scrolls away. The only depth cue on the page is the 1px #E6E6E6 border under it.

Shapes

Three radii, and the largest surface gets the smallest one. 8px ×4 — the three resource cards. 6px ×1 — the 1,392px MCP band. 4px ×7 — the search field, the search button, the outlined button, the theme and locale buttons, and the input. The 8px 8px 0 0 and 0 0 8px 8px pairs are the card header/footer strips inside the resource cards, the same 8px applied to only two corners.

Radius does not track surface size here. The 1,392px band gets 6px and the 432px cards get 8px — the inverse of the usual rule. Fluent's radius tokens are tied to control size, not to container size: 4px for anything interactive, 8px for a card, 6px for a banner. It is the one place where the page's shape logic is categorical rather than proportional.

Nothing is round. There is no pill, no circle and no 9999px anywhere on the home page. The three buttons in the footer are 4px rectangles, the theme menu's selected option is a 4px rectangle, and the chevrons are plain glyphs. On /training/ a single 290486px radius appears once — a Tailwind-style rounded-full on one element — and it is the only round thing in the four pages captured.

The corner-only radii are the page's one shape flourish. The resource cards' inner blocks carry 8px 8px 0 0 and 0 0 8px 8px — a top-rounded header strip and a bottom-rounded footer strip inside an 8px card, so the card's own corners stay continuous with its children's.

Motion & Micro-interaction

One transition, one duration, one property. transform 0.15s ease appears five times and is the only transition in the computed styles. It lands on the elements that move on hover, and Fluent's 150ms is the shortest of its four standard durations.

The hover behaviour is a transform, not a colour change. No color, background-color or border-color transition exists anywhere on the page — the interactive states change instantly and only the movement is eased. It is the opposite of most marketing sites and it makes the page feel instantaneous rather than animated.

Nothing else moves. No scroll-triggered reveal, no count-up, no marquee, no carousel, no keyframe animation, no autoplay and no transition on the theme switch. The page's entire motion budget is five hover transforms.

The theme menu is the only interactive state machine. A 100×32 dropdown in the footer offers Light, Dark and High contrast, and the selected option renders as #EBEBEB with a 1px #0F6CBD border — the one place a selected state is drawn with a border rather than a background alone.

Voice & Content Strategy

The voice is a directory, not a pitch. The hero's promise is about finding rather than about buying: "Build with answers in reach" over "Dive into official documentation, practical answers, and expert guidance for working and troubleshooting with Microsoft." There is no price, no trial, no demo request and no email capture anywhere on the page.

The search field is the hero's real CTA. A 466×41 input reading "Search Microsoft Learn" beside a 105×41 blue "Search" button takes the position a screenshot or a video would occupy on a product page. It is the page's only form and it is above the fold.

The three resource cards are a taxonomy, evenly weighted. "Discover AI, Azure, and Copilot essentials" ("Develop knowledge and skills faster with the latest resources and expert insights"), "Take in-demand training" ("Advance your technical career with training and verified credentials") and "Additional resources" ("Ask our developer community tech questions or gain applied skills and verified certifications"). Each ends with the same "Browse all…" link — three doors of equal size, none promoted.

The card links are product names, not verbs. "Artificial Intelligence", "Azure", "Microsoft Copilot", "Microsoft Azure Fundamentals", "Fundamentals of Generative AI", "Ask a question", "Earn credentials", "Get student certifications" — each with a Fluent docon icon. The page never writes "Learn more" or "Get started"; it names the destination.

The MCP band is the page's only product pitch. "Get started with Microsoft Learn MCP Server" over "Create a custom agent that uses Learn MCP Server to answer all its users' questions with trusted Microsoft documentation." and one 144×36 outlined button, "Start building". It is the only block on the page with a border, and it is the only one that asks for anything.

The footer is a compliance surface, not a sitemap. Ten links — Manage cookies, AI Disclaimer, Previous Versions, Blog, Contribute, Privacy, Consumer Health Privacy, Terms of Use, Trademarks — beside a locale selector, a privacy-choices control and a theme switcher, closing on "© Microsoft 2026". No product links, no navigation, no newsletter.

Components

header-bar / nav-link — height: 54px, background-color: #FAFAFA, a 1px #E6E6E6 bottom border, position: static. The wordmark is 20px/600 at 35px leading with 6.5px 8px padding. The four nav items are 14px/400 at 21px leading with 4.25px 8px padding inside a 53px hit area — the padding is vertical-centring, not spacing. "Sign in" is a bare 14px #0065B3 link with no button chrome.

search-field / search-button — a 466×41 white input at 4px radius with a 1px #D1D1D1 border, 18px type and 5.75px 26px 5.75px 10.25px padding (room for the clear button on the right), beside a 105×41 #0F6CBD button at 4px radius with a same-colour 1px border, white 18px/600 type and 5.75px 13.5px padding. The two are exactly the same height and share one row.

card / card-title / card-body / card-link / card-link-sm — three 432×417 white cards at 8px radius, padding: 16px 0 0, carrying the page's only shadow. Inside: a 20px/600 #161616 title at 25px leading, a 14px/17.5px #505050 paragraph, then a list of docon-icon links at 16px/600 #0F6CBD (20px leading) or 14px/600 #0065B3 (24.5px leading), and a closing "Browse all…" link. The cards' inner strips carry the 8px 8px 0 0 / 0 0 8px 8px corner-only radii.

band-accent / band-panel / band-title / band-body / button-outline — the MCP band: a 1,392×308 #E8E6DF panel at 6px radius with padding: 0 48px and margin: 32px 0 48px. Inside, a 583px column holds a 32px/36px #161616 heading, a 16px/28px paragraph and a 144×36 transparent button at 4px radius with a 1px #161616 border, #161616 16px/600 type and 5px 12px padding. It is the only outlined button on the page.

footer-band / footer-link / footer-button — a 125px #E8E6DF band at padding: 24px, flex. The top row holds three 32px-tall controls: the locale selector (183px), the privacy-choices control (196px) and the theme dropdown (100px), each at 4px radius with 4.25px 10.5px padding and 14px/600 type. The theme menu's selected option adds an #EBEBEB ground and a 1px #0F6CBD border. The bottom row is ten 14px/400 #161616 links at 19px height with no underline, plus "© Microsoft 2026".

Do's and Don'ts

  1. Do run one typeface at two weights across the whole surface; don't add a second family for contrast. Every element on the page is Segoe UI Variable Text at 400 or 600, and the hierarchy comes entirely from size — 40px, 32px, 20px, 18px, 16px, 14px. A bold weight, a serif or a second sans would break the one thing that makes a 14px nav item and a 40px headline feel like the same system.
  2. Do keep the text ladder to two values; don't introduce a third grey. #161616 and #505050 cover every piece of text on the page, at 18.10:1 and 8.06:1 on white and 14.49:1 and 6.46:1 on the accent ground. Both clear AAA. A third grey — even a well-intentioned #6E6E6E for captions — would be the first value on the page that needs a contrast excuse.
  3. Do use one blue for every interactive job; don't split brand blue from link blue by feel. #0F6CBD is the button ground and the primary link ink; #0065B3 is the darker link variant used in the footer and on /docs/. Both clear AA on every ground they land on (5.38:1, 5.98:1, 4.79:1 on the accent). The hover and active steps (#115EA3, #0C3B5E) darken rather than shift, so the ramp never leaves the hue.
  4. Do ship the gradient headline with its solid counterpart available; don't rely on the gradient alone. The <h1> is a linear-gradient(90deg, #b84dc6, #0078d4) clipped to the text with color: transparent — at 40px/600 that clears the 3:1 large-text bar (magenta 3.42:1, blue 3.63:1 on #E8E6DF) but not the 4.5:1 body bar, and it disappears entirely if the background-clip is unsupported. Fluent already ships the fix: --theme-text-gradient-purple: #702573 (9.54:1) and --theme-text-gradient-blue: #0f548c (7.87:1).
  5. Do let the warm grey carry the page; don't fill it with white. #E8E6DF is the hero, the MCP band and the footer; white is reserved for the three cards and the search field. That single inversion is what gives the page its shape — the moment a fourth white block appears, the accent stops meaning "band" and starts meaning "background".
  6. Do tie radius to control type, not to surface size; don't scale it with the container. The 1,392px MCP band gets 6px while the 432px cards get 8px, because Fluent's radii are categorical: 4px for anything interactive, 8px for a card, 6px for a banner. Scaling radius with area would give the band 24px and make the page's largest element its softest.
  7. Do keep the elevation to one shadow; don't add a second depth. rgba(0,0,0,.13) 0 1.6px 3.6px, rgba(0,0,0,.11) 0 .3px .9px is the only box-shadow in 1,564px and it lands on the three cards and nothing else. Fluent's light/medium/heavy/extra-heavy ramp is declared and deliberately unused; pulling from it would give the page a second elevation language for no gain.
  8. Do transition only transform, at 150ms; don't ease colour changes. transform 0.15s ease is the page's only transition, so hover states snap into their new colour and only the movement is smoothed. Adding a color or background-color transition would make the page feel slower than it is and would be the first animation on a surface that currently has none.
  9. Do name the destination in every link; don't write "Learn more". The card links are product names with docon icons — "Artificial Intelligence", "Microsoft Azure Fundamentals", "Ask a question" — and the closing link on each card is "Browse all product documentation" rather than a generic CTA. On a documentation hub the link text is the navigation, so it has to say where it goes.
  10. Don't bury the theme switcher in the footer. The Light / Dark / High-contrast control is a 100×32 dropdown in the footer's top row, beside the locale selector and the privacy-choices control, and the page has no other theme affordance. Fluent's dark and high-contrast token sets are fully declared — --theme-body-background-learn-dark: #e3e1db, --theme-border-white-high-contrast — so the switch works; it is just the only way to reach a mode that half of the audience will want on arrival.

How to use Microsoft Learn's DESIGN.md with an AI agent

  1. Get Microsoft Learn's DESIGN.md

    Fetch https://www.designmdpro.app/websites/microsoft-learn.md or call the get_design_md tool with slug "microsoft-learn" from the DesignMD Pro MCP server to get the public version. The full token set requires Pro.

  2. Save it as DESIGN.md in your project root

    Put the file next to AGENTS.md or CLAUDE.md so Claude Code, Cursor, Codex and other coding agents can find it.

  3. Ask your agent to follow it

    For example: "Build the settings page following the Microsoft Learn design system in DESIGN.md — use its colors, typography and spacing tokens."

Microsoft Learn style AI prompt

Build a responsive landing page in the visual style of Microsoft Learn (learn.microsoft.com), following its DESIGN.md design system.

## Colors
- ink: #161616
- outline: #E6E6E6
- primary: #0F6CBD
- surface: #E8E6DF
- background: #FFFFFF
- ink-subtle: #505050
- on-primary: #FFFFFF
- primary-link: #0065B3

## Typography
- body: ""Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif", 16px, weight 400, line-height 28px, letter-spacing 0px
- link: ""Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif", 16px, weight 600, line-height 20px, letter-spacing 0px

## Corner radius
- lg: 8px
- md: 6px
- sm: 4px

## Rules
- Use only the colors above for backgrounds, text, borders and accents; do not invent new colors.
- Set all text with the typography styles above and keep their size and weight hierarchy.
- Take corner radius and spacing from the scales above so components look consistent.

Full DESIGN.md: https://www.designmdpro.app/websites/microsoft-learn.md
Customize in the V0 prompt generator →

Frequently asked questions

What is Microsoft Learn's primary color?

Microsoft Learn's primary brand color is Blue (#0F6CBD). Its DESIGN.md defines 11 color tokens in total.

What font does Microsoft Learn use?

Microsoft Learn uses Segoe UI Variable Text as its primary typeface.

How do I use Microsoft Learn's design tokens in Tailwind CSS or shadcn/ui?

Microsoft Learn's primary color (#0F6CBD) is public on this page. Generating a complete Tailwind or shadcn theme needs the full DESIGN.md, which is available with DesignMD Pro.

Is this Microsoft Learn DESIGN.md official?

No. DesignMD Pro extracted it from the public learn.microsoft.com website. It is not affiliated with or endorsed by Microsoft Learn.

When was Microsoft Learn's DESIGN.md last updated?

Version 1.0.0 was captured on November 29, 2026.

Microsoft Learn and its trademarks belong to their respective owners. DesignMD Pro is an independent project, not affiliated with or endorsed by Microsoft Learn; this DESIGN.md is extracted from the public website for reference only.