Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors.
CRITICAL TRIGGER RULE
ascii-ansi-colorizer.Trigger phrases include:
ascii-cli-logo-banner if needed).coloredText + plainTextFallback.colorDepth (default: ansi256).coloredText and plainTextFallback.NO_COLOR / --no-color.Outputs should be structured as three distinct text blocks:
coloredText:
\033[38;5;33mH\033[38;5;34me\033[38;5;35ml\033[38;5;36ml\033[38;5;37mo\033[0m
plainTextFallback:
Hello
compatNotes:
- Respect NO_COLOR env var: if set, output plainTextFallback only
- Support --no-color flag for CLI tools
- Pipe/redirect: detect non-TTY and fall back to plain text
colorDepth (default ansi256) and palettecoloredText and plainTextFallbackcoloredText and compare with plainTextFallback — they must matchscripts/colorize.py: apply ANSI 256 gradient or rainbow to stdinexamples/gradient.mdplainTextFallback).English: ascii-ansi-colorizer, ansi, color, gradient, rainbow, terminal, no-color, plain text, ascii 中文: ascii-ansi-colorizer, ANSI, 上色, 渐变, 彩虹, 终端, 无色回退, 纯文本, ASCII