@aeondave/pi-theme-1337 0.0.0-stage → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +263 -0
- package/LICENSE +21 -0
- package/README.md +166 -2
- package/assets/banner.png +0 -0
- package/assets/palettes.gif +0 -0
- package/docs/architecture.md +172 -0
- package/docs/configuration.md +103 -0
- package/docs/palette-design.md +51 -0
- package/docs/theme-motion.md +88 -0
- package/package.json +68 -4
- package/src/avatar.ts +174 -0
- package/src/background.ts +82 -0
- package/src/config.ts +400 -0
- package/src/diff-spans.ts +77 -0
- package/src/draft.ts +10 -0
- package/src/editor.ts +545 -0
- package/src/format.ts +464 -0
- package/src/frame.ts +380 -0
- package/src/git-status-cache.ts +198 -0
- package/src/git-status-reader.ts +28 -0
- package/src/git-status.ts +72 -0
- package/src/header-controller.ts +58 -0
- package/src/header.ts +151 -0
- package/src/index.ts +1264 -0
- package/src/quota.ts +581 -0
- package/src/redraw-guard.ts +79 -0
- package/src/run-summary.ts +623 -0
- package/src/spinner.ts +72 -0
- package/src/status-style.ts +26 -0
- package/src/terminal-title.ts +67 -0
- package/src/tool-activity.ts +216 -0
- package/src/tool-adapter.ts +491 -0
- package/src/tool-groups.ts +192 -0
- package/src/tool-lexicon.ts +200 -0
- package/src/tool-view.ts +788 -0
- package/src/width.ts +246 -0
- package/themes/1337-amber.json +94 -0
- package/themes/1337-amber.pi1337 +3 -0
- package/themes/1337-cosmos.json +94 -0
- package/themes/1337-cosmos.pi1337 +3 -0
- package/themes/1337-cyber.json +94 -0
- package/themes/1337-cyber.pi1337 +3 -0
- package/themes/1337-cyberpunk-2077-edgerunner.json +94 -0
- package/themes/1337-cyberpunk-2077-edgerunner.pi1337 +7 -0
- package/themes/1337-cyberpunk-2077.json +94 -0
- package/themes/1337-cyberpunk-2077.pi1337 +7 -0
- package/themes/1337-fallout.json +94 -0
- package/themes/1337-fallout.pi1337 +4 -0
- package/themes/1337-ice.json +94 -0
- package/themes/1337-ice.pi1337 +3 -0
- package/themes/1337-magma.json +94 -0
- package/themes/1337-magma.pi1337 +1 -0
- package/themes/1337-neon.json +94 -0
- package/themes/1337-neon.pi1337 +3 -0
- package/themes/1337-poison.json +94 -0
- package/themes/1337-poison.pi1337 +3 -0
- package/themes/1337-skynet-dark.json +94 -0
- package/themes/1337-skynet-dark.pi1337 +4 -0
- package/themes/1337-skynet.json +94 -0
- package/themes/1337-skynet.pi1337 +4 -0
- package/themes/1337.json +95 -0
- package/themes/1337.pi1337 +3 -0
package/src/width.ts
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terminal-width helpers for width-aware TUI rendering.
|
|
3
|
+
*
|
|
4
|
+
* The frame is built from fixed-width rows: every row must measure *exactly* the
|
|
5
|
+
* same number of columns as pi-tui lays out, or the right rail drifts — and a row
|
|
6
|
+
* one column too wide wraps, which desynchronizes pi's differential renderer and
|
|
7
|
+
* leaves stale chrome on screen (pi even throws on an over-wide line).
|
|
8
|
+
*
|
|
9
|
+
* So measurement is never guessed: `index.ts` installs pi-tui's own
|
|
10
|
+
* `visibleWidth` / `truncateToWidth` through `useTerminalMetrics()` at load
|
|
11
|
+
* time, and the render modules go through the thin wrappers below. That also
|
|
12
|
+
* makes the frame correct across pi-tui versions that measure differently from
|
|
13
|
+
* each other — the box agrees with whatever ruler the host is painting with.
|
|
14
|
+
*
|
|
15
|
+
* The built-in implementation that follows is a dependency-free fallback: it
|
|
16
|
+
* keeps the pure modules unit-testable with nothing but `node --test`, and it
|
|
17
|
+
* mirrors pi-tui's `graphemeWidth` rules (tab = 3 columns, terminal spacing
|
|
18
|
+
* marks add a cell, RGI emoji are wide, East-Asian Wide/Fullwidth are wide).
|
|
19
|
+
* Production never relies on it being perfect — and where it is uncertain it
|
|
20
|
+
* should round *up*: over-measuring only makes the right rail sit a column
|
|
21
|
+
* short, while under-measuring wraps the row and desynchronizes the renderer.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/** The measurement primitives the render modules need. */
|
|
25
|
+
export interface TerminalMetrics {
|
|
26
|
+
visibleWidth(text: string): number;
|
|
27
|
+
truncateToWidth(text: string, max: number, ellipsis?: string): string;
|
|
28
|
+
stripAnsi(text: string): string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// ANSI escapes consumed for measurement: CSI (styling and cursor codes), OSC
|
|
32
|
+
// (incl. OSC-8 links), APC (the TUI's cursor marker). Matching all three keeps
|
|
33
|
+
// measurement in parity with what pi-tui emits, so an escape is never counted as
|
|
34
|
+
// a printable column. APC accepts both terminators — pi-tui's CURSOR_MARKER
|
|
35
|
+
// (`\x1b_pi:c\x07`) ends in BEL, not ST; miscounting it once pulled the cursor
|
|
36
|
+
// row's right rail in by 5.
|
|
37
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching ANSI escape sequences
|
|
38
|
+
const ANSI = /\x1b\[[0-9;?]*[A-Za-z]|\x1b[\]_][^\x07\x1b]*(?:\x07|\x1b\\)/g;
|
|
39
|
+
// The same set anchored at the start of a string (for streaming truncation).
|
|
40
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching ANSI escape sequences
|
|
41
|
+
const ANSI_HEAD = /^(?:\x1b\[[0-9;?]*[A-Za-z]|\x1b[\]_][^\x07\x1b]*(?:\x07|\x1b\\))/;
|
|
42
|
+
|
|
43
|
+
const VS16 = String.fromCodePoint(0xfe0f); // emoji-presentation variation selector
|
|
44
|
+
// Mirror pi-tui's `graphemeWidth` classification (packages/tui/src/utils.ts).
|
|
45
|
+
const ZERO_WIDTH = /^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Mark}\p{Surrogate}]+$/v;
|
|
46
|
+
const LEADING_NONPRINT = /^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v;
|
|
47
|
+
const NONPRINT = /^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})$/v;
|
|
48
|
+
const MARK = /^\p{Mark}$/v;
|
|
49
|
+
// Marks a terminal allocates a cell for: Unicode spacing marks (minus three that
|
|
50
|
+
// terminals draw as combining) plus the non-spacing exceptions legacy wcwidth
|
|
51
|
+
// tables treat as advancing. Verbatim from pi-tui's `terminalSpacingMarkRegex`.
|
|
52
|
+
const SPACING_MARK =
|
|
53
|
+
/^(?:[\p{Spacing_Mark}--[᜴〮〯]]|[ٟཿါာေဳ-ဵး်-ှ])+$/v;
|
|
54
|
+
// Only true RGI emoji are wide — NOT everything in the pictograph blocks. Text-
|
|
55
|
+
// presentation dingbats (✓ ✗ ✦ …) live in 0x2600–0x27bf but render one column;
|
|
56
|
+
// blanket-widening the block once pulled the frame's right rail in per ✓.
|
|
57
|
+
const RGI_EMOJI = /^\p{RGI_Emoji}$/v;
|
|
58
|
+
const SEGMENTER = new Intl.Segmenter(undefined, { granularity: "grapheme" });
|
|
59
|
+
const TAB_WIDTH = 3; // pi-tui lays a literal tab out as three columns
|
|
60
|
+
|
|
61
|
+
/** East-Asian Wide/Fullwidth code point ranges (the Unicode W + F sets). */
|
|
62
|
+
const WIDE_RANGES: ReadonlyArray<readonly [number, number]> = [
|
|
63
|
+
[0x1100, 0x115f],
|
|
64
|
+
[0x231a, 0x231b],
|
|
65
|
+
[0x2329, 0x232a],
|
|
66
|
+
[0x2e80, 0x303e], // CJK radicals … ideographic marks (0x303f is narrow)
|
|
67
|
+
[0x3041, 0x33ff],
|
|
68
|
+
[0x3400, 0x9fff], // CJK ext A, Yijing hexagrams, CJK unified
|
|
69
|
+
[0xa000, 0xa4cf],
|
|
70
|
+
[0xa960, 0xa97f],
|
|
71
|
+
[0xac00, 0xd7a3], // Hangul syllables
|
|
72
|
+
[0xf900, 0xfaff],
|
|
73
|
+
[0xfe10, 0xfe19], // vertical forms
|
|
74
|
+
[0xfe30, 0xfe52],
|
|
75
|
+
[0xfe54, 0xfe66],
|
|
76
|
+
[0xfe68, 0xfe6b],
|
|
77
|
+
[0xff01, 0xff60], // fullwidth forms
|
|
78
|
+
[0xffe0, 0xffe6],
|
|
79
|
+
[0x16fe0, 0x16fe4],
|
|
80
|
+
[0x16ff0, 0x16ff1],
|
|
81
|
+
[0x17000, 0x18cd5], // Tangut, Khitan
|
|
82
|
+
[0x18d00, 0x18d08],
|
|
83
|
+
[0x1aff0, 0x1affe],
|
|
84
|
+
[0x1b000, 0x1b2fb], // Kana supplement / extended, Nushu
|
|
85
|
+
[0x1f200, 0x1f251],
|
|
86
|
+
[0x20000, 0x3fffd], // CJK extensions
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
/** Cheap pre-filter before the RGI_Emoji regex — same block heuristic as pi-tui. */
|
|
90
|
+
function couldBeEmoji(cluster: string): boolean {
|
|
91
|
+
const cp = cluster.codePointAt(0) ?? 0;
|
|
92
|
+
return (
|
|
93
|
+
(cp >= 0x1f000 && cp <= 0x1fbff) || // emoji & pictographs
|
|
94
|
+
(cp >= 0x2300 && cp <= 0x23ff) || // misc technical (⌚ ⏰ …)
|
|
95
|
+
(cp >= 0x2600 && cp <= 0x27bf) || // misc symbols, dingbats
|
|
96
|
+
(cp >= 0x2b50 && cp <= 0x2b55) || // stars/circles
|
|
97
|
+
cluster.includes(VS16) ||
|
|
98
|
+
cluster.length > 2 // ZWJ sequences, skin tones, flags
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** East-Asian Wide/Fullwidth test for a single code point. */
|
|
103
|
+
function isWide(cp: number): boolean {
|
|
104
|
+
for (const [lo, hi] of WIDE_RANGES) {
|
|
105
|
+
if (cp < lo) return false; // ranges are sorted
|
|
106
|
+
if (cp <= hi) return true;
|
|
107
|
+
}
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** Terminal column width of one grapheme cluster, mirroring pi-tui's graphemeWidth. */
|
|
112
|
+
function clusterWidth(cluster: string): number {
|
|
113
|
+
if (cluster === "\t") return TAB_WIDTH;
|
|
114
|
+
if (SPACING_MARK.test(cluster)) return [...cluster].length; // marks that stand on their own cells
|
|
115
|
+
if (ZERO_WIDTH.test(cluster)) return 0; // combining marks / format / control only
|
|
116
|
+
if (couldBeEmoji(cluster) && RGI_EMOJI.test(cluster)) return 2; // real emoji only
|
|
117
|
+
const base = cluster.replace(LEADING_NONPRINT, ""); // skip leading joiners/marks
|
|
118
|
+
const cp = base.codePointAt(0);
|
|
119
|
+
if (cp === undefined) return 0; // joiner-only cluster (e.g. a lone ZWJ)
|
|
120
|
+
if (cp >= 0x1f1e6 && cp <= 0x1f1ff) return 2; // lone regional indicator (streaming)
|
|
121
|
+
let width = isWide(cp) ? 2 : 1;
|
|
122
|
+
// Intl.Segmenter can fold several cell-taking code points into one cluster
|
|
123
|
+
// (Indic consonants after a mark, halfwidth/fullwidth forms, Thai/Lao AM).
|
|
124
|
+
let followsMark = false;
|
|
125
|
+
for (const char of [...base].slice(1)) {
|
|
126
|
+
if (SPACING_MARK.test(char)) {
|
|
127
|
+
width += 1;
|
|
128
|
+
followsMark = false;
|
|
129
|
+
} else if (MARK.test(char)) {
|
|
130
|
+
followsMark = true;
|
|
131
|
+
} else if (!NONPRINT.test(char)) {
|
|
132
|
+
const c = char.codePointAt(0) ?? 0;
|
|
133
|
+
if (followsMark || (c >= 0xff00 && c <= 0xffef)) width += isWide(c) ? 2 : 1;
|
|
134
|
+
else if (c === 0x0e33 || c === 0x0eb3) width += 1;
|
|
135
|
+
followsMark = false;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return width;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function stripSequences(text: string): string {
|
|
142
|
+
return text.replace(ANSI, "");
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** Printable column width of `text`, ignoring ANSI escapes; grapheme-aware. */
|
|
146
|
+
function measureWidth(text: string): number {
|
|
147
|
+
let width = 0;
|
|
148
|
+
for (const { segment } of SEGMENTER.segment(stripSequences(text))) width += clusterWidth(segment);
|
|
149
|
+
return width;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Truncate `text` to at most `max` printable columns, appending `ellipsis`.
|
|
154
|
+
* ANSI escapes are copied through verbatim (zero width); advancing is
|
|
155
|
+
* grapheme-aware, so truncation never splits an emoji/ZWJ cluster mid-sequence.
|
|
156
|
+
* A trailing foreground reset is added so truncation never bleeds color forward.
|
|
157
|
+
*/
|
|
158
|
+
function clipToWidth(text: string, max: number, ellipsis = "…"): string {
|
|
159
|
+
if (max <= 0) return "";
|
|
160
|
+
if (measureWidth(text) <= max) return text;
|
|
161
|
+
const budget = Math.max(0, max - measureWidth(ellipsis));
|
|
162
|
+
let out = "";
|
|
163
|
+
let width = 0;
|
|
164
|
+
let i = 0;
|
|
165
|
+
while (i < text.length) {
|
|
166
|
+
const rest = text.slice(i);
|
|
167
|
+
const esc = rest.match(ANSI_HEAD);
|
|
168
|
+
if (esc) {
|
|
169
|
+
out += esc[0];
|
|
170
|
+
i += esc[0].length;
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
const cluster = SEGMENTER.segment(rest)[Symbol.iterator]().next().value?.segment ?? rest[0];
|
|
174
|
+
const cw = clusterWidth(cluster);
|
|
175
|
+
if (width + cw > budget) break;
|
|
176
|
+
out += cluster;
|
|
177
|
+
width += cw;
|
|
178
|
+
i += cluster.length;
|
|
179
|
+
}
|
|
180
|
+
return `${out}${ellipsis}\x1b[39m`;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const BUILTIN: TerminalMetrics = {
|
|
184
|
+
visibleWidth: measureWidth,
|
|
185
|
+
truncateToWidth: clipToWidth,
|
|
186
|
+
stripAnsi: stripSequences,
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
let metrics: TerminalMetrics = BUILTIN;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Install the terminal's real measurement primitives (pi-tui's). Called once by
|
|
193
|
+
* `index.ts`; passing nothing restores the built-in fallback (used by tests).
|
|
194
|
+
*/
|
|
195
|
+
export function useTerminalMetrics(next?: Partial<TerminalMetrics>): void {
|
|
196
|
+
// Drop absent members instead of spreading them: pi-tui's export surface moves, and an
|
|
197
|
+
// import that has become `undefined` would otherwise overwrite a working built-in with it
|
|
198
|
+
// and only surface as "not a function" on the first render.
|
|
199
|
+
const supplied = Object.fromEntries(Object.entries(next ?? {}).filter(([, fn]) => typeof fn === "function"));
|
|
200
|
+
metrics = { ...BUILTIN, ...supplied };
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function visibleWidth(text: string): number {
|
|
204
|
+
return metrics.visibleWidth(text);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function truncateToWidth(text: string, max: number, ellipsis = "…"): string {
|
|
208
|
+
return metrics.truncateToWidth(text, max, ellipsis);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function stripAnsi(text: string): string {
|
|
212
|
+
return metrics.stripAnsi(text);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* True for a row carrying a Kitty or iTerm2 inline-image payload. Pi's own
|
|
217
|
+
* classifier is internal, so its two protocol signatures live here once. Such
|
|
218
|
+
* rows are sized in image cells: never measure or clip them as text.
|
|
219
|
+
*/
|
|
220
|
+
export function isImageProtocolLine(line: string): boolean {
|
|
221
|
+
return line.includes("\x1b_G") || line.includes("\x1b]1337;File=");
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** Clip text rows to `width` without an ellipsis; image-protocol rows pass through untouched. */
|
|
225
|
+
export function clipTextRows(lines: readonly string[], width: number): string[] {
|
|
226
|
+
return lines.map(line => isImageProtocolLine(line) ? line : truncateToWidth(line, width, ""));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Pure box geometry shared by `FramedEditor.render`. From the terminal `width`,
|
|
231
|
+
* the cap `maxWidth`, and the side `minMargin`, decide the outer box width, the
|
|
232
|
+
* centering left margin, and whether the terminal is simply too narrow to frame
|
|
233
|
+
* (`fallback` — render the bare editor instead).
|
|
234
|
+
*/
|
|
235
|
+
export interface BoxGeometry {
|
|
236
|
+
fallback: boolean;
|
|
237
|
+
boxWidth: number;
|
|
238
|
+
leftMargin: number;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function chooseBox(width: number, maxWidth: number, minMargin: number): BoxGeometry {
|
|
242
|
+
let boxWidth = Math.min(maxWidth, width - 2 * minMargin);
|
|
243
|
+
if (boxWidth < 24) boxWidth = Math.min(Math.max(1, width - 2), maxWidth); // narrow: trade margin for width
|
|
244
|
+
if (width < 8 || boxWidth < 6) return { fallback: true, boxWidth, leftMargin: 0 };
|
|
245
|
+
return { fallback: false, boxWidth, leftMargin: Math.max(0, Math.floor((width - boxWidth) / 2)) };
|
|
246
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://pi.dev/schemas/theme.schema.json",
|
|
3
|
+
"name": "1337-amber",
|
|
4
|
+
"vars": {
|
|
5
|
+
"void": "#171009",
|
|
6
|
+
"panel": "#281d11",
|
|
7
|
+
"selected": "#3b2d19",
|
|
8
|
+
"line": "#3c3125",
|
|
9
|
+
"body": "#ffbd68",
|
|
10
|
+
"accent": "#ffdda0",
|
|
11
|
+
"success": "#a6df62",
|
|
12
|
+
"error": "#ff765e",
|
|
13
|
+
"warning": "#ffeb3b",
|
|
14
|
+
"halo": "#fff0c5",
|
|
15
|
+
"quiet": "#e8a94f",
|
|
16
|
+
"dim": "#d99445",
|
|
17
|
+
"userBg": "#281d11",
|
|
18
|
+
"okBg": "#1b2414",
|
|
19
|
+
"errBg": "#2a1715",
|
|
20
|
+
"diff": "#ffbd68",
|
|
21
|
+
"syn1": "#83cf56",
|
|
22
|
+
"syn2": "#e3a446",
|
|
23
|
+
"syn3": "#ffbd68",
|
|
24
|
+
"syn4": "#ffdda0",
|
|
25
|
+
"syn5": "#d99445",
|
|
26
|
+
"syn6": "#d99445",
|
|
27
|
+
"syn7": "#b97732",
|
|
28
|
+
"think1": "#ffbd68",
|
|
29
|
+
"think2": "#ffc777",
|
|
30
|
+
"think3": "#ffd184",
|
|
31
|
+
"think4": "#ffdda0",
|
|
32
|
+
"think5": "#ffe9b8",
|
|
33
|
+
"think6": "#fff0c5"
|
|
34
|
+
},
|
|
35
|
+
"colors": {
|
|
36
|
+
"accent": "accent",
|
|
37
|
+
"border": "line",
|
|
38
|
+
"borderAccent": "halo",
|
|
39
|
+
"borderMuted": "line",
|
|
40
|
+
"success": "success",
|
|
41
|
+
"error": "error",
|
|
42
|
+
"warning": "warning",
|
|
43
|
+
"muted": "quiet",
|
|
44
|
+
"dim": "dim",
|
|
45
|
+
"text": "body",
|
|
46
|
+
"thinkingText": "quiet",
|
|
47
|
+
"selectedBg": "selected",
|
|
48
|
+
"userMessageBg": "panel",
|
|
49
|
+
"userMessageText": "halo",
|
|
50
|
+
"customMessageBg": "userBg",
|
|
51
|
+
"customMessageText": "body",
|
|
52
|
+
"customMessageLabel": "accent",
|
|
53
|
+
"toolPendingBg": "panel",
|
|
54
|
+
"toolSuccessBg": "okBg",
|
|
55
|
+
"toolErrorBg": "errBg",
|
|
56
|
+
"toolTitle": "halo",
|
|
57
|
+
"toolOutput": "body",
|
|
58
|
+
"mdHeading": "halo",
|
|
59
|
+
"mdLink": "accent",
|
|
60
|
+
"mdLinkUrl": "quiet",
|
|
61
|
+
"mdCode": "syn1",
|
|
62
|
+
"mdCodeBlock": "body",
|
|
63
|
+
"mdCodeBlockBorder": "quiet",
|
|
64
|
+
"mdQuote": "quiet",
|
|
65
|
+
"mdQuoteBorder": "dim",
|
|
66
|
+
"mdHr": "quiet",
|
|
67
|
+
"mdListBullet": "accent",
|
|
68
|
+
"toolDiffAdded": "success",
|
|
69
|
+
"toolDiffRemoved": "error",
|
|
70
|
+
"toolDiffContext": "diff",
|
|
71
|
+
"syntaxComment": "dim",
|
|
72
|
+
"syntaxKeyword": "accent",
|
|
73
|
+
"syntaxFunction": "halo",
|
|
74
|
+
"syntaxVariable": "body",
|
|
75
|
+
"syntaxString": "syn1",
|
|
76
|
+
"syntaxNumber": "warning",
|
|
77
|
+
"syntaxType": "syn2",
|
|
78
|
+
"syntaxOperator": "syn3",
|
|
79
|
+
"syntaxPunctuation": "syn4",
|
|
80
|
+
"thinkingOff": "think1",
|
|
81
|
+
"thinkingMinimal": "think2",
|
|
82
|
+
"thinkingLow": "think3",
|
|
83
|
+
"thinkingMedium": "think4",
|
|
84
|
+
"thinkingHigh": "think5",
|
|
85
|
+
"thinkingXhigh": "think6",
|
|
86
|
+
"bashMode": "warning"
|
|
87
|
+
},
|
|
88
|
+
"export": {
|
|
89
|
+
"pageBg": "#171009",
|
|
90
|
+
"cardBg": "#281d11",
|
|
91
|
+
"infoBg": "#3b2d19"
|
|
92
|
+
},
|
|
93
|
+
"appearance": "dark"
|
|
94
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://pi.dev/schemas/theme.schema.json",
|
|
3
|
+
"name": "1337-cosmos",
|
|
4
|
+
"vars": {
|
|
5
|
+
"void": "#11111b",
|
|
6
|
+
"panel": "#1a1a30",
|
|
7
|
+
"selected": "#292a3e",
|
|
8
|
+
"line": "#45475a",
|
|
9
|
+
"body": "#ccaaff",
|
|
10
|
+
"accent": "#f9e2af",
|
|
11
|
+
"success": "#a6e3a1",
|
|
12
|
+
"error": "#f38ba8",
|
|
13
|
+
"warning": "#fab387",
|
|
14
|
+
"halo": "#e4e9fc",
|
|
15
|
+
"quiet": "#a6adc8",
|
|
16
|
+
"dim": "#8b91b9",
|
|
17
|
+
"userBg": "#1e1e2e",
|
|
18
|
+
"okBg": "#16251f",
|
|
19
|
+
"errBg": "#301624",
|
|
20
|
+
"diff": "#9198bf",
|
|
21
|
+
"syn1": "#94e2d5",
|
|
22
|
+
"syn2": "#f5c2e7",
|
|
23
|
+
"syn3": "#89b4fa",
|
|
24
|
+
"syn4": "#a6adc8",
|
|
25
|
+
"syn5": "#cdd6f4",
|
|
26
|
+
"syn6": "#b4befe",
|
|
27
|
+
"syn7": "#cba6f7",
|
|
28
|
+
"think1": "#8a91b7",
|
|
29
|
+
"think2": "#89b4fa",
|
|
30
|
+
"think3": "#b4befe",
|
|
31
|
+
"think4": "#d9bdfb",
|
|
32
|
+
"think5": "#f5c2e7",
|
|
33
|
+
"think6": "#f9e2af"
|
|
34
|
+
},
|
|
35
|
+
"colors": {
|
|
36
|
+
"accent": "accent",
|
|
37
|
+
"border": "line",
|
|
38
|
+
"borderAccent": "halo",
|
|
39
|
+
"borderMuted": "line",
|
|
40
|
+
"success": "success",
|
|
41
|
+
"error": "error",
|
|
42
|
+
"warning": "warning",
|
|
43
|
+
"muted": "quiet",
|
|
44
|
+
"dim": "dim",
|
|
45
|
+
"text": "body",
|
|
46
|
+
"thinkingText": "quiet",
|
|
47
|
+
"selectedBg": "selected",
|
|
48
|
+
"userMessageBg": "panel",
|
|
49
|
+
"userMessageText": "syn5",
|
|
50
|
+
"customMessageBg": "userBg",
|
|
51
|
+
"customMessageText": "body",
|
|
52
|
+
"customMessageLabel": "accent",
|
|
53
|
+
"toolPendingBg": "panel",
|
|
54
|
+
"toolSuccessBg": "okBg",
|
|
55
|
+
"toolErrorBg": "errBg",
|
|
56
|
+
"toolTitle": "halo",
|
|
57
|
+
"toolOutput": "body",
|
|
58
|
+
"mdHeading": "halo",
|
|
59
|
+
"mdLink": "accent",
|
|
60
|
+
"mdLinkUrl": "quiet",
|
|
61
|
+
"mdCode": "syn1",
|
|
62
|
+
"mdCodeBlock": "body",
|
|
63
|
+
"mdCodeBlockBorder": "quiet",
|
|
64
|
+
"mdQuote": "quiet",
|
|
65
|
+
"mdQuoteBorder": "dim",
|
|
66
|
+
"mdHr": "line",
|
|
67
|
+
"mdListBullet": "accent",
|
|
68
|
+
"toolDiffAdded": "success",
|
|
69
|
+
"toolDiffRemoved": "error",
|
|
70
|
+
"toolDiffContext": "diff",
|
|
71
|
+
"syntaxComment": "dim",
|
|
72
|
+
"syntaxKeyword": "syn2",
|
|
73
|
+
"syntaxFunction": "halo",
|
|
74
|
+
"syntaxVariable": "body",
|
|
75
|
+
"syntaxString": "success",
|
|
76
|
+
"syntaxNumber": "warning",
|
|
77
|
+
"syntaxType": "accent",
|
|
78
|
+
"syntaxOperator": "syn3",
|
|
79
|
+
"syntaxPunctuation": "syn4",
|
|
80
|
+
"thinkingOff": "think1",
|
|
81
|
+
"thinkingMinimal": "think2",
|
|
82
|
+
"thinkingLow": "think3",
|
|
83
|
+
"thinkingMedium": "think4",
|
|
84
|
+
"thinkingHigh": "think5",
|
|
85
|
+
"thinkingXhigh": "think6",
|
|
86
|
+
"bashMode": "warning"
|
|
87
|
+
},
|
|
88
|
+
"export": {
|
|
89
|
+
"pageBg": "#11111b",
|
|
90
|
+
"cardBg": "#1a1a30",
|
|
91
|
+
"infoBg": "#292a3e"
|
|
92
|
+
},
|
|
93
|
+
"appearance": "dark"
|
|
94
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://pi.dev/schemas/theme.schema.json",
|
|
3
|
+
"name": "1337-cyber",
|
|
4
|
+
"vars": {
|
|
5
|
+
"void": "#0b1022",
|
|
6
|
+
"panel": "#151c34",
|
|
7
|
+
"selected": "#202b43",
|
|
8
|
+
"line": "#2e3347",
|
|
9
|
+
"body": "#8baeff",
|
|
10
|
+
"accent": "#42e8ff",
|
|
11
|
+
"success": "#75e6b6",
|
|
12
|
+
"error": "#ff718f",
|
|
13
|
+
"warning": "#ffe36d",
|
|
14
|
+
"halo": "#dce4ff",
|
|
15
|
+
"quiet": "#8da5eb",
|
|
16
|
+
"dim": "#8298e0",
|
|
17
|
+
"userBg": "#151c34",
|
|
18
|
+
"okBg": "#171d28",
|
|
19
|
+
"errBg": "#2a1724",
|
|
20
|
+
"diff": "#8baeff",
|
|
21
|
+
"syn1": "#b9a0ff",
|
|
22
|
+
"syn2": "#52dfff",
|
|
23
|
+
"syn3": "#c8baff",
|
|
24
|
+
"syn4": "#7de0a4",
|
|
25
|
+
"syn5": "#8baeff",
|
|
26
|
+
"syn6": "#bdd0ff",
|
|
27
|
+
"syn7": "#a98cff",
|
|
28
|
+
"think1": "#8baeff",
|
|
29
|
+
"think2": "#9bb9ff",
|
|
30
|
+
"think3": "#aec5ff",
|
|
31
|
+
"think4": "#bfd0ff",
|
|
32
|
+
"think5": "#d0dcff",
|
|
33
|
+
"think6": "#dce4ff"
|
|
34
|
+
},
|
|
35
|
+
"colors": {
|
|
36
|
+
"accent": "accent",
|
|
37
|
+
"border": "line",
|
|
38
|
+
"borderAccent": "halo",
|
|
39
|
+
"borderMuted": "line",
|
|
40
|
+
"success": "success",
|
|
41
|
+
"error": "error",
|
|
42
|
+
"warning": "warning",
|
|
43
|
+
"muted": "quiet",
|
|
44
|
+
"dim": "dim",
|
|
45
|
+
"text": "body",
|
|
46
|
+
"thinkingText": "quiet",
|
|
47
|
+
"selectedBg": "selected",
|
|
48
|
+
"userMessageBg": "panel",
|
|
49
|
+
"userMessageText": "halo",
|
|
50
|
+
"customMessageBg": "userBg",
|
|
51
|
+
"customMessageText": "body",
|
|
52
|
+
"customMessageLabel": "accent",
|
|
53
|
+
"toolPendingBg": "panel",
|
|
54
|
+
"toolSuccessBg": "okBg",
|
|
55
|
+
"toolErrorBg": "errBg",
|
|
56
|
+
"toolTitle": "halo",
|
|
57
|
+
"toolOutput": "body",
|
|
58
|
+
"mdHeading": "halo",
|
|
59
|
+
"mdLink": "accent",
|
|
60
|
+
"mdLinkUrl": "quiet",
|
|
61
|
+
"mdCode": "syn1",
|
|
62
|
+
"mdCodeBlock": "body",
|
|
63
|
+
"mdCodeBlockBorder": "quiet",
|
|
64
|
+
"mdQuote": "quiet",
|
|
65
|
+
"mdQuoteBorder": "dim",
|
|
66
|
+
"mdHr": "quiet",
|
|
67
|
+
"mdListBullet": "accent",
|
|
68
|
+
"toolDiffAdded": "success",
|
|
69
|
+
"toolDiffRemoved": "error",
|
|
70
|
+
"toolDiffContext": "diff",
|
|
71
|
+
"syntaxComment": "dim",
|
|
72
|
+
"syntaxKeyword": "syn1",
|
|
73
|
+
"syntaxFunction": "accent",
|
|
74
|
+
"syntaxVariable": "body",
|
|
75
|
+
"syntaxString": "syn2",
|
|
76
|
+
"syntaxNumber": "warning",
|
|
77
|
+
"syntaxType": "syn3",
|
|
78
|
+
"syntaxOperator": "syn3",
|
|
79
|
+
"syntaxPunctuation": "syn4",
|
|
80
|
+
"thinkingOff": "think1",
|
|
81
|
+
"thinkingMinimal": "think2",
|
|
82
|
+
"thinkingLow": "think3",
|
|
83
|
+
"thinkingMedium": "think4",
|
|
84
|
+
"thinkingHigh": "think5",
|
|
85
|
+
"thinkingXhigh": "think6",
|
|
86
|
+
"bashMode": "warning"
|
|
87
|
+
},
|
|
88
|
+
"export": {
|
|
89
|
+
"pageBg": "#0b1022",
|
|
90
|
+
"cardBg": "#151c34",
|
|
91
|
+
"infoBg": "#202b43"
|
|
92
|
+
},
|
|
93
|
+
"appearance": "dark"
|
|
94
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://pi.dev/schemas/theme.schema.json",
|
|
3
|
+
"name": "1337-cyberpunk-2077-edgerunner",
|
|
4
|
+
"vars": {
|
|
5
|
+
"void": "#100307",
|
|
6
|
+
"panel": "#1d0710",
|
|
7
|
+
"selected": "#2c0b18",
|
|
8
|
+
"line": "#5c1425",
|
|
9
|
+
"body": "#ff8995",
|
|
10
|
+
"accent": "#00e6e6",
|
|
11
|
+
"success": "#ffd43b",
|
|
12
|
+
"error": "#ff5368",
|
|
13
|
+
"warning": "#ff8c00",
|
|
14
|
+
"halo": "#ffe65a",
|
|
15
|
+
"quiet": "#f37583",
|
|
16
|
+
"dim": "#e05b70",
|
|
17
|
+
"userBg": "#1d0710",
|
|
18
|
+
"okBg": "#220c08",
|
|
19
|
+
"errBg": "#200509",
|
|
20
|
+
"diff": "#ff8995",
|
|
21
|
+
"syn1": "#ffb7be",
|
|
22
|
+
"syn2": "#49e3df",
|
|
23
|
+
"syn3": "#ff6b7c",
|
|
24
|
+
"syn4": "#a4fffa",
|
|
25
|
+
"syn5": "#00e6e6",
|
|
26
|
+
"syn6": "#fff09a",
|
|
27
|
+
"syn7": "#d97b87",
|
|
28
|
+
"think1": "#da5064",
|
|
29
|
+
"think2": "#e1586c",
|
|
30
|
+
"think3": "#e96072",
|
|
31
|
+
"think4": "#f16e7f",
|
|
32
|
+
"think5": "#f97d8d",
|
|
33
|
+
"think6": "#ff8995"
|
|
34
|
+
},
|
|
35
|
+
"colors": {
|
|
36
|
+
"accent": "accent",
|
|
37
|
+
"border": "line",
|
|
38
|
+
"borderAccent": "accent",
|
|
39
|
+
"borderMuted": "line",
|
|
40
|
+
"success": "success",
|
|
41
|
+
"error": "error",
|
|
42
|
+
"warning": "warning",
|
|
43
|
+
"muted": "quiet",
|
|
44
|
+
"dim": "dim",
|
|
45
|
+
"text": "body",
|
|
46
|
+
"thinkingText": "quiet",
|
|
47
|
+
"selectedBg": "selected",
|
|
48
|
+
"userMessageBg": "panel",
|
|
49
|
+
"userMessageText": "halo",
|
|
50
|
+
"customMessageBg": "userBg",
|
|
51
|
+
"customMessageText": "body",
|
|
52
|
+
"customMessageLabel": "accent",
|
|
53
|
+
"toolPendingBg": "panel",
|
|
54
|
+
"toolSuccessBg": "okBg",
|
|
55
|
+
"toolErrorBg": "errBg",
|
|
56
|
+
"toolTitle": "halo",
|
|
57
|
+
"toolOutput": "body",
|
|
58
|
+
"mdHeading": "halo",
|
|
59
|
+
"mdLink": "accent",
|
|
60
|
+
"mdLinkUrl": "syn2",
|
|
61
|
+
"mdCode": "syn1",
|
|
62
|
+
"mdCodeBlock": "body",
|
|
63
|
+
"mdCodeBlockBorder": "accent",
|
|
64
|
+
"mdQuote": "quiet",
|
|
65
|
+
"mdQuoteBorder": "dim",
|
|
66
|
+
"mdHr": "line",
|
|
67
|
+
"mdListBullet": "accent",
|
|
68
|
+
"toolDiffAdded": "success",
|
|
69
|
+
"toolDiffRemoved": "error",
|
|
70
|
+
"toolDiffContext": "diff",
|
|
71
|
+
"syntaxComment": "dim",
|
|
72
|
+
"syntaxKeyword": "halo",
|
|
73
|
+
"syntaxFunction": "accent",
|
|
74
|
+
"syntaxVariable": "body",
|
|
75
|
+
"syntaxString": "syn2",
|
|
76
|
+
"syntaxNumber": "warning",
|
|
77
|
+
"syntaxType": "syn6",
|
|
78
|
+
"syntaxOperator": "syn3",
|
|
79
|
+
"syntaxPunctuation": "syn4",
|
|
80
|
+
"thinkingOff": "think1",
|
|
81
|
+
"thinkingMinimal": "think2",
|
|
82
|
+
"thinkingLow": "think3",
|
|
83
|
+
"thinkingMedium": "think4",
|
|
84
|
+
"thinkingHigh": "think5",
|
|
85
|
+
"thinkingXhigh": "think6",
|
|
86
|
+
"bashMode": "warning"
|
|
87
|
+
},
|
|
88
|
+
"export": {
|
|
89
|
+
"pageBg": "#100307",
|
|
90
|
+
"cardBg": "#1d0710",
|
|
91
|
+
"infoBg": "#2c0b18"
|
|
92
|
+
},
|
|
93
|
+
"appearance": "dark"
|
|
94
|
+
}
|