mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
* feat(chroma): 代码高亮重构 * todo * release 亮色适配 * 发布页分支按钮高度修正 * chroma变量和修复注册页导航栏 * chroma 重构适配亮色 --------- Co-authored-by: lutinglt <lutinglt@users.noreply.github.com>
24 lines
994 B
TypeScript
24 lines
994 B
TypeScript
import type { MapLeafNodes } from "src/core/types";
|
|
import * as color from "./color";
|
|
|
|
/** 代码高亮色 */
|
|
export type Chroma = MapLeafNodes<typeof color.chroma, string>;
|
|
/** 主色调(强调色) */
|
|
export type Primary = MapLeafNodes<typeof color.primary, string>;
|
|
/** 副色调(边框色) */
|
|
export type Secondary = MapLeafNodes<typeof color.secondary, string>;
|
|
/** 基础颜色 */
|
|
export type Named = MapLeafNodes<typeof color.named, string>;
|
|
/** 提示消息 */
|
|
export type Message = MapLeafNodes<typeof color.message, string>;
|
|
/** Actions 日志 ANSI 颜色 */
|
|
export type Ansi = MapLeafNodes<typeof color.ansi, string>;
|
|
/** Actions 颜色 */
|
|
export type Console = MapLeafNodes<typeof color.console, string>;
|
|
/** 代码差异对比颜色 */
|
|
export type Diff = MapLeafNodes<typeof color.diff, string>;
|
|
/** 其他颜色 */
|
|
export type Other = MapLeafNodes<typeof color.other, string>;
|
|
/** 仅限本主题的 Github 颜色 */
|
|
export type Github = MapLeafNodes<typeof color.github, string>;
|