更新变量注释和颜色分类

This commit is contained in:
lutinglt
2025-06-28 16:32:16 +08:00
parent 59497be05e
commit 94c7f81bbf
7 changed files with 52 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
export { based } from "./based";
export { other } from "./other";
export { ansi, console } from "./console";
export { diff } from "./diff";
export { primary, secondary } from "./main";

View File

@@ -1,4 +1,4 @@
export const based = {
export const other = {
/** 未知 */
git: null,
/** 主要背景色 */

View File

@@ -8,4 +8,4 @@ export type Message = MapLeafNodes<typeof color.message, string>;
export type Ansi = MapLeafNodes<typeof color.ansi, string>;
export type Console = MapLeafNodes<typeof color.console, string>;
export type Diff = MapLeafNodes<typeof color.diff, string>;
export type Based = MapLeafNodes<typeof color.based, string>;
export type Other = MapLeafNodes<typeof color.other, string>;

View File

@@ -11,11 +11,10 @@ export function varMapper(value: string | null, path: string[]) {
}
const vars = {
/** 用于标识当前是否为暗色主题: `"true"` 暗色 `"false"` 亮色 */
isDarkTheme: "is-dark-theme",
color: {
...color.other,
...color.message,
...color.based,
...color.named,
primary: color.primary,
secondary: color.secondary,