Skip to content

@tavora/sdk / TavoraTheme

Interface: TavoraTheme ​

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

Properties ​

colors ​

colors: object

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

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:26


radius ​

radius: number

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

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


tokens ​

tokens: Record<ThemeToken, string>

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

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.

Code under the MIT License. The Tavora name and logo are not covered by it.