Guidance on setting the font size for the Terminal Panel Widget

How can I set the font size and background color for the terminal window?

Below is an image of using this in the sidebar, but I would like to control the background color and font-size with css preferably:

image

Maybe through stylesheets / styles
https://panel.holoviz.org/how_to/styling/apply_css.html

Otherwise, you may want to raise an issue.

I was able to access the color theme for the xterm.js terminal window by doing this.

Create a style dict like you stated:

terminal_options = {
    "theme": {
        "background": 'blue',
        "font-size": 8
    }
}

Then create the terminal widget:

    terminal = pn.widgets.Terminal(
    "Intro Message...",
    options=terminal_options,
    height=200,
    width= 340
    )

This does change the background color of the terminal to blue, but it does not change the font size. If I do:

terminal_options = {
    "theme": {
        "background": 'blue',
    },
    "fontSize": 12
}

This changes the font size, but it also changes the size of the terminal (so effectively it just reduces the entire terminal size).