sainnhe / edge

Clean & Elegant Color Scheme inspired by Atom One and Material
MIT License
860 stars 56 forks source link

Add theme for exa #30

Closed winston0410 closed 3 years ago

winston0410 commented 3 years ago

It will be awsome if edge can be extended to exa, but I found it difficult to contribute, as exa accepts ANSI escape code instead of HEX. Is it possible to convert HEX to ANSI escape code and keep the color as similar as possible? I would love to learn from the experienced who have contributed to this repo.

sainnhe commented 3 years ago

I have no idea how to convert HEX color code to ANSI escape code because this theme is mainly designed for true colors.

But there is a possible solution to use the exact colors of this theme in exa:

The range of ANSI escape code is 1~256, but the first 16 numbers are very special, they are controlled by the theme of your terminal emulator.

So you can simply use 1~16 to set $LS_COLORS, and then use this color scheme in your terminal emulator.

winston0410 commented 3 years ago

Right i was going to ask for LS_COLORS as well. I guess I could make a mapping for those 16 colors and contribute them?

I am using alacritty right now, i will try to map those colors to it i guess