Code Smells in CSS

Harry Roberts, Code Smells in CSS, Part 1:

  • Undoing Styles
  • Magic Numbers
  • Qualified Selectors
  • Absolute Values
  • Brute Forcing
  • Dangerous Selectors
  • Reactive !important
  • IDs
  • Loose Class Names

Part 2:

  • @extend
  • String Concatenation for Classes
  • Background Shorthand
  • Duplicated Key Selectors
  • Classes in Wrong Components
  • Non BEM
  • @import

Direct Link to ArticlePermalink


Code Smells in CSS is a post from CSS-Tricks

CSS-Tricks

Comments

comments

Tags:,

Add a Comment

Your email address will not be published. Required fields are marked *