Skip to content

pantoken / platforms/canvas-theme-editor/src / BuildThemeOptions

介面: BuildThemeOptions

Alpha(內測)

用於 buildTheme/buildThemeCss/buildThemeJs 的選項。

屬性

provider?

optional provider?: string | CdnProvider

Alpha(內測)

用於建立 URL 的 CDN 提供者。若省略則預設為 jsDelivr。


version?

optional version?: string

Alpha(內測)

為下列每個未指定自身 version 的資產鎖定版本。


theme?

optional theme?: ThemeVariant

Alpha(內測)

代幣主題變體。預設為 "rebrand"。當提供 css 時將被忽略。


mode?

optional mode?: ThemeMode

Alpha(內測)

品牌重塑代幣模式。預設為 "light"。在非 rebrand 主題下,或當提供 css 時將被忽略。


css?

optional css?: readonly CdnFile[]

Alpha(內測)

元件樣式表。對於 theme/mode,預設為 defaultThemeCssAssets


fonts?

optional fonts?: readonly CdnFile[]

Alpha(內測)

字型樣式表。預設為 DEFAULT_THEME_FONT_ASSETS


js?

optional js?: readonly CdnFile[]

Alpha(內測)

腳本。預設為 DEFAULT_THEME_JS_ASSETS


strings?

optional strings?: Partial<ThemeStrings>

Alpha(內測)

已翻譯的註解字串。預設為 ENGLISH_THEME_STRINGS