Skip to content

Commit 5c9b223

Browse files
committed
postcss-alpha-function
1 parent 2eb0421 commit 5c9b223

67 files changed

Lines changed: 1697 additions & 335 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin-packs/postcss-preset-env/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changes to PostCSS Preset Env
22

3+
### Unreleased (minor)
4+
5+
- Added `@csstools/postcss-alpha-function` [Check the plugin README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-alpha-function#readme) for usage details.
6+
- Added `@csstools/postcss-color-function-display-p3-linear` [Check the plugin README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function-display-p3-linear#readme) for usage details.
7+
38
### 10.2.4
49

510
_June 26, 2025_

plugin-packs/postcss-preset-env/FEATURES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The `ID` listed is the key for PostCSS Preset Env configuration in your project.
55
| | ID | Feature | example | docs |
66
|:--- |:--- |:--- |:--- |:--- |
77
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/all-property.svg" height="18">](https://cssdb.org/#all-property) | `all-property` | `all` Property | [example](https://preset-env.cssdb.org/features/#all-property) | [docs](https://github.com/maximkoretskiy/postcss-initial#readme) |
8+
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/alpha-function.svg" height="18">](https://cssdb.org/#alpha-function) | `alpha-function` | `alpha()` Function | [example](https://preset-env.cssdb.org/features/#alpha-function) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-alpha-function#readme) |
89
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/any-link-pseudo-class.svg" height="18">](https://cssdb.org/#any-link-pseudo-class) | `any-link-pseudo-class` | `:any-link` Hyperlink Pseudo-Class | [example](https://preset-env.cssdb.org/features/#any-link-pseudo-class) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link#readme) |
910
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/blank-pseudo-class.svg" height="18">](https://cssdb.org/#blank-pseudo-class) | `blank-pseudo-class` | `:blank` Empty-Value Pseudo-Class | [example](https://preset-env.cssdb.org/features/#blank-pseudo-class) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo#readme) |
1011
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/break-properties.svg" height="18">](https://cssdb.org/#break-properties) | `break-properties` | Break Properties | [example](https://preset-env.cssdb.org/features/#break-properties) | [docs](https://github.com/shrpne/postcss-page-break#readme) |

plugin-packs/postcss-preset-env/dist/index.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

plugin-packs/postcss-preset-env/dist/index.d.ts

Lines changed: 113 additions & 110 deletions
Large diffs are not rendered by default.

plugin-packs/postcss-preset-env/dist/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

plugin-packs/postcss-preset-env/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dist"
5353
],
5454
"dependencies": {
55+
"@csstools/postcss-alpha-function": "^0.0.0",
5556
"@csstools/postcss-cascade-layers": "^5.0.2",
5657
"@csstools/postcss-color-function": "^4.0.10",
5758
"@csstools/postcss-color-function-display-p3-linear": "^0.0.0",

plugin-packs/postcss-preset-env/scripts/plugins-data.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
"id": "clamp",
2525
"importName": "postcssClamp"
2626
},
27+
{
28+
"packageName": "@csstools/postcss-alpha-function",
29+
"id": "alpha-function",
30+
"importName": "postcssAlphaFunction"
31+
},
2732
{
2833
"packageName": "@csstools/postcss-color-mix-variadic-function-arguments",
2934
"id": "color-mix-variadic-function-arguments",

plugin-packs/postcss-preset-env/src/lib/ids-by-execution-order.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default [
2424
'gradients-interpolation-method', // run before all color functions
2525
'color-mix-variadic-function-arguments', // run before any other color functions, including base color-mix
2626
'color-mix', // run before any other color functions
27+
'alpha-function',
2728
'relative-color-syntax',
2829
'lab-function',
2930
'oklab-function',

plugin-packs/postcss-preset-env/src/plugins/plugins-by-id.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import postcssInitial from '@csstools/postcss-initial';
2+
import postcssAlphaFunction from '@csstools/postcss-alpha-function';
23
import postcssPseudoClassAnyLink from 'postcss-pseudo-class-any-link';
34
import postcssBlankPseudo from 'css-blank-pseudo';
45
import postcssPageBreak from 'postcss-page-break';
@@ -66,6 +67,7 @@ import postcssUnsetValue from '@csstools/postcss-unset-value';
6667
export const pluginsById = new Map(
6768
[
6869
['all-property', postcssInitial],
70+
['alpha-function', postcssAlphaFunction],
6971
['any-link-pseudo-class', postcssPseudoClassAnyLink],
7072
['blank-pseudo-class', postcssBlankPseudo],
7173
['break-properties', postcssPageBreak],

0 commit comments

Comments
 (0)