Skip to content

Commit

Permalink
fix: remove redundant shadow types map (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema authored Jul 29, 2024
1 parent 0494270 commit 3a044ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-trainers-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tokens-studio/sd-transforms': patch
---

Remove the boxShadow expandTypesMap, this is no longer needed since SD 4.0.1 as it runs user defined preprocessors before expanding tokens.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,4 @@ export const expandTypesMap = {
// same as lineHeight except for fontWeight: recognized fontWeight keys (e.g. "regular") should be recognized as well as numbers
fontWeight: 'fontWeight',
},
/**
* boxShadow/x/y are not shadow/offsetX/offsetY here because the SD expand on global level
* happens before these types are aligned in sd-transforms preprocessor
*/
boxShadow: {
x: 'dimension',
y: 'dimension',
blur: 'dimension',
spread: 'dimension',
},
};

0 comments on commit 3a044ed

Please sign in to comment.