from textual.color import Color


def get_retro_terminal_theme():
    from textual.theme import Theme

    return Theme(
        name="retro-terminal",
        background=Color.parse("#000000"),
        primary=Color.parse("#00ff00"),
        secondary=Color.parse("#00aa00"),
        success=Color.parse("#00ff00"),
        warning=Color.parse("#ffff00"),
        error=Color.parse("#ff0000"),
        surface=Color.parse("#071802"),
    )


RETRO_TERMINAL_CSS = """
/* Retro terminal CRT effect */
Screen {
    align: center middle;
    background: $background;
    color: $text;
}

/* Blocky, pixelated widgets */
.widget {
    border: tall $primary;
    background: $surface;
    width: 80%;
}

/* Monospaced font */
* {
    font-family: "Courier New", monospace;
}
"""
