Constants

CSS class constants, selection mode type, timing defaults, and key defaults for the token selector.

Selection Mode

CSS Class Constants

Key Repeat Timing Defaults

Default Key Mappings

Display Defaults

Tests

assert isinstance(OPACITY_50_CLS, str) and len(OPACITY_50_CLS) > 0
assert "caret-indicator" in CARET_INDICATOR_CLS
assert "animate-pulse" in CARET_INDICATOR_CLS
assert isinstance(HIGHLIGHT_CLS, str) and len(HIGHLIGHT_CLS) > 0
assert DEFAULT_INITIAL_DELAY > 0
assert DEFAULT_REPEAT_INTERVAL > 0
assert DEFAULT_THROTTLE_FLOOR > 0
print(f"OPACITY_50_CLS: {OPACITY_50_CLS!r}")
print(f"CARET_INDICATOR_CLS: {CARET_INDICATOR_CLS!r}")
print(f"HIGHLIGHT_CLS: {HIGHLIGHT_CLS!r}")
print("All constants tests passed!")
OPACITY_50_CLS: 'opacity-50'
CARET_INDICATOR_CLS: 'caret-indicator w-0.5 h-5 bg-error absolute -left-1 top-1/2 -translate-y-1/2 animate-pulse'
HIGHLIGHT_CLS: 'bg-primary/20'
All constants tests passed!