Skip to content

lastzero/dircolors

Repository files navigation

dircolors Themes

Reusable dircolors profiles and palette helpers for ANSI-slot-based terminals.

This repository currently includes:

Usage

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"

ANSI Palette Note

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.

Pastel

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.

Profile Colors

Sample Role Slot ANSI Hex RGB
Pastel foreground Foreground fg default foreground #eff0f3 239 240 243
Pastel background Background bg default background #191a1c 25 26 28

ANSI Palette

Sample Role Slot ANSI Hex RGB
Pastel ANSI 0 Black 0 30 / 40 #1e1f22 30 31 34
Pastel ANSI 1 Red 1 31 / 41 #f89494 248 148 148
Pastel ANSI 2 Green 2 32 / 42 #b2e4a7 178 228 167
Pastel ANSI 3 Yellow 3 33 / 43 #ffef9f 255 239 159
Pastel ANSI 4 Blue 4 34 / 44 #a9c7f1 169 199 241
Pastel ANSI 5 Magenta 5 35 / 45 #cfbaf0 207 186 240
Pastel ANSI 6 Cyan 6 36 / 46 #96c2c6 150 194 198
Pastel ANSI 7 White 7 37 / 47 #f1edfb 241 237 251
Pastel ANSI 8 Bright black 8 90 / 100 #393b40 57 59 64
Pastel ANSI 9 Bright red 9 91 / 101 #fda5ac 253 165 172
Pastel ANSI 10 Bright green 10 92 / 102 #b9fbc0 185 251 192
Pastel ANSI 11 Bright yellow 11 93 / 103 #fdffb6 253 255 182
Pastel ANSI 12 Bright blue 12 94 / 104 #b1e5f7 177 229 247
Pastel ANSI 13 Bright magenta 13 95 / 105 #f1c7e9 241 199 233
Pastel ANSI 14 Bright cyan 14 96 / 106 #c0fdff 192 253 255
Pastel ANSI 15 Bright white 15 97 / 107 #fcfcfc 252 252 252

Nord

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.

Sample Token Slot ANSI Hex Palette
Nord 0 nord0 0 30 / 40 #2e3440 Polar Night
Nord 1 nord1 1 31 / 41 #3b4252 Polar Night
Nord 2 nord2 2 32 / 42 #434c5e Polar Night
Nord 3 nord3 3 33 / 43 #4c566a Polar Night
Nord 4 nord4 4 34 / 44 #d8dee9 Snow Storm
Nord 5 nord5 5 35 / 45 #e5e9f0 Snow Storm
Nord 6 nord6 6 36 / 46 #eceff4 Snow Storm
Nord 7 nord7 7 37 / 47 #8fbcbb Frost
Nord 8 nord8 8 90 / 100 #88c0d0 Frost
Nord 9 nord9 9 91 / 101 #81a1c1 Frost
Nord 10 nord10 10 92 / 102 #5e81ac Frost
Nord 11 nord11 11 93 / 103 #bf616a Aurora
Nord 12 nord12 12 94 / 104 #d08770 Aurora
Nord 13 nord13 13 95 / 105 #ebcb8b Aurora
Nord 14 nord14 14 96 / 106 #a3be8c Aurora
Nord 15 nord15 15 97 / 107 #b48ead Aurora

Sources

About

Reusable profiles and palette helpers for ANSI-slot-based terminals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages