Skip to content

Instantly share code, notes, and snippets.

@ryanve
Last active June 26, 2017 18:16
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 ryanve/378cf3e3b1aeb232bdb9df8d98968d15 to your computer and use it in GitHub Desktop.
Save ryanve/378cf3e3b1aeb232bdb9df8d98968d15 to your computer and use it in GitHub Desktop.
CSS refactor playbook

CSS refactor playbook

  1. Class all selectors
  2. Flatten all selectors
  3. Decouple layout rules from component rules
  4. Abstract repetition into patterns that favor composition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment