# Approaches to Extending CSS Component Styles

DevFeed: [Approaches to Extending CSS Component Styles](<https://devfeed.tech/articles/extending-styles-29501.md>)

Original publisher: [Read original article](<https://philipwalton.com/articles/extending-styles/>)

Published: 2015-05-20T19:34:57Z

Content type: opinion

Language: en

Sources: [Philip Walton](<https://devfeed.tech/sources/philip-walton.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [software-design](<https://devfeed.tech/tags/software-design.md>)

## AI overview

An opinion article on choosing ways to extend CSS component styles. It argues that maintainable, predictable reuse should guide decisions and applies the open/closed principle to distinguish extending a component from modifying its style definition.

## Source excerpt

Last week @simurai wrote a great article discussing the various strategies for contextual styling in CSS. If you haven't read his article yet, you should--it will give you better context for this read, and you'll probably learn something you didn't know.