def colorText(text: str, color: str) -> str: colors = { "red": "\033[91m", "green": "\033[92m", "yellow": "\033[93m", "blue": "\033[94m", "magenta": "\033[95m", "cyan": "\033[96m", "white": "\033[97m", "reset": "\033[0m" } return f"{colors.get(color, colors['reset'])}{text}{colors['reset']}" def style_dataframe_dark(df, output_html_path=None, overwrite=True): from datetime import datetime # Get current date and filename for subtitle today = datetime.now().strftime("%d %B %Y") # Changed to "Day Month Year" filename = output_html_path.replace('.html', '') if output_html_path else "Report" dark_css = """ """ header = f"""
{filename} - {today}