Skip to main content

前端设计

我们维护一个设计门户,地址为 https://design.home-assistant.io,提供有关各种前端方面的信息,例如:

  • 可重用的 UI 组件。
  • 各种配置和状态下的仪表板卡片。
  • 轻暗主题之间组件和卡片的对比方式。
  • 关于 Home Assistant 中特定措辞的说明。

当新的组件或功能添加到前端时,需要将它们添加到设计门户。此门户页面解释了如何做到这一点:https://design.home-assistant.io/#design.home-assistant.io/editing

note

虽然该门户公开名称为“设计”,但在前端代码库中称为“画廊”。这就是为什么在开发环境中运行画廊的脚本可以在 gallery/script/develop_gallery 找到,源代码则在 gallery/src 中。