heatmap 迁移

This commit is contained in:
lutinglt
2025-07-06 00:27:10 +08:00
parent 7fe76d6444
commit 98446a9bb3
7 changed files with 130 additions and 51 deletions

View File

@@ -121,6 +121,21 @@ export type GithubColor = {
bgColor: string;
};
};
contribution: {
default: {
bgColor: {
num0: string;
num1: string;
num2: string;
num3: string;
num4: string;
num5: string;
};
borderColor: {
num0: string;
};
};
};
};
export function defineGithubTheme(githubColor: GithubColor): Theme {
@@ -343,6 +358,26 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
small: `0px 0px 0px 1px ${themeVars.color.light.border}, 0px 6px 12px -3px ${themeVars.color.shadow.self}, 0px 6px 18px 0px ${themeVars.color.shadow.self};`,
},
},
contribution: {
default: {
bgColor: {
num0: githubColor.contribution.default.bgColor.num0,
num1: githubColor.contribution.default.bgColor.num1,
num2: githubColor.contribution.default.bgColor.num2,
num3: githubColor.contribution.default.bgColor.num3,
num4: githubColor.contribution.default.bgColor.num4,
num5: githubColor.contribution.default.bgColor.num5,
},
borderColor: {
num0: githubColor.contribution.default.borderColor.num0,
num1: themeVars.github.contribution.default.borderColor.num0,
num2: themeVars.github.contribution.default.borderColor.num0,
num3: themeVars.github.contribution.default.borderColor.num0,
num4: themeVars.github.contribution.default.borderColor.num0,
num5: themeVars.github.contribution.default.borderColor.num0,
},
},
},
};
return defineTheme({
isDarkTheme: githubColor.isDarkTheme,