Neutral grey palette with one accent, after opencode's
This commit is contained in:
1 parent
e857146c9a
commit
e22885d802
1 file changed
+48
-44
+48
-44
@@ -3,58 +3,62 @@ import { SyntaxStyle, type ThemeMode } from "@opentui/core";
|
|||||||
import type { StatusTone } from "../model/threads.ts";
|
import type { StatusTone } from "../model/threads.ts";
|
||||||
import type { Tone } from "../model/transcript.ts";
|
import type { Tone } from "../model/transcript.ts";
|
||||||
|
|
||||||
/** Tokyo Night. */
|
/** Neutral grey steps with one blue accent, after opencode's default theme. */
|
||||||
const DARK = {
|
const DARK = {
|
||||||
bg: "#16161e",
|
bg: "#0a0a0a",
|
||||||
panel: "#1a1b26",
|
/** The thread list, details and overlays: a step up from the background. */
|
||||||
border: "#2f334d",
|
panel: "#141414",
|
||||||
borderFocused: "#7aa2f7",
|
/** Raised blocks on a panel or the background: the composer, your messages, tool output. */
|
||||||
text: "#c0caf5",
|
element: "#1e1e1e",
|
||||||
muted: "#737aa2",
|
border: "#3c3c3c",
|
||||||
faint: "#545c7e",
|
borderFocused: "#5c9cf5",
|
||||||
accent: "#7aa2f7",
|
text: "#eeeeee",
|
||||||
user: "#7dcfff",
|
muted: "#8a8a8a",
|
||||||
userBg: "#1f2335",
|
faint: "#606060",
|
||||||
good: "#9ece6a",
|
accent: "#5c9cf5",
|
||||||
bad: "#f7768e",
|
user: "#56b6c2",
|
||||||
warn: "#e0af68",
|
userBg: "#1e1e1e",
|
||||||
selectedBg: "#283457",
|
good: "#7fd88f",
|
||||||
|
bad: "#e06c75",
|
||||||
|
warn: "#f5a742",
|
||||||
|
selectedBg: "#1d2a3d",
|
||||||
/** Under the pointer: lighter than the panel, quieter than a selection. */
|
/** Under the pointer: lighter than the panel, quieter than a selection. */
|
||||||
hoverBg: "#202437",
|
hoverBg: "#1a1a1a",
|
||||||
buttonBg: "#24283b",
|
buttonBg: "#1e1e1e",
|
||||||
/** The web app's sky / indigo / violet status hues. */
|
/** The web app's sky / indigo / violet status hues. */
|
||||||
info: "#7dcfff",
|
info: "#56b6c2",
|
||||||
input: "#bb9af7",
|
input: "#9d7cd8",
|
||||||
plan: "#c099ff",
|
plan: "#fab283",
|
||||||
diffAddedBg: "#1e2a1e",
|
diffAddedBg: "#14261a",
|
||||||
diffRemovedBg: "#2d1f24",
|
diffRemovedBg: "#2a1517",
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Palette = { readonly [K in keyof typeof DARK]: string };
|
export type Palette = { readonly [K in keyof typeof DARK]: string };
|
||||||
|
|
||||||
/** Tokyo Night Day, for terminals with a light background. */
|
/** The same steps for terminals with a light background. */
|
||||||
const LIGHT: Palette = {
|
const LIGHT: Palette = {
|
||||||
bg: "#e1e2e7",
|
bg: "#ffffff",
|
||||||
panel: "#d6d9e4",
|
panel: "#f5f5f5",
|
||||||
border: "#a8aecb",
|
element: "#ebebeb",
|
||||||
borderFocused: "#2e7de9",
|
border: "#d4d4d4",
|
||||||
text: "#343b58",
|
borderFocused: "#3b7dd8",
|
||||||
muted: "#5f6893",
|
text: "#1a1a1a",
|
||||||
faint: "#7a81a8",
|
muted: "#6e6e6e",
|
||||||
accent: "#2e7de9",
|
faint: "#9a9a9a",
|
||||||
user: "#007197",
|
accent: "#3b7dd8",
|
||||||
userBg: "#d0d5e3",
|
user: "#318795",
|
||||||
good: "#587539",
|
userBg: "#ebebeb",
|
||||||
bad: "#d20f39",
|
good: "#3d9a57",
|
||||||
warn: "#8c6c3e",
|
bad: "#d1383d",
|
||||||
selectedBg: "#b7c1e3",
|
warn: "#b0701a",
|
||||||
hoverBg: "#d3d6e2",
|
selectedBg: "#dce8f8",
|
||||||
buttonBg: "#c4c8da",
|
hoverBg: "#efefef",
|
||||||
info: "#007197",
|
buttonBg: "#ebebeb",
|
||||||
input: "#9854f1",
|
info: "#318795",
|
||||||
plan: "#7847bd",
|
input: "#7b5bb6",
|
||||||
diffAddedBg: "#d4e6cc",
|
plan: "#c06a2b",
|
||||||
diffRemovedBg: "#f1d3da",
|
diffAddedBg: "#e3f3e6",
|
||||||
|
diffRemovedBg: "#fbe4e4",
|
||||||
};
|
};
|
||||||
|
|
||||||
/** The palette in use. Read at render time, so applyTheme before the first frame sets it everywhere. */
|
/** The palette in use. Read at render time, so applyTheme before the first frame sets it everywhere. */
|
||||||
|
|||||||
Reference in new issue
Block a user