Skip to content

CSS Style

Jakub T. Jankiewicz edited this page Aug 18, 2021 · 19 revisions

Custom Properties

:root {
    --color: green;
    --background: white;
    --link-color: darkblue;
}

Size

:root {
    --size: 1.5;
}

You can change the size depending on the size of the terminal (browser window) using media queries.

See Responsive Font Size

Style just cursor

.cmd-cursor {
    --original-color: white;
}

Using custom properties with formatting

You can use custom properties on a single piece of text that you render using echo.

See Attribute Formatter.

Clone this wiki locally