Skip to content

Instantly share code, notes, and snippets.

@JoshBarr
Last active February 10, 2016 01:10
Show Gist options
  • Save JoshBarr/5733b8a482e3cadbbee0 to your computer and use it in GitHub Desktop.
Save JoshBarr/5733b8a482e3cadbbee0 to your computer and use it in GitHub Desktop.
CSS Wizardry Workshop

Links to things we covered

Refactoring strategies

  • Pick small, discrete things to refactor

  • Refactor all components into their own CSS files

  • Try not to do anything that takes longer than a day.

  • DRY as the last step. Focus on components first.

  • Avoid HTML elements in selectors.

  • Don't introduce them.

  • 90% of CSS is damage control

  • Add more layers to the architecture as required... e.g temp layer, theme layer.

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