File tree Expand file tree Collapse file tree 2 files changed +2328
-2325
lines changed Expand file tree Collapse file tree 2 files changed +2328
-2325
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ const {
24
24
} = utils ;
25
25
import StyleDictionary from 'style-dictionary' ;
26
26
27
- // Set the prefix for variables and classes
28
- setPrefixValue ( 'token' ) ;
29
-
30
27
// Register a custom file header
31
28
StyleDictionary . registerFileHeader ( {
32
29
name : 'custom-header' ,
@@ -41,6 +38,9 @@ StyleDictionary.registerFormat({
41
38
format : function ( { dictionary } ) { // Use 'format' for Style Dictionary v3
42
39
console . log ( 'Generating SCSS variables...' ) ;
43
40
41
+ // Set the prefix for variables
42
+ setPrefixValue ( 'token' ) ;
43
+
44
44
const primitiveProperties = dictionary . allTokens . filter ( ( prop ) => prop . path [ 0 ] === 'primitives' ) ;
45
45
const scaleProperties = dictionary . allTokens . filter ( ( prop ) => prop . path [ 0 ] === 'scale' ) ;
46
46
const borderProperties = dictionary . allTokens . filter ( ( prop ) => prop . path [ 0 ] === 'border' ) ;
@@ -94,6 +94,9 @@ StyleDictionary.registerFormat({
94
94
format : function ( { dictionary } ) { // Use 'format' for Style Dictionary v3
95
95
console . log ( 'Generating Utility-Classes...' ) ;
96
96
97
+ // Set the prefix for classes
98
+ setPrefixValue ( 'ion' ) ;
99
+
97
100
// Arrays to store specific utility classes
98
101
const typographyUtilityClasses = [ ] ;
99
102
const otherUtilityClasses = [ ] ;
You can’t perform that action at this time.
0 commit comments