:rainbow: blessed-themes :lollipop:
Themes for TUI (terminal user inteface) apps created using blessed.
Install
npm install @blessed/themes
Using yarn
yarn add @blessed/themes
Using pnpm
pnpm add @blessed/themes
Usage
Create a styles.js
file like this:
'use strict';
module.exports = function (colors) {
const {
primary: { background, foreground },
normal: { red, green, blue, yellow, magenta, cyan },
} = colors;
return {
colors,
program: {
bg: background,
fg: foreground,
},
header: {
border: {
type: 'line',
fg: foreground,
bg: background,
},
style: {
fg: red,
bg: background,
},
},
};
};
Using the theme
const colors = require('blessed-themes/theme/Gruvbox-Dark');
const theme = require('./styles')(colors.colors);
const program = blessed.program();
program.bg(theme.program.bg);
program.fg(theme.program.fg);
const { style, border } = theme.header;
const header = blessed.box({
parent: screen,
content: 'My Awesome CLI',
top: 0,
left: 0,
width: '30%',
height: '10%',
border,
style,
});
Themes
You can find the list of theme names from themes folder.
Dracula

3024.dark

3024.light

Argonaut

Afterglow

Zenburn

Gruvbox-Dark

Gruvbox-Light

Molokai

Nord

Tango

Wombat

Tomorrow-Night

Solarized-Dark

Solarized-Light

Light Themes
- Gruvbox-Light
- Solarized-Light