跳至主要內容
Home Assistant

Home Assistant DESIGN.md 設計系統與風格指南

Developer ToolsProv1.0.0 (最新)

Home Assistant 的設計系統以藍色(#007FA8)為主色,字型用 Instrument Sans、Figtree。這份 DESIGN.md 從 home-assistant.io 記錄了 17 種顏色、154 個設計 Token。

home-assistant.io•關聯於 2026年12月5日 上午04:00•審核 Bestony

A bright, tokenized open-source identity: a cyan gradient hero with a 128px Figtree headline, Instrument Sans body copy, one teal action color, soft 16px cards on hairline borders, and a fully documented CSS custom-property scale.

Pro 網站

你可以免費閱讀 Home Assistant 的完整設計敘述與最多 8 色主色票。升級 Pro 即可取得全部 154 個設計 Token、完整 DESIGN.md 原始檔下載與 1 個歷史版本。

顯示 8 / 17 個色彩
深色 (2%)
Aa 測試範例#002E3E
ink
rgb(0, 46, 62)
淺色 (90%)
Aa 測試範例#F2F4F9
wth-bg
rgb(242, 244, 249)
淺色 (100%)
Aa 測試範例#FFFFFF
on-dark
rgb(255, 255, 255)
深色 (18%)
Aa 測試範例#007FA8
primary
rgb(0, 127, 168)
淺色 (100%)
Aa 測試範例#FFFFFF
surface
rgb(255, 255, 255)
深色 (2%)
Aa 測試範例#1E2126
wth-ink
rgb(30, 33, 38)
深色 (43%)
Aa 測試範例#1ABCF2
highlight
rgb(26, 188, 242)
深色 (2%)
Aa 測試範例#222222
on-surface
rgb(34, 34, 34)
取得完整色票、CSS variables 與 DESIGN.md 原始碼

升級 DesignMD Pro,將所有色彩複製為 :root CSS variables、檢視元件 Token 引用關係,並下載完整原始檔。

設計指南

Overview

Home Assistant is the open-source home-automation platform, and its site is built as a bright, confident product brochure: a full-bleed cyan gradient hero with a 128px headline, a phone mockup of the actual dashboard, and then a dense grid of product cards. The mood is energetic and community-first — the hero states the positioning in four words ("Awaken your home") and lets a single gradient carry the emotion. Below the fold the page becomes a working index: a "WHAT THE HECK?!" livestream card, release notes, a grid of hardware and feature cards, a community card, a three-column features section under an 80px heading, a press/testimonial wall ("Over 2.7 million households"), and the Open Home Foundation sponsor block. Everything resolves through documented CSS custom properties, so the whole identity is a readable token set rather than a pile of one-off values.

Colors

  • primary #007fa8 — the teal action color (--color-link): the hero's "GET STARTED" pill, every in-copy link, the "EXPLORE INTEGRATIONS"-style links, and the "Learn more" chips.
  • primary-deep #006787 — the darker teal used for the header's "Get started" pill while it sits on the bright hero.
  • highlight #1abcf2 — the cyan accent (--color-highlight); on interior pages the same header pill flips to this cyan with ink text.
  • surface #ffffff — every card; surface-page #fbfbfb — the page stock; surface-subtle #e8edf0 — chip fills and inset panels; surface-footer #f2f4f9 — the footer band.
  • ink #002e3e — the near-black teal (--color-ink) used for text on the cyan pill and as the darkest text value.
  • on-surface #222222 — body ink (--color-text), with on-surface-muted #555555 for secondary copy.
  • on-dark #ffffff — all type on the hero and dark cards, with on-dark-muted #aaabae for de-emphasized lines on dark surfaces.
  • accent-lavender #6b5ca5 on accent-lavender-surface #e8e6f0 — the "READY TO USE OUT OF THE BOX" status badge, the one non-teal accent in the product UI.
  • accent-green #34b155 — the Home Assistant Green product button, the only green on the site.
  • wth-ink #1e2126 and wth-bg #f2f4f9 — the "What the Heck?!" card and the community card.

The documented token set goes further than the values above: --color-highlight-shade #086585 for hover states, --color-hover-wash rgb(26 188 242 / 10%) and --color-hover-wash-inverse rgb(255 255 255 / 15%) for hover washes, --color-connect-line #005fbe / #003972 for the integration connect diagrams, and --color-surface-glass rgb(255 255 255 / 8%) for translucent layers on dark. The hero itself is a three-stop gradient — linear-gradient(340deg, #00aaff, #00bfff 50%, #00eaff) — and the headline is filled with its own gradient from white to mint (#80fff4), so the page's signature color moment cannot be expressed as a single hex.

Typography

Two families with a strict split. Figtree (Helvetica Neue / Arial fallback) is the display and label face: the hero at 128px/800 on 1.0 leading with -2.56px tracking, section statements at 80px/800 on 112px leading with -1.92px, interior page titles at 56px/800, card titles at 20px/700, the uppercase 14.4px/700 eyebrows with 0.072px tracking, and every button label. Instrument Sans (Helvetica Neue / Helvetica fallback) is the body and UI face: 18px/400 leads on 28.8px leading, 16px/400 body on 25.6px leading with 0.08px tracking, 12px/400 small print, 14px/400 nav links, and 17.6px/600 for the hero's secondary links. A variable weight range (300–900 in Figtree, 400–700 in Instrument Sans) means hierarchy comes from size and the serif-free weight jump to 800, not from family switches. Archivo Black is loaded for the "What the Heck?!" wordmark only. Button labels and eyebrows are uppercased in CSS; the tracking tightens as size grows, which is what keeps the 128px hero from feeling loose.

Layout

A 93rem (1488px) max-width container holds the content with 1.5rem gutters (3rem on wide viewports) and a 4.25rem header. The header is one row: the Home Assistant logo with a small version pill ("2026.11.3"), five plain nav links with two dropdowns, a search icon, and the pill CTA. Over the gradient hero the header is transparent and its type inverts to white; on interior pages it takes the translucent rgb(251 251 251 / 80%) surface. The hero is a two-column split — headline, lead, CTA, secondary links, and the award chip on the left; a 400×800 phone mockup of the dashboard on the right. Below, the page becomes a dense grid of 16px cards: the livestream card and release notes beside a 2×3 grid of product cards, then a wide community card, then a three-column features section, a testimonial wall, and the sponsor block. Interior pages like Installation use a three-column documentation layout — a divided left sidebar menu (302px), the article at reading width, and an "ON THIS PAGE" rail on the right.

Elevation & Depth

The system's one documented shadow is --shadow-panel: 0 0 1px rgb(0 0 0 / 50%), 0 0.5rem 1.5rem rgb(0 0 0 / 10%) — a hairline plus a soft ambient drop. Most cards don't even use it; they are flat white surfaces separated by a 1px rgba(0,0,0,0.12) hairline. Depth instead comes from the surface ramp (white cards on #fbfbfb page stock, #e8edf0 insets, #f2f4f9 footer) and from the hero gradient. The single dramatic shadow in the system belongs to the phone mockup: rgba(0,42,128,0.5) 24px 64px 64px, a large blue cast that makes the device float above the cyan. Shadows animate (see Motion) but nothing else lifts — no colored glows on cards, no layered stacks.

Shapes

Five radii cover everything: 4px for small badges and chips, 8px for nav links and controls, 16px for cards (the workhorse), 32px for the hero CTA and hero link chips, 48px for the phone mockup, and 1000px for the header pill. Circles (100%) appear for icon tiles, avatars, and the livestream dot. The language is soft throughout — there are no sharp corners anywhere in the chrome, which keeps a technical product feeling approachable.

Motion & Micro-interaction

Motion is shadow-first and slow-ish. Cards lift with box-shadow over 330ms ease (500ms on the larger panels), hover washes fade background-color over 150ms ease, and some controls transition border-color and box-shadow together over 300ms ease-in-out. Opacity fades run at 500ms. Nothing translates, scales, or rotates; the entire vocabulary is shadow and wash, which suits a page that is mostly a grid of static cards. The gradient hero is completely still, so the only movement on first paint is inside the phone mockup's screenshot.

Voice & Content Strategy

The copy is plain, confident, and community-owned. The hero makes a values claim rather than a feature claim: "Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts." Section headings are short declarations ("Features", "Over 2.7 million households"), and the trust line beneath that heading does the persuading: "Trusted by home automation experts and everyday users worldwide". Product copy is concrete and benefit-led ("Works with over 1000 brands", "Powerful automations", "Versatile dashboards", "All of your smart home data stays local"), each card closing with a tracked uppercase link ("EXPLORE INTEGRATIONS", "LEARN MORE"). The community card states the project's legal posture outright ("We are a non-profit and can't be sold or acquired") and invites participation through forums, Discord, chat, and the newsletter. Documentation pages switch to instructional second person ("Home Assistant runs on your own hardware, so your smart home keeps working even when the internet is down and your data stays at home with you.") and flag prerequisites with status badges ("READY TO USE OUT OF THE BOX", "SKILLS REQUIRED", "TOOLS REQUIRED"). The tone never oversells; the numbers and the foundation's mission do the selling.

Components

  • hero-band — the full-bleed cyan gradient hero with the 128px gradient-filled headline, 88px top padding, and the phone mockup.
  • button-hero-cta — the teal pill: 226×52, 32px radius, white 24px/700 uppercase Figtree label, arrow glyph, 24px left padding.
  • nav-button / nav-button-inverse — the 141×38 header pill; #006787 with white text on the hero, #1abcf2 with ink text on light pages, 1000px radius.
  • link-nav / link-nav-light — the 14px nav links with 8px radius and 12px padding, inverting between white and on-surface.
  • hero-link-row — the 17.6px/600 secondary hero links ("View live demos", "Browse 1600+ integrations") on 32px-radius hit areas.
  • link-body — in-copy links in primary teal.
  • chip-learn / chip-status — the 16px-radius "Learn more" chip on surface-subtle, and the 4px-radius lavender status badge.
  • button-product — the green "Get Home Assistant Green" pill.
  • hero-headline / section-title / doc-title / eyebrow-label — the Figtree display ramp at 128px, 80px, 56px, and the 14.4px uppercase eyebrow.
  • lead-copy / body-copy / body-muted / card-dark-note — the Instrument Sans text roles.
  • card-material / card-dark / card-community — the 16px-radius white cards, the near-black "What the Heck?!" card, and the mint-tinted community card.
  • page-canvas / footer-band / panel-inset — the surface ramp's three steps.
  • demo-frame — the 400×800 phone mockup: 48px radius, 12px white double border, and the large blue shadow.

Do's and Don'ts

  • Do keep every value resolving through the documented custom properties — the token set is the design system, and hard-coded colors break it.
  • Do keep the hero gradient's three stops (#00aaff → #00bfff → #00eaff) and the headline's white-to-mint fill; recoloring either loses the site's signature.
  • Do keep display type in Figtree 800 with the tight negative tracking (-2.56px at 128px, -1.92px at 80px); loosening it makes the headlines look cheap.
  • Do keep body copy in Instrument Sans 400 on 1.6 leading; the two families should never swap roles.
  • Do keep the header pill's color flip — deep teal on the hero, cyan on light pages — so the CTA always contrasts with what's behind it.
  • Do keep cards flat white with a 1px rgba(0,0,0,0.12) hairline and reserve --shadow-panel for panels that genuinely lift.
  • Do keep the five-radius ladder (4 / 8 / 16 / 32 / 48) plus the 1000px pill; nothing in between.
  • Do keep motion to shadow and background-color transitions at 150–500ms ease.
  • Don't add saturated reds, purples, or greens to the chrome — lavender and green exist only as product status colors.
  • Don't put long labels on the low-contrast surfaces — white on the green #34b155 is about 2.8:1 and teal #007fa8 on the #e8edf0 chip is about 3.9:1, so the product button stays a short action label and the chip stays two or three words.
  • Don't add borders or shadows inside the hero; the gradient and the phone's blue shadow are the only depth cues it needs.

如何在 AI Agent 中使用 Home Assistant 的 DESIGN.md

  1. 取得 Home Assistant 的 DESIGN.md

    存取 https://www.designmdpro.app/websites/home-assistant.md 或透過 DesignMD Pro MCP 伺服器以 slug "home-assistant" 呼叫 get_design_md 工具以取得公開版本。完整 token 集合需訂閱 Pro。

  2. 將其儲存為專案根目錄中的 DESIGN.md

    將檔案放在 AGENTS.md 或 CLAUDE.md 旁,讓 Claude Code、Cursor、Codex 與其他程式開發 Agent 能夠讀取。

  3. 請你的 Agent 遵循該規範

    例如:「請依照 DESIGN.md 中的 Home Assistant 設計系統建構設定頁面,使用其中的色彩、字型與間距 tokens。」

Home Assistant 風格 AI 提示詞

請依照 Home Assistant(home-assistant.io) 的 DESIGN.md 設計系統,以相同的視覺風格建構一個響應式到達頁。

## 色彩
- ink: #002E3E
- wth-bg: #F2F4F9
- on-dark: #FFFFFF
- primary: #007FA8
- surface: #FFFFFF
- wth-ink: #1E2126
- highlight: #1ABCF2
- on-surface: #222222

## 字型
- body: ""Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif", 16px, weight 400, line-height 1.6, letter-spacing 0.08px
- eyebrow: "Figtree, "Helvetica Neue", Arial, sans-serif", 14.4px, weight 700, line-height 1.09, letter-spacing 0.072px

## 圓角
- lg: 32px
- md: 16px
- sm: 8px

## 規則
- 背景、文字、邊框與強調色僅使用上述色彩,請勿自行發明新顏色。
- 所有文字皆套用上述字型樣式,並維持其字級與字重層級。
- 圓角與間距請取自上述比例尺,確保各元件外觀一致。

完整 DESIGN.md:https://www.designmdpro.app/websites/home-assistant.md
在 v0 提示詞產生器中自訂 →

常見問題

Home Assistant 的主色是什麼?

Home Assistant 的品牌主色為 藍色(#007FA8),其 DESIGN.md 共定義了 17 個色彩 tokens。

Home Assistant 使用什麼字型?

Home Assistant 的主要字型為 Instrument Sans 與 Figtree。

Instrument Sans 是免費字型嗎?

是的。Instrument Sans 是免費開源字型,可在 Google Fonts 上取得。

如何在 Tailwind CSS 或 shadcn/ui 中使用 Home Assistant 的 design tokens?

本頁已公開 Home Assistant 的主色(#007FA8)。產生完整的 Tailwind 或 shadcn 主題需要完整的 DESIGN.md,可透過 DesignMD Pro 取得。

這份 Home Assistant DESIGN.md 是官方發布的嗎?

不是。此檔案由 DesignMD Pro 擷取自公開的 home-assistant.io 網站,與 Home Assistant 無任何關聯亦未獲其背書。

Home Assistant 的 DESIGN.md 最後一次更新是什麼時候?

版本 1.0.0 擷取於 2026年12月5日。

在 Google 中收藏本站

Home Assistant 及其商標均歸各自所有者所有。DesignMD Pro 為獨立專案,與 Home Assistant 無任何關聯亦未獲其背書;此 DESIGN.md 擷取自公開網站,僅供參考。