Themes

term.css ships with 12 themes based on the most popular terminal and editor color schemes. Each theme overrides the core CSS variables - click to preview.

Usage

Add a theme file after the base stylesheet:

@import "@eshlox/termcss";
@import "@eshlox/termcss/themes/dracula.min.css";

Available Themes

Default

default.css

Dracula

dracula.css

Nord

nord.css

Solarized

solarized.css

One Dark

one-dark.css

Monokai

monokai.css

Tokyo Night

tokyo-night.css

Catppuccin

catppuccin.css

Rosé Pine

rose-pine.css

Gruvbox

gruvbox.css

Everforest

everforest.css

GitHub

github.css

Kanagawa

kanagawa.css

Reset

Remove theme overlay

Preview

The theme you select above will be applied to this entire page. Scroll around to see how headings, code blocks, badges, and other elements look under different themes.

Tip

You can also create custom themes with a single hue value. See Create a Theme.

Warning

Theme files must be loaded after the base stylesheet.

Sample Elements

STATUS ERROR WARN OK INFO

A blockquote to test accent border and muted text color.

const theme = "live preview";
console.log("Current: " + theme);
VariablePurpose
--t-bgBackground
--t-fgForeground text
--t-mutedSecondary text
--t-accentPrimary accent
--t-accent2Secondary accent
--t-surfaceElevated surfaces
--t-borderBorders, dividers
--t-redError, danger
--t-yellowWarning, caution
--t-greenSuccess, confirmed

Dark / Light

Every theme supports both dark and light mode via light-dark(). Toggle your system preference or use data-theme="dark" / data-theme="light" to override.