# styled-components/polished

A lightweight toolset for writing styles in JavaScript ✨

Repository: https://github.com/styled-components/polished
Canonical: https://ross.abutalabs.com/products/polished
Homepage: https://polished.js.org/
Language: JavaScript
License: MIT
License Family: permissive
Topics: css-in-js, styled-components, styling, inline-styles
Last push: 2026-03-26T23:06:08+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 8, longevity 100
- inputs: {"age_days": 3590, "days_push": 160, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7663, forks 216 (observed 2026-08-28T04:10:02.263149+00:00)

## What it is
polished is a lightweight JavaScript library of Sass-style helper functions, mixins, and color utilities for writing styles in JavaScript. It works with any CSS-in-JS framework (styled-components, emotion, JSS, Aphrodite) or plain inline styles.

## Use cases
- lighten or darken colors programmatically in JavaScript styles
- use Sass-style helper functions and mixins in CSS-in-JS
- maintain a consistent color palette across an app
- generate fluid responsive values between breakpoints
- create CSS triangles, gradients, and hiDPI media queries in JS
- migrate from a CSS preprocessor to styles in JavaScript

## When to choose
- you write styles in JavaScript and want preprocessor-style helpers
- you need color manipulation functions like lighten, darken, mix, or contrast checks
- you want a framework-agnostic styling utility library with tree-shaking support

## When to avoid
- you write plain CSS or use a preprocessor like Sass or Less directly
- you need a full CSS-in-JS solution rather than helper functions
- you need to support legacy browsers older than IE11

## Facets
- artifact type: library
- maturity: stable
- function: css-framework, ui-components, developer-tools
- domain: web-development, frontend, web-design
- platform: browser, cross-platform
- tags: css-in-js, styled-components, sass-helpers, color-functions, styling-utilities, javascript, nodejs

## Member repositories
- styled-components/polished (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.263149+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:36:05.128078+00:00, confidence not recorded.
  - readme: https://github.com/styled-components/polished (fetched 2026-08-28T04:10:02.263149+00:00, sha 5019a94340cd)
  - homepage: https://polished.js.org/ (fetched 2026-08-29T08:32:09.170626+00:00, sha 202a6410419e)
  - site_page: https://polished.js.org/docs (fetched 2026-08-29T08:32:09.179624+00:00, sha d0eefc14e093)
- Data as of 2026-08-30T08:39:29.467469+00:00.
