Apply Monokai Pro Ristretto theme and fix canvas scrollbar gutter

This commit is contained in:
GitHub Copilot
2026-01-28 01:11:48 +00:00
parent 323d84d017
commit 38f0de907a
4 changed files with 35 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "textual-webterm" name = "textual-webterm"
version = "0.5.1" version = "0.5.2"
description = "Serve terminal sessions over the web" description = "Serve terminal sessions over the web"
authors = ["Will McGugan <will@textualize.io>"] authors = ["Will McGugan <will@textualize.io>"]
license = "MIT" license = "MIT"
File diff suppressed because one or more lines are too long
+25 -1
View File
@@ -16,6 +16,30 @@ const DEFAULT_FONT_FAMILY =
/** Predefined terminal themes */ /** Predefined terminal themes */
const THEMES: Record<string, ITheme> = { const THEMES: Record<string, ITheme> = {
// Monokai Pro Ristretto - default theme
monokai: {
background: "#2d2a2e",
foreground: "#fcfcfa",
cursor: "#fcfcfa",
cursorAccent: "#2d2a2e",
selection: "#5b595c",
black: "#403e41",
red: "#ff6188",
green: "#a9dc76",
yellow: "#ffd866",
blue: "#fc9867",
magenta: "#ab9df2",
cyan: "#78dce8",
white: "#fcfcfa",
brightBlack: "#727072",
brightRed: "#ff6188",
brightGreen: "#a9dc76",
brightYellow: "#ffd866",
brightBlue: "#fc9867",
brightMagenta: "#ab9df2",
brightCyan: "#78dce8",
brightWhite: "#fcfcfa",
},
// Dark themes // Dark themes
dark: { dark: {
background: "#1e1e1e", background: "#1e1e1e",
@@ -297,7 +321,7 @@ class WebTerminal {
scrollback: config.scrollback ?? 1000, scrollback: config.scrollback ?? 1000,
cursorBlink: true, cursorBlink: true,
cursorStyle: "block", cursorStyle: "block",
theme: config.theme ?? THEMES.dark, theme: config.theme ?? THEMES.monokai,
wasmPath, wasmPath,
}; };
+8 -2
View File
@@ -13,8 +13,8 @@ We avoid external font fetching (e.g. Google Fonts) to keep local server self-co
} }
html, body { html, body {
height: 100%; height: 100vh;
width: 100%; width: 100vw;
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
@@ -22,6 +22,12 @@ html, body {
font-family: var(--textual-webterm-mono); font-family: var(--textual-webterm-mono);
} }
/* Prevent scrollbar gutter space reservation */
html {
scrollbar-gutter: auto;
overflow: hidden;
}
/* Terminal container - works with ghostty-web canvas renderer */ /* Terminal container - works with ghostty-web canvas renderer */
.textual-terminal { .textual-terminal {
width: 100%; width: 100%;