NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2588 most downloaded on npm
A lightweight toolset for writing styles in Javascript.
Last release 3 years ago
no release in 18 months
Ships unpredictably
gaps range from 1 weeks to 1.8 years
Nearly every release is documented
notes for 44 of 44 stable releases
38 versions withdrawn
withdrawn after publishing
10 years old
94 releases · first in 2016
types: Updated types to be compatible with styled-components. (5c684e6), closes #348
parseToHSL: parseToHSL can now handle float values for hue (d1d1f40), closes #343
One column per quarter.
We introduced one necessary breaking change in this release. In the future, we will warn a full major version ahead of time, but this one necessitated…
This is a major release that introduces new modules, improvements to existing modules, bug fixes, improved TypeScript and Flow Support, and some deprecations.
We introduced one necessary breaking change in this release. In the future, we will warn a full major version ahead of time, but this one necessitated an immediate fix. (Un)luckily, it was never working properly in the first place.
mix color module now requires a ratio in order to work. It originally tried to default to .5 but this broke in most cases.These items have been marked for deprecation in v3 of polished.
placeholder mixin is no longer required to address gaps in vendor prefixing in major CSS-in-JS libraries.selection mixin is no longer required to address gaps in vendor prefixing in major CSS-in-JS libraries.These items have been deprecated immediately as the change doesn't introduce any breaking changes. However, you will want to update your code accordingly.
normalize no longer accepts excludeOpinionated as a parameter, as opinionated rules have been removed in the latest versions of normalize.css.This release addresses our most popular feature requests as voted on by users. If something you were hoping for didn't make it, you can make your voice heard by 👍a module request in our issues.
between mixin added to return a CSS calc formula for linear interpolation of a property between two values.cover mixin added to return CSS to fully cover an area similar to background-image: cover.fluidRange mixin added to returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize linearly.border shorthand added to return shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron.getValueAndUnit helper added returns a given CSS value and its unit as elements of an array.We have made a variety of improvements to existing modules as well.
fontFace now supports font-display, font-variation-settings, and font-feature-settings.triangle now supports any unit of measure instead of just px. (Thanks @lifeiscontent)normalize has been upgraded to use normalize.css 8.0.mix fixed an issue where mix would not curry properly.transitions now supports applying the same transition to multiple properties in one call.ellipsis - fixed a bug to avoid potential white-space issues with display: inline-block.normalize - fixed an issue where vendor prefixed values were not properly camel-cased.retinaImage- fixed a bug that was causing background-image to be set to undefined (instead of not set at all) when a background image is not passed.mix now properly passes flow tests in all cases, including when curried.Styles type for better compatibility with CSS-In-JS libraries and their Flow type definitions. (Thanks @vhfmag)Styles type for better compatibility with CSS-In-JS libraries and their TypeScript definitions. (Thanks @vhfmag)documentation.js and generation should no longer randomly break for contributors.triangle documentation now properly displays.toColorString documentation now properly displays.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
parseToRGB: Not covered invalid input
build: Centralized babel config to prevent accidental mismatches
package: Add version to package.json for release.
hideVisually: hideVisually docs and release
tooling: Use loose mode for the babel transpilation
Library: permit zero for directionalProperty, borderRadius
shorthands: Shorthand now fully accept integers
getLuminance: Add getLuminance function
package.json: Move typescript deps to devDeps
Docs: Remove redundant TOC from README and add TypeScript section.
Typescript: Typescript Defs and Flow Improvements
Flow: Type definition improvements
readableColor: add missing export of readableColor to index
Color: Returns most readable color, black or white
<a name"1.4.0"></a>
modules: All properties produced by polished are now camel-cased
<a name"1.3.0"></a>
color: Improve the library size for webpack
<a name"1.2.1"></a>
rgba: Fade color with rgba module
prevent floating point issue with alpha channel
<a name"1.1.3"></a>
triangle: Complete triangle mixin
<a name"1.1.2"></a>
cov: avoid publishing coverage results
<a name"1.1.1"></a>
color: Named color support for color mixins.
<a name"1.1.0"></a>
clearFix: Fixes an issue with content being blank.
<a name"1.0.4"></a>
helpers: Fix modularScale computation, allow steps to be zero
<a name"1.0.3"></a>
use the correct "jsnext:main" and "module" values
<a name"1.0.2"></a>
### 1.0.1 (2017-03-30) #### Bug Fixes * npm: dont publish .babelrc (acfd60ef) #### Features * color: Tint and Shade Helpers (ebb14dc6) * release: 1.0.
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →