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

@@ -4,20 +4,27 @@ const row = {
};
const line = {
/** 行号 */
linenum: {
bg: null,
},
/** 代码行 */
row: row,
/** 代码 */
word: {
bg: null,
},
};
export const diff = {
/** 添加 */
added: line,
/** 移动 */
moved: {
row: row,
},
/** 删除 */
removed: line,
/** 对比空白部分背景色 */
inactive: null,
};

View File

@@ -2,7 +2,7 @@ export const github = {
/** 用于 color 属性的颜色 */
fgColor: {
/** 强调色
* @actions 右侧日志标题颜色
* @actions `actionViewRight` 右侧日志标题颜色
*/
accent: null,
/** 默认的文本颜色
@@ -19,7 +19,7 @@ export const github = {
accent: {
/** 强调色
* @diff 折叠/展开按钮的悬停颜色
* @actions 左侧子作业激活伪元素颜色
* @actions `actionViewLeft` 左侧子作业激活伪元素颜色
*/
emphasis: null,
},

View File

@@ -4,4 +4,4 @@ export { github } from "./github";
export { primary, secondary } from "./main";
export { message } from "./message";
export { named } from "./named";
export { other } from "./other";
export { other, otherAuto } from "./other";

View File

@@ -1,6 +1,13 @@
export const other = {
export const otherAuto= {
/** 未知 */
git: null,
light: {
/** 不知道什么用, gitea css 中没有使用这个属性的 */
mimicEnabled: "color-light-mimic-enabled",
},
}
export const other = {
/** 主要背景色 */
body: null,
/** 页面底部状态栏背景色 */
@@ -50,8 +57,6 @@ export const other = {
light: {
/** 多行下交替行的强调色, 例提交历史 */
self: null,
/** 不知道什么用, gitea css 中没有使用这个属性的 */
mimicEnabled: "color-light-mimic-enabled",
/** 基础按钮/标签的边框色 */
border: null,
},

View File

@@ -30,6 +30,7 @@ const otherVars = {
border: {
radius: null,
},
...color.otherAuto,
};
export const themeVars = createGlobalThemeContract(vars, varMapper);