Chapter 10. Don't Repeat Yourself – Let's Create a Simple CSS Framework
How many times have you done some work, only to repeat it in the next project? How many times have you thought about elements that are repeatable? All the time when you are coding, you should think how many operations you can omit the next time you're working on the same or another project. This means that you need to use the following:
Automatization
Code templates or frameworks
This chapter is about building reusable code and how to finally use it as a foundation for projects. In this chapter, we will cover the following topics:
Making a plan for a small and simple CSS framework
Creating your own grid system
Creating reusable elements
Remember that this code can and should be extended. Showed process should make you more aware about how you can help yourself with frameworks you've already created but that can still evolve with your code. Of course, you can use other frameworks.