Skip to content

color-mix-variadic-function-arguments #1616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/css-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ body:
- PostCSS Color Functional Notation
- PostCSS Color Hex Alpha
- PostCSS Color Mix Function
- PostCSS Color Mix Variadic Function Arguments
- PostCSS Conditional Values
- PostCSS Content Alt Text
- PostCSS Contrast Color Functions
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/plugin-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ body:
- PostCSS Color Functional Notation
- PostCSS Color Hex Alpha
- PostCSS Color Mix Function
- PostCSS Color Mix Variadic Function Arguments
- PostCSS Conditional Values
- PostCSS Content Alt Text
- PostCSS Contrast Color Functions
Expand Down
6 changes: 6 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
- plugins/postcss-color-rebeccapurple/**
- experimental/postcss-color-rebeccapurple/**

"plugins/postcss-color-mix-variadic-function-args":
- changed-files:
- any-glob-to-any-file:
- plugins/postcss-color-mix-variadic-function-arguments/**
- experimental/postcss-color-mix-variadic-function-arguments/**

"plugins/postcss-color-mix-function":
- changed-files:
- any-glob-to-any-file:
Expand Down
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/css-color-parser/dist/index.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/css-color-parser/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ export declare enum SyntaxFlag {
RelativeColorSyntax = "relative-color-syntax",
/** Is a mixed color, e.g. `color-mix(in oklch, red, blue)` */
ColorMix = "color-mix",
/** Is a variadic mixed color, e.g. `color-mix(in oklch, red)` `color-mix(in oklch, red, blue, green)` */
ColorMixVariadic = "color-mix-variadic",
/** Is a contrasting color, e.g. `contrast-color()` */
ContrastColor = "contrast-color",
/** Is an experimental color syntax */
Expand Down
2 changes: 1 addition & 1 deletion packages/css-color-parser/dist/index.mjs

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions packages/css-color-parser/docs/css-color-parser.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,27 @@
"releaseTag": "Public",
"name": "ColorMix"
},
{
"kind": "EnumMember",
"canonicalReference": "@csstools/css-color-parser!SyntaxFlag.ColorMixVariadic:member",
"docComment": "/**\n * Is a variadic mixed color, e.g. `color-mix(in oklch, red)` `color-mix(in oklch, red, blue, green)`\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "ColorMixVariadic = "
},
{
"kind": "Content",
"text": "\"color-mix-variadic\""
}
],
"initializerTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"releaseTag": "Public",
"name": "ColorMixVariadic"
},
{
"kind": "EnumMember",
"canonicalReference": "@csstools/css-color-parser!SyntaxFlag.ContrastColor:member",
Expand Down
16 changes: 16 additions & 0 deletions packages/css-color-parser/docs/css-color-parser.syntaxflag.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ ColorMix
Is a mixed color, e.g. `color-mix(in oklch, red, blue)`


</td></tr>
<tr><td>

ColorMixVariadic


</td><td>

`"color-mix-variadic"`


</td><td>

Is a variadic mixed color, e.g. `color-mix(in oklch, red)` `color-mix(in oklch, red, blue, green)`


</td></tr>
<tr><td>

Expand Down
2 changes: 2 additions & 0 deletions packages/css-color-parser/src/color-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export enum SyntaxFlag {
RelativeColorSyntax = 'relative-color-syntax',
/** Is a mixed color, e.g. `color-mix(in oklch, red, blue)` */
ColorMix = 'color-mix',
/** Is a variadic mixed color, e.g. `color-mix(in oklch, red)` `color-mix(in oklch, red, blue, green)` */
ColorMixVariadic = 'color-mix-variadic',
/** Is a contrasting color, e.g. `contrast-color()` */
ContrastColor = 'contrast-color',
/** Is an experimental color syntax */
Expand Down
Loading