Skip to content

chore: release #3673

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
merged 1 commit into from
Apr 16, 2025
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
26 changes: 0 additions & 26 deletions .changeset/curly-jokes-design.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@nx/devkit": "^19.8.2",
"@spectrum-tools/postcss-add-theming-layer": "1.0.2",
"@spectrum-tools/postcss-property-rollup": "0.0.1",
"@spectrum-tools/postcss-rgb-mapping": "1.0.0",
"@spectrum-tools/postcss-rgb-mapping": "1.1.0",
"@yarnpkg/types": "^4.0.0",
"at-rule-packer": "^0.4.2",
"autoprefixer": "^10.4.21",
Expand Down
29 changes: 29 additions & 0 deletions plugins/postcss-rgb-mapping/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Change Log

## 1.1.0

### Minor Changes

- [#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.

When a custom properties below is defined as another, specifically "transparent," variable, such as:

```css
--disabled-static-white-background-color: var(
--spectrum-transparent-white-100
);
```

...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.

```css
--disabled-static-white-background-color-rgb: var(
--spectrum-transparent-white-100-rgb
);
--disabled-static-white-background-color-opacity: var(
--spectrum-transparent-white-100-opacity
);
--disabled-static-white-background-color: rgba(
var(--disabled-static-white-background-color-rgb),
var(--disabled-static-white-background-color-opacity)
);
```

## 1.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-rgb-mapping/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-tools/postcss-rgb-mapping",
"version": "1.0.0",
"version": "1.1.0",
"description": "Remaps rgb(a) values to an rgb postfixed variable",
"license": "Apache-2.0",
"author": "Adobe",
Expand Down
2 changes: 1 addition & 1 deletion tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@adobe/spectrum-tokens": "0.0.0-s2-foundations-20241121221506",
"@adobe/token-diff-generator": "^1.3.0",
"@nxkit/style-dictionary": "^6.0.0",
"@spectrum-tools/postcss-rgb-mapping": "1.0.0",
"@spectrum-tools/postcss-rgb-mapping": "1.1.0",
"postcss": "^8.5.3",
"postcss-sorting": "^9.1.0",
"style-dictionary": "^3.9.2",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ __metadata:
"@nx/devkit": "npm:^19.8.2"
"@spectrum-tools/postcss-add-theming-layer": "npm:1.0.2"
"@spectrum-tools/postcss-property-rollup": "npm:0.0.1"
"@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0"
"@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0"
"@yarnpkg/types": "npm:^4.0.0"
at-rule-packer: "npm:^0.4.2"
autoprefixer: "npm:^10.4.21"
Expand Down Expand Up @@ -5496,7 +5496,7 @@ __metadata:
"@adobe/spectrum-tokens": "npm:0.0.0-s2-foundations-20241121221506"
"@adobe/token-diff-generator": "npm:^1.3.0"
"@nxkit/style-dictionary": "npm:^6.0.0"
"@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0"
"@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0"
postcss: "npm:^8.5.3"
postcss-sorting: "npm:^9.1.0"
style-dictionary: "npm:^3.9.2"
Expand Down Expand Up @@ -5666,7 +5666,7 @@ __metadata:
languageName: unknown
linkType: soft

"@spectrum-tools/postcss-rgb-mapping@npm:1.0.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping":
"@spectrum-tools/postcss-rgb-mapping@npm:1.1.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping":
version: 0.0.0-use.local
resolution: "@spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping"
dependencies:
Expand Down
Loading