You've already forked gitea-banana-theme
banana v1
This commit is contained in:
90
themes/modern-light.css.ts
Normal file
90
themes/modern-light.css.ts
Normal file
@@ -0,0 +1,90 @@
|
||||
/**
|
||||
* @author iFlow CLI
|
||||
* 现代化亮色主题,基于 Nano-Banana-AI-Image-Editor 的设计风格
|
||||
*/
|
||||
|
||||
import { defineTheme } from "src";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
|
||||
export const modernLightGithubColors: GithubColor = {
|
||||
isDarkTheme: false,
|
||||
display: {
|
||||
blue: { fgColor: "#0969da" },
|
||||
brown: { fgColor: "#755f43" },
|
||||
cyan: { fgColor: "#006a80" },
|
||||
indigo: { fgColor: "#494edf" },
|
||||
lemon: { fgColor: "#fde047" }, // 使用香蕉黄作为柠檬色
|
||||
olive: { fgColor: "#56682c" },
|
||||
teal: { fgColor: "#106e75" },
|
||||
},
|
||||
diffBlob: {
|
||||
addtionNum: { bgColor: "#aceebb" },
|
||||
addtionWord: { bgColor: "#aceebb" },
|
||||
deletionNum: { bgColor: "#ffcecb" },
|
||||
deletionWord: { bgColor: "#ffcecb" },
|
||||
hunkNum: { bgColor: { rest: "#b6e3ff" } },
|
||||
},
|
||||
fgColor: {
|
||||
accent: "#fde047", // 使用香蕉黄作为主色调
|
||||
attention: "#9a6700",
|
||||
danger: "#d1242f",
|
||||
default: "#1f2328",
|
||||
disabled: "#818b98",
|
||||
done: "#8250df",
|
||||
muted: "#59636e",
|
||||
neutral: "#59636e",
|
||||
severe: "#bc4c00",
|
||||
sponsors: "#bf3989",
|
||||
success: "#1a7f37",
|
||||
black: "#1f2328",
|
||||
white: "#ffffff",
|
||||
onEmphasis: "#ffffff",
|
||||
},
|
||||
bgColor: {
|
||||
accent: { emphasis: "#fde047", muted: "#fffbeb" }, // 使用香蕉黄作为强调色
|
||||
attention: { muted: "#fff8c5" },
|
||||
danger: { muted: "#ffebe9" },
|
||||
default: "#ffffff",
|
||||
done: { emphasis: "#8250df" },
|
||||
emphasis: "#25292e",
|
||||
muted: "#f6f8fa",
|
||||
neutral: { muted: "#818b981f" },
|
||||
success: { emphasis: "#1f883d", muted: "#dafbe1" },
|
||||
inset: "#f6f8fa",
|
||||
},
|
||||
borderColor: {
|
||||
accent: { emphasis: "#fde047" }, // 使用香蕉黄作为边框强调色
|
||||
attention: { emphasis: "#9a6700" },
|
||||
default: "#d1d9e0",
|
||||
done: { emphasis: "#8250df" },
|
||||
success: { emphasis: "#1a7f37" },
|
||||
muted: "#d1d9e0b3",
|
||||
translucent: "#1f232826",
|
||||
},
|
||||
button: {
|
||||
primary: {
|
||||
fgColor: { accent: "#1f2328", rest: "#1f2328" }, // 深色文字在黄色背景上
|
||||
bgColor: { rest: "#fde047", hover: "#eab308" }, // 香蕉黄按钮
|
||||
},
|
||||
danger: { fgColor: { rest: "#d1242f", hover: "#ffffff" }, bgColor: { hover: "#cf222e" } },
|
||||
star: { iconColor: "#fde047" }, // 使用香蕉黄作为星标颜色
|
||||
},
|
||||
control: {
|
||||
bgColor: { active: "#e6eaef", hover: "#eff2f5", rest: "#f6f8fa" },
|
||||
transparent: { bgColor: { active: "#818b9826", hover: "#818b981a", selected: "#818b9826" } },
|
||||
},
|
||||
shadow: { floating: { small: "#25292e0a" }, resting: { small: "#1f23280f" } },
|
||||
overlay: { backdrop: { bgColor: "#c8d1da66" } },
|
||||
underlineNav: { borderColor: { active: "#fde047" }, // 使用香蕉黄作为导航下划线
|
||||
},
|
||||
contribution: {
|
||||
default: {
|
||||
bgColor: { num0: "#eff2f5", num1: "#aceebb", num2: "#4ac26b", num3: "#2da44e", num4: "#116329" },
|
||||
borderColor: { num0: "#1f23280d" },
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const modernLightColors = github2ThemeColor(modernLightGithubColors);
|
||||
|
||||
export default defineTheme(modernLightColors);
|
||||
Reference in New Issue
Block a user