dashboard 和 label 迁移

This commit is contained in:
lutinglt
2025-07-04 21:53:59 +08:00
parent f74211749d
commit 2cceafe5ce
13 changed files with 317 additions and 130 deletions

View File

@@ -65,7 +65,16 @@ export type GithubColor = {
accent: {
emphasis: string;
};
attention: {
emphasis: string;
};
default: string;
success: {
emphasis: string;
};
done: {
emphasis: string;
};
muted: string;
translucent: string;
};
@@ -277,6 +286,15 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
accent: {
emphasis: githubColor.borderColor.accent.emphasis,
},
attention: {
emphasis: githubColor.borderColor.attention.emphasis,
},
success: {
emphasis: githubColor.borderColor.success.emphasis,
},
done: {
emphasis: githubColor.borderColor.done.emphasis,
},
},
button: {
default: {

View File

@@ -15,6 +15,7 @@ export const github = {
muted: null,
/** 成功的文本颜色
* @issue `button` 重新开启按钮文本颜色
* @label `label` 绿色标签的文本颜色
*/
success: null,
/** 完成的文本颜色
@@ -42,8 +43,8 @@ export const github = {
/** 完成的背景颜色
* @issue `babel` 工单已关闭图标背景颜色
*/
emphasis: null
}
emphasis: null,
},
},
borderColor: {
accent: {
@@ -52,6 +53,24 @@ export const github = {
*/
emphasis: null,
},
attention: {
/** 注意的边框颜色
* @label `label` 黄色/橙色标签的边框色
*/
emphasis: null,
},
success: {
/** 成功的边框颜色
* @label `label` 绿色标签的边框色
*/
emphasis: null,
},
done: {
/** 完成的边框颜色
* @label `label` 红色/紫色标签的边框色
*/
emphasis: null,
},
},
button: {
/** 普通按钮 */