Polished.js: A Utility CSS-in-JS library for Styled-Components in React.js

Styling Utilities Inspired By Sass for CSS-inJS

RayRay
JavaScript in Plain English
3 min readMar 18, 2021

--

Photo by Pankaj Patel on Unsplash

Sass functions like lighten(), darken(), complement(), invert() are pretty useful. I was wondering if there was something for styled-components. Well, I found the great library Polished.js.

--

--

I’m a 🇳🇱 lead frontend developer who writes about WebDev | JavaScript | TypeScript | Vuejs | Web Components | Design Systems | NuxtJS | StencilJS | CSS