termistyle 0.0.1 copy "termistyle: ^0.0.1" to clipboard
termistyle: ^0.0.1 copied to clipboard

Standalone terminal styling primitives — ANSI color palettes, box-drawing glyphs, display features, themes, and text utilities for CLI applications.

example/example.dart

import 'package:termistyle/termistyle.dart';

void main() {
  final theme = PromptTheme.matrix;

  print('${theme.accent}Matrix theme accent${theme.reset}');
  print('${theme.highlight}Highlighted text${theme.reset}');
  print('Arrow glyph: ${theme.arrow}');

  final styled = '${theme.accent}Status${theme.reset}';
  print('Visible length: ${visibleLength(styled)}');
  print('Stripped: ${stripAnsi(styled)}');

  print('\nAll built-in themes:');
  final names = [
    'dark',
    'matrix',
    'fire',
    'pastel',
    'ocean',
    'monochrome',
    'neon',
    'arcane',
    'phantom',
  ];
  final themes = [
    PromptTheme.dark,
    PromptTheme.matrix,
    PromptTheme.fire,
    PromptTheme.pastel,
    PromptTheme.ocean,
    PromptTheme.monochrome,
    PromptTheme.neon,
    PromptTheme.arcane,
    PromptTheme.phantom,
  ];
  for (var i = 0; i < names.length; i++) {
    final t = themes[i];
    print('  ${t.accent}${padRight(names[i], 12)}${t.reset} '
        '${t.borderTop}${t.borderHorizontal}${t.borderHorizontal}${t.borderBottom}');
  }
}
1
likes
0
points
139
downloads

Publisher

verified publisherjozz.biz

Weekly Downloads

Standalone terminal styling primitives — ANSI color palettes, box-drawing glyphs, display features, themes, and text utilities for CLI applications.

Homepage
Repository (GitHub)
View/report issues

Topics

#terminal #cli #style #ansi #theme

License

unknown (license)

More

Packages that depend on termistyle