Skip to content

Instantly share code, notes, and snippets.

@rachelslurs
Created August 12, 2017 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rachelslurs/6c1132ab8c6b75f2e8b95472adb94fa7 to your computer and use it in GitHub Desktop.
Save rachelslurs/6c1132ab8c6b75f2e8b95472adb94fa7 to your computer and use it in GitHub Desktop.
Some editor tricks to make Atom easier to theme Semantic UI in

Using Atom with Semantic UI

I've been using Atom with Semantic UI and found some tweaks to be helpful when theming.

Getting the syntax for .variables and .overrides to default to LESS

  1. Install the file-types package

  2. Open the config folder and edit the config.cson file

  3. Add a value in alphabetical order for "file-types", unless it's there already.

  "file-types":
    variables: "source.css.less"
    overrides: "source.css.less"
  1. Restart Atom and see that files ending in .variables and .overrides default to LESS syntax.

Seeing at a glance what colors variables are

  1. Install the pigments package

  2. Open the config folder and edit the config.cson file

  3. 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"
    ]
  1. Restart Atom and see that your colors are previewable in the editor. 🎉
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment