Files
webup-cloud/frontend/src/extensions.ts
T
WebUp Cloud db82325ed7
Verify control plane / verify (push) Canceled after 0s
Initial import of WebUp Cloud
2026-11-07 13:31:14 +08:00

28 lines
617 B
TypeScript

export const themeTokens = {
accent: "--blue",
accentSoft: "--blue-light",
background: "--bg",
surface: "--surface",
text: "--text",
muted: "--muted",
border: "--line",
soft: "--soft",
} as const;
export type Palette = Partial<Record<keyof typeof themeTokens, string>>;
export type Palettes = Partial<Record<"light" | "dark", Palette>>;
export type Plugin = {
id: string;
slug: string;
version: string;
name: string;
description: string;
};
export type Extension = Plugin & {
kind: "plugin" | "theme";
enabled: boolean;
sha256: string;
created_at: string;
palettes?: Palettes;
};