theme
@tynd/plugin-theme enables the host theme API and exposes its typed client. The API itself is documented on the theme page.
Install
Section titled “Install”tynd add themeimport { theme } from "@tynd/plugin-theme/client";Declaring the plugin compiles the matching api-theme Cargo feature into the app host on the next tynd dev or tynd build. Or by hand: bun add @tynd/plugin-theme and list it in plugins in tynd.config.ts. Without it, calls reject with an error naming @tynd/plugin-theme.
Package
Section titled “Package”| Package | @tynd/plugin-theme |
| Kind | Host-backed official plugin (facade over a host API) |
| Host API | theme |
Aliases for tynd add |
themes, dark-mode |
| Catalog permission labels | host:theme |
| Estimated size | 30 KB |
| Client exports | ConfigureOptions, EffectiveTheme, Palette, SystemPreferences, ThemePreference, ThemeSubscription, theme |