ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Colour Complete

by jbrooksuk ST3

Sublime Text Plugin to complete colour names for CSS

Details

Installs

  • Total 6K
  • Win 4K
  • Mac 661
  • Linux 756
May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2
Windows 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

ColourComplete

A work in progress Sublime Text plugin to complete custom CSS colour names with the hex value.

The idea came about whilst at work after we all gave up trying to remember the hex value for the Flat UI Colours.

Setup

Colours.sublime-settings contains a colours key which is an array of colours:

{
    "colours": [
        ["turquoise\tFlat UI", "#1abc9c"],
        ["emerland\tFlat UI", "#2ecc71"],
        ["peter-river\tFlat UI", "#3498db"],
        ["amethyst\tFlat UI", "#9b59b6"],
        ["wet-asphalt\tFlat UI", "#34495e"],
        ["green-sea\tFlat UI", "#16a085"],
        ["nephritis\tFlat UI", "#27ae60"],
        ["belize-hole\tFlat UI", "#2980b9"],
        ["wisteria\tFlat UI", "#8e44ad"],
        ["midnight-blue\tFlat UI", "#2c3e50"],
        ["sun-flower\tFlat UI", "#f1c40f"],
        ["carrot\tFlat UI", "#e67e22"],
        ["alizarin\tFlat UI", "#e74c3c"],
        ["clouds\tFlat UI", "#ecf0f1"],
        ["concrete\tFlat UI", "#95a5a6"],
        ["orange\tFlat UI", "#f39c12"],
        ["pumpkin\tFlat UI", "#d35400"],
        ["pomegranate\tFlat UI", "#c0392b"],
        ["silver\tFlat UI", "#bdc3c7"],
        ["asbestos\tFlat UI", "#7f8c8d"]
    ]
}

For anyone who doesn't know how Sublime completions work, the \tFlat UI will display on the right hand side of the completions list.

Now when you type alizarin Sublime will auto complete to #e74c3c. Simples!

Bugs

  1. Adding a Colours.sublime-settings to your User folder will overwrite all existing default colours.
  2. It'll only work in source.css scope. I need to add SCSS/SASS/LESS as well.

License

MIT