for thousands of pages? Object Oriented CSS is an answer. It’s an approach for writing CSS that’s fast, maintainable, and standards-based. It adds much needed predictability to CSS so that even beginners can participate in writing beautiful websites.
There is no library within here for you to download or install. It is an attempt to document a consistent approach to site development when using CSS. @snookca ; http://smacss.com/