Reusable dircolors profiles and palette helpers for ANSI-slot-based terminals.
This repository currently includes:
pastel.dircolors: custom Pasteldircolorsprofilepastel_palette.sh: shell exports for the Pastel palette and default profile colorspastel_ls_colors_preview.sh: staticLS_COLORSpreview for the Pastel profilenord.dircolors: Nord-baseddircolorsprofile
Apply a profile directly with dircolors:
eval "$(dircolors -b ./pastel.dircolors)"
eval "$(dircolors -b ./nord.dircolors)"Load the Pastel palette metadata into your current shell:
source ./pastel_palette.sh
echo "$PASTEL_PROFILE_FOREGROUND_HEX"
echo "$PASTEL_ANSI_12_HEX"dircolors only emits ANSI SGR codes such as 34, 95, or 44. The final appearance therefore depends on how your terminal maps ANSI color slots 0 through 15.
- The Pastel profile ships its intended slot values in
pastel_palette.sh. - The Nord profile assumes the standard
nord0throughnord15mapping used by the upstream Nord project and its color palette documentation.
Pastel is a soft custom palette with a very dark background, a bright off-white foreground, and low-harshness accent colors for the 16 ANSI terminal slots.
| Sample | Role | Slot | ANSI | Hex | RGB |
|---|---|---|---|---|---|
| Foreground | fg |
default foreground | #eff0f3 |
239 240 243 |
|
| Background | bg |
default background | #191a1c |
25 26 28 |
Nord is an arctic, north-bluish palette created by the Nord project and documented in the official colors and palettes reference. The nord.dircolors file in this repository follows the canonical nord0 through nord15 slot numbering used for terminal color compatibility.
- Pastel values are defined locally in
pastel_palette.sh. - Nord palette values come from the official Nord project and its Colors and Palettes documentation.