Skip to content

Commit 1f907f0

Browse files
committed
style dictionary utility reorganization
Moved the refactored SD utilities to style-dictionary/plugins to match project structure. Updated paths in SD config to import from new location. Updated sizing.json to pick up --select-border-width-error: 2px and regened tokens.
1 parent a5f4ca4 commit 1f907f0

9 files changed

Lines changed: 18 additions & 6 deletions

File tree

packages/cfpb-design-system/src/elements/abstracts/sizing.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
--font-adjust-base: 0.517;
77
--font-adjust-step: 0.0054;
88
--select-border-width-default: 1px;
9+
--select-border-width-error: 2px;
910
}

packages/cfpb-design-system/src/tokens/abstracts/sizing.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
],
1212
"com.figma.isOverride": true
1313
}
14+
},
15+
"select-border-width-error": {
16+
"$type": "number",
17+
"$value": 2,
18+
"$extensions": {
19+
"com.figma.variableId": "VariableID:9358:2",
20+
"com.figma.scopes": [
21+
"ALL_SCOPES"
22+
],
23+
"com.figma.isOverride": true
24+
}
1425
}
1526
},
1627
"unitless": {

style-dictionary.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ import {
99
logWarningLevels,
1010
} from 'style-dictionary/enums';
1111
import path from 'path';
12-
import { toAbsPosix, toKebab, toPosix } from './style-dictionary-utilities/path-utils.js';
13-
import { buildFilesAndFilters } from './style-dictionary-utilities/file-discovery.js';
12+
import { toAbsPosix, toKebab, toPosix } from './style-dictionary/plugins/path-utils.js';
13+
import { buildFilesAndFilters } from './style-dictionary/plugins/file-discovery.js';
1414
import {
1515
colorRgbaV4Transform,
1616
colorWarnNormalizeTransform,
1717
getAliasInfo,
1818
warn,
19-
} from './style-dictionary-utilities/color.js';
19+
} from './style-dictionary/plugins/color.js';
2020
import {
2121
intentLeafNameTransform,
2222
intentUnitByPathTransform,
2323
numberRoundTransform,
24-
} from './style-dictionary-utilities/sizing.js';
25-
import { createCssVariablesNoSpaceCommasFormat } from './style-dictionary-utilities/css-variables-no-space-commas.js';
26-
import { createPlatforms } from './style-dictionary-utilities/platforms.js';
24+
} from './style-dictionary/plugins/sizing.js';
25+
import { createCssVariablesNoSpaceCommasFormat } from './style-dictionary/plugins/css-variables-no-space-commas.js';
26+
import { createPlatforms } from './style-dictionary/plugins/platforms.js';
2727

2828
const baseDir = 'packages/cfpb-design-system/src';
2929
const tokenBase = path.resolve(baseDir, 'tokens');

style-dictionary-utilities/css-variables-no-space-commas.js renamed to style-dictionary/plugins/css-variables-no-space-commas.js

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)