28 lines
617 B
TypeScript
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;
|
|
};
|