Skip to content

Commit 048399e

Browse files
chore: release (#3673)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 287cff8 commit 048399e

File tree

6 files changed

+35
-32
lines changed

6 files changed

+35
-32
lines changed

.changeset/curly-jokes-design.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@nx/devkit": "^19.8.2",
7575
"@spectrum-tools/postcss-add-theming-layer": "1.0.2",
7676
"@spectrum-tools/postcss-property-rollup": "0.0.1",
77-
"@spectrum-tools/postcss-rgb-mapping": "1.0.0",
77+
"@spectrum-tools/postcss-rgb-mapping": "1.1.0",
7878
"@yarnpkg/types": "^4.0.0",
7979
"at-rule-packer": "^0.4.2",
8080
"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": "0.0.0-s2-foundations-20241121221506",
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
@@ -126,7 +126,7 @@ __metadata:
126126
"@nx/devkit": "npm:^19.8.2"
127127
"@spectrum-tools/postcss-add-theming-layer": "npm:1.0.2"
128128
"@spectrum-tools/postcss-property-rollup": "npm:0.0.1"
129-
"@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0"
129+
"@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0"
130130
"@yarnpkg/types": "npm:^4.0.0"
131131
at-rule-packer: "npm:^0.4.2"
132132
autoprefixer: "npm:^10.4.21"
@@ -5496,7 +5496,7 @@ __metadata:
54965496
"@adobe/spectrum-tokens": "npm:0.0.0-s2-foundations-20241121221506"
54975497
"@adobe/token-diff-generator": "npm:^1.3.0"
54985498
"@nxkit/style-dictionary": "npm:^6.0.0"
5499-
"@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0"
5499+
"@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0"
55005500
postcss: "npm:^8.5.3"
55015501
postcss-sorting: "npm:^9.1.0"
55025502
style-dictionary: "npm:^3.9.2"
@@ -5666,7 +5666,7 @@ __metadata:
56665666
languageName: unknown
56675667
linkType: soft
56685668

5669-
"@spectrum-tools/postcss-rgb-mapping@npm:1.0.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping":
5669+
"@spectrum-tools/postcss-rgb-mapping@npm:1.1.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping":
56705670
version: 0.0.0-use.local
56715671
resolution: "@spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping"
56725672
dependencies:

0 commit comments

Comments
 (0)