Files
paseo/packages/app/src/plugins/theme.ts
T

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,
},
};
}