color-dict
More color name&value, two-way converting.
ibafly 3,220 2 0.7.0 MIT GitHub

Color Dict

Greenkeeper badge

Color name-value converting in general, with variable definition convertion and more(to-dos).

Cloned on the other atom package var-that-color, using color-names dictionary instead of Name that color for more color names.

Usage

1. Block Mode: in .less/scss/sass/stylus/css file types

#2299dd -> $color-home-world: #2299dd;

Select constructive lines. lines that only include #HEXes will be converted.

Then hit ctrl-alt-d. Get key-value pairs.

You can change config to other syntax when in .css files.

2. Inline Mode: in all file types

#2299dd <=> color-home-world

Put the cursor on the #HEX/color name(the indicator included but not the prefix) or select the exact span of that.

Then hit ctrl-alt-d. Get key-to-value or value-to-key converting.

It's working for multi-cursor and multi-line, but only supports kebab-case, snake_case & camelCase.

To-dos

See future plans in TASKS

License

MIT