Style Presets¶
interactive-buttons ships 12 built-in style presets as module-level
dictionaries. Import the one you want and unpack it into
ButtonStyle:
Preset catalogue¶
DEFAULT_STYLE¶
Classic bracketed buttons - dark text on a white background when selected.
| Key | Value |
|---|---|
text_color |
\033[30m - black |
highlight_color |
\033[47m - white background |
spaces_count |
5 |
left_decorator |
[ |
right_decorator |
] |
HACKER_STYLE¶
Minimal green-on-black arrow style - no background highlight.
| Key | Value |
|---|---|
text_color |
\033[32m - green |
highlight_color |
(empty) |
spaces_count |
5 |
left_decorator |
> |
right_decorator |
(empty) |
MINIMAL_STYLE¶
Underline-only highlight - no color, no decorators.
| Key | Value |
|---|---|
text_color |
(empty) |
highlight_color |
\033[4m - underline |
spaces_count |
3 |
left_decorator |
(empty) |
right_decorator |
(empty) |
MONOCHROME_STYLE¶
Reversed-video highlight - white text, no decorators.
| Key | Value |
|---|---|
text_color |
\033[37m - white |
highlight_color |
\033[7m - reverse video |
spaces_count |
4 |
left_decorator |
(empty) |
right_decorator |
(empty) |
CORPORATE_STYLE¶
Blue bracketed buttons - bold white text on a blue background when selected.
| Key | Value |
|---|---|
text_color |
\033[34m - blue |
highlight_color |
\033[1;44;97m - bold, blue background, bright white text |
spaces_count |
4 |
left_decorator |
[ |
right_decorator |
] |
TERMINAL_RETRO_STYLE¶
Amber retro style - yellow text with a diamond
*prefix.
| Key | Value |
|---|---|
text_color |
\033[33m - yellow |
highlight_color |
\033[43;30m - yellow background, black text |
spaces_count |
4 |
left_decorator |
* |
right_decorator |
(empty) |
MATRIX_STYLE¶
Bold green on black - square bracket decorators, Matrix-movie aesthetic.
| Key | Value |
|---|---|
text_color |
\033[32m - green |
highlight_color |
\033[1;32;40m - bold green, black background |
spaces_count |
3 |
left_decorator |
[ |
right_decorator |
] |
CYBERPUNK_STYLE¶
Blue text with amber highlight - French guillemet decorators.
| Key | Value |
|---|---|
text_color |
\033[34m - blue |
highlight_color |
\033[43;30m - yellow background, black text |
spaces_count |
4 |
left_decorator |
<< |
right_decorator |
>> |
DANGER_STYLE¶
Red alert - bold white on red background, warning
!/!prefix.
| Key | Value |
|---|---|
text_color |
\033[91m - bright red |
highlight_color |
\033[1;41;97m - bold, red background, bright white |
spaces_count |
3 |
left_decorator |
/!\\ |
right_decorator |
|
SUCCESS_STYLE¶
Bright green confirmation style - checkmark
[v]prefix.
| Key | Value |
|---|---|
text_color |
\033[92m - bright green |
highlight_color |
\033[1;42;30m - bold, green background, black text |
spaces_count |
3 |
left_decorator |
[v] |
right_decorator |
(empty) |
SUNSET_STYLE¶
Warm amber with magenta highlight - chevron wrap decorators.
| Key | Value |
|---|---|
text_color |
\033[33m - yellow |
highlight_color |
\033[1;45;93m - bold, magenta background, bright yellow |
spaces_count |
4 |
left_decorator |
> |
right_decorator |
< |
GHOST_STYLE¶
Dim white text, bold on selection - invisible until focused.
| Key | Value |
|---|---|
text_color |
\033[2;37m - dim white |
highlight_color |
\033[1;37m - bold bright white |
spaces_count |
4 |
left_decorator |
(empty) |
right_decorator |
(empty) |
Module-level autodoc¶
button_styles_presets
¶
Built-in style presets for ButtonStyle.
Each constant is a plain dict whose keys match the parameters of
ButtonStyle. Pass them with the **
unpacking operator::
from interactive_buttons import ButtonStyle, HACKER_STYLE
style = ButtonStyle(**HACKER_STYLE)
DEFAULT_STYLE
module-attribute
¶
DEFAULT_STYLE: dict[str, Any] = dict(text_color='\x1b[30m', highlight_color='\x1b[47m', spaces_count=5, left_decorator='[', right_decorator=']')
HACKER_STYLE
module-attribute
¶
HACKER_STYLE: dict[str, Any] = dict(text_color='\x1b[32m', highlight_color='', spaces_count=5, left_decorator='> ', right_decorator='')
MINIMAL_STYLE
module-attribute
¶
MINIMAL_STYLE: dict[str, Any] = dict(text_color='', highlight_color='\x1b[4m', spaces_count=3, left_decorator='', right_decorator='')
MONOCHROME_STYLE
module-attribute
¶
MONOCHROME_STYLE: dict[str, Any] = dict(text_color='\x1b[37m', highlight_color='\x1b[7m', spaces_count=4, left_decorator='', right_decorator='')
CORPORATE_STYLE
module-attribute
¶
CORPORATE_STYLE: dict[str, Any] = dict(text_color='\x1b[34m', highlight_color='\x1b[1;44;97m', spaces_count=4, left_decorator='[', right_decorator=']')
TERMINAL_RETRO_STYLE
module-attribute
¶
TERMINAL_RETRO_STYLE: dict[str, Any] = dict(text_color='\x1b[33m', highlight_color='\x1b[43;30m', spaces_count=4, left_decorator='◆ ', right_decorator='')
MATRIX_STYLE
module-attribute
¶
MATRIX_STYLE: dict[str, Any] = dict(text_color='\x1b[32m', highlight_color='\x1b[1;32;40m', spaces_count=3, left_decorator='[ ', right_decorator=' ]')
CYBERPUNK_STYLE
module-attribute
¶
CYBERPUNK_STYLE: dict[str, Any] = dict(text_color='\x1b[34m', highlight_color='\x1b[43;30m', spaces_count=4, left_decorator='« ', right_decorator=' »')
DANGER_STYLE
module-attribute
¶
DANGER_STYLE: dict[str, Any] = dict(text_color='\x1b[91m', highlight_color='\x1b[1;41;97m', spaces_count=3, left_decorator='/!\\ ', right_decorator=' ')
SUCCESS_STYLE
module-attribute
¶
SUCCESS_STYLE: dict[str, Any] = dict(text_color='\x1b[92m', highlight_color='\x1b[1;42;30m', spaces_count=3, left_decorator='✓ ', right_decorator='')
SUNSET_STYLE
module-attribute
¶
SUNSET_STYLE: dict[str, Any] = dict(text_color='\x1b[33m', highlight_color='\x1b[1;45;93m', spaces_count=4, left_decorator='> ', right_decorator=' <')
GHOST_STYLE
module-attribute
¶
GHOST_STYLE: dict[str, Any] = dict(text_color='\x1b[2;37m', highlight_color='\x1b[1;37m', spaces_count=4, left_decorator='', right_decorator='')