def white(text: str): return Template.color_text(text=text, front='white')
def __init__(self, text): print(Template.stylish_text(text=text, style='italic'))
def bold_on_yellow(cls, text): print(Template.highlight_text(text=text, style='bold', front=cls.color, back='yellow'))
def italic_on_green(cls, text): print(Template.highlight_text(text=text, style='italic', front=cls.color, back='green'))
def on_purple(cls, text): print(Template.highlight_text(text=text, front=cls.color, back='purple'))
def on_white(cls, text): print(Template.highlight_text(text=text, front=cls.color, back='white'))
def red(text: str): return Template.color_text(text=text, front='red')
def on_red(cls, text): print(Template.highlight_text(text=text, front=cls.color, back='red'))
def __init__(self, text): print(Template.color_text(text=text, front=white.color)) super().__init__(text)
def black(text: str): return Template.color_text(text=text, front='black')
def __init__(self, text): print(Template.color_text(text=text, front=blue.color))
def italic_on_white(cls, text): print(Template.highlight_text(text=text, style='italic', front=cls.color, back='white'))
def italic_on_yellow(cls, text): print(Template.highlight_text(text=text, style='italic', front=cls.color, back='yellow'))
def __init__(self, text): print(Template.stylish_text(text=text, style='underline'))
def green(text: str): return Template.color_text(text=text, front='green')
def on_black(cls, text): print(Template.highlight_text(text=text, front=cls.color, back='black'))
def yellow(text: str): return Template.color_text(text=text, front='yellow')
def on_yellow(cls, text): print(Template.highlight_text(text=text, front=cls.color, back='yellow'))
def blue(text: str): return Template.color_text(text=text, front='blue')
def on_cyan(cls, text): print(Template.highlight_text(text=text, front=cls.color, back='cyan'))
def purple(text: str): return Template.color_text(text=text, front='purple')
def bold_on_green(cls, text): print(Template.highlight_text(text=text, style='bold', front=cls.color, back='green'))
def cyan(text: str): return Template.color_text(text=text, front='cyan')
def bold_on_purple(cls, text): print(Template.highlight_text(text=text, style='bold', front=cls.color, back='purple'))
return Template.color_text(text=text, front='yellow') @staticmethod def blue(text: str): return Template.color_text(text=text, front='blue') @staticmethod def purple(text: str): return Template.color_text(text=text, front='purple') @staticmethod def cyan(text: str): return Template.color_text(text=text, front='cyan') @staticmethod def white(text: str): return Template.color_text(text=text, front='white') if __name__ == "__main__": red('Error, does not compute!') blue('Error, does not compute!') white('Error, does not compute!') # say('Error, does not compute!') red.on_green('Error, does not compute!') white.bold_on_green('Error, does not compute!') blue.on_green('Error, does not compute!') clear() red(Template.stylish_text(text='Error, does not compute!', style='bold')) underline(Template.stylish_text(text='Error, does not compute!', style='bold')) print(f"{ColorText.cyan('cyan!')}{ColorText.blue('blue!')}") print(Template.color_text(text='Erute!', front='cyan'))