You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: adds support to parse "transparent" token references (#3452)
* feat(tokens): add transparent token handling
* adds transparent mapping into rgb-mapping plugin
- custom properties that reference transparent tokens will now be mapped
to their corresponding transparent rgb/opacity tokens
- extends the work that the rgb-mapping plugin already does
* test: add plugin test cases
* chore(plugins/postcss-rgb-mapping): update README.md
* chore: add changeset
* chore: release (#3673)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix(tokens): support style-dictionary build in windows env (#2500)
---------
Co-authored-by: Marissa Huysentruyt <69602589+marissahuysentruyt@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: plugins/postcss-rgb-mapping/CHANGELOG.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,34 @@
1
1
# Change Log
2
2
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.
0 commit comments