Skip to content

@tavora/sdk / TavoraTheme

Interface: TavoraTheme ​

Defined in: packages/sdk/src/protocol.ts:44

Properties ​

colors ​

colors: object

Defined in: packages/sdk/src/protocol.ts:47

A short summary of the palette, for modules that only need a few colours.

accent ​

accent: string

background ​

background: string

surface ​

surface: string

text ​

text: string

textMuted ​

textMuted: string


mode ​

mode: "dark" | "light"

Defined in: packages/sdk/src/protocol.ts:45


radius ​

radius: number

Defined in: packages/sdk/src/protocol.ts:61

Corner radius for buttons, inputs and cards, in CSS pixels.


toasts? ​

optional toasts?: ToastPosition

Defined in: packages/sdk/src/protocol.ts:63

Where the user wants toasts in a panel. Older Tavora leaves it out, which means bottom center.


tokens ​

tokens: Record<ThemeToken, string>

Defined in: packages/sdk/src/protocol.ts:59

The full semantic palette as CSS colours, named like the CSS variables of shadcn-vue plus Tavora's extras (see THEME_TOKENS). Set each one as --<name> to match the host UI.

For Tavora 0.24.58 and @tavora/sdk 0.3.20. Code under the MIT License. The Tavora name and logo are not covered by it.