small library

Minimal QuectoColors import — core colors and string extensions only, without extras or CSS/X11 named colors.

import 'package:quectocolors/small.dart';

print('Hello'.red.bold);

Classes

QuectoColors
Nesting-aware ANSI stylers with single-pass ESC byte scanning.
QuectoPlain
Known-plain fast path stylers — ZERO ESC scanning. Use when the caller guarantees the input string contains no nested ANSI escape codes (i.e., it's plain text or a literal string). Access via QuectoPlain.red('Hello').

Enums

AnsiColorLevel
Terminal color capability levels, ordered from least to most capable.

Extensions

QuectoColorsOnStrings on String
String extensions for concise styling: 'text'.red, 'text'.bold.italic.

Properties

ansiColorDisabled bool
Globally enable or disable AnsiPen settings.
getter/setter pair
ansiColorLevel AnsiColorLevel
The detected (or overridden) ANSI color capability level.
getter/setter pair

Typedefs

QuectoStyler = String Function(String)
A closure that wraps a string with ANSI escape codes.