---
url: /api/platforms/canvas-theme-editor/src/interfaces/BuildThemeOptions.md
---
[pantoken-root](../../../../index.md) / [platforms/canvas-theme-editor/src](../index.md) / BuildThemeOptions

# Interface: BuildThemeOptions

Alpha

Options for [buildTheme](../functions/buildTheme.md)/[buildThemeCss](../functions/buildThemeCss.md)/[buildThemeJs](../functions/buildThemeJs.md).

## Properties

### provider?

> `optional` **provider?**: `string` | [`CdnProvider`](CdnProvider.md)

Alpha

The CDN provider to build URLs for. Defaults to jsDelivr when omitted.

***

### version?

> `optional` **version?**: `string`

Alpha

Pins the version for every asset below that doesn't specify its own `version`.

***

### theme?

> `optional` **theme?**: [`ThemeVariant`](../type-aliases/ThemeVariant.md)

Alpha

Token theme variant. Defaults to `"rebrand"`. Ignored when `css` is supplied.

***

### mode?

> `optional` **mode?**: [`ThemeMode`](../type-aliases/ThemeMode.md)

Alpha

Rebrand token mode. Defaults to `"light"`. Ignored outside the `rebrand` theme, or when `css` is supplied.

***

### css?

> `optional` **css?**: readonly [`CdnFile`](CdnFile.md)\[]

Alpha

Component-style sheets. Defaults to [defaultThemeCssAssets](../functions/defaultThemeCssAssets.md) for `theme`/`mode`.

***

### scoped?

> `optional` **scoped?**: `boolean`

Alpha

Ship the multi-scope token pair instead of a single baked theme, so several themes and color
schemes can be active in one Canvas page. Larger; only worth it when that's actually needed.

***

### fonts?

> `optional` **fonts?**: readonly [`CdnFile`](CdnFile.md)\[]

Alpha

Font sheet(s). Defaults to [DEFAULT_THEME_FONT_ASSETS](../variables/DEFAULT_THEME_FONT_ASSETS.md).

***

### js?

> `optional` **js?**: readonly [`CdnFile`](CdnFile.md)\[]

Alpha

Script(s). Defaults to [DEFAULT_THEME_JS_ASSETS](../variables/DEFAULT_THEME_JS_ASSETS.md).

***

### strings?

> `optional` **strings?**: `Partial`<[`ThemeStrings`](ThemeStrings.md)>

Alpha

Translated comment strings. Defaults to [ENGLISH_THEME_STRINGS](../variables/ENGLISH_THEME_STRINGS.md).
