@mumbrane/arrakis 0.8.2 → 0.8.3
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/package.json +1 -1
- package/src/markdown.js +1 -1
- package/src/theme.js +21 -19
- package/src/tui.js +1 -1
package/package.json
CHANGED
package/src/markdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Streaming Markdown renderer for the terminal, in the
|
|
1
|
+
// Streaming Markdown renderer for the terminal, in the Spice style. Text
|
|
2
2
|
// arrives in chunks; each complete line is rendered as soon as its newline
|
|
3
3
|
// arrives. Tables are held until they end so their columns can be aligned.
|
|
4
4
|
|
package/src/theme.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
// "
|
|
1
|
+
// "Spice": arrakis's design language.
|
|
2
2
|
//
|
|
3
|
-
// A
|
|
4
|
-
// accents,
|
|
5
|
-
// carry meaning (success, caution, error) and are used sparingly.
|
|
3
|
+
// A desert palette: spice gold as the primary, burnt orange and ember as
|
|
4
|
+
// accents, sand for soft text, dark umber panels behind code. Sage, saffron
|
|
5
|
+
// and rose carry meaning (success, caution, error) and are used sparingly.
|
|
6
|
+
// (The keys below name roles, kept from earlier themes: `violet` is the
|
|
7
|
+
// primary color, `orchid` the hot accent, `lilac` the soft text, and so on.)
|
|
6
8
|
//
|
|
7
9
|
// Colors render in 24-bit where the terminal supports it and fall back to the
|
|
8
10
|
// nearest 256-color value elsewhere (e.g. macOS Terminal.app). NO_COLOR turns
|
|
9
11
|
// everything off.
|
|
10
12
|
|
|
11
13
|
export const PALETTE = {
|
|
12
|
-
violet: [
|
|
13
|
-
iris: [
|
|
14
|
-
orchid: [
|
|
15
|
-
lilac: [
|
|
16
|
-
mist: [
|
|
17
|
-
dusk: [
|
|
18
|
-
mint: [
|
|
19
|
-
amber: [
|
|
20
|
-
rose: [
|
|
21
|
-
sky: [
|
|
22
|
-
ink: [
|
|
23
|
-
panel: [
|
|
24
|
-
raise: [
|
|
25
|
-
addBg: [
|
|
26
|
-
delBg: [
|
|
14
|
+
violet: [232, 166, 64], // primary: spice gold
|
|
15
|
+
iris: [196, 104, 38], // deep accent: burnt orange
|
|
16
|
+
orchid: [244, 128, 52], // hot accent: ember
|
|
17
|
+
lilac: [240, 226, 196], // soft text: sand
|
|
18
|
+
mist: [156, 144, 124], // muted text: dune
|
|
19
|
+
dusk: [96, 86, 70], // faint lines
|
|
20
|
+
mint: [150, 208, 130], // success: sage
|
|
21
|
+
amber: [242, 206, 108], // caution / numbers: saffron
|
|
22
|
+
rose: [238, 110, 110],
|
|
23
|
+
sky: [124, 196, 210], // functions, links: oasis teal
|
|
24
|
+
ink: [26, 19, 11], // text on gold chips
|
|
25
|
+
panel: [40, 32, 22], // code panels: umber
|
|
26
|
+
raise: [58, 45, 28], // selected rows, your messages
|
|
27
|
+
addBg: [28, 50, 30],
|
|
28
|
+
delBg: [64, 28, 26],
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
const env = process.env;
|
package/src/tui.js
CHANGED
|
@@ -189,7 +189,7 @@ export class FancyUI extends UI {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
// Your message: a raised
|
|
192
|
+
// Your message: a raised gold-edged panel across the full width, so it stands
|
|
193
193
|
// apart from both the terminal and arrakis's replies.
|
|
194
194
|
echoUser(text) {
|
|
195
195
|
const c = this.c;
|