diff options
| author | Josh Soref <[email protected]> | 2025-07-21 17:54:44 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-21 21:54:44 +0000 |
| commit | dc2ac144b7059ec2d66f1e90316df40d3822c8b5 (patch) | |
| tree | 63c9bece313ae92c841ab2808253c9cc6eaee755 /packages/cli/src/ui/themes | |
| parent | 8be5f8038a50fb5b2010590c8a18a4558da1663c (diff) | |
Various spelling improvements (#3497)
Signed-off-by: Josh Soref <[email protected]>
Co-authored-by: Sandy Tao <[email protected]>
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. |
