🌈 blessed-themes 🍭
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 { // Destructure the colors for easy access const primary: background foreground normal: red green blue yellow magenta cyan = colors; return colors // this is for inline usage of theme colors for text and labels program: bg: background fg: foreground header: border: type: 'line' fg: foreground bg: background style: fg: red bg: background ;};
Using the theme
// Import the theme colorsconst colors = ;// Pass the theme colors to stylesconst theme = colorscolors; // Initialize the program, to change the default color of the terminal screenconst program = blessed; // Use the bg and fg colors from the theme for the programprogram;program; // Get the styles of a widget from the themeconst style border = themeheader; const header = blessed;
Themes
You can find the list of theme names from themes folder.
Light Themes
- Gruvbox-Light
- Solarized-Light