summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/postcss-color-mix-function
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/@csstools/postcss-color-mix-function
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/@csstools/postcss-color-mix-function')
-rw-r--r--node_modules/@csstools/postcss-color-mix-function/CHANGELOG.md25
-rw-r--r--node_modules/@csstools/postcss-color-mix-function/LICENSE.md18
-rw-r--r--node_modules/@csstools/postcss-color-mix-function/README.md87
-rw-r--r--node_modules/@csstools/postcss-color-mix-function/dist/index.cjs1
-rw-r--r--node_modules/@csstools/postcss-color-mix-function/dist/index.d.ts19
-rw-r--r--node_modules/@csstools/postcss-color-mix-function/dist/index.mjs1
-rw-r--r--node_modules/@csstools/postcss-color-mix-function/package.json82
7 files changed, 0 insertions, 233 deletions
diff --git a/node_modules/@csstools/postcss-color-mix-function/CHANGELOG.md b/node_modules/@csstools/postcss-color-mix-function/CHANGELOG.md
deleted file mode 100644
index e2f873fc..00000000
--- a/node_modules/@csstools/postcss-color-mix-function/CHANGELOG.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# Changes to PostCSS Color Mix Function
-
-### 2.0.19
-
-_July 7, 2024_
-
-- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.3.0`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#330) (minor)
-
-### 2.0.18
-
-_July 6, 2024_
-
-- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.4.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#241) (patch)
-- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#271) (patch)
-- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`2.0.4`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#204) (patch)
-
-### 2.0.17
-
-_June 29, 2024_
-
-- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#232) (patch)
-- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#270) (minor)
-- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`2.0.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#203) (patch)
-
-[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function/CHANGELOG.md)
diff --git a/node_modules/@csstools/postcss-color-mix-function/LICENSE.md b/node_modules/@csstools/postcss-color-mix-function/LICENSE.md
deleted file mode 100644
index e8ae93b9..00000000
--- a/node_modules/@csstools/postcss-color-mix-function/LICENSE.md
+++ /dev/null
@@ -1,18 +0,0 @@
-MIT No Attribution (MIT-0)
-
-Copyright © CSSTools Contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the “Software”), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so.
-
-THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/@csstools/postcss-color-mix-function/README.md b/node_modules/@csstools/postcss-color-mix-function/README.md
deleted file mode 100644
index 70f56445..00000000
--- a/node_modules/@csstools/postcss-color-mix-function/README.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# PostCSS Color Mix 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-color-mix-function.svg" height="20">][npm-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]<br><br>[<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/color-mix.svg" height="20">][css-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/color-mix.svg" height="20">][css-url]
-
-```bash
-npm install @csstools/postcss-color-mix-function --save-dev
-```
-
-[PostCSS Color Mix Function] lets you use the `color-mix()` function following the [CSS Color 5 Specification].
-
-```pcss
-.purple_plum {
- color: color-mix(in lch, purple 50%, plum 50%);
-}
-
-/* becomes */
-
-.purple_plum {
- color: rgb(175, 92, 174);
-}
-```
-
-> [!NOTE]
-> We can not dynamically resolve `var()` arguments in `color-mix()`, only static values will work.
-
-## Usage
-
-Add [PostCSS Color Mix Function] to your project:
-
-```bash
-npm install postcss @csstools/postcss-color-mix-function --save-dev
-```
-
-Use it as a [PostCSS] plugin:
-
-```js
-const postcss = require('postcss');
-const postcssColorMixFunction = require('@csstools/postcss-color-mix-function');
-
-postcss([
- postcssColorMixFunction(/* pluginOptions */)
-]).process(YOUR_CSS /*, processOptions */);
-```
-
-[PostCSS Color Mix Function] runs in all Node environments, with special
-instructions for:
-
-- [Node](INSTALL.md#node)
-- [PostCSS CLI](INSTALL.md#postcss-cli)
-- [PostCSS Load Config](INSTALL.md#postcss-load-config)
-- [Webpack](INSTALL.md#webpack)
-- [Next.js](INSTALL.md#nextjs)
-- [Gulp](INSTALL.md#gulp)
-- [Grunt](INSTALL.md#grunt)
-
-## Options
-
-### preserve
-
-The `preserve` option determines whether the original notation
-is preserved. By default, it is not preserved.
-
-```js
-postcssColorMixFunction({ preserve: true })
-```
-
-```pcss
-.purple_plum {
- color: color-mix(in lch, purple 50%, plum 50%);
-}
-
-/* becomes */
-
-.purple_plum {
- color: rgb(175, 92, 174);
- color: color-mix(in lch, purple 50%, plum 50%);
-}
-```
-
-[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
-[css-url]: https://cssdb.org/#color-mix
-[discord]: https://discord.gg/bUadyRwkJS
-[npm-url]: https://www.npmjs.com/package/@csstools/postcss-color-mix-function
-
-[PostCSS]: https://github.com/postcss/postcss
-[PostCSS Color Mix Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function
-[CSS Color 5 Specification]: https://www.w3.org/TR/css-color-5/#color-mix
diff --git a/node_modules/@csstools/postcss-color-mix-function/dist/index.cjs b/node_modules/@csstools/postcss-color-mix-function/dist/index.cjs
deleted file mode 100644
index 5bf9fd70..00000000
--- a/node_modules/@csstools/postcss-color-mix-function/dist/index.cjs
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";var s=require("@csstools/postcss-progressive-custom-properties"),e=require("@csstools/css-color-parser"),r=require("@csstools/utilities"),t=require("@csstools/css-parser-algorithms"),o=require("@csstools/css-tokenizer");const i=/\bcolor-mix\(/i,a=/^color-mix$/i,basePlugin=s=>({postcssPlugin:"postcss-color-mix-function",Declaration(n){const l=n.value;if(!i.test(l))return;if(r.hasFallback(n))return;if(r.hasSupportsAtRuleAncestor(n,i))return;const u=o.tokenize({css:l}),c=t.replaceComponentValues(t.parseCommaSeparatedListOfComponentValues(u),(s=>{if(!t.isFunctionNode(s)||!a.test(s.getName()))return;const r=e.color(s);return r&&!r.syntaxFlags.has(e.SyntaxFlag.Experimental)?e.serializeRGB(r):void 0})),p=t.stringify(c);if(p===l)return;let m=p;s?.subFeatures.displayP3&&(m=t.stringify(t.replaceComponentValues(t.parseCommaSeparatedListOfComponentValues(u),(s=>{if(!t.isFunctionNode(s)||!a.test(s.getName()))return;const r=e.color(s);return r&&!r.syntaxFlags.has(e.SyntaxFlag.Experimental)?e.colorDataFitsRGB_Gamut(r)?e.serializeRGB(r):e.serializeP3(r):void 0})))),n.cloneBefore({value:p}),s?.subFeatures.displayP3&&m!==p&&n.cloneBefore({value:m}),s?.preserve||n.remove()}});basePlugin.postcss=!0;const postcssPlugin=e=>{const r=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},e);return r.subFeatures=Object.assign({displayP3:!0},r.subFeatures),r.enableProgressiveCustomProperties&&(r.preserve||r.subFeatures.displayP3)?{postcssPlugin:"postcss-color-mix-function",plugins:[s(),basePlugin(r)]}:basePlugin(r)};postcssPlugin.postcss=!0,module.exports=postcssPlugin;
diff --git a/node_modules/@csstools/postcss-color-mix-function/dist/index.d.ts b/node_modules/@csstools/postcss-color-mix-function/dist/index.d.ts
deleted file mode 100644
index 0cae0a44..00000000
--- a/node_modules/@csstools/postcss-color-mix-function/dist/index.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import type { PluginCreator } from 'postcss';
-
-/** postcss-color-mix-function plugin options */
-export declare type pluginOptions = {
- /** Preserve the original notation. default: false */
- preserve?: boolean;
- /** Enable "@csstools/postcss-progressive-custom-properties". default: true */
- enableProgressiveCustomProperties?: boolean;
- /** Toggle sub features. default: { displayP3: true } */
- subFeatures?: {
- /** Enable displayP3 fallbacks. default: true */
- displayP3?: boolean;
- };
-};
-
-declare const postcssPlugin: PluginCreator<pluginOptions>;
-export default postcssPlugin;
-
-export { }
diff --git a/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs b/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs
deleted file mode 100644
index 785d5733..00000000
--- a/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs
+++ /dev/null
@@ -1 +0,0 @@
-import s from"@csstools/postcss-progressive-custom-properties";import{color as e,SyntaxFlag as r,serializeRGB as t,colorDataFitsRGB_Gamut as o,serializeP3 as i}from"@csstools/css-color-parser";import{hasFallback as c,hasSupportsAtRuleAncestor as a}from"@csstools/utilities";import{replaceComponentValues as n,parseCommaSeparatedListOfComponentValues as l,isFunctionNode as u,stringify as p}from"@csstools/css-parser-algorithms";import{tokenize as m}from"@csstools/css-tokenizer";const f=/\bcolor-mix\(/i,g=/^color-mix$/i,basePlugin=s=>({postcssPlugin:"postcss-color-mix-function",Declaration(v){const b=v.value;if(!f.test(b))return;if(c(v))return;if(a(v,f))return;const P=m({css:b}),x=n(l(P),(s=>{if(!u(s)||!g.test(s.getName()))return;const o=e(s);return o&&!o.syntaxFlags.has(r.Experimental)?t(o):void 0})),d=p(x);if(d===b)return;let F=d;s?.subFeatures.displayP3&&(F=p(n(l(P),(s=>{if(!u(s)||!g.test(s.getName()))return;const c=e(s);return c&&!c.syntaxFlags.has(r.Experimental)?o(c)?t(c):i(c):void 0})))),v.cloneBefore({value:d}),s?.subFeatures.displayP3&&F!==d&&v.cloneBefore({value:F}),s?.preserve||v.remove()}});basePlugin.postcss=!0;const postcssPlugin=e=>{const r=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},e);return r.subFeatures=Object.assign({displayP3:!0},r.subFeatures),r.enableProgressiveCustomProperties&&(r.preserve||r.subFeatures.displayP3)?{postcssPlugin:"postcss-color-mix-function",plugins:[s(),basePlugin(r)]}:basePlugin(r)};postcssPlugin.postcss=!0;export{postcssPlugin as default};
diff --git a/node_modules/@csstools/postcss-color-mix-function/package.json b/node_modules/@csstools/postcss-color-mix-function/package.json
deleted file mode 100644
index 7d75553c..00000000
--- a/node_modules/@csstools/postcss-color-mix-function/package.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "name": "@csstools/postcss-color-mix-function",
- "description": "Use the color-mix function in CSS",
- "version": "2.0.19",
- "contributors": [
- {
- "name": "Antonio Laguna",
- "email": "antonio@laguna.es",
- "url": "https://antonio.laguna.es"
- },
- {
- "name": "Romain Menke",
- "email": "romainmenke@gmail.com"
- }
- ],
- "license": "MIT-0",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/csstools"
- },
- {
- "type": "opencollective",
- "url": "https://opencollective.com/csstools"
- }
- ],
- "engines": {
- "node": "^14 || ^16 || >=18"
- },
- "type": "module",
- "main": "dist/index.cjs",
- "module": "dist/index.mjs",
- "exports": {
- ".": {
- "import": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.mjs"
- },
- "require": {
- "default": "./dist/index.cjs"
- }
- }
- },
- "files": [
- "CHANGELOG.md",
- "LICENSE.md",
- "README.md",
- "dist"
- ],
- "dependencies": {
- "@csstools/css-color-parser": "^2.0.4",
- "@csstools/css-parser-algorithms": "^2.7.1",
- "@csstools/css-tokenizer": "^2.4.1",
- "@csstools/postcss-progressive-custom-properties": "^3.3.0",
- "@csstools/utilities": "^1.0.0"
- },
- "peerDependencies": {
- "postcss": "^8.4"
- },
- "scripts": {},
- "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/csstools/postcss-plugins.git",
- "directory": "plugins/postcss-color-mix-function"
- },
- "bugs": "https://github.com/csstools/postcss-plugins/issues",
- "keywords": [
- "color-mix",
- "css",
- "display-p3",
- "interpolation",
- "postcss-plugin",
- "prophoto-rgb",
- "rec2020",
- "rgb",
- "rgba",
- "srgb-linear",
- "syntax",
- "xyz"
- ]
-}