Feat: Build out server shell
This commit is contained in:
@@ -2,10 +2,31 @@
|
||||
|
||||
import type { ThemeDefinition } from "./schema";
|
||||
|
||||
export const defaultThemePresetPath = "/themes/moku-default.json";
|
||||
export const themePresetMetas = [
|
||||
{
|
||||
id: "moku-default",
|
||||
name: "Moku Default",
|
||||
description: "The baseline Moku theme preset, matching the original shell styling tokens.",
|
||||
path: "/themes/moku-default.json",
|
||||
},
|
||||
{
|
||||
id: "moku-midnight",
|
||||
name: "Moku Midnight",
|
||||
description: "The active warm, low-light Moku theme preset inspired by the Midnight Discord palette direction.",
|
||||
path: "/themes/moku-midnight.json",
|
||||
},
|
||||
] as const satisfies readonly (Pick<ThemeDefinition, "id" | "name" | "description"> & { path: string })[];
|
||||
|
||||
export const defaultThemePresetPath = "/themes/moku-midnight.json";
|
||||
|
||||
export const defaultThemePresetMeta = {
|
||||
id: "moku-default",
|
||||
name: "Moku Default",
|
||||
description: "The baseline Moku theme preset, matching the current shell styling tokens.",
|
||||
id: "moku-midnight",
|
||||
name: "Moku Midnight",
|
||||
description: "The active warm, low-light Moku theme preset inspired by the Midnight Discord palette direction.",
|
||||
} satisfies Pick<ThemeDefinition, "id" | "name" | "description">;
|
||||
|
||||
export const resolveThemePresetPath = (presetId: string): string | null => {
|
||||
const match = themePresetMetas.find((preset) => preset.id === presetId);
|
||||
|
||||
return match?.path ?? null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user