Skip to content

Commit

Permalink
chore: release (prerelease) (#1190)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed May 14, 2024
1 parent 4225d78 commit a140902
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"curvy-geckos-exist",
"eight-items-cheat",
"famous-falcons-join",
"famous-suns-rule",
"fifty-dragons-heal",
"fifty-hats-study",
"five-crews-hear",
Expand Down Expand Up @@ -46,6 +47,7 @@
"pretty-clocks-guess",
"rich-pianos-walk",
"rotten-shirts-fail",
"rude-falcons-dream",
"seven-candles-smile",
"short-jokes-sleep",
"shy-nails-ring",
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 4.0.0-prerelease.28

### Minor Changes

- 4225d78: Added the following transforms for CSS, and added them to the `scss`, `css` and `less` transformGroups:

- `fontFamily/css` -> wraps font names with spaces in `'` quotes
- `cubicBezier/css` -> array value, put inside `cubic-bezier()` CSS function
- `strokeStyle/css/shorthand` -> object value, transform to CSS shorthand
- `border/css/shorthand` -> object value, transform to CSS shorthand
- `typography/css/shorthand` -> object value, transform to CSS shorthand
- `transition/css/shorthand` -> object value, transform to CSS shorthand
- `shadow/css/shorthand` -> object value (or array of objects), transform to CSS shorthand

The main intention here is to ensure that Style Dictionary is compliant with [DTCG draft specification](https://design-tokens.github.io/community-group/format/) out of the box with regards to exporting to CSS, where object-value tokens are not supported without transforming them to shorthands (or expanding them, which is a different feature that was added in `4.0.0-prerelease.27`).

### Patch Changes

- a5bafac: Colors that are not recognized by tinycolor2 as valid color formats (e.g. `linear-gradient(...)`) are now ignored by the builtin color transforms filter functions.

## 4.0.0-prerelease.27

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "style-dictionary",
"version": "4.0.0-prerelease.27",
"version": "4.0.0-prerelease.28",
"description": "Style once, use everywhere. A build system for creating cross-platform styles.",
"keywords": [
"style dictionary",
Expand Down

0 comments on commit a140902

Please sign in to comment.