Files
ARTEX/web/src/lib/preferences/theme.ts
T
Autumn-27andClaude Opus 4.8 0ef8561411 chore: ARTEX 初始化
ARTEX — AI 自主渗透测试系统(Go 后端 + Next.js 前端,单二进制内嵌)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-26 04:27:45 -04:00

53 lines
1.2 KiB
TypeScript

export const THEME_MODE_OPTIONS = [
{ label: "Light", value: "light" },
{ label: "Dark", value: "dark" },
{ label: "System", value: "system" },
] as const;
export const THEME_MODE_VALUES = THEME_MODE_OPTIONS.map((o) => o.value);
export type ThemeMode = (typeof THEME_MODE_VALUES)[number];
export type ResolvedThemeMode = "light" | "dark";
// --- generated:themePresets:start ---
export const THEME_PRESET_OPTIONS = [
{
label: "Default",
value: "default",
primary: {
light: "oklch(0.205 0 0)",
dark: "oklch(0.922 0 0)",
},
},
{
label: "Brutalist",
value: "brutalist",
primary: {
light: "oklch(0.6489 0.237 26.9728)",
dark: "oklch(0.7044 0.1872 23.1858)",
},
},
{
label: "Soft Pop",
value: "soft-pop",
primary: {
light: "oklch(0.5106 0.2301 276.9656)",
dark: "oklch(0.6801 0.1583 276.9349)",
},
},
{
label: "Tangerine",
value: "tangerine",
primary: {
light: "oklch(0.64 0.17 36.44)",
dark: "oklch(0.64 0.17 36.44)",
},
},
] as const;
export const THEME_PRESET_VALUES = THEME_PRESET_OPTIONS.map((p) => p.value);
export type ThemePreset = (typeof THEME_PRESET_OPTIONS)[number]["value"];
// --- generated:themePresets:end ---