T1: four more themes, theme picker, theme file import, editor font settings
Plum Night, River, Paper and Reed (designed by Amy, approved by Daniel) join the brand pair. theme.list/current/select/import, a picker with live preview (view.selectTheme) and "Import Theme…" (view.importTheme); imported themes are validated and stored in <data_dir>/themes. Editor font family and line height settings apply live. Docs: docs/themes.md. Gate: fmt, clippy and the rest pass up to cargo test, where only the unrelated lutra-terminal PTY test a_full_buffer_stops_the_shell timed out under load; to be re-run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
872b5cb258
commit
086bc8a925
26 changed files with 2881 additions and 100 deletions
279
ui/tests/theme/ThemePicker.test.ts
Normal file
279
ui/tests/theme/ThemePicker.test.ts
Normal file
|
|
@ -0,0 +1,279 @@
|
|||
/**
|
||||
* Tests of the theme picker and theme import (C9 T1): "Select Theme…"
|
||||
* lists the six built-in themes, imported ones and "Same as system" with
|
||||
* the current one selected; moving previews the tokens live; Escape puts
|
||||
* the theme back; Enter switches through `theme.select`; "Import Theme…"
|
||||
* runs `theme.import` with the picked file and reports success or the
|
||||
* engine's reason. The engine is a fake behind the mocked Tauri `invoke`
|
||||
* and `listen`, answering from the `themes.json` snapshot.
|
||||
*/
|
||||
import { flushPromises, mount, type VueWrapper } from "@vue/test-utils";
|
||||
import { createPinia, setActivePinia, type Pinia } from "pinia";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import themes from "./themes.json";
|
||||
|
||||
const invoke = vi.hoisted(() => vi.fn());
|
||||
vi.mock("@tauri-apps/api/core", () => ({ invoke }));
|
||||
vi.mock("@tauri-apps/api/event", () => ({ listen: () => Promise.resolve(() => undefined) }));
|
||||
|
||||
import { useCommandsStore } from "../../src/commands/store";
|
||||
import { useModalsStore } from "../../src/commands/modals";
|
||||
import ThemePicker from "../../src/components/theme/ThemePicker.vue";
|
||||
import { SYSTEM, toThemeInfo, toThemeList, useThemesStore } from "../../src/components/theme/themes";
|
||||
import { useNotificationsStore } from "../../src/stores/notifications";
|
||||
|
||||
/** An imported theme as `theme.list` lists it. */
|
||||
const IMPORTED = {
|
||||
id: "dusk",
|
||||
label: null,
|
||||
name: "My Dusk",
|
||||
dark: true,
|
||||
builtin: false,
|
||||
tokens: { ...(themes[3]?.tokens ?? {}), "--lt-bg": "#102030" },
|
||||
};
|
||||
|
||||
/** The fake engine's `appearance.theme`. */
|
||||
let setting: string;
|
||||
/** Every `engine_execute` call, in order. */
|
||||
let calls: { command: string; params: Record<string, unknown> }[];
|
||||
/** What `pick_file` returns. */
|
||||
let picked: string | null;
|
||||
/** Commands that fail, with their message. */
|
||||
let failing: Map<string, string>;
|
||||
/** Pinia of the current test. */
|
||||
let pinia: Pinia;
|
||||
/** Mounted components, unmounted after each test. */
|
||||
let mounted: VueWrapper[];
|
||||
|
||||
const root = document.documentElement;
|
||||
|
||||
/**
|
||||
* A theme of the fake engine by id.
|
||||
*
|
||||
* @param id - the theme id.
|
||||
*/
|
||||
function themeOf(id: string): { id: string; dark: boolean; tokens: Record<string, string> } {
|
||||
if (id === IMPORTED.id) {
|
||||
return IMPORTED;
|
||||
}
|
||||
const found = themes.find((t) => t.id === id) ?? themes[0];
|
||||
if (!found) {
|
||||
throw new Error("no themes");
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
/**
|
||||
* The fake engine's answer to a command.
|
||||
*
|
||||
* @param command - the command id.
|
||||
* @param params - its params.
|
||||
*/
|
||||
function answer(command: string, params: Record<string, unknown>): unknown {
|
||||
switch (command) {
|
||||
case "theme.list":
|
||||
return [
|
||||
...themes.map((t) => ({ id: t.id, label: t.labelKey, name: null, dark: t.dark, builtin: true, tokens: t.tokens })),
|
||||
IMPORTED,
|
||||
];
|
||||
case "settings.get":
|
||||
return { values: { "appearance.theme": setting } };
|
||||
case "theme.current":
|
||||
return themeOf(setting === SYSTEM ? "lutra-dark" : setting);
|
||||
case "theme.select":
|
||||
setting = params.id as string;
|
||||
return themeOf(setting === SYSTEM ? "lutra-dark" : setting);
|
||||
case "theme.import":
|
||||
return { id: "dusk", name: "My Dusk", dark: true, replaced: false };
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** Mounts the picker and starts the command store. */
|
||||
async function mountPicker(): Promise<VueWrapper> {
|
||||
const wrapper = mount(ThemePicker, { attachTo: document.body, global: { plugins: [pinia] } });
|
||||
mounted.push(wrapper);
|
||||
await useCommandsStore(pinia).start();
|
||||
await flushPromises();
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Presses a key on the picker's list.
|
||||
*
|
||||
* @param wrapper - the picker.
|
||||
* @param key - the key.
|
||||
*/
|
||||
async function press(wrapper: VueWrapper, key: string): Promise<void> {
|
||||
await wrapper.find("[data-test=theme-picker-list]").trigger("keydown", { key });
|
||||
await flushPromises();
|
||||
}
|
||||
|
||||
/**
|
||||
* The ids of the listed themes.
|
||||
*
|
||||
* @param wrapper - the picker.
|
||||
*/
|
||||
function ids(wrapper: VueWrapper): string[] {
|
||||
return wrapper.findAll("[data-test=theme-picker-row]").map((row) => row.attributes("data-id") ?? "");
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
pinia = createPinia();
|
||||
setActivePinia(pinia);
|
||||
setting = "lutra-river";
|
||||
calls = [];
|
||||
picked = null;
|
||||
failing = new Map();
|
||||
mounted = [];
|
||||
root.removeAttribute("style");
|
||||
invoke.mockReset();
|
||||
invoke.mockImplementation((cmd: string, args?: { command: string; params: Record<string, unknown> }) => {
|
||||
if (cmd === "engine_list_commands") {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
if (cmd === "pick_file") {
|
||||
return Promise.resolve(picked);
|
||||
}
|
||||
if (cmd === "engine_execute" && args) {
|
||||
calls.push({ command: args.command, params: args.params });
|
||||
const message = failing.get(args.command);
|
||||
if (message !== undefined) {
|
||||
return Promise.reject(Object.assign(new Error(message), { code: "failed", message }));
|
||||
}
|
||||
return Promise.resolve(answer(args.command, args.params));
|
||||
}
|
||||
return Promise.resolve(null);
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
useCommandsStore(pinia).stop();
|
||||
for (const wrapper of mounted) {
|
||||
wrapper.unmount();
|
||||
}
|
||||
});
|
||||
|
||||
describe("theme list helpers", () => {
|
||||
it("reads theme.list defensively and names themes", () => {
|
||||
expect(toThemeList("nope")).toBeNull();
|
||||
const list = toThemeList([null, { id: 1 }, ...themes.map((t) => ({ ...t, label: t.labelKey })), IMPORTED]);
|
||||
expect(list?.map((t) => t.name)).toEqual([
|
||||
"Lutra Dark",
|
||||
"Lutra Light",
|
||||
"Plum Night",
|
||||
"River",
|
||||
"Paper",
|
||||
"Reed",
|
||||
"My Dusk",
|
||||
"Same as system",
|
||||
]);
|
||||
expect(list?.at(-1)).toMatchObject({ id: SYSTEM, dark: null, theme: null });
|
||||
expect(toThemeInfo({ id: "x", dark: false, name: " " })?.name).toBe("x");
|
||||
});
|
||||
});
|
||||
|
||||
describe("theme picker", () => {
|
||||
it("opens from view.selectTheme with every theme and the current one selected", async () => {
|
||||
const wrapper = await mountPicker();
|
||||
await useCommandsStore(pinia).execute("view.selectTheme");
|
||||
await flushPromises();
|
||||
expect(ids(wrapper)).toEqual([
|
||||
"lutra-dark",
|
||||
"lutra-light",
|
||||
"lutra-plum-night",
|
||||
"lutra-river",
|
||||
"lutra-paper",
|
||||
"lutra-reed",
|
||||
"dusk",
|
||||
SYSTEM,
|
||||
]);
|
||||
const selected = wrapper.find(".theme-picker__row--selected");
|
||||
expect(selected.attributes("data-id")).toBe("lutra-river");
|
||||
expect(selected.text()).toContain("River");
|
||||
expect(selected.text()).toContain("current");
|
||||
expect(wrapper.find('[data-id="dusk"]').text()).toContain("Dark, imported");
|
||||
expect(useModalsStore(pinia).current).toBe("themes");
|
||||
expect(document.activeElement?.getAttribute("data-test")).toBe("theme-picker-list");
|
||||
});
|
||||
|
||||
it("previews while moving and puts the theme back on Escape", async () => {
|
||||
const wrapper = await mountPicker();
|
||||
await useThemesStore(pinia).show();
|
||||
await flushPromises();
|
||||
await press(wrapper, "ArrowDown");
|
||||
expect(root.style.getPropertyValue("--lt-bg")).toBe(themeOf("lutra-paper").tokens["--lt-bg"]);
|
||||
expect(root.style.colorScheme).toBe("light");
|
||||
await press(wrapper, "End");
|
||||
expect(root.style.getPropertyValue("--lt-bg")).toBe(themeOf("lutra-river").tokens["--lt-bg"]);
|
||||
await press(wrapper, "ArrowUp");
|
||||
expect(root.style.getPropertyValue("--lt-bg")).toBe("#102030");
|
||||
await press(wrapper, "Escape");
|
||||
expect(wrapper.find("[data-test=theme-picker]").exists()).toBe(false);
|
||||
expect(root.style.getPropertyValue("--lt-bg")).toBe(themeOf("lutra-river").tokens["--lt-bg"]);
|
||||
expect(calls.some((c) => c.command === "theme.select")).toBe(false);
|
||||
expect(useModalsStore(pinia).current).toBeNull();
|
||||
});
|
||||
|
||||
it("switches with Enter and with a click", async () => {
|
||||
const wrapper = await mountPicker();
|
||||
await useThemesStore(pinia).show();
|
||||
await flushPromises();
|
||||
await press(wrapper, "Home");
|
||||
await press(wrapper, "ArrowDown");
|
||||
await press(wrapper, "ArrowDown");
|
||||
await press(wrapper, "Enter");
|
||||
expect(calls.filter((c) => c.command === "theme.select").map((c) => c.params)).toEqual([{ id: "lutra-plum-night" }]);
|
||||
expect(wrapper.find("[data-test=theme-picker]").exists()).toBe(false);
|
||||
expect(root.dataset.theme).toBe("lutra-plum-night");
|
||||
|
||||
await useThemesStore(pinia).show();
|
||||
await flushPromises();
|
||||
await wrapper.find('[data-id="lutra-reed"]').trigger("click");
|
||||
await flushPromises();
|
||||
expect(setting).toBe("lutra-reed");
|
||||
expect(root.style.getPropertyValue("--lt-bg")).toBe(themeOf("lutra-reed").tokens["--lt-bg"]);
|
||||
});
|
||||
|
||||
it("puts the theme back and raises a toast when switching fails", async () => {
|
||||
const wrapper = await mountPicker();
|
||||
failing.set("theme.select", "settings cannot be saved");
|
||||
await useThemesStore(pinia).show();
|
||||
await flushPromises();
|
||||
await press(wrapper, "ArrowDown");
|
||||
await press(wrapper, "Enter");
|
||||
expect(root.style.getPropertyValue("--lt-bg")).toBe(themeOf("lutra-river").tokens["--lt-bg"]);
|
||||
expect(useNotificationsStore(pinia).toasts.at(-1)?.text).toContain("settings cannot be saved");
|
||||
});
|
||||
});
|
||||
|
||||
describe("theme import", () => {
|
||||
it("imports the picked file and confirms it", async () => {
|
||||
await mountPicker();
|
||||
picked = "C:/themes/dusk.json";
|
||||
await useCommandsStore(pinia).execute("view.importTheme");
|
||||
await flushPromises();
|
||||
expect(calls.find((c) => c.command === "theme.import")?.params).toEqual({ path: "C:/themes/dusk.json" });
|
||||
expect(useNotificationsStore(pinia).toasts.at(-1)).toMatchObject({ level: "info", text: "Imported the theme My Dusk." });
|
||||
});
|
||||
|
||||
it("does nothing when the file dialog is cancelled", async () => {
|
||||
await mountPicker();
|
||||
await useThemesStore(pinia).importFile();
|
||||
await flushPromises();
|
||||
expect(calls.filter((c) => c.command.startsWith("theme."))).toEqual([]);
|
||||
expect(useNotificationsStore(pinia).toasts).toEqual([]);
|
||||
});
|
||||
|
||||
it("shows the reason of a broken file", async () => {
|
||||
await mountPicker();
|
||||
picked = "C:/themes/bad.json";
|
||||
failing.set("theme.import", 'cannot import the theme C:/themes/bad.json: 59 tokens are missing: bg, editor-bg');
|
||||
await useThemesStore(pinia).importFile();
|
||||
await flushPromises();
|
||||
const toast = useNotificationsStore(pinia).toasts.at(-1);
|
||||
expect(toast?.level).toBe("error");
|
||||
expect(toast?.text).toContain("59 tokens are missing");
|
||||
});
|
||||
});
|
||||
|
|
@ -106,21 +106,24 @@ const KIND_PAIRS: [string, string, number][] = [...new Set(Object.values(KIND_CO
|
|||
/** ANSI colour names, as in `TERMINAL_TOKENS` in `theme.rs`. */
|
||||
const ANSI = ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"] as const;
|
||||
|
||||
/** ANSI tokens that may blend into the background, per theme id. */
|
||||
const TERMINAL_EXEMPT: Record<string, readonly string[]> = {
|
||||
"lutra-dark": ["terminal-ansi-black"],
|
||||
"lutra-light": ["terminal-ansi-white", "terminal-ansi-bright-white"],
|
||||
};
|
||||
/**
|
||||
* ANSI tokens that may blend into the background: black in dark themes,
|
||||
* white and bright white in light ones.
|
||||
*/
|
||||
const TERMINAL_EXEMPT = {
|
||||
dark: ["terminal-ansi-black"],
|
||||
light: ["terminal-ansi-white", "terminal-ansi-bright-white"],
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* The terminal's pairs for one theme: text and selection, the cursor, and
|
||||
* every ANSI colour (normal and bright) that is not exempt.
|
||||
*
|
||||
* @param id - the theme id.
|
||||
* @param dark - whether the theme is dark.
|
||||
* @returns foreground token, background token and minimum ratio.
|
||||
*/
|
||||
function terminalPairs(id: string): [string, string, number][] {
|
||||
const exempt = TERMINAL_EXEMPT[id] ?? [];
|
||||
function terminalPairs(dark: boolean): [string, string, number][] {
|
||||
const exempt: readonly string[] = TERMINAL_EXEMPT[dark ? "dark" : "light"];
|
||||
const ansi = ANSI.flatMap((name) => [`terminal-ansi-${name}`, `terminal-ansi-bright-${name}`]).filter(
|
||||
(name) => !exempt.includes(name),
|
||||
);
|
||||
|
|
@ -162,6 +165,27 @@ export function contrast(a: string, b: string): number {
|
|||
return (hi + 0.05) / (lo + 0.05);
|
||||
}
|
||||
|
||||
describe("built-in themes", () => {
|
||||
it("are the brand pair and the four C9 themes, two of each kind added", () => {
|
||||
expect(themes.map((theme) => theme.id)).toEqual([
|
||||
"lutra-dark",
|
||||
"lutra-light",
|
||||
"lutra-plum-night",
|
||||
"lutra-river",
|
||||
"lutra-paper",
|
||||
"lutra-reed",
|
||||
]);
|
||||
expect(themes.filter((theme) => theme.dark)).toHaveLength(3);
|
||||
});
|
||||
|
||||
it("all define the same tokens", () => {
|
||||
const names = (tokens: Record<string, string>): string[] => Object.keys(tokens).sort();
|
||||
for (const theme of themes) {
|
||||
expect(names(theme.tokens)).toEqual(names(themes[0]?.tokens ?? {}));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("contrast helper", () => {
|
||||
it("matches the WCAG extremes", () => {
|
||||
expect(contrast("#000000", "#ffffff")).toBeCloseTo(21, 5);
|
||||
|
|
@ -203,7 +227,7 @@ describe.each(themes)("theme $id", (theme) => {
|
|||
expect(defined).toHaveLength(ANSI.length * 2);
|
||||
});
|
||||
|
||||
it.each([...PAIRS, ...SYNTAX_PAIRS, ...STATUS_PAIRS, ...TAB_STATUS_PAIRS, ...KIND_PAIRS, ...terminalPairs(theme.id)])("%s on %s reaches %d:1", (fg, bg, min) => {
|
||||
it.each([...PAIRS, ...SYNTAX_PAIRS, ...STATUS_PAIRS, ...TAB_STATUS_PAIRS, ...KIND_PAIRS, ...terminalPairs(theme.dark)])("%s on %s reaches %d:1", (fg, bg, min) => {
|
||||
expect(contrast(token(fg), token(bg))).toBeGreaterThanOrEqual(min);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
"--lt-font-size-small": "12px",
|
||||
"--lt-font-size-ui": "13px",
|
||||
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
||||
"--lt-line-height-editor": "1.5",
|
||||
"--lt-notice-bg": "#382632",
|
||||
"--lt-statusbar-bg": "#231f23",
|
||||
"--lt-statusbar-fg": "#bdb3b8",
|
||||
|
|
@ -97,6 +98,7 @@
|
|||
"--lt-font-size-small": "12px",
|
||||
"--lt-font-size-ui": "13px",
|
||||
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
||||
"--lt-line-height-editor": "1.5",
|
||||
"--lt-notice-bg": "#eedcdc",
|
||||
"--lt-statusbar-bg": "#ebe5d5",
|
||||
"--lt-statusbar-fg": "#554c50",
|
||||
|
|
@ -140,5 +142,293 @@
|
|||
"--lt-vcs-modified": "#2f5aa8",
|
||||
"--lt-vcs-untracked": "#93560c"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dark": true,
|
||||
"id": "lutra-plum-night",
|
||||
"labelKey": "theme.lutraPlumNight",
|
||||
"tokens": {
|
||||
"--lt-accent": "#e6c27f",
|
||||
"--lt-bg": "#241a22",
|
||||
"--lt-border": "#3d2c38",
|
||||
"--lt-diag-error": "#f48a78",
|
||||
"--lt-diag-hint": "#a8969f",
|
||||
"--lt-diag-info": "#9db4ea",
|
||||
"--lt-diag-warning": "#e8b85a",
|
||||
"--lt-editor-active-line-bg": "#291e27",
|
||||
"--lt-editor-bg": "#1c1419",
|
||||
"--lt-editor-cursor": "#e6c27f",
|
||||
"--lt-editor-gutter-bg": "#1c1419",
|
||||
"--lt-editor-gutter-fg": "#a8969f",
|
||||
"--lt-editor-match-bg": "#43303a",
|
||||
"--lt-editor-selection-bg": "#56334a",
|
||||
"--lt-error": "#f48a78",
|
||||
"--lt-fg": "#f0e6dc",
|
||||
"--lt-fg-muted": "#a8969f",
|
||||
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
||||
"--lt-font-size-editor": "14px",
|
||||
"--lt-font-size-small": "12px",
|
||||
"--lt-font-size-ui": "13px",
|
||||
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
||||
"--lt-line-height-editor": "1.5",
|
||||
"--lt-notice-bg": "#3e2836",
|
||||
"--lt-statusbar-bg": "#2a1e27",
|
||||
"--lt-statusbar-fg": "#c4b3bb",
|
||||
"--lt-syntax-attribute": "#d4b98a",
|
||||
"--lt-syntax-comment": "#9c8a94",
|
||||
"--lt-syntax-constant": "#c5a8ec",
|
||||
"--lt-syntax-function": "#ebca7d",
|
||||
"--lt-syntax-keyword": "#ec92bd",
|
||||
"--lt-syntax-number": "#efa985",
|
||||
"--lt-syntax-operator": "#c4b3bb",
|
||||
"--lt-syntax-string": "#b6c98a",
|
||||
"--lt-syntax-tag": "#e8907a",
|
||||
"--lt-syntax-type": "#8cc0cc",
|
||||
"--lt-syntax-variable": "#e3cdbb",
|
||||
"--lt-tab-active-bg": "#1c1419",
|
||||
"--lt-tab-modified": "#e6c27f",
|
||||
"--lt-terminal-ansi-black": "#33262f",
|
||||
"--lt-terminal-ansi-blue": "#98aee6",
|
||||
"--lt-terminal-ansi-bright-black": "#a8969f",
|
||||
"--lt-terminal-ansi-bright-blue": "#b8c6f2",
|
||||
"--lt-terminal-ansi-bright-cyan": "#acd6de",
|
||||
"--lt-terminal-ansi-bright-green": "#cbdca6",
|
||||
"--lt-terminal-ansi-bright-magenta": "#f4b0cf",
|
||||
"--lt-terminal-ansi-bright-red": "#f8a596",
|
||||
"--lt-terminal-ansi-bright-white": "#faf3ea",
|
||||
"--lt-terminal-ansi-bright-yellow": "#f4dc9a",
|
||||
"--lt-terminal-ansi-cyan": "#8cc0cc",
|
||||
"--lt-terminal-ansi-green": "#b6c98a",
|
||||
"--lt-terminal-ansi-magenta": "#ec92bd",
|
||||
"--lt-terminal-ansi-red": "#f28474",
|
||||
"--lt-terminal-ansi-white": "#d9cdc6",
|
||||
"--lt-terminal-ansi-yellow": "#ebca7d",
|
||||
"--lt-terminal-bg": "#1c1419",
|
||||
"--lt-terminal-cursor": "#e6c27f",
|
||||
"--lt-terminal-fg": "#f0e6dc",
|
||||
"--lt-terminal-selection-bg": "#56334a",
|
||||
"--lt-vcs-added": "#a6c784",
|
||||
"--lt-vcs-conflicted": "#f6788e",
|
||||
"--lt-vcs-deleted": "#dc9890",
|
||||
"--lt-vcs-ignored": "#9e8e97",
|
||||
"--lt-vcs-modified": "#9db4ea",
|
||||
"--lt-vcs-untracked": "#e8aa6c"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dark": true,
|
||||
"id": "lutra-river",
|
||||
"labelKey": "theme.lutraRiver",
|
||||
"tokens": {
|
||||
"--lt-accent": "#6fc6b8",
|
||||
"--lt-bg": "#1a2125",
|
||||
"--lt-border": "#2c373d",
|
||||
"--lt-diag-error": "#f08a7a",
|
||||
"--lt-diag-hint": "#8e9ca3",
|
||||
"--lt-diag-info": "#8fb6ec",
|
||||
"--lt-diag-warning": "#e2b65c",
|
||||
"--lt-editor-active-line-bg": "#1b2327",
|
||||
"--lt-editor-bg": "#151b1e",
|
||||
"--lt-editor-cursor": "#6fc6b8",
|
||||
"--lt-editor-gutter-bg": "#151b1e",
|
||||
"--lt-editor-gutter-fg": "#8e9ca3",
|
||||
"--lt-editor-match-bg": "#24393b",
|
||||
"--lt-editor-selection-bg": "#28434a",
|
||||
"--lt-error": "#f08a7a",
|
||||
"--lt-fg": "#e2e8e6",
|
||||
"--lt-fg-muted": "#8e9ca3",
|
||||
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
||||
"--lt-font-size-editor": "14px",
|
||||
"--lt-font-size-small": "12px",
|
||||
"--lt-font-size-ui": "13px",
|
||||
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
||||
"--lt-line-height-editor": "1.5",
|
||||
"--lt-notice-bg": "#223a3c",
|
||||
"--lt-statusbar-bg": "#1e272b",
|
||||
"--lt-statusbar-fg": "#adbbc0",
|
||||
"--lt-syntax-attribute": "#c9bd86",
|
||||
"--lt-syntax-comment": "#87959c",
|
||||
"--lt-syntax-constant": "#b4aaea",
|
||||
"--lt-syntax-function": "#e4cb7c",
|
||||
"--lt-syntax-keyword": "#e392b6",
|
||||
"--lt-syntax-number": "#e8ae86",
|
||||
"--lt-syntax-operator": "#adbbc0",
|
||||
"--lt-syntax-string": "#9fcb94",
|
||||
"--lt-syntax-tag": "#e6957c",
|
||||
"--lt-syntax-type": "#74c3d1",
|
||||
"--lt-syntax-variable": "#d2dcd9",
|
||||
"--lt-tab-active-bg": "#151b1e",
|
||||
"--lt-tab-modified": "#6fc6b8",
|
||||
"--lt-terminal-ansi-black": "#263035",
|
||||
"--lt-terminal-ansi-blue": "#8cb0e8",
|
||||
"--lt-terminal-ansi-bright-black": "#8e9ca3",
|
||||
"--lt-terminal-ansi-bright-blue": "#afc6f2",
|
||||
"--lt-terminal-ansi-bright-cyan": "#a6dbe3",
|
||||
"--lt-terminal-ansi-bright-green": "#bfdeb2",
|
||||
"--lt-terminal-ansi-bright-magenta": "#f0b0cd",
|
||||
"--lt-terminal-ansi-bright-red": "#f6a597",
|
||||
"--lt-terminal-ansi-bright-white": "#f3f6f5",
|
||||
"--lt-terminal-ansi-bright-yellow": "#f0dc9c",
|
||||
"--lt-terminal-ansi-cyan": "#74c3d1",
|
||||
"--lt-terminal-ansi-green": "#9fcb94",
|
||||
"--lt-terminal-ansi-magenta": "#e392b6",
|
||||
"--lt-terminal-ansi-red": "#ee8172",
|
||||
"--lt-terminal-ansi-white": "#c6d0cd",
|
||||
"--lt-terminal-ansi-yellow": "#e4cb7c",
|
||||
"--lt-terminal-bg": "#151b1e",
|
||||
"--lt-terminal-cursor": "#6fc6b8",
|
||||
"--lt-terminal-fg": "#e2e8e6",
|
||||
"--lt-terminal-selection-bg": "#28434a",
|
||||
"--lt-vcs-added": "#93c98a",
|
||||
"--lt-vcs-conflicted": "#f27a90",
|
||||
"--lt-vcs-deleted": "#d69a92",
|
||||
"--lt-vcs-ignored": "#86939a",
|
||||
"--lt-vcs-modified": "#8fb6ec",
|
||||
"--lt-vcs-untracked": "#e3aa6a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dark": false,
|
||||
"id": "lutra-paper",
|
||||
"labelKey": "theme.lutraPaper",
|
||||
"tokens": {
|
||||
"--lt-accent": "#83224b",
|
||||
"--lt-bg": "#f6f5f1",
|
||||
"--lt-border": "#e2dfd7",
|
||||
"--lt-diag-error": "#ad3524",
|
||||
"--lt-diag-hint": "#625b5f",
|
||||
"--lt-diag-info": "#2d58a6",
|
||||
"--lt-diag-warning": "#7f5000",
|
||||
"--lt-editor-active-line-bg": "#f7f5f0",
|
||||
"--lt-editor-bg": "#fefdfb",
|
||||
"--lt-editor-cursor": "#83224b",
|
||||
"--lt-editor-gutter-bg": "#fefdfb",
|
||||
"--lt-editor-gutter-fg": "#625b5f",
|
||||
"--lt-editor-match-bg": "#f4e3ea",
|
||||
"--lt-editor-selection-bg": "#efd9e3",
|
||||
"--lt-error": "#ad3524",
|
||||
"--lt-fg": "#221d20",
|
||||
"--lt-fg-muted": "#625b5f",
|
||||
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
||||
"--lt-font-size-editor": "14px",
|
||||
"--lt-font-size-small": "12px",
|
||||
"--lt-font-size-ui": "13px",
|
||||
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
||||
"--lt-line-height-editor": "1.5",
|
||||
"--lt-notice-bg": "#f3e2e8",
|
||||
"--lt-statusbar-bg": "#eeece6",
|
||||
"--lt-statusbar-fg": "#4f474b",
|
||||
"--lt-syntax-attribute": "#645a17",
|
||||
"--lt-syntax-comment": "#686064",
|
||||
"--lt-syntax-constant": "#5a44a0",
|
||||
"--lt-syntax-function": "#745306",
|
||||
"--lt-syntax-keyword": "#8e2856",
|
||||
"--lt-syntax-number": "#984216",
|
||||
"--lt-syntax-operator": "#4f474b",
|
||||
"--lt-syntax-string": "#46661f",
|
||||
"--lt-syntax-tag": "#a23f27",
|
||||
"--lt-syntax-type": "#1f6476",
|
||||
"--lt-syntax-variable": "#5c3f4e",
|
||||
"--lt-tab-active-bg": "#fefdfb",
|
||||
"--lt-tab-modified": "#83224b",
|
||||
"--lt-terminal-ansi-black": "#221d20",
|
||||
"--lt-terminal-ansi-blue": "#2c52a2",
|
||||
"--lt-terminal-ansi-bright-black": "#625b5f",
|
||||
"--lt-terminal-ansi-bright-blue": "#213c7c",
|
||||
"--lt-terminal-ansi-bright-cyan": "#174e5c",
|
||||
"--lt-terminal-ansi-bright-green": "#365015",
|
||||
"--lt-terminal-ansi-bright-magenta": "#6a1a40",
|
||||
"--lt-terminal-ansi-bright-red": "#8a2717",
|
||||
"--lt-terminal-ansi-bright-white": "#f6f5f1",
|
||||
"--lt-terminal-ansi-bright-yellow": "#5a4003",
|
||||
"--lt-terminal-ansi-cyan": "#1f6476",
|
||||
"--lt-terminal-ansi-green": "#46661f",
|
||||
"--lt-terminal-ansi-magenta": "#8e2856",
|
||||
"--lt-terminal-ansi-red": "#ad3524",
|
||||
"--lt-terminal-ansi-white": "#e2dfd7",
|
||||
"--lt-terminal-ansi-yellow": "#745306",
|
||||
"--lt-terminal-bg": "#fefdfb",
|
||||
"--lt-terminal-cursor": "#83224b",
|
||||
"--lt-terminal-fg": "#221d20",
|
||||
"--lt-terminal-selection-bg": "#efd9e3",
|
||||
"--lt-vcs-added": "#38701f",
|
||||
"--lt-vcs-conflicted": "#a81c40",
|
||||
"--lt-vcs-deleted": "#9e4236",
|
||||
"--lt-vcs-ignored": "#6d6569",
|
||||
"--lt-vcs-modified": "#2d58a6",
|
||||
"--lt-vcs-untracked": "#8c520a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dark": false,
|
||||
"id": "lutra-reed",
|
||||
"labelKey": "theme.lutraReed",
|
||||
"tokens": {
|
||||
"--lt-accent": "#3c6447",
|
||||
"--lt-bg": "#e9e7d8",
|
||||
"--lt-border": "#d2cfbb",
|
||||
"--lt-diag-error": "#a63424",
|
||||
"--lt-diag-hint": "#5b5a4f",
|
||||
"--lt-diag-info": "#2b549c",
|
||||
"--lt-diag-warning": "#784c00",
|
||||
"--lt-editor-active-line-bg": "#eceadd",
|
||||
"--lt-editor-bg": "#f3f2e8",
|
||||
"--lt-editor-cursor": "#3c6447",
|
||||
"--lt-editor-gutter-bg": "#f3f2e8",
|
||||
"--lt-editor-gutter-fg": "#5b5a4f",
|
||||
"--lt-editor-match-bg": "#e2e6d2",
|
||||
"--lt-editor-selection-bg": "#d7e0cc",
|
||||
"--lt-error": "#a63424",
|
||||
"--lt-fg": "#25261f",
|
||||
"--lt-fg-muted": "#5b5a4f",
|
||||
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
||||
"--lt-font-size-editor": "14px",
|
||||
"--lt-font-size-small": "12px",
|
||||
"--lt-font-size-ui": "13px",
|
||||
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
||||
"--lt-line-height-editor": "1.5",
|
||||
"--lt-notice-bg": "#dde3cf",
|
||||
"--lt-statusbar-bg": "#e1dfce",
|
||||
"--lt-statusbar-fg": "#4a4a40",
|
||||
"--lt-syntax-attribute": "#5f5718",
|
||||
"--lt-syntax-comment": "#625f55",
|
||||
"--lt-syntax-constant": "#57439a",
|
||||
"--lt-syntax-function": "#6e5006",
|
||||
"--lt-syntax-keyword": "#8c2a5a",
|
||||
"--lt-syntax-number": "#913f17",
|
||||
"--lt-syntax-operator": "#4a4a40",
|
||||
"--lt-syntax-string": "#3d6020",
|
||||
"--lt-syntax-tag": "#9a3c26",
|
||||
"--lt-syntax-type": "#1d5f6e",
|
||||
"--lt-syntax-variable": "#6c4433",
|
||||
"--lt-tab-active-bg": "#f3f2e8",
|
||||
"--lt-tab-modified": "#3c6447",
|
||||
"--lt-terminal-ansi-black": "#25261f",
|
||||
"--lt-terminal-ansi-blue": "#2a4f98",
|
||||
"--lt-terminal-ansi-bright-black": "#5b5a4f",
|
||||
"--lt-terminal-ansi-bright-blue": "#203a76",
|
||||
"--lt-terminal-ansi-bright-cyan": "#164a56",
|
||||
"--lt-terminal-ansi-bright-green": "#304b14",
|
||||
"--lt-terminal-ansi-bright-magenta": "#6a1c42",
|
||||
"--lt-terminal-ansi-bright-red": "#842617",
|
||||
"--lt-terminal-ansi-bright-white": "#e9e7d8",
|
||||
"--lt-terminal-ansi-bright-yellow": "#553d03",
|
||||
"--lt-terminal-ansi-cyan": "#1d5f6e",
|
||||
"--lt-terminal-ansi-green": "#3d6020",
|
||||
"--lt-terminal-ansi-magenta": "#8c2a5a",
|
||||
"--lt-terminal-ansi-red": "#a63424",
|
||||
"--lt-terminal-ansi-white": "#d2cfbb",
|
||||
"--lt-terminal-ansi-yellow": "#6e5006",
|
||||
"--lt-terminal-bg": "#f3f2e8",
|
||||
"--lt-terminal-cursor": "#3c6447",
|
||||
"--lt-terminal-fg": "#25261f",
|
||||
"--lt-terminal-selection-bg": "#d7e0cc",
|
||||
"--lt-vcs-added": "#356a1e",
|
||||
"--lt-vcs-conflicted": "#a11c3e",
|
||||
"--lt-vcs-deleted": "#973f33",
|
||||
"--lt-vcs-ignored": "#615e54",
|
||||
"--lt-vcs-modified": "#2b549c",
|
||||
"--lt-vcs-untracked": "#844d0a"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue