Skip to content

Commit

Permalink
ci: update token-studio/sd-tranforms to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-Skinner committed Sep 16, 2024
1 parent 1e79d8e commit ab2d240
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
2 changes: 1 addition & 1 deletion libs/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@storybook/addon-links": "^7.3.2",
"@storybook/web-components": "^7.3.2",
"@storybook/web-components-vite": "^7.3.2",
"@tokens-studio/sd-transforms": "^0.15.2",
"@tokens-studio/sd-transforms": "^1.2.3",
"@types/jest": "^29.5.11",
"@types/sortablejs": "^1.15.1",
"@typescript-eslint/eslint-plugin": "^6.6.0",
Expand Down
5 changes: 3 additions & 2 deletions libs/core/scripts/sd-transforms.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { registerTransforms } from '@tokens-studio/sd-transforms';
import { register } from '@tokens-studio/sd-transforms';
import fs from 'fs-extra';
import StyleDictionary from 'style-dictionary';

registerTransforms(StyleDictionary);
register(StyleDictionary);

const basePath = `src/global/styles/tokens`;

Expand All @@ -20,6 +20,7 @@ const getTokenSetNamesFromFolders = (path) => {
const getConfig = (sets) => {
return {
source: sets.map(tokenSet => `${basePath}/${tokenSet}/${tokenSet}.json`),
preprocessors: ['tokens-studio'],
platforms: {
css: {
transformGroup: 'tokens-studio',
Expand Down
6 changes: 3 additions & 3 deletions libs/core/src/global/styles/tokens/core/_core.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--pine-border-radius-0: 0;
--pine-border-radius-0: 0rem;
--pine-border-radius-100: 8px;
--pine-border-radius-125: 10px;
--pine-border-radius-150: 12px;
Expand All @@ -12,7 +12,7 @@
--pine-border-radius-050: 4px;
--pine-border-radius-075: 6px;
--pine-border-radius-round: 9999px;
--pine-border-width-none: 0;
--pine-border-width-none: 0rem;
--pine-border-width-thin: 1px;
--pine-border-width-thick: 2px;
--pine-box-shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.06), 0 1px 3px 0 rgba(0,0,0,0.1);
Expand Down Expand Up @@ -103,7 +103,7 @@
--pine-line-height-025: 0.625;
--pine-line-height-050: 0.78125;
--pine-line-height-075: 0.9375;
--pine-spacing-0: 0;
--pine-spacing-0: 0rem;
--pine-spacing-100: 8px;
--pine-spacing-150: 12px;
--pine-spacing-200: 16px;
Expand Down
46 changes: 25 additions & 21 deletions package-lock.json

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

0 comments on commit ab2d240

Please sign in to comment.