Skip to content

Commit 3a044ed

Browse files
fix: remove redundant shadow types map (#299)
1 parent 0494270 commit 3a044ed

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.changeset/tidy-trainers-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tokens-studio/sd-transforms': patch
3+
---
4+
5+
Remove the boxShadow expandTypesMap, this is no longer needed since SD 4.0.1 as it runs user defined preprocessors before expanding tokens.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,4 @@ export const expandTypesMap = {
3636
// same as lineHeight except for fontWeight: recognized fontWeight keys (e.g. "regular") should be recognized as well as numbers
3737
fontWeight: 'fontWeight',
3838
},
39-
/**
40-
* boxShadow/x/y are not shadow/offsetX/offsetY here because the SD expand on global level
41-
* happens before these types are aligned in sd-transforms preprocessor
42-
*/
43-
boxShadow: {
44-
x: 'dimension',
45-
y: 'dimension',
46-
blur: 'dimension',
47-
spread: 'dimension',
48-
},
4939
};

0 commit comments

Comments
 (0)