diff options
Diffstat (limited to 'packages/cli/src/ui/themes')
| -rw-r--r-- | packages/cli/src/ui/themes/shades-of-purple.ts | 2 | ||||
| -rw-r--r-- | packages/cli/src/ui/themes/theme-manager.test.ts | 2 | ||||
| -rw-r--r-- | packages/cli/src/ui/themes/theme-manager.ts | 2 | ||||
| -rw-r--r-- | packages/cli/src/ui/themes/theme.ts | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/themes/shades-of-purple.ts b/packages/cli/src/ui/themes/shades-of-purple.ts index 83eeb786..8b467e75 100644 --- a/packages/cli/src/ui/themes/shades-of-purple.ts +++ b/packages/cli/src/ui/themes/shades-of-purple.ts @@ -5,7 +5,7 @@ */ /** - * Shades of Purple Theme — for Highlightjs. + * Shades of Purple Theme — for Highlight.js. * @author Ahmad Awais <https://twitter.com/mrahmadawais/> */ import { type ColorsTheme, Theme } from './theme.js'; diff --git a/packages/cli/src/ui/themes/theme-manager.test.ts b/packages/cli/src/ui/themes/theme-manager.test.ts index f218af4b..5bb48167 100644 --- a/packages/cli/src/ui/themes/theme-manager.test.ts +++ b/packages/cli/src/ui/themes/theme-manager.test.ts @@ -85,7 +85,7 @@ describe('ThemeManager', () => { expect(themeManager.getTheme('MyCustomTheme')).toBeDefined(); }); - it('should fallback to default theme if active theme is invalid', () => { + it('should fall back to default theme if active theme is invalid', () => { (themeManager as unknown as { activeTheme: unknown }).activeTheme = { name: 'NonExistent', type: 'custom', diff --git a/packages/cli/src/ui/themes/theme-manager.ts b/packages/cli/src/ui/themes/theme-manager.ts index f121a9ec..bc5949ad 100644 --- a/packages/cli/src/ui/themes/theme-manager.ts +++ b/packages/cli/src/ui/themes/theme-manager.ts @@ -117,7 +117,7 @@ class ThemeManager { if (process.env.NO_COLOR) { return NoColorTheme; } - // Ensure the active theme is always valid (fallback to default if not) + // Ensure the active theme is always valid (fall back to default if not) if (!this.activeTheme || !this.findThemeByName(this.activeTheme.name)) { this.activeTheme = DEFAULT_THEME; } diff --git a/packages/cli/src/ui/themes/theme.ts b/packages/cli/src/ui/themes/theme.ts index b5b6e993..9758357b 100644 --- a/packages/cli/src/ui/themes/theme.ts +++ b/packages/cli/src/ui/themes/theme.ts @@ -151,7 +151,7 @@ export class Theme { inkTheme[key] = resolvedColor; } // If color is not resolvable, it's omitted from the map, - // allowing fallback to the default foreground color. + // this enables falling back to the default foreground color. } // We currently only care about the 'color' property for Ink rendering. // Other properties like background, fontStyle, etc., are ignored. |
