Overview
styled-components-theme is a library that generates selectors for colors in a styled-components theme, allowing for color manipulation using the color library. It aims to make it easier to use and manipulate theme colors in styled-components, providing familiar methods for color manipulation that are influenced by SASS, LESS, and Stylus.
Features
- Generates selectors for colors in styled-components theme
- Allows for color manipulation using the color library
- Provides familiar color manipulation methods influenced by SASS, LESS, and Stylus
- Handles cloning of color objects to ensure immutability
Installation
Using npm:
npm install styled-components-theme
Using yarn:
yarn add styled-components-theme
Summary
styled-components-theme is a helpful library for working with colors in a styled-components theme. It provides selectors for colors and allows for easy color manipulation using the color library. With familiar color manipulation methods and immutability handling, this library simplifies the process of working with theme colors in styled-components.