I've been using Atom with Semantic UI and found some tweaks to be helpful when theming.
-
Install the file-types package
-
Open the config folder and edit the
config.cson
file -
Add a value in alphabetical order for "file-types", unless it's there already.
"file-types":
variables: "source.css.less"
overrides: "source.css.less"
- Restart Atom and see that files ending in .variables and .overrides default to LESS syntax.
-
Install the pigments package
-
Open the config folder and edit the
config.cson
file -
Add a value in alphabetical order for "pigments", unless it's there already.
pigments:
autocompleteScopes: [
".source.css"
".source.css.less"
".source.sass"
".source.css.scss"
".source.stylus"
".source.variables"
]
autocompleteSuggestionsFromValue: true
extendAutocompleteToColorValue: true
extendAutocompleteToVariables: true
extendedSearchNames: [
"**/*.css"
"**/*.variables"
]
filetypesForColorWords: [
"css"
"less"
"styl"
"stylus"
"sass"
"scss"
"variables"
]
sourceNames: [
"**/*.css"
"**/*.styl"
"**/*.stylus"
"**/*.less"
"**/*.sass"
"**/*.scss"
"**/*.variables"
"**/*.overrides"
]
- Restart Atom and see that your colors are previewable in the editor. 🎉