输入框, svg, 弹窗样式迁移

This commit is contained in:
lutinglt
2025-07-03 17:50:46 +08:00
parent 3015ce8696
commit 7bc47d0720
14 changed files with 109 additions and 121 deletions

View File

@@ -58,6 +58,9 @@ export type GithubColor = {
};
};
borderColor: {
accent: {
emphasis: string;
};
default: string;
muted: string;
translucent: string;
@@ -100,6 +103,11 @@ export type GithubColor = {
shadow: {
floating: string;
};
overlay: {
backdrop: {
bgColor: string;
};
};
};
export function defineGithubTheme(githubColor: GithubColor): Theme {
@@ -175,7 +183,7 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
timeline: githubColor.borderColor.muted,
input: {
text: themeVars.color.text.self,
background: themeVars.color.body,
background: githubColor.bgColor.muted,
toggleBackgound: themeVars.color.body,
border: {
self: themeVars.color.light.border,
@@ -239,7 +247,7 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
fg: githubColor.fgColor.attention,
bg: githubColor.bgColor.attention.muted,
},
overlayBackdrop: themeVars.color.body,
overlayBackdrop: githubColor.overlay.backdrop.bgColor,
};
const github: Github = {
@@ -255,6 +263,11 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
emphasis: githubColor.bgColor.accent.emphasis,
},
},
borderColor: {
accent: {
emphasis: githubColor.borderColor.accent.emphasis,
},
},
button: {
default: {
bgColor: {