• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

color-dict

More color name&value, two-way converting.
  • #color names
  • #color name list
  • #less
  • #sass
  • #name that color
ibafly
2,273
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by