Skip to content

Commit e27db94

Browse files
committed
MouseTerm -> Dormouse
1 parent 26f7542 commit e27db94

24 files changed

Lines changed: 52 additions & 52 deletions

.impeccable/design.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 2,
33
"generatedAt": "2026-05-11T00:00:00Z",
4-
"title": "Design System: MouseTerm",
4+
"title": "Design System: Dormouse",
55
"extensions": {
66
"colorMeta": {
77
"app-bg": {
@@ -236,7 +236,7 @@
236236
],
237237
"narrative": {
238238
"northStar": "The Native Tenant",
239-
"overview": "MouseTerm is a tenant in someone else's house. The house is VSCode. The user picked the furniture (their theme), the lighting (their mode), the typography (their editor font). MouseTerm moves in, multiplies what the user can do with their terminals, and leaves the decor alone. The system is intentionally minimal and bg-only. Chrome recedes; terminals are the content. Hierarchy is conveyed through background shifts between header-active-bg and header-inactive-bg, not through borders, shadows, or accent stripes. Status is conveyed through shape and position and through the active terminal palette's own ANSI red/green/yellow, not through a separate design-system palette.",
239+
"overview": "Dormouse is a tenant in someone else's house. The house is VSCode. The user picked the furniture (their theme), the lighting (their mode), the typography (their editor font). Dormouse moves in, multiplies what the user can do with their terminals, and leaves the decor alone. The system is intentionally minimal and bg-only. Chrome recedes; terminals are the content. Hierarchy is conveyed through background shifts between header-active-bg and header-inactive-bg, not through borders, shadows, or accent stripes. Status is conveyed through shape and position and through the active terminal palette's own ANSI red/green/yellow, not through a separate design-system palette.",
240240
"keyCharacteristics": [
241241
"Host-theme-driven palette: every color is a var(--vscode-*) passthrough.",
242242
"Bg-only chrome: no decorative borders, no resting shadows, no accent stripes.",

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "MouseTerm Extension",
5+
"name": "Dormouse Extension",
66
"type": "extensionHost",
77
"request": "launch",
88
"args": ["--extensionDevelopmentPath=${workspaceFolder}/vscode-ext"],

lib/.storybook/themes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* applyTheme(), so isolated stories receive VSCode registry defaults too.
44
*/
55
import _bundled from '../src/lib/themes/bundled.json';
6-
import type { MouseTermTheme } from '../src/lib/themes/types';
6+
import type { DormouseTheme } from '../src/lib/themes/types';
77
import { completeThemeVars } from '../src/lib/themes/vscode-color-resolver';
88

9-
const bundled = _bundled as unknown as MouseTermTheme[];
9+
const bundled = _bundled as unknown as DormouseTheme[];
1010

1111
const STORYBOOK_HOST_TYPOGRAPHY_VARS: Record<string, string> = {
1212
'--vscode-font-size': '13px',
@@ -17,7 +17,7 @@ const STORYBOOK_HOST_TYPOGRAPHY_VARS: Record<string, string> = {
1717
};
1818

1919
export const VSCODE_THEMES: Record<string, Record<string, string>> = {};
20-
export const VSCODE_THEME_TYPES: Record<string, MouseTermTheme['type']> = {};
20+
export const VSCODE_THEME_TYPES: Record<string, DormouseTheme['type']> = {};
2121
for (const theme of bundled) {
2222
VSCODE_THEME_TYPES[theme.label] = theme.type;
2323
VSCODE_THEMES[theme.label] = completeThemeVars(

lib/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>MouseTerm</title>
6+
<title>Dormouse</title>
77
</head>
88
<body>
99
<div id="root"></div>

lib/scripts/bundle-themes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const EXCLUDED_THEMES = new Set([
4545
]);
4646

4747
/**
48-
* VSCode theme color keys consumed by MouseTerm.
48+
* VSCode theme color keys consumed by Dormouse.
4949
* Keep in sync with lib/src/lib/themes/convert.ts.
5050
*/
5151
const CONSUMED_KEYS = new Set([

lib/src/components/ThemePicker.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback, useId, useRef, useState } from 'react';
22
import { CaretDownIcon } from '@phosphor-icons/react';
3-
import type { MouseTermTheme } from '../lib/themes';
3+
import type { DormouseTheme } from '../lib/themes';
44
import {
55
applyTheme,
66
getAllThemes,
@@ -32,7 +32,7 @@ export function ThemePicker({ variant, className = '', defaultThemeId }: ThemePi
3232
// the first paint already has --vscode-* on body — eliminates the flash of
3333
// unstyled chrome on the website playground where ThemePicker mounts before
3434
// any other entry point has a chance to apply a theme.
35-
const initialState = useRef<{ themes: MouseTermTheme[]; activeId: string }>(null);
35+
const initialState = useRef<{ themes: DormouseTheme[]; activeId: string }>(null);
3636
if (initialState.current === null) {
3737
const restored = restoreActiveTheme(defaultThemeId);
3838
const themes = getAllThemes();
@@ -66,7 +66,7 @@ export function ThemePicker({ variant, className = '', defaultThemeId }: ThemePi
6666
setOpen(false);
6767
};
6868

69-
const deleteTheme = (theme: MouseTermTheme) => {
69+
const deleteTheme = (theme: DormouseTheme) => {
7070
if (theme.origin.kind !== 'installed') return;
7171
const confirmed = window.confirm(`Delete "${theme.label}"?`);
7272
if (!confirmed) return;

lib/src/components/theme-picker/ThemeSwatch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { MouseTermTheme } from '../../lib/themes';
1+
import type { DormouseTheme } from '../../lib/themes';
22
import { themePickerStyles as styles } from './styles';
33

4-
export function ThemeSwatch({ theme, size }: { theme: MouseTermTheme; size: 'sm' | 'md' }) {
4+
export function ThemeSwatch({ theme, size }: { theme: DormouseTheme; size: 'sm' | 'md' }) {
55
const swatchClass = size === 'sm' ? 'h-3.5 w-3.5' : 'h-4 w-4';
66
return (
77
<span className={`relative flex shrink-0 items-center justify-center ${swatchClass}`}>

lib/src/lib/themes/apply.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { MouseTermTheme } from './types';
1+
import type { DormouseTheme } from './types';
22
import { getAllThemes, getStoredActiveThemeId, setActiveThemeId } from './store';
33
import { completeThemeVars } from './vscode-color-resolver';
44
import { flattenSelectionAlpha } from './flatten-alpha';
55

66
let appliedThemeSnapshot: AppliedThemeSnapshot | null = null;
77

88
export interface AppliedThemeSnapshot {
9-
theme: MouseTermTheme;
9+
theme: DormouseTheme;
1010
providedVars: Record<string, string>;
1111
resolvedVars: Record<string, string>;
1212
}
@@ -19,7 +19,7 @@ const HOST_TYPOGRAPHY_VARS: Record<string, string> = {
1919
"'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
2020
};
2121

22-
export function applyTheme(theme: MouseTermTheme): void {
22+
export function applyTheme(theme: DormouseTheme): void {
2323
if (typeof document === 'undefined') return;
2424
if (theme === appliedThemeSnapshot?.theme) return;
2525

@@ -34,7 +34,7 @@ export function applyTheme(theme: MouseTermTheme): void {
3434
const providedVars = { ...HOST_TYPOGRAPHY_VARS, ...theme.vars };
3535
const vars = completeThemeVars(providedVars, theme.type);
3636
// Theme authors give list.*SelectionBackground alpha because VSCode renders
37-
// it as an overlay on the sidebar. MouseTerm uses it as a solid AppBar /
37+
// it as an overlay on the sidebar. Dormouse uses it as a solid AppBar /
3838
// tab fill, so flatten the alpha over sideBar.background here — otherwise
3939
// whatever sits behind the surface bleeds through (Selenized Dark's bright
4040
// cyan AppBar, for instance).
@@ -58,7 +58,7 @@ export function applyTheme(theme: MouseTermTheme): void {
5858
* first bundled theme. Idempotent and safe to call before render so the
5959
* first paint already has --vscode-* set on body. Returns the theme that was
6060
* applied, or null when no themes are available (e.g. SSR). */
61-
export function restoreActiveTheme(defaultThemeId?: string): MouseTermTheme | null {
61+
export function restoreActiveTheme(defaultThemeId?: string): DormouseTheme | null {
6262
const all = getAllThemes();
6363
const find = (id: string | null | undefined) => (id ? all.find((t) => t.id === id) : undefined);
6464
const theme = find(getStoredActiveThemeId()) ?? find(defaultThemeId) ?? all[0];

lib/src/lib/themes/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* 2. getTerminalTheme() in terminal-theme.ts — ANSI, cursor, selection
77
*/
88

9-
/** VSCode theme color keys consumed by MouseTerm. Derived from theme.css,
9+
/** VSCode theme color keys consumed by Dormouse. Derived from theme.css,
1010
* useDynamicPalette, ThemePicker inline styles, SelectionOverlay,
1111
* terminal-theme, and the VSCode fallback resolver. */
1212
export const CONSUMED_VSCODE_KEYS: readonly string[] = [

lib/src/lib/themes/diagnostics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function formatTrace(trace: VscodeThemeVarTrace): string {
247247

248248
function buildReport(snapshot: Omit<ThemeDiagnosticSnapshot, 'report'>): string {
249249
const lines: string[] = [];
250-
lines.push('MouseTerm theme diagnostic');
250+
lines.push('Dormouse theme diagnostic');
251251
lines.push(`capturedAt: ${snapshot.capturedAt}`);
252252
lines.push(`themeKind: ${snapshot.themeKind}`);
253253
lines.push(`activeTheme: ${snapshot.activeTheme ? `${snapshot.activeTheme.label} (${snapshot.activeTheme.origin})` : 'VSCode host theme'}`);

0 commit comments

Comments
 (0)