Chapter 10. Creating and sharing a Compass extension
This chapter covers
- Sharing Sass stylesheets and why Compass extensions are needed
- An introduction to simple extensions
- A detailed walk-through on writing an advanced extension
- Creating templates to bootstrap or demonstrate an extension
- A brief overview of different methods of sharing extensions
Up to this point, each chapter has focused on helping you get acquainted with different features of Sass and Compass and how they enhance working with stylesheets. This chapter brings it all together, building on your knowledge of Sass and Compass to help you take the next step and write a Compass framework. We’ll discuss sharing code with the community and walk through the process of writing an extension for styling CSS3 buttons. We’ll explore the design decisions that go into building this extension, and discuss the principles and best practices that create truly excellent code.
Those of us who’ve been writing stylesheets for some time know the joy of watching a tricky bit of CSS finally come together. We save our stylesheets and refresh our browsers in anticipation. Then our creation blinks into existence in all its glory. Success! A victory dance is in order. But what comes next?