主題設計

提供平台提供新式主題的 API

適用於

模型導向和畫布應用程式

語法

context.fluentDesignLanguage

屬性

token主題

平台提供的 Fluent v9 主題代幣。

類型主題

typography權杖

平台提供的 Fluent v9 排版令牌。

類型TypographyStyles

Fluent v9 BrandVariants 是根據哪個 Fluent v9 主題產生的。

類型BrandVariants

是黑暗主題

指出目前的佈景主題是否為深色。

類型boolean

Example

const fluentDesignLanguage = props.context.fluentDesignLanguage;

return (
  <FluentProvider theme={props.theme}>
    <Label weight="semibold">{"Theming provided by the control."}</Label>
  </FluentProvider>
);

樣品控制

新式主題 API 控制項

在畫布應用程式中使用新式佈景主題 (預覽)
Power Apps 元件架構 API 參考
Power Apps 元件架構概觀