Skip to content

badloop/bat-rose-pine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Rosé Pine for Bat

A calming, tasteful theme for the [`bat`](https://github.com/sharkdp/bat) syntax-highlighting pager, based on the delightful [Rose Pine](https://rosepinetheme.com) palette.

This repository provides a single Sublime Text .tmTheme file: Rose-Pine.tmTheme.

Palette

Name Hex Swatch Role
Base #191724 #191724 Background
Surface #1f1d2e #1f1d2e Subtle background
Overlay #26233a #26233a Elevated background
Muted #6e6a86 #6e6a86 Comments / subtle text
Subtle #908caa #908caa Secondary text
Text #e0def4 #e0def4 Primary text
Love #eb6f92 #eb6f92 Errors / deletions
Gold #f6c177 #f6c177 Constants / numbers
Rose #ea9a97 #ea9a97 Strings / accents
Pine #31748f #31748f Types / declarations
Foam #9ccfd8 #9ccfd8 Functions / methods
Iris #c4a7e7 #c4a7e7 Keywords / control
Highlight #524f67 #524f67 Selection / emphasis

Rose Pine Palette

Installation

Option 1: Clone this repo

mkdir -p ~/.config/bat/themes
cd ~/.config/bat/themes
# Clone (or copy) the single theme file
curl -O https://raw.githubusercontent.com/aaron/rose-pine-bat/main/Rose-Pine.tmTheme
# (Alternatively: git clone this repository and copy Rose-Pine.tmTheme here)

# Rebuild bat's theme cache
bat cache --build

Option 2: Copy directly from a local checkout

If you have this repository locally:

mkdir -p ~/.config/bat/themes
cp Rose-Pine.tmTheme ~/.config/bat/themes/
bat cache --build

Usage

On the command line (one-off):

bat --theme "Rose-Pine" README.md

Persist via environment variable:

export BAT_THEME="Rose-Pine"

Add that line to your shell profile (~/.bashrc, ~/.zshrc, etc.) to keep it.

Or add to ~/.config/bat/config:

--theme=Rose-Pine

Verification

List available themes:

bat --list-themes | grep -i rose

You should see Rose-Pine.

Updating

Repeat the installation copy/curl step and run:

bat cache --clear
bat cache --build

Notes

  • bat consumes Sublime Text .tmTheme (XML) definitions; this file maps Rose Pine palette colors to common scopes.
  • If future palette adjustments occur upstream, update the hex values accordingly.

Contributing

Feel free to open issues or PRs to refine scope mappings (e.g. adjusting punctuation, diff colors, or diagnostics).

License

Rose Pine palette and name are © Rose Pine authors. This theme file follows the upstream license conventions; see Rose Pine project for details. The bat utility is © sharkdp and contributors.

Rose Pine Icon

About

Something beautiful for sharkdp/bat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published