fix green button font color

This commit is contained in:
lutinglt committed 2026-06-17 10:25:39 +08:00
1 parent f44c48051f
commit c892c649b4
1 file changed
+10 -2
+10 -2
View File
@@ -92,7 +92,15 @@ const baseButton = css`
background-color: ${themeVars.github.button.default.bgColor.active};
}
`;
// 绿色按钮
const greenButton = css`
.ui.green.button,
.ui.green.buttons .button {
/* 覆盖默认的白色, 避免 Catppuccin 类似的主题下对比度太低 */
color: ${themeVars.github.button.primary.fgColor.rest};
box-shadow: ${primaryButtonStyle.boxShadow};
}
`;
// 红色按钮
const redButton = css`
.ui.red.button,
@@ -157,4 +165,4 @@ const fixButton = css`
}
`;
export default cssCombine(baseButton, redButton, fixButtonHeight, fixButton);
export default cssCombine(baseButton, greenButton, redButton, fixButtonHeight, fixButton);