{"id":331887,"date":"2021-01-19T07:47:38","date_gmt":"2021-01-19T15:47:38","guid":{"rendered":"https:\/\/css-tricks.com\/?p=331887"},"modified":"2021-01-19T07:47:46","modified_gmt":"2021-01-19T15:47:46","slug":"on-type-patterns-and-style-guides","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/on-type-patterns-and-style-guides\/","title":{"rendered":"On Type Patterns and Style Guides"},"content":{"rendered":"\n

Over the last six years or so, I\u2019ve been using these things I\u2019ve been calling \u201ctype patterns\u201d<\/strong> in my web design work, and they\u2019ve worked out pretty well for me. I\u2019ll dig into what they are and how they can make their way into CSS, and maybe the idea will click with you too and help with your day-to-day typography needs.<\/p>\n\n\n\n\n\n\n\n

If you\u2019ve used print design desktop software like QuarkXPress<\/a>, Adobe InDesign<\/a>, or CorelDraw<\/a>, then imagine this idea is an HTML\/CSS translation of \u201cparagraph styles.\u201d<\/p>\n\n\n\n

When designing a book (that spans hundreds of pages), you might want to change something about the heading typography across the whole book<\/em> (on the fly).<\/em> You would define how a certain piece of typography behaves in one central place<\/em> to be applied across the entire project (a book, in our example). You need control<\/em> of the patterns.<\/em><\/p>\n\n\n\n

Most programs use this naming style, but their user interfaces vary a little.<\/p>\n\n\n\n