Skip to content

Instantly share code, notes, and snippets.

@sillero
Last active August 29, 2015 14:05
Show Gist options
  • Save sillero/fbbc83aaaa31142672dd to your computer and use it in GitHub Desktop.
Save sillero/fbbc83aaaa31142672dd to your computer and use it in GitHub Desktop.
Code convention & Front-End strategy

###Guides http://codeguide.co/
https://github.com/styleguide
https://github.com/airbnb/javascript
https://github.com/polarmobile/coffeescript-style-guide

inuit.css = BEM + OOCSS + awesomeness
https://github.com/csswizardry/inuit.css/
https://github.com/inuitcss/getting-started
http://jsfiddle.net/user/inuitcss/fiddles/
http://csswizardry.com/2014/05/grouping-related-classes-in-your-markup/
http://csswizardry.com/2014/03/naming-ui-components-in-oocss/

mobile-first + content breakpoints
http://www.mightyminnow.com/2013/11/what-is-mobile-first-css-and-why-does-it-rock/

###Editor Configuration http://editorconfig.org/

###Linters and editor packages

Editor packages (required)

  • Atom: Linter
  • Sublime: SublimeLinter

Sass

JavaScript

CoffeeScript

###Images @font-face (depends on browser support)
SVG + PNG fallback (safest, but needs more work, even on JS for handling mouse/touch events) In the future, possibly use SVG Stacks

  • background-image: url(sprites.svg#icon-id)
  • <img src="sprites.svg#icon-id">

http://benfrain.com/image-sprites-data-uris-icon-fonts-v-svgs/

###Architecture http://dev.ghost.org/css-at-ghost/
http://www.ebaytechblog.com/2014/10/02/dont-build-pages-build-modules/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment