itermcolors-to-hex
v1.0.1
Published
🎨 Convert sRGB colors from an .itermcolors plist into a hex color object.
Downloads
320
Readme
iTermColors-to-Hex
🎨 Convert sRGB colors from an .itermcolors plist into a hex color object.
Note: You can find iTerm2 color schemes here: https://github.com/martinlindhe/base16-iterm2
Install
$ yarn add itermcolors-to-hex
Usage
const itermcolorsToHex = require('itermcolors-to-hex')
const colors = itermcolorsToHex()
Output:
{
'Ansi 0 Color': '#ffffff',
'Ansi 1 Color': '#ed436a',
'Ansi 10 Color': '#f5f5f5',
'Ansi 11 Color': '#c8fac8',
'Ansi 12 Color': '#e8e8e8',
'Ansi 13 Color': '#ffffff',
'Ansi 14 Color': '#333333',
'Ansi 15 Color': '#ffffff',
'Ansi 2 Color': '#189136',
'Ansi 3 Color': '#79a35d',
'Ansi 4 Color': '#79a35d',
'Ansi 5 Color': '#a75d1d',
'Ansi 6 Color': '#189136',
'Ansi 7 Color': '#333333',
'Ansi 8 Color': '#969698',
'Ansi 9 Color': '#00b386',
'Background Color': '#ffffff',
'Bold Color': '#c8fac8',
'Cursor Color': '#c8fac8',
'Cursor Text Color': '#ffffff',
'Foreground Color': '#c8fac8',
'Selected Text Color': '#c8fac8',
'Selection Color': '#333333'
}