github 主题

This commit is contained in:
lutinglt
2025-07-02 13:21:12 +08:00
parent 0a353fd572
commit 1cc9b20ffd
9 changed files with 292 additions and 194 deletions

View File

@@ -16,6 +16,12 @@ function stringToBoolean(str: string, name: string): boolean {
export function createTheme(theme: Theme): void {
createGlobalTheme(":root", themeVars, theme);
createGlobalTheme(":root", otherThemeVars, {
git: "#f05133",
light: {
mimicEnabled: theme.isDarkTheme
? "rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)))"
: "rgba(0, 0, 0, calc(6 / 255 * 222 / 255 / var(--opacity-disabled)))",
},
border: {
radius: "6px",
},