mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-27 22:40:30 +00:00
更新变量注释和颜色分类
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export { based } from "./based";
|
||||
export { other } from "./other";
|
||||
export { ansi, console } from "./console";
|
||||
export { diff } from "./diff";
|
||||
export { primary, secondary } from "./main";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const based = {
|
||||
export const other = {
|
||||
/** 未知 */
|
||||
git: null,
|
||||
/** 主要背景色 */
|
||||
@@ -8,4 +8,4 @@ export type Message = MapLeafNodes<typeof color.message, string>;
|
||||
export type Ansi = MapLeafNodes<typeof color.ansi, string>;
|
||||
export type Console = MapLeafNodes<typeof color.console, string>;
|
||||
export type Diff = MapLeafNodes<typeof color.diff, string>;
|
||||
export type Based = MapLeafNodes<typeof color.based, string>;
|
||||
export type Other = MapLeafNodes<typeof color.other, string>;
|
||||
|
||||
@@ -11,11 +11,10 @@ export function varMapper(value: string | null, path: string[]) {
|
||||
}
|
||||
|
||||
const vars = {
|
||||
/** 用于标识当前是否为暗色主题: `"true"` 暗色 `"false"` 亮色 */
|
||||
isDarkTheme: "is-dark-theme",
|
||||
color: {
|
||||
...color.other,
|
||||
...color.message,
|
||||
...color.based,
|
||||
...color.named,
|
||||
primary: color.primary,
|
||||
secondary: color.secondary,
|
||||
|
||||
Reference in New Issue
Block a user