dim property
Whether to apply dim/faint styling (ANSI SGR code 2).
Dim text appears with reduced intensity/brightness.
Terminal compatibility:
- Support varies significantly across terminals
- Some terminals (like older xterm) may ignore dim entirely
- With truecolor (RGB), some terminals mathematically reduce brightness, while others may ignore it or render it inconsistently
- iTerm2, VS Code terminal, and most modern terminals support dim well
- Windows Console (conhost) has limited dim support
Precedence: Ignored if bold is also true, since they share the same reset code (SGR 22) and have contradictory visual effects.
Implementation
final bool dim;