mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 10:12:44 +00:00
21 lines
680 B
TypeScript
21 lines
680 B
TypeScript
import type { PluginTheme } from "@getpaseo/plugin";
|
|
import type { Theme } from "@/styles/theme";
|
|
|
|
export function toPluginTheme(theme: Theme): PluginTheme {
|
|
return {
|
|
colors: {
|
|
surface0: theme.colors.surface0,
|
|
surface1: theme.colors.surface1,
|
|
surface2: theme.colors.surface2,
|
|
border: theme.colors.border,
|
|
foreground: theme.colors.foreground,
|
|
foregroundMuted: theme.colors.foregroundMuted,
|
|
accent: theme.colors.accent,
|
|
accentForeground: theme.colors.accentForeground,
|
|
statusSuccess: theme.colors.statusSuccess,
|
|
statusWarning: theme.colors.statusWarning,
|
|
statusDanger: theme.colors.statusDanger,
|
|
},
|
|
};
|
|
}
|