Skip to content

Commit e35e81b

Browse files
github-actions[bot]castastrophe
authored andcommitted
chore: release (#3673)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 020d009 commit e35e81b

File tree

5 files changed

+35
-6
lines changed

5 files changed

+35
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@commitlint/config-conventional": "^19.6.0",
7373
"@csstools/postcss-bundler": "^2.0.6",
7474
"@nx/devkit": "^19.8.2",
75-
"@spectrum-tools/postcss-rgb-mapping": "1.0.0",
75+
"@spectrum-tools/postcss-rgb-mapping": "1.1.0",
7676
"@yarnpkg/types": "^4.0.0",
7777
"at-rule-packer": "^0.4.2",
7878
"autoprefixer": "^10.4.21",

plugins/postcss-rgb-mapping/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Change Log
22

3+
## 1.1.0
4+
5+
### Minor Changes
6+
7+
- [#3452](https://github.com/adobe/spectrum-css/pull/3452) [`287cff8`](https://github.com/adobe/spectrum-css/commit/287cff82b7706f0f56d6d37f48e1d9c60a6df4b9) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Adds new functionality to better handle tokens that reference other transparent tokens.
8+
9+
When a custom properties below is defined as another, specifically "transparent," variable, such as:
10+
11+
```css
12+
--disabled-static-white-background-color: var(
13+
--spectrum-transparent-white-100
14+
);
15+
```
16+
17+
...the plugin can now convert this single custom property into its `-rgb` and `-opacity` postfixed variables, that each correspond to the `-rgb` and `-opacity` variables of the definition's transparent token. It then reassembles the original, using and referencing these newly created variables.
18+
19+
```css
20+
--disabled-static-white-background-color-rgb: var(
21+
--spectrum-transparent-white-100-rgb
22+
);
23+
--disabled-static-white-background-color-opacity: var(
24+
--spectrum-transparent-white-100-opacity
25+
);
26+
--disabled-static-white-background-color: rgba(
27+
var(--disabled-static-white-background-color-rgb),
28+
var(--disabled-static-white-background-color-opacity)
29+
);
30+
```
31+
332
## 1.0.0
433

534
### Major Changes

plugins/postcss-rgb-mapping/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@spectrum-tools/postcss-rgb-mapping",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Remaps rgb(a) values to an rgb postfixed variable",
55
"license": "Apache-2.0",
66
"author": "Adobe",

tokens/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@adobe/spectrum-tokens": "^13.3.0",
3131
"@adobe/token-diff-generator": "^1.3.0",
3232
"@nxkit/style-dictionary": "^6.0.0",
33-
"@spectrum-tools/postcss-rgb-mapping": "1.0.0",
33+
"@spectrum-tools/postcss-rgb-mapping": "1.1.0",
3434
"postcss": "^8.5.3",
3535
"postcss-sorting": "^9.1.0",
3636
"style-dictionary": "^3.9.2",

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ __metadata:
123123
"@commitlint/config-conventional": "npm:^19.6.0"
124124
"@csstools/postcss-bundler": "npm:^2.0.6"
125125
"@nx/devkit": "npm:^19.8.2"
126-
"@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0"
126+
"@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0"
127127
"@yarnpkg/types": "npm:^4.0.0"
128128
at-rule-packer: "npm:^0.4.2"
129129
autoprefixer: "npm:^10.4.21"
@@ -5528,7 +5528,7 @@ __metadata:
55285528
"@adobe/spectrum-tokens": "npm:^13.3.0"
55295529
"@adobe/token-diff-generator": "npm:^1.3.0"
55305530
"@nxkit/style-dictionary": "npm:^6.0.0"
5531-
"@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0"
5531+
"@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0"
55325532
postcss: "npm:^8.5.3"
55335533
postcss-sorting: "npm:^9.1.0"
55345534
style-dictionary: "npm:^3.9.2"
@@ -5671,7 +5671,7 @@ __metadata:
56715671
languageName: unknown
56725672
linkType: soft
56735673

5674-
"@spectrum-tools/postcss-rgb-mapping@npm:1.0.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping":
5674+
"@spectrum-tools/postcss-rgb-mapping@npm:1.1.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping":
56755675
version: 0.0.0-use.local
56765676
resolution: "@spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping"
56775677
dependencies:

0 commit comments

Comments
 (0)