Socket
Socket
Sign inDemoInstall

@csstools/postcss-oklab-function

Package Overview
Dependencies
2
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

CHANGELOG.md
# Changes to PostCSS OKLab Function
### 1.0.1 (February 12, 2022)
- Updated `@csstools/postcss-progressive-custom-properties` to `1.1.0`.
### 1.0.0 (February 11, 2022)
- Initial version

4

package.json
{
"name": "@csstools/postcss-oklab-function",
"version": "1.0.0",
"version": "1.0.1",
"description": "Use oklab() and oklch() color functions in CSS",

@@ -39,3 +39,3 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>",

"dependencies": {
"@csstools/postcss-progressive-custom-properties": "^1.0.0",
"@csstools/postcss-progressive-custom-properties": "^1.1.0",
"postcss-value-parser": "^4.2.0"

@@ -42,0 +42,0 @@ },

# PostCSS OKLab Function [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss]
[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/postcss-oklab-function.svg" height="20">][npm-url]
<!-- [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/oklab-function.svg" height="20">][css-url] -->
[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url]
[<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]
<!-- [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/oklab-function.svg" height="20">][css-url] -->
[PostCSS OKLab Function] lets you use `oklab` and `oklch` color functions in

@@ -99,3 +98,3 @@ CSS, following the [CSS Color] specification.

⚠️ Only disabled this when you set `preserve` to `false` or if you bring your own fix for Custom Properties.
⚠️ We only recommend disabling this when you set `preserve` to `false` or if you bring your own fix for Custom Properties. See what the plugin does in its [README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties#readme).

@@ -124,5 +123,7 @@ ```js

The `subFeatures.displayP3` option determines if `color(display-p3 ...)` is used as a fallback.
The `subFeatures.displayP3` option determines if `color(display-p3 ...)` is used as a fallback.<br>
By default, it is enabled.
`display-p3` can display wider gamut colors than `rgb` on some devices.
```js

@@ -159,3 +160,3 @@ postcssOKLabFunction({

Depending on the browser implementation out of gamut colors may be clipped, resulting in a different color.<br>
Fallback values generated by [PostCSS Color Function] are always mapped to a close alternative in sRGB.
Fallback values generated by [PostCSS OKLab Function] are always mapped to a close alternative in sRGB.

@@ -178,3 +179,3 @@ When setting `preserve` to `true` the original values will be used by some browsers and these may be clipped.<br>

[discord]: https://discord.gg/bUadyRwkJS
[npm-url]: https://www.npmjs.com/package/postcss-oklab-function
[npm-url]: https://www.npmjs.com/package/@csstools/postcss-oklab-function

@@ -181,0 +182,0 @@ [CSS Color]: https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc