-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathtypes.ts
More file actions
63 lines (60 loc) · 1.55 KB
/
Copy pathtypes.ts
File metadata and controls
63 lines (60 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import type { SyntaxStyle } from "@opentui/core";
import type { CustomSyntaxThemeData } from "../../core/types";
export interface AppTheme {
id: string;
label: string;
appearance: "light" | "dark";
background: string;
panel: string;
panelAlt: string;
border: string;
accent: string;
accentMuted: string;
text: string;
muted: string;
addedBg: string;
removedBg: string;
movedAddedBg: string;
movedRemovedBg: string;
contextBg: string;
addedContentBg: string;
removedContentBg: string;
contextContentBg: string;
addedSignColor: string;
removedSignColor: string;
lineNumberBg: string;
lineNumberFg: string;
selectedHunk: string;
badgeAdded: string;
badgeRemoved: string;
badgeNeutral: string;
fileNew: string;
fileDeleted: string;
fileRenamed: string;
fileModified: string;
fileUntracked: string;
noteBorder: string;
noteBackground: string;
noteTitleBackground: string;
noteTitleText: string;
/** Optional Shiki/Pierre theme name for source-accurate code highlighting. */
syntaxTheme?: string;
/** Optional full Shiki theme JSON registered with the highlighter under `syntaxTheme`. */
syntaxThemeData?: CustomSyntaxThemeData;
syntaxColors: SyntaxColors;
syntaxStyle: SyntaxStyle;
}
export type SyntaxColors = {
default: string;
keyword: string;
string: string;
comment: string;
number: string;
function: string;
property: string;
type: string;
variable?: string;
operator?: string;
punctuation: string;
};
export type ThemeBase = Omit<AppTheme, "syntaxColors" | "syntaxStyle">;