A professional theme with hand-picked & bold shades of purple for bat — A cat clone with wings.
Bat is a cat clone with syntax highlighting and Git integration. It's a modern replacement for the traditional cat command with beautiful syntax highlighting.
Shades of Purple is a professional theme suite carefully designed with hand-picked, bold shades of purple for your development environment. It's been used by over 5 million developers across various editors and tools.
The easiest way to install the theme is via npm:
npm install -g shades-of-purple-bat-themeThe theme will be automatically installed and the bat cache will be rebuilt. That's it! 🎉
Alternative package managers:
# Using yarn
yarn global add shades-of-purple-bat-theme
# Using pnpm
pnpm add -g shades-of-purple-bat-theme# Create the themes directory if it doesn't exist
mkdir -p "$(bat --config-dir)/themes"
# Download the theme
curl -L https://raw.githubusercontent.com/ahmadawais/shades-of-purple-bat-theme/main/themes/Shades-of-Purple.tmTheme -o "$(bat --config-dir)/themes/Shades-of-Purple.tmTheme"
# Rebuild bat's cache
bat cache --build- Create the themes directory:
mkdir -p "$(bat --config-dir)/themes"
cd "$(bat --config-dir)/themes"- Download the theme file:
Download Shades-of-Purple.tmTheme from this repository and place it in your bat themes directory.
- Rebuild the cache:
bat cache --build- Verify installation:
bat --list-themes | grep "Shades-of-Purple"You should see Shades-of-Purple in the list of available themes.
Use the theme for a single command:
bat --theme="Shades-of-Purple" myfile.jsSet Shades of Purple as your default theme by adding this to your bat configuration file:
Location: ~/.config/bat/config (Linux/macOS) or %APPDATA%\bat\config (Windows)
# Set the theme to Shades of Purple
--theme="Shades-of-Purple"Alternatively, set the BAT_THEME environment variable:
# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)
export BAT_THEME="Shades-of-Purple"The theme features carefully selected colors:
- Background:
#2D2B55- Deep purple background - Foreground:
#FFFFFF- Crisp white text - Comments:
#B362FF- Bright purple - Strings:
#A5FF90- Fresh green - Keywords:
#FF9D00- Warm orange - Functions:
#FF9D00- Warm orange - Constants:
#FF628C- Bold pink - Variables:
#E1EFFF- Light blue - Support:
#80FFBB- Mint green - Cursor:
#FAD000- Bright yellow
- Hand-picked, bold shades of purple
- Excellent color contrast for readability
- Optimized for long coding sessions
- Consistent with other Shades of Purple themes
- Supports all major programming languages
- Beautiful markdown rendering
Shades of Purple is available for:
- Make sure you've run
bat cache --buildafter adding the theme - Check the theme is in the correct directory:
$(bat --config-dir)/themes/ - Verify the filename is correct:
Shades-of-Purple.tmTheme
Make sure your terminal supports true color (24-bit color). Most modern terminals do, but you may need to set:
export COLORTERM=truecolorPull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
- Initial release
- Complete syntax highlighting support
- Hand-picked purple color scheme
- Support for all major languages
MIT © Ahmad Awais
Ahmad Awais — Follow @MrAhmadAwais on Twitter
- Built for bat by David Peter
- Part of the Shades of Purple theme family