@operad-io/tui 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +12 -2
- package/package.json +27 -4
- package/src/actions.ts +997 -0
- package/src/app.ts +1665 -0
- package/src/args.ts +198 -0
- package/src/autostart.ts +302 -0
- package/src/client.ts +478 -0
- package/src/discover.ts +90 -0
- package/src/events.ts +345 -0
- package/src/index.ts +11 -0
- package/src/layout.ts +260 -0
- package/src/live.ts +113 -0
- package/src/markdown.ts +85 -0
- package/src/recent.ts +40 -0
- package/src/sanitize.ts +18 -0
- package/src/state.ts +3200 -0
- package/src/theme.ts +525 -0
- package/src/themes.ts +60 -0
- package/src/view/index.ts +1204 -0
- package/src/wrap.ts +156 -0
- package/theme.schema.json +197 -0
- package/themes/LICENSE-catppuccin +21 -0
- package/themes/LICENSE-dracula +21 -0
- package/themes/LICENSE-github +21 -0
- package/themes/LICENSE-kanagawa +21 -0
- package/themes/LICENSE-nord +21 -0
- package/themes/LICENSE-one +20 -0
- package/themes/LICENSE-rose-pine +21 -0
- package/themes/LICENSE-solarized +20 -0
- package/themes/LICENSE-tokyo-night +22 -0
- package/themes/README.md +81 -0
- package/themes/catppuccin-frappe.json +19 -0
- package/themes/catppuccin-latte.json +19 -0
- package/themes/catppuccin-macchiato.json +19 -0
- package/themes/catppuccin-mocha.json +19 -0
- package/themes/dracula.json +19 -0
- package/themes/github-dark.json +19 -0
- package/themes/github-light.json +19 -0
- package/themes/kanagawa-dragon.json +19 -0
- package/themes/kanagawa-lotus.json +19 -0
- package/themes/kanagawa-wave.json +19 -0
- package/themes/nord.json +19 -0
- package/themes/one-dark.json +19 -0
- package/themes/one-light.json +19 -0
- package/themes/rose-pine-dawn.json +19 -0
- package/themes/rose-pine-main.json +19 -0
- package/themes/solarized-dark.json +19 -0
- package/themes/solarized-light.json +19 -0
- package/themes/tokyo-night-day.json +19 -0
- package/themes/tokyo-night-night.json +19 -0
- package/tui.schema.json +24 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Catppuccin Macchiato. Source: https://github.com/catppuccin/palette (palette.json, macchiato; version 1.8.0). Licence: MIT, Copyright (c) 2021 Catppuccin; the text is in LICENSE-catppuccin. Roles: text = text, weak = subtext0, rule = surface1, accent = mauve, run = blue, ok = green, error = red, add = green, remove = red, tint = surface0, code = mantle, background = base. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#cad3f5",
|
|
6
|
+
"weak": "#a5adcb",
|
|
7
|
+
"rule": "#494d64",
|
|
8
|
+
"accent": "#c6a0f6",
|
|
9
|
+
"run": "#8aadf4",
|
|
10
|
+
"ok": "#a6da95",
|
|
11
|
+
"error": "#ed8796",
|
|
12
|
+
"cancelled": "#c21d35",
|
|
13
|
+
"add": "#a6da95",
|
|
14
|
+
"remove": "#ed8796",
|
|
15
|
+
"tint": "#363a4f",
|
|
16
|
+
"code": "#1e2030",
|
|
17
|
+
"background": "#24273a"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Catppuccin Mocha. Source: https://github.com/catppuccin/palette (palette.json, mocha; version 1.8.0). Licence: MIT, Copyright (c) 2021 Catppuccin; the text is in LICENSE-catppuccin. Roles: text = text, weak = subtext0, rule = surface1, accent = mauve, run = blue, ok = green, error = red, add = green, remove = red, tint = surface0, code = mantle, background = base. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#cdd6f4",
|
|
6
|
+
"weak": "#a6adc8",
|
|
7
|
+
"rule": "#45475a",
|
|
8
|
+
"accent": "#cba6f7",
|
|
9
|
+
"run": "#89b4fa",
|
|
10
|
+
"ok": "#a6e3a1",
|
|
11
|
+
"error": "#f38ba8",
|
|
12
|
+
"cancelled": "#d01549",
|
|
13
|
+
"add": "#a6e3a1",
|
|
14
|
+
"remove": "#f38ba8",
|
|
15
|
+
"tint": "#313244",
|
|
16
|
+
"code": "#181825",
|
|
17
|
+
"background": "#1e1e2e"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Dracula. Source: https://github.com/dracula/dracula-theme (README.md, Color Palette). Licence: MIT, Copyright (c) 2023 Dracula Theme; the text is in LICENSE-dracula. Roles: text = Foreground, weak = Comment, rule = Current Line, accent = Purple, run = Cyan, ok = Green, error = Red, add = Green, remove = Red, tint = Selection, code = Current Line, background = Background. Dracula has no blue, so run is its cyan. The main palette names one selection/current-line colour and no second background, so tint is Selection #44475a and code is the editor interface's darker background BGDark #21222c from https://github.com/dracula/visual-studio-code (src/dracula.yml); the two differ, so a code block and a selected row do not look the same. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#f8f8f2",
|
|
6
|
+
"weak": "#6272a4",
|
|
7
|
+
"rule": "#44475a",
|
|
8
|
+
"accent": "#bd93f9",
|
|
9
|
+
"run": "#8be9fd",
|
|
10
|
+
"ok": "#50fa7b",
|
|
11
|
+
"error": "#ff5555",
|
|
12
|
+
"cancelled": "#cc0000",
|
|
13
|
+
"add": "#50fa7b",
|
|
14
|
+
"remove": "#ff5555",
|
|
15
|
+
"tint": "#44475a",
|
|
16
|
+
"code": "#21222c",
|
|
17
|
+
"background": "#282a36"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "GitHub Dark. Source: https://github.com/primer/primitives (src/tokens/functional/color/*.json5 resolved through src/tokens/base/color/dark/dark.json5). Licence: MIT, Copyright (c) 2018 GitHub Inc.; the text is in LICENSE-github. Roles: text = fgColor.default, weak = fgColor.muted, rule = borderColor.default, accent = fgColor.done, run = fgColor.accent, ok = fgColor.success, error = fgColor.danger, add = fgColor.success, remove = fgColor.danger, tint = bgColor.accent.muted (10% alpha over bgColor.default), code = bgColor.muted, background = bgColor.default. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#f0f6fc",
|
|
6
|
+
"weak": "#9198a1",
|
|
7
|
+
"rule": "#3d444d",
|
|
8
|
+
"accent": "#ab7df8",
|
|
9
|
+
"run": "#4493f8",
|
|
10
|
+
"ok": "#3fb950",
|
|
11
|
+
"error": "#f85149",
|
|
12
|
+
"cancelled": "#b90f07",
|
|
13
|
+
"add": "#3fb950",
|
|
14
|
+
"remove": "#f85149",
|
|
15
|
+
"tint": "#111d2e",
|
|
16
|
+
"code": "#151b23",
|
|
17
|
+
"background": "#0d1117"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "GitHub Light. Source: https://github.com/primer/primitives (src/tokens/functional/color/*.json5 resolved through src/tokens/base/color/light/light.json5). Licence: MIT, Copyright (c) 2018 GitHub Inc.; the text is in LICENSE-github. Roles: text = fgColor.default, weak = fgColor.muted, rule = borderColor.default, accent = fgColor.done, run = fgColor.accent, ok = fgColor.success, error = fgColor.danger, add = fgColor.success, remove = fgColor.danger, tint = bgColor.accent.muted, code = bgColor.muted, background = bgColor.default. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#1f2328",
|
|
6
|
+
"weak": "#59636e",
|
|
7
|
+
"rule": "#d1d9e0",
|
|
8
|
+
"accent": "#8250df",
|
|
9
|
+
"run": "#0969da",
|
|
10
|
+
"ok": "#1a7f37",
|
|
11
|
+
"error": "#d1242f",
|
|
12
|
+
"cancelled": "#7d161c",
|
|
13
|
+
"add": "#1a7f37",
|
|
14
|
+
"remove": "#d1242f",
|
|
15
|
+
"tint": "#ddf4ff",
|
|
16
|
+
"code": "#f6f8fa",
|
|
17
|
+
"background": "#ffffff"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Kanagawa Dragon. Source: https://github.com/rebelot/kanagawa.nvim (lua/kanagawa/colors.lua for the palette, lua/kanagawa/themes.lua for the roles). Licence: MIT, Copyright (c) 2021 Tommaso Laurenzi; the text is in LICENSE-kanagawa. Roles: text = dragonWhite, weak = dragonAsh, rule = dragonBlack5, accent = dragonViolet, run = dragonBlue2, ok = dragonGreen2, error = dragonRed, add = autumnGreen, remove = autumnRed, tint = waveBlue1, code = dragonBlack0, background = dragonBlack3. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#c5c9c5",
|
|
6
|
+
"weak": "#737c73",
|
|
7
|
+
"rule": "#393836",
|
|
8
|
+
"accent": "#8992a7",
|
|
9
|
+
"run": "#8ba4b0",
|
|
10
|
+
"ok": "#8a9a7b",
|
|
11
|
+
"error": "#c4746e",
|
|
12
|
+
"cancelled": "#833a35",
|
|
13
|
+
"add": "#76946a",
|
|
14
|
+
"remove": "#c34043",
|
|
15
|
+
"tint": "#223249",
|
|
16
|
+
"code": "#0d0c0c",
|
|
17
|
+
"background": "#181616"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Kanagawa Lotus. Source: https://github.com/rebelot/kanagawa.nvim (lua/kanagawa/colors.lua for the palette, lua/kanagawa/themes.lua for the roles). Licence: MIT, Copyright (c) 2021 Tommaso Laurenzi; the text is in LICENSE-kanagawa. Roles: text = lotusInk1, weak = lotusGray3, rule = lotusWhite5, accent = lotusViolet4, run = lotusBlue4, ok = lotusGreen, error = lotusRed, add = lotusGreen2, remove = lotusRed2, tint = lotusViolet3 (bg_visual), code = lotusWhite0, background = lotusWhite3. The iOS app uses lotusWhite4 for its tint, but upstream bg_visual is lotusViolet3, so the app's value is stale. Adjusted for contrast, nothing else changed: weak #8a8980 (lotusGray3) -> #87867d: lightness 52% -> 51% for 3:1 on #f2ecbc (was 2.93:1); add #6e915f (lotusGreen2) -> #6c8e5d: lightness 47% -> 46% for 3:1 on #f2ecbc (was 2.98:1). cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#545464",
|
|
6
|
+
"weak": "#87867d",
|
|
7
|
+
"rule": "#e4d794",
|
|
8
|
+
"accent": "#624c83",
|
|
9
|
+
"run": "#4d699b",
|
|
10
|
+
"ok": "#6f894e",
|
|
11
|
+
"error": "#c84053",
|
|
12
|
+
"cancelled": "#7b2330",
|
|
13
|
+
"add": "#6c8e5d",
|
|
14
|
+
"remove": "#d7474b",
|
|
15
|
+
"tint": "#c9cbd1",
|
|
16
|
+
"code": "#d5cea3",
|
|
17
|
+
"background": "#f2ecbc"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Kanagawa Wave. Source: https://github.com/rebelot/kanagawa.nvim (lua/kanagawa/colors.lua for the palette, lua/kanagawa/themes.lua for the roles). Licence: MIT, Copyright (c) 2021 Tommaso Laurenzi; the text is in LICENSE-kanagawa. Roles: text = fujiWhite, weak = fujiGray, rule = sumiInk5, accent = oniViolet, run = crystalBlue, ok = springGreen, error = waveRed, add = autumnGreen, remove = autumnRed, tint = waveBlue1 (bg_visual), code = sumiInk0, background = sumiInk3. The iOS app uses sumiInk4 for its tint, but upstream bg_visual is waveBlue1, so the app's value is stale. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#dcd7ba",
|
|
6
|
+
"weak": "#727169",
|
|
7
|
+
"rule": "#363646",
|
|
8
|
+
"accent": "#957fb8",
|
|
9
|
+
"run": "#7e9cd8",
|
|
10
|
+
"ok": "#98bb6c",
|
|
11
|
+
"error": "#e46876",
|
|
12
|
+
"cancelled": "#a91e2e",
|
|
13
|
+
"add": "#76946a",
|
|
14
|
+
"remove": "#c34043",
|
|
15
|
+
"tint": "#223249",
|
|
16
|
+
"code": "#16161d",
|
|
17
|
+
"background": "#1f1f28"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/themes/nord.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Nord. Source: https://github.com/nordtheme/nord (src/nord.scss). Licence: MIT, Copyright (c) 2016-present Sven Greb; the text is in LICENSE-nord. Roles: text = nord4, weak = nord3, rule = nord3, accent = nord15, run = nord9, ok = nord14, error = nord11, add = nord14, remove = nord11, tint = nord2, code = nord1, background = nord0. Adjusted for contrast, nothing else changed: weak #4c566a (nord3) -> #707e99: lightness 36% -> 52% for 3:1 on #2e3440 (was 1.69:1). cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#d8dee9",
|
|
6
|
+
"weak": "#707e99",
|
|
7
|
+
"rule": "#4c566a",
|
|
8
|
+
"accent": "#b48ead",
|
|
9
|
+
"run": "#81a1c1",
|
|
10
|
+
"ok": "#a3be8c",
|
|
11
|
+
"error": "#bf616a",
|
|
12
|
+
"cancelled": "#7b3239",
|
|
13
|
+
"add": "#a3be8c",
|
|
14
|
+
"remove": "#bf616a",
|
|
15
|
+
"tint": "#434c5e",
|
|
16
|
+
"code": "#3b4252",
|
|
17
|
+
"background": "#2e3440"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "One Dark. Source: https://github.com/atom/one-dark-syntax (styles/colors.less and styles/syntax-variables.less; HSL values converted to hex). Licence: MIT, Copyright (c) 2016 GitHub Inc.; the text is in LICENSE-one. Roles: text = mono-1 hsl(220,14%,71%), weak = mono-2 hsl(220,9%,55%), rule = mono-3 hsl(220,10%,40%), accent = hue-3 hsl(286,60%,67%), run = hue-2 hsl(207,82%,66%), ok = hue-4 hsl(95,38%,62%), error = hue-5 hsl(355,65%,65%), add = syntax-color-added hsl(150,60%,54%), remove = syntax-color-removed hsl(0,70%,60%), tint = syntax-selection-color lighten(bg,10%), code = gutter-background-color-selected lighten(bg,8%), background = syntax-bg hsl(220,13%,18%). No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#abb2bf",
|
|
6
|
+
"weak": "#828997",
|
|
7
|
+
"rule": "#5c6370",
|
|
8
|
+
"accent": "#c678dd",
|
|
9
|
+
"run": "#61afef",
|
|
10
|
+
"ok": "#98c379",
|
|
11
|
+
"error": "#e06c75",
|
|
12
|
+
"cancelled": "#a5232d",
|
|
13
|
+
"add": "#43d08a",
|
|
14
|
+
"remove": "#e05252",
|
|
15
|
+
"tint": "#3e4451",
|
|
16
|
+
"code": "#3a3f4b",
|
|
17
|
+
"background": "#282c34"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "One Light. Source: https://github.com/atom/one-light-syntax (styles/colors.less and styles/syntax-variables.less; HSL values converted to hex). Licence: MIT, Copyright (c) 2016 GitHub Inc.; the text is in LICENSE-one. Roles: text = mono-1 hsl(230,8%,24%), weak = mono-2 hsl(230,6%,44%), rule = mono-3 hsl(230,4%,64%), accent = hue-3 hsl(301,63%,40%), run = hue-2 hsl(221,87%,60%), ok = hue-4 hsl(119,34%,47%), error = hue-5 hsl(5,74%,59%), add = syntax-color-added hsl(132,60%,44%), remove = syntax-color-removed hsl(0,100%,54%), tint = syntax-selection-color darken(bg,8%), code = syntax-cursor-line (mono-1 at 5% over the base), background = syntax-bg hsl(230,1%,98%). One Light uses the same gutter shade for its selection, so code takes the cursor-line tint instead and a code block and a selected row do not look the same. Adjusted for contrast, nothing else changed: add #2db448 (syntax-color-added hsl(132,60%,44%)) -> #29a341: lightness 44% -> 40% for 3:1 on #fafafa (was 2.60:1). cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#383a42",
|
|
6
|
+
"weak": "#696c77",
|
|
7
|
+
"rule": "#a0a1a7",
|
|
8
|
+
"accent": "#a626a4",
|
|
9
|
+
"run": "#4078f2",
|
|
10
|
+
"ok": "#50a14f",
|
|
11
|
+
"error": "#e45649",
|
|
12
|
+
"cancelled": "#9d2317",
|
|
13
|
+
"add": "#29a341",
|
|
14
|
+
"remove": "#ff1414",
|
|
15
|
+
"tint": "#e5e5e6",
|
|
16
|
+
"code": "#f0f0f1",
|
|
17
|
+
"background": "#fafafa"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Rosé Pine Dawn. Source: https://github.com/rose-pine/palette (palette.json, dawn). Licence: MIT, Copyright (c) mvllow; the text is in LICENSE-rose-pine. Roles: text = text, weak = subtle, rule = overlay, accent = iris, run = foam, ok = pine, error = love, add = foam, remove = love, tint = iris at 15% over base (Visual), code = surface (NormalFloat), background = base. Rosé Pine has no green or blue: ok is pine and run is foam, as its own editor themes use them. The list and cursor-line highlights use overlay, but Visual blends iris 15% over base; tint takes that blend so a selected row is visible and differs from rule. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#464261",
|
|
6
|
+
"weak": "#797593",
|
|
7
|
+
"rule": "#f2e9e1",
|
|
8
|
+
"accent": "#907aa9",
|
|
9
|
+
"run": "#56949f",
|
|
10
|
+
"ok": "#286983",
|
|
11
|
+
"error": "#b4637a",
|
|
12
|
+
"cancelled": "#713647",
|
|
13
|
+
"add": "#56949f",
|
|
14
|
+
"remove": "#b4637a",
|
|
15
|
+
"tint": "#eae2e3",
|
|
16
|
+
"code": "#fffaf3",
|
|
17
|
+
"background": "#faf4ed"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Rosé Pine. Source: https://github.com/rose-pine/palette (palette.json, main). Licence: MIT, Copyright (c) mvllow; the text is in LICENSE-rose-pine. Roles: text = text, weak = subtle, rule = overlay, accent = iris, run = foam, ok = pine, error = love, add = foam, remove = love, tint = iris at 15% over base (Visual), code = surface (NormalFloat), background = base. Rosé Pine has no green or blue: ok is pine and run is foam, as its own editor themes use them. The list and cursor-line highlights use overlay, but Visual blends iris 15% over base; tint takes that blend so a selected row is visible and differs from rule. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#e0def4",
|
|
6
|
+
"weak": "#908caa",
|
|
7
|
+
"rule": "#26233a",
|
|
8
|
+
"accent": "#c4a7e7",
|
|
9
|
+
"run": "#9ccfd8",
|
|
10
|
+
"ok": "#31748f",
|
|
11
|
+
"error": "#eb6f92",
|
|
12
|
+
"cancelled": "#b61946",
|
|
13
|
+
"add": "#9ccfd8",
|
|
14
|
+
"remove": "#eb6f92",
|
|
15
|
+
"tint": "#332d41",
|
|
16
|
+
"code": "#1f1d2e",
|
|
17
|
+
"background": "#191724"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Solarized Dark. Source: https://github.com/altercation/solarized (README.md, the scss snippet with the rebase mixin). Licence: MIT, Copyright (c) 2011 Ethan Schoonover; the text is in LICENSE-solarized. Roles: text = base0, weak = base01, rule = base02, accent = violet, run = blue, ok = green, error = red, add = green, remove = red, tint = base02, code = base03, background = base03. Solarized names one highlight background beyond the base, so rule and tint take it and code takes the base itself; a code block and a selected row do not look the same. Adjusted for contrast, nothing else changed: weak #586e75 (base01) -> #5e767d: lightness 40% -> 43% for 3:1 on #002b36 (was 2.79:1). cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#839496",
|
|
6
|
+
"weak": "#5e767d",
|
|
7
|
+
"rule": "#073642",
|
|
8
|
+
"accent": "#6c71c4",
|
|
9
|
+
"run": "#268bd2",
|
|
10
|
+
"ok": "#859900",
|
|
11
|
+
"error": "#dc322f",
|
|
12
|
+
"cancelled": "#891917",
|
|
13
|
+
"add": "#859900",
|
|
14
|
+
"remove": "#dc322f",
|
|
15
|
+
"tint": "#073642",
|
|
16
|
+
"code": "#002b36",
|
|
17
|
+
"background": "#002b36"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Solarized Light. Source: https://github.com/altercation/solarized (README.md, the scss snippet with the rebase mixin). Licence: MIT, Copyright (c) 2011 Ethan Schoonover; the text is in LICENSE-solarized. Roles: text = base00, weak = base1, rule = base2, accent = violet, run = blue, ok = green, error = red, add = green, remove = red, tint = base2, code = base3, background = base3. Solarized names one highlight background beyond the base, so rule and tint take it and code takes the base itself; a code block and a selected row do not look the same. Adjusted for contrast, nothing else changed: text #657b83 (base00) -> #5f747c: lightness 45% -> 43% for 4.5:1 on #fdf6e3 (was 4.13:1); weak #93a1a1 (base1) -> #829292: lightness 60% -> 54% for 3:1 on #fdf6e3 (was 2.48:1); ok #859900 (green) -> #819400: lightness 30% -> 29% for 3:1 on #fdf6e3 (was 2.97:1); add #859900 (green) -> #819400: lightness 30% -> 29% for 3:1 on #fdf6e3 (was 2.97:1). cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#5f747c",
|
|
6
|
+
"weak": "#829292",
|
|
7
|
+
"rule": "#eee8d5",
|
|
8
|
+
"accent": "#6c71c4",
|
|
9
|
+
"run": "#268bd2",
|
|
10
|
+
"ok": "#819400",
|
|
11
|
+
"error": "#dc322f",
|
|
12
|
+
"cancelled": "#891917",
|
|
13
|
+
"add": "#819400",
|
|
14
|
+
"remove": "#dc322f",
|
|
15
|
+
"tint": "#eee8d5",
|
|
16
|
+
"code": "#fdf6e3",
|
|
17
|
+
"background": "#fdf6e3"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Tokyo Night Day. Source: https://github.com/tokyo-night/tokyo-night-vscode-theme (themes/tokyo-night-light-color-theme.json). Licence: MIT, Copyright (c) 2018-present Enkia; the text is in LICENSE-tokyo-night. Roles: text = editor.foreground, weak = icon.foreground, rule = panel.border, accent = terminal.ansiMagenta, run = terminal.ansiBlue, ok = terminal.ansiGreen, error = terminal.ansiRed, add = gitDecoration.addedResourceForeground, remove = gitDecoration.deletedResourceForeground, tint = editorWidget.background, code = editor.lineHighlightBackground, background = editor.background. The upstream repository names this variant Tokyo Night Light; operad calls it Day, as the family of Tokyo Night themes does. No colour adjusted. cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#343b59",
|
|
6
|
+
"weak": "#707280",
|
|
7
|
+
"rule": "#c1c2c7",
|
|
8
|
+
"accent": "#7b43ba",
|
|
9
|
+
"run": "#2959aa",
|
|
10
|
+
"ok": "#33635c",
|
|
11
|
+
"error": "#8c4351",
|
|
12
|
+
"cancelled": "#542831",
|
|
13
|
+
"add": "#166775",
|
|
14
|
+
"remove": "#914c54",
|
|
15
|
+
"tint": "#d6d8df",
|
|
16
|
+
"code": "#dcdee3",
|
|
17
|
+
"background": "#e6e7ed"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../theme.schema.json",
|
|
3
|
+
"comment": "Tokyo Night. Source: https://github.com/tokyo-night/tokyo-night-vscode-theme (themes/tokyo-night-color-theme.json). Licence: MIT, Copyright (c) 2018-present Enkia; the text is in LICENSE-tokyo-night. Roles: text = editor.foreground, weak = foreground, rule = editorLineNumber.foreground, accent = terminal.ansiMagenta, run = terminal.ansiBlue, ok = terminal.ansiGreen, error = terminal.ansiRed, add = gitDecoration.addedResourceForeground, remove = gitDecoration.deletedResourceForeground, tint = list.activeSelectionBackground, code = textCodeBlock.background, background = editor.background. The iOS app uses #1c1d29 for its tint, but upstream list.activeSelectionBackground is #202330, so the app's value is stale. Adjusted for contrast, nothing else changed: remove #914c54 (gitDecoration.deletedResourceForeground) -> #9a5159: lightness 43% -> 46% for 3:1 on #1a1b26 (was 2.74:1). cancelled = error with lightness 60% for a cancelled child's bar segment.",
|
|
4
|
+
"colors": {
|
|
5
|
+
"text": "#a9b1d6",
|
|
6
|
+
"weak": "#787c99",
|
|
7
|
+
"rule": "#363b54",
|
|
8
|
+
"accent": "#bb9af7",
|
|
9
|
+
"run": "#7aa2f7",
|
|
10
|
+
"ok": "#73daca",
|
|
11
|
+
"error": "#f7768e",
|
|
12
|
+
"cancelled": "#cf0c30",
|
|
13
|
+
"add": "#449dab",
|
|
14
|
+
"remove": "#9a5159",
|
|
15
|
+
"tint": "#202330",
|
|
16
|
+
"code": "#16161e",
|
|
17
|
+
"background": "#1a1b26"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/tui.schema.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "operad tui.json",
|
|
4
|
+
"description": "The terminal app's settings, read from the operad home.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"theme": {
|
|
12
|
+
"description": "The colour theme: auto follows the terminal's light or dark mode; light and dark are the built-in palettes; terminal uses the terminal's own 16 colours; a family name (catppuccin, solarized, tokyo-night, one, rose-pine, github, kanagawa) follows the terminal's mode like auto; a shipped theme name (for example dracula or nord) is fixed; any other name is a theme file themes/<name>.json in the operad home (not the name of a built-in).",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"default": "auto"
|
|
16
|
+
},
|
|
17
|
+
"layout": {
|
|
18
|
+
"description": "How an object page draws its next level: tree nests children under the first sibling in their after; list is one flat list. t switches it for the session.",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["tree", "list"],
|
|
21
|
+
"default": "tree"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|