Microsoft Learn DESIGN.md 设计系统与风格规范
EducationPro 专属v1.0.0 (最新)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.
当前可免费阅读 Microsoft Learn 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 87 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。
升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。
设计规范
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).
| Role | Size / Leading | Weight | Colour | Where |
|---|---|---|---|---|
display | 40px / 45px | 600 | gradient | the <h1> |
heading | 32px / 36px | 600 | #161616 | the two <h2>s |
wordmark | 20px / 35px | 600 | #161616 | "Learn" in the header |
title | 20px / 25px | 600 | #161616 | the three card titles |
button-lg | 18px / 27px | 600 | #FFFFFF | the search button |
body | 16px / 28px | 400 | #161616 | the hero subtitle, the band copy |
link | 16px / 20px | 600 | #0F6CBD | the card links |
button | 16px / 24px | 600 | #161616 | "Start building" |
body-sm | 14px / 24.5px | 400 | #161616 | the card lists |
link-sm | 14px / 24.5px | 600 | #0065B3 | "Browse all…" |
button-sm | 14px / 21px | 600 | #161616 | the theme and locale buttons |
label | 14px / 21px | 400 | #161616 | the nav items, the footer links |
caption | 14px / 17.5px | 400 | #505050 | the 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#E6E6E6bottom 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 with4.25px 8pxpadding 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
- 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.
- Do keep the text ladder to two values; don't introduce a third grey.
#161616and#505050cover 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#6E6E6Efor captions — would be the first value on the page that needs a contrast excuse. - Do use one blue for every interactive job; don't split brand blue from link blue by feel.
#0F6CBDis the button ground and the primary link ink;#0065B3is 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. - Do ship the gradient headline with its solid counterpart available; don't rely on the gradient alone. The
<h1>is alinear-gradient(90deg, #b84dc6, #0078d4)clipped to the text withcolor: 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). - Do let the warm grey carry the page; don't fill it with white.
#E8E6DFis 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". - 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.
- 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 .9pxis the onlybox-shadowin 1,564px and it lands on the three cards and nothing else. Fluent'slight/medium/heavy/extra-heavyramp is declared and deliberately unused; pulling from it would give the page a second elevation language for no gain. - Do transition only
transform, at 150ms; don't ease colour changes.transform 0.15s easeis the page's only transition, so hover states snap into their new colour and only the movement is smoothed. Adding acolororbackground-colortransition would make the page feel slower than it is and would be the first animation on a surface that currently has none. - Do name the destination in every link; don't write "Learn more". The card links are product names with
doconicons — "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. - 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.
如何在 AI agent 里使用 Microsoft Learn 的 DESIGN.md
获取 Microsoft Learn 的 DESIGN.md
请求 https://www.designmdpro.app/websites/microsoft-learn.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "microsoft-learn"),即可获取公开版本;完整 tokens 需要 Pro。
保存为项目根目录下的 DESIGN.md
把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。
让 agent 按它来写
例如:“按照 DESIGN.md 里的 Microsoft Learn 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”
Microsoft Learn 风格 AI Prompt
参照 Microsoft Learn(learn.microsoft.com)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。
## 配色
- ink: #161616
- outline: #E6E6E6
- primary: #0F6CBD
- surface: #E8E6DF
- background: #FFFFFF
- ink-subtle: #505050
- on-primary: #FFFFFF
- primary-link: #0065B3
## 字体
- 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
## 圆角
- lg: 8px
- md: 6px
- sm: 4px
## 规则
- 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。
- 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。
- 圆角和间距取自上面的尺度,让各组件保持一致。
完整 DESIGN.md:https://www.designmdpro.app/websites/microsoft-learn.md在 V0 Prompt 生成器中自定义 →常见问题
Microsoft Learn 的主色是什么?
Microsoft Learn 的品牌主色是蓝色(#0F6CBD),其 DESIGN.md 共定义了 11 个颜色 token。
Microsoft Learn 用的是什么字体?
Microsoft Learn 的主要字体是 Segoe UI Variable Text。
如何在 Tailwind CSS 或 shadcn/ui 中使用 Microsoft Learn 的设计 token?
本页公开了 Microsoft Learn 的主色 #0F6CBD。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。
这份 Microsoft Learn DESIGN.md 是官方的吗?
不是。这份文件由 DesignMD Pro 从 learn.microsoft.com 的公开页面提取,与 Microsoft Learn 无关联,也未获其认可。
Microsoft Learn 的 DESIGN.md 最近一次更新是什么时候?
当前版本 1.0.0 提取于 2026年11月29日。
Microsoft Learn 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 Microsoft Learn 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。