mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 02:02:42 +00:00
The plugin compiler spawned esbuild through app.asar, and the subprocess imported the React client barrel. Point esbuild at the unpacked binary, add a react-free @paseo/plugin/server entry, and pass a typed PluginTheme so plugin UI follows the active theme on desktop and mobile.
16 lines
466 B
TypeScript
16 lines
466 B
TypeScript
import type { PluginTheme } from "@paseo/plugin";
|
|
import type { Theme } from "@/styles/theme";
|
|
|
|
export function toPluginTheme(theme: Theme): PluginTheme {
|
|
return {
|
|
colors: {
|
|
surface0: theme.colors.surface0,
|
|
foreground: theme.colors.foreground,
|
|
foregroundMuted: theme.colors.foregroundMuted,
|
|
accent: theme.colors.accent,
|
|
accentForeground: theme.colors.accentForeground,
|
|
statusDanger: theme.colors.statusDanger,
|
|
},
|
|
};
|
|
}
|