Android Developers DESIGN.md 設計系統與風格指南
Developer ToolsProv1.0.0 (最新)Google's Android documentation surface on Material 3: Google Sans for display and Google Sans Text for reading, grey-900 ink on white, one blue-800 for links and one green for the single CTA, a binary 24px-card / 96px-pill radius, and zero shadows anywhere.
你可以免費閱讀 Android Developers 的完整設計敘述與最多 8 色主色票。升級 Pro 即可取得全部 172 個設計 Token、完整 DESIGN.md 原始檔下載與 1 個歷史版本。
升級 DesignMD Pro,將所有色彩複製為 :root CSS variables、檢視元件 Token 引用關係,並下載完整原始檔。
設計指南
Overview
developer.android.com is Google's documentation surface for Android, and it is Material 3 wearing a documentation hat. It is not a marketing site and it does not behave like one: there is no hero photograph of a phone, no gradient, no illustration of a happy developer. The most "designed" element on the homepage is a full-bleed black band announcing 50+ conference talks, and even that is a photograph of a glass Android mascot rather than a composed layout.
The site is built on Google's internal docs platform, and the whole visual system reduces to a very small number of decisions: two Google typefaces, Google's grey scale, one blue, one green, one radius for cards and one for pills. Everything else — every tint, every border, every spacing value — comes out of the same Material token set that Android apps themselves use, which is the point: the documentation should feel like the platform it documents.
The personality is plain, exhaustive and unexcitable. Headings are declarative ("Get started with Android", "Android Studio", "New features"), body copy explains scope in one sentence, and the site's job is to get a developer from a question to a codelab in as few clicks as possible. A language switcher and a light/dark toggle sit in the header because the audience is global and works at night.
Colors
Eight values do almost all the work.
- Primary (
#174EA6): Google blue-800, and the colour of every link and every outlined text button. It is deliberately deeper than the blue used in Google's consumer products —#174EA6is chosen because documentation is read for long stretches and needs a link colour that survives a whole page. On white it is 7.9:1. - Accent (
#00AF57): Google green, used exactly once per page as the single filled CTA ("See the catalog"). Hover deepens to#00994B. This restraint is the most Material thing about the site: one accent, one job. - Surface (
#FFFFFF) and ink (#000000/#202124): the page is pure white and the darkest ink is#202124(grey-900). Pure#000000appears only on the largest display headings and inside the dark hero bands, where it reads as a deliberate "heavier than the body" choice rather than as a different colour. - Ink-secondary (
#3C4043): grey-800, for body copy that should sit a step below a heading but above metadata. - Muted (
#5F6368): grey-700, the second most-used text colour on the site. It carries eyebrows, nav, captions, search placeholders and every "not the main point" label. On white it is 6.1:1 — comfortably AA, and still visibly quieter than ink. - Surface-muted (
#F8F9FA) / Surface-hover (#F1F3F4) / Surface-grey (#E8EAED): three steps of Google grey for alternating bands, hover states and disabled surfaces.#F1F3F4is also the search field's resting fill. - Outline (
#DADCE0): grey-300, the 1px hairline on cards, inputs and table rows. It is the only border colour in the system. - Surface-dark (
#202124): the hero band and the dark sections. Text on it is pure white (16.1:1). - Six tints —
#E8F0FE,#D2E3FC(blues),#F4F9F5(green),#EBF7FE(sky),#D7EFFE(cyan),#F5FCF6(mint) — back callouts, feature cards and code panels on the docs pages. They are all desaturated pastels at roughly 95% lightness, and they are the only place the palette allows a hue other than blue and green. - Link-bright (
#185ABC): blue-700, used once for inline code and small blue accents where#174EA6would be too heavy at 14px.
There are no shadows anywhere on the site — the capture found zero box-shadow values
across four pages. Depth is done entirely with tint and hairline.
Typography
Two faces, both Google's own, and the split between them is semantic:
- Google Sans (400/500/600/700) is the display and UI face: headings, buttons, nav, eyebrows, labels. It is a geometric humanist sans with a large x-height and slightly condensed caps, which is why headings can be set at 40–64px without looking thin.
- Google Sans Text (400/500, plus italic) is the reading face: paragraphs, list items, form inputs. It is Google Sans with a taller x-height and looser spacing, tuned for sustained reading at 16px.
- Roboto Mono appears once, for a code snippet at 14.4px.
- Material Icons is loaded for the icon set (download arrows, external-link glyphs, the globe on the language switcher).
The scale is a Material type scale and it is unusually compact for a site with 64px headings:
- 64px/700 at
line-height: 1.125with-0.5pxtracking — the single largest heading on the site, used once on the "Get started" hub. - 40px/600 at
1.2/-0.5px— section headings ("Design & Plan", "New features"). - 32px/600 at
1.25/-0.25px— card and subsection headings. - 24px/500 at
1.33/-0.25px— the smallest display step, used for feature-card titles. Note the weight drops to 500 as the size drops — the inversion runs the opposite way to most systems and keeps small headings from looking chunky. - 14px/500 at
1.43with+1.5pxtracking — the eyebrow. The positive tracking is generous and is what makes a 14px uppercase label read as a label rather than as a sentence. - 20px/400 at
1.6— hero lede paragraphs. - 16px/400 at
1.5— body copy, in Google Sans Text. - 16px/500 at
1.375with+0.5pxtracking — every button label, in Google Sans.
Two details matter more than the scale itself. First, negative tracking is tiny — -0.5px
at 64px and -0.25px at 32px, roughly -0.008em. Google tightens display type only enough
to close the gaps in caps; it never sets a heading tighter than its own line box. Second,
buttons carry more letter-spacing than body copy (+0.5px against 0), which is the
reverse of the usual rule and is what makes a 16px/500 label look deliberate rather than
default.
Layout
A single 1380px container carries every page, with prose capped at 856px and narrow columns at 761px. Inside it the site runs on a strict 4px grid, and the four most common spacing values are 8px (107 uses), 24px (87), 32px (59) and 16px (25) — an unusually 8-and-24-heavy distribution that gives the layout its dense, even rhythm.
- Global header: a white bar with the Android mascot + "Developers" wordmark, four
dropdown nav items (Essentials, Design & Plan, Develop, More), a search field with a
/kbd hint, a light/dark toggle, a language switcher, an "Android Studio" link and "Sign in". It is the only element that appears on every page. - Section sub-nav: a second, lighter bar below the header carrying a section label
("GET STARTED", "ANDROID STUDIO") and a row of tabs, with the active tab underlined in
#174EA6. - Homepage: a full-bleed black hero band (mascot photograph right, two-line 64px heading and one green CTA left), then a row of three large pill cards ("Download Android Studio", "Download Android CLI", "Launch Play Console") each with an icon, a label and a trailing download or external-link glyph, then a stack of card grids — "Developer centers", "Platform updates", "Tools updates" — each a 24px-radius grid of white cards with a hairline.
- Hub pages (
/design,/get-started/overview): a dark hero with a 40px heading and a three-sentence lede, then a three-column row of icon + heading + paragraph + pill-button blocks. - Docs pages: the 856px prose column, with 24px-radius callout panels in the six tints.
- Studio page: a dark hero with a product screenshot, a white pill download button and a "Read release notes" text link with a document icon, then a "New features" card grid.
Section padding runs at 64px and 80px, with 40px and 56px for internal blocks. The -16px
negative margins that appear throughout are the standard "bleed a card out of its gutter"
move.
Elevation & Depth
There is no elevation. Zero shadows across four captured pages, on cards, buttons, menus or overlays. This is a real Material 3 position — the system replaced shadow with tonal surface — and the site follows it strictly.
What replaces shadow:
- Tint.
#FFFFFF→#F8F9FA→#F1F3F4→#E8EAEDis a four-step tonal ladder, and moving a card one step is how the site says "this is raised". - Hairline. A single 1px
#DADCE0border closes every card, input and table. It is the only outline in the system and it never changes weight. - Dark bands. The hero sections are
#202124or#000000, which is the maximum contrast move available and is used instead of a shadow to separate a section. - Radius. Cards at 24px against a white page read as raised without any shadow at all, because the rounded corner creates a tonal edge.
The only quasi-shadow is the box-shadow property being listed in the transition on
buttons and cards (background-color, border, box-shadow 0.2s ease) — the site animates a
property it never sets, which is a leftover from a Material baseline rather than a design
decision.
Shapes
Two radii carry the entire system, and the gap between them is the design's shape signature.
- 24px is the card radius — feature cards, callouts, the "New features" panels, and
(as
24px 24px 0 0) the top-rounded image cards that sit flush with a band below. It is the single most-used radius on the site (35 uses on the homepage, 46 on the Studio page). - 96px is the pill radius — every button, every chip, the three big download cards on the homepage, the search field's neighbours. It is a full pill: the buttons are 48px tall, so 96px is more than half the height and produces a true capsule.
- 100px appears on the largest pills (the homepage's three download cards), a step up from 96px for elements tall enough that 96px would read as a rounded rectangle rather than a capsule.
- 8px covers small controls, inputs and inline code panels; 4px and 2px cover the finest details.
Nothing is sharper than 2px, and nothing sits between 8px and 24px. The system is deliberately binary: cards are soft rectangles, controls are capsules, and a user can tell which is which from the corner alone.
Motion & Micro-interaction
One duration, one curve, two property groups — the entire motion vocabulary.
- 200ms
easeonbackground-color, border, box-shadow(16–27 uses per page) is the workhorse. Every button, card, tab and nav item uses it for its hover state. - 200ms
easeoncolor(5–13 uses) covers links and text hovers, kept as a separate transition so a text colour change never drags a background with it. - 200ms
cubic-bezier(0.4, 0, 0.2, 1)onopacityis used for fades — the only place a non-easecurve appears, and only for elements that appear and disappear rather than change state.
There are no entrance animations, no scroll-driven effects, no parallax and no page transitions. A developer documentation site is a tool, and the motion budget reflects that: hover feedback only, at a duration short enough that a user navigating by keyboard never waits.
Voice & Content Strategy
- Tone of voice: declarative and scoped. "Complete a codelab or dive deep into a training course for an overview of key Android development topics. Learn to build apps that look great and work seamlessly across the diverse range of Android devices—from phones to tablets, foldables, Googlebooks, car displays, and even XR." One sentence states what the page is for; the next enumerates the device classes. No exhortation, no exclamation marks.
- Capitalization: sentence case for every heading, button and paragraph. Section labels
("GET STARTED", "ANDROID STUDIO", "NEW FEATURES") are the only uppercase, and they are set
at 14px/500 with
+1.5pxtracking rather than bytext-transformalone. - Terminology: exact product names with version qualifiers attached — "Android Studio Rabbit 2 | 2026.2.2 Patch 2", "Media3 1.11", "Wear OS releases". Device classes are listed exhaustively ("phones, tablets, foldables, Googlebooks, car displays, and even XR") rather than summarised as "all devices".
- Button and action labels: verb-first and specific — "See the catalog", "Start codelab", "Download Android Studio Rabbit 2", "Read release notes", "Launch Play Console". Never "Learn more" or "Get started" on their own; "Get started" is a section name, not a button.
- Empty, loading and error states: the closest analogue is the search field, which is
always present in the header with a
/kbd hint — the site's answer to "what if I can't find it" is to make search permanently visible rather than to design an empty state. - Numbers, dates and units: exact and versioned. "50+ new talks", "Media3 1.11", "2026.2.2 Patch 2", "macOS Catalina (10.15) or newer". Nothing is rounded or approximate.
- Multilingual and themeable by default: a language switcher and a light/dark toggle sit in the header on every page, because the audience is global and works at night. Both are treated as first-class navigation, not as preferences buried in a footer.
Components
- Primary text button: a 96px-radius capsule, 48px tall, filled
#174EA6with white 16px/500 text at+0.5pxtracking. Hover is a 200ms ease on background, border and shadow. - Accent button: the same capsule in
#00AF57, used once per page. Hover deepens to#00994B. White on#00AF57is only 2.9:1, so this is the one place the system accepts a contrast failure in exchange for a single unmistakable CTA; the accessible pairing would be near-black at 7.3:1. - Dark button: the same capsule in pure
#000000with white text — the Studio page's download button on the dark hero. - Outlined / quiet button: a white capsule with
#174EA6or#5F6368text and no visible border at rest (the border is present but white, and appears on hover). - Search field: a 40px, 8px-radius field on
#F1F3F4with a magnifier, muted 16px placeholder and a/kbd hint. It sits in the global header on every page. - Section sub-nav tabs: a row of 14px/500 labels in
#5F6368, with the active tab carrying a 2px#174EA6underline. This is the only underlined-in-blue element in the chrome. - Feature card: a 24px-radius white panel with a 1px
#DADCE0border, no shadow, holding a 24px/500 or 32px/600 heading and a 16px/400 body. The "New features" grid on the Studio page stacks an uppercase "Feature" eyebrow at 14px/500 with+1.5pxtracking above the title. - Callout panel: the same 24px-radius geometry in one of six tints (
#E8F0FE,#D2E3FC,#F4F9F5,#EBF7FE,#D7EFFE,#F5FCF6), used on docs pages for notes, tips and code. The tint is the callout's type — no icon, no border, no title bar. - Top-rounded image card:
border-radius: 24px 24px 0 0, used where a card's media must sit flush with the band below it. It is the only asymmetric radius in the system. - Pill action card: a 96–100px-radius capsule, taller than a button, holding an icon, a label and a trailing download or external-link glyph. The homepage's three ("Download Android Studio", "Download Android CLI", "Launch Play Console") are the largest interactive elements on the site.
- Icon + heading + paragraph block: the hub-page unit — a Material Icon, a 24px/500 heading, a two-sentence paragraph and a pill button, in a three-column row.
- Global header: white, with the mascot lockup, four dropdowns, search, theme toggle, language switcher and sign-in. The active section's nav item carries a green underline.
- Code snippet: Roboto Mono at 14.4px/500 in
#185ABCon a tinted panel.
Do's and Don'ts
- Do keep the palette to one blue and one green.
#174EA6for anything navigational,#00AF57for the single primary CTA. Adding a third hue breaks the Material reading of the page instantly. - Do use
#5F6368for anything secondary and reserve#202124/#000000for headings and the dark bands. The muted-to-ink ratio on a typical page is roughly 2:1 in favour of muted, and that is what makes a docs page scannable. - Do keep Google Sans for display and UI, Google Sans Text for reading. Swapping them — setting body copy in Google Sans or a heading in Google Sans Text — is the most common way to make the site look subtly wrong.
- Do keep the radius binary: 24px for cards, 96px for controls. Nothing between 8px and 24px, and nothing sharper than 2px.
- Do keep buttons at 16px/500 with
+0.5pxtracking and headings at-0.25pxto-0.5px. The tracking inversion — open on buttons, closed on headings — is load-bearing. - Do use tint and hairline for depth. The site has no shadows at all, and adding one is the fastest way to make it look like a 2018 marketing template.
- Do keep motion to 200ms. There is no entrance animation, no parallax and no page transition anywhere, and none should be added.
- Don't use
#00AF57with white text below 18px — it is 2.9:1. If the green must carry small text, use near-black (7.3:1) or switch to#174EA6. - Don't reach for a brighter blue for links.
#174EA6is 7.9:1 on white;#185ABC(6.5:1) is only for small blue accents like inline code, and the consumer-product blues (#1A73E8and friends) are not part of this system. - Don't fill a section with a saturated tint. All six tints are ~95%-lightness pastels; a
tint darker than
#D2E3FCstops reading as a surface and starts reading as a button. - Don't add a hero photograph, gradient or illustration. The site's only imagery is product screenshots and the mascot, and its restraint is the design.
如何在 AI Agent 中使用 Android Developers 的 DESIGN.md
取得 Android Developers 的 DESIGN.md
存取 https://www.designmdpro.app/websites/android-developers.md 或透過 DesignMD Pro MCP 伺服器以 slug "android-developers" 呼叫 get_design_md 工具以取得公開版本。完整 token 集合需訂閱 Pro。
將其儲存為專案根目錄中的 DESIGN.md
將檔案放在 AGENTS.md 或 CLAUDE.md 旁,讓 Claude Code、Cursor、Codex 與其他程式開發 Agent 能夠讀取。
請你的 Agent 遵循該規範
例如:「請依照 DESIGN.md 中的 Android Developers 設計系統建構設定頁面,使用其中的色彩、字型與間距 tokens。」
Android Developers 風格 AI 提示詞
請依照 Android Developers(developer.android.com) 的 DESIGN.md 設計系統,以相同的視覺風格建構一個響應式到達頁。
## 色彩
- ink: #000000
- muted: #5F6368
- accent: #00AF57
- outline: #DADCE0
- primary: #174EA6
- surface: #FFFFFF
- on-primary: #FFFFFF
- on-surface: #202124
## 字型
- mono: "Roboto Mono", 14.4px, weight 500, line-height 1, letter-spacing 0px
- button: "Google Sans", 16px, weight 500, line-height 1.375, letter-spacing 0.5px
- body-md: "Google Sans Text", 16px, weight 400, line-height 1.5, letter-spacing 0px
## 圓角
- lg: 24px
- md: 8px
- sm: 4px
## 規則
- 背景、文字、邊框與強調色僅使用上述色彩,請勿自行發明新顏色。
- 所有文字皆套用上述字型樣式,並維持其字級與字重層級。
- 圓角與間距請取自上述比例尺,確保各元件外觀一致。
完整 DESIGN.md:https://www.designmdpro.app/websites/android-developers.md在 v0 提示詞產生器中自訂 →常見問題
Android Developers 的主色是什麼?
Android Developers 的品牌主色為 海軍藍(#174EA6),其 DESIGN.md 共定義了 22 個色彩 tokens。
Android Developers 使用什麼字型?
Android Developers 的主要字型為 Roboto Mono 與 Google Sans。
Roboto Mono 是免費字型嗎?
是的。Roboto Mono 是免費開源字型,可在 Google Fonts 上取得。
如何在 Tailwind CSS 或 shadcn/ui 中使用 Android Developers 的 design tokens?
本頁已公開 Android Developers 的主色(#174EA6)。產生完整的 Tailwind 或 shadcn 主題需要完整的 DESIGN.md,可透過 DesignMD Pro 取得。
這份 Android Developers DESIGN.md 是官方發布的嗎?
不是。此檔案由 DesignMD Pro 擷取自公開的 developer.android.com 網站,與 Android Developers 無任何關聯亦未獲其背書。
Android Developers 的 DESIGN.md 最後一次更新是什麼時候?
版本 1.0.0 擷取於 2026年12月1日。
Android Developers 及其商標均歸各自所有者所有。DesignMD Pro 為獨立專案,與 Android Developers 無任何關聯亦未獲其背書;此 DESIGN.md 擷取自公開網站,僅供參考。