@sps-woodland/tokens 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +128 -0
  2. package/config/config.js +89 -0
  3. package/config/config.js.map +1 -0
  4. package/config/formats/fontFace.js +73 -0
  5. package/config/formats/fontFace.js.map +1 -0
  6. package/config/formats/jsSimpleObject.js +59 -0
  7. package/config/formats/jsSimpleObject.js.map +1 -0
  8. package/config/formats/utility-class-builders/color.js +25 -0
  9. package/config/formats/utility-class-builders/color.js.map +1 -0
  10. package/config/formats/utility-class-builders/grid.js +31 -0
  11. package/config/formats/utility-class-builders/grid.js.map +1 -0
  12. package/config/formats/utility-class-builders/icon.js +26 -0
  13. package/config/formats/utility-class-builders/icon.js.map +1 -0
  14. package/config/formats/utility-class-builders/iconSize.js +15 -0
  15. package/config/formats/utility-class-builders/iconSize.js.map +1 -0
  16. package/config/formats/utility-class-builders/spacing.js +44 -0
  17. package/config/formats/utility-class-builders/spacing.js.map +1 -0
  18. package/config/formats/utility-class-builders/typeSize.js +30 -0
  19. package/config/formats/utility-class-builders/typeSize.js.map +1 -0
  20. package/config/formats/utility-class-builders/typeWeight.js +15 -0
  21. package/config/formats/utility-class-builders/typeWeight.js.map +1 -0
  22. package/config/formats/utilityClasses.js +91 -0
  23. package/config/formats/utilityClasses.js.map +1 -0
  24. package/config/formats/utils.js +19 -0
  25. package/config/formats/utils.js.map +1 -0
  26. package/config/formats/vanillaExtractSprinkleValues.js +86 -0
  27. package/config/formats/vanillaExtractSprinkleValues.js.map +1 -0
  28. package/config/transforms/attrFont.js +23 -0
  29. package/config/transforms/attrFont.js.map +1 -0
  30. package/config/transforms/attrGridColumns.js +20 -0
  31. package/config/transforms/attrGridColumns.js.map +1 -0
  32. package/config-src/config.js.map +1 -0
  33. package/config-src/config.ts +89 -0
  34. package/config-src/formats/fontFace.js.map +1 -0
  35. package/config-src/formats/fontFace.ts +68 -0
  36. package/config-src/formats/jsSimpleObject.js.map +1 -0
  37. package/config-src/formats/jsSimpleObject.ts +32 -0
  38. package/config-src/formats/utility-class-builders/UtilityClassBuilder.d.ts +7 -0
  39. package/config-src/formats/utility-class-builders/color.js.map +1 -0
  40. package/config-src/formats/utility-class-builders/color.ts +24 -0
  41. package/config-src/formats/utility-class-builders/grid.js.map +1 -0
  42. package/config-src/formats/utility-class-builders/grid.ts +30 -0
  43. package/config-src/formats/utility-class-builders/icon.js.map +1 -0
  44. package/config-src/formats/utility-class-builders/icon.ts +26 -0
  45. package/config-src/formats/utility-class-builders/iconSize.js.map +1 -0
  46. package/config-src/formats/utility-class-builders/iconSize.ts +13 -0
  47. package/config-src/formats/utility-class-builders/spacing.js.map +1 -0
  48. package/config-src/formats/utility-class-builders/spacing.ts +44 -0
  49. package/config-src/formats/utility-class-builders/typeSize.js.map +1 -0
  50. package/config-src/formats/utility-class-builders/typeSize.ts +30 -0
  51. package/config-src/formats/utility-class-builders/typeWeight.js.map +1 -0
  52. package/config-src/formats/utility-class-builders/typeWeight.ts +13 -0
  53. package/config-src/formats/utilityClasses.js.map +1 -0
  54. package/config-src/formats/utilityClasses.ts +77 -0
  55. package/config-src/formats/utils.js.map +1 -0
  56. package/config-src/formats/utils.ts +14 -0
  57. package/config-src/formats/vanillaExtractSprinkleValues.js.map +1 -0
  58. package/config-src/formats/vanillaExtractSprinkleValues.ts +73 -0
  59. package/config-src/transforms/attrFont.js.map +1 -0
  60. package/config-src/transforms/attrFont.ts +24 -0
  61. package/config-src/transforms/attrGridColumns.js.map +1 -0
  62. package/config-src/transforms/attrGridColumns.ts +15 -0
  63. package/config-src/tsconfig.json +22 -0
  64. package/lib/css/tokens.css +668 -0
  65. package/lib/css/utils.css +1318 -0
  66. package/lib/dictionary.d.ts +33847 -0
  67. package/lib/font.css +102 -0
  68. package/lib/index.cjs.js +1 -0
  69. package/lib/index.d.ts +8 -0
  70. package/lib/index.es.js +1611 -0
  71. package/lib/scss/tokens.scss +665 -0
  72. package/lib/scss/utils.scss +1318 -0
  73. package/lib/tokens.d.ts +1389 -0
  74. package/lib/types.d.ts +5 -0
  75. package/lib/utils/pxToRem.d.ts +5 -0
  76. package/lib/utils/rem.d.ts +7 -0
  77. package/lib/utils/transparentEquivalentColor.d.ts +29 -0
  78. package/lib/vanilla-extract/border.css.d.ts +37 -0
  79. package/lib/vanilla-extract/grid.css.d.ts +15 -0
  80. package/lib/vanilla-extract/properties/border.css.d.ts +1397 -0
  81. package/lib/vanilla-extract/properties/color.css.d.ts +464 -0
  82. package/lib/vanilla-extract/properties/conditions.d.ts +27 -0
  83. package/lib/vanilla-extract/properties/grid.css.d.ts +55 -0
  84. package/lib/vanilla-extract/properties/margin.css.d.ts +321 -0
  85. package/lib/vanilla-extract/properties/padding.css.d.ts +321 -0
  86. package/lib/vanilla-extract/properties/type.css.d.ts +80 -0
  87. package/lib/vanilla-extract/sprinkleValues.d.ts +1114 -0
  88. package/lib/vanilla-extract/sprinkles.css.d.ts +5267 -0
  89. package/lib/vanilla-extract/style.css +1 -0
  90. package/package.json +37 -0
  91. package/src/dictionary.ts +46007 -0
  92. package/src/index.ts +8 -0
  93. package/src/tokens.ts +785 -0
  94. package/src/types.ts +6 -0
  95. package/src/utils/pxToRem.ts +7 -0
  96. package/src/utils/rem.ts +27 -0
  97. package/src/utils/transparentEquivalentColor.ts +42 -0
  98. package/src/vanilla-extract/border.css.ts +46 -0
  99. package/src/vanilla-extract/grid.css.ts +49 -0
  100. package/src/vanilla-extract/properties/border.css.ts +33 -0
  101. package/src/vanilla-extract/properties/color.css.ts +16 -0
  102. package/src/vanilla-extract/properties/conditions.ts +14 -0
  103. package/src/vanilla-extract/properties/grid.css.ts +13 -0
  104. package/src/vanilla-extract/properties/margin.css.ts +40 -0
  105. package/src/vanilla-extract/properties/padding.css.ts +40 -0
  106. package/src/vanilla-extract/properties/type.css.ts +17 -0
  107. package/src/vanilla-extract/sprinkleValues.ts +605 -0
  108. package/src/vanilla-extract/sprinkles.css.ts +19 -0
  109. package/tsconfig.json +13 -0
  110. package/vite.config.js +21 -0
package/README.md ADDED
@@ -0,0 +1,128 @@
1
+ # @sps-woodland/tokens
2
+
3
+ _SPS Woodland Design System design tokens_
4
+
5
+ 1. [What are design tokens?](#one-oh-one)
6
+ 1. [How this package works](#how-it-works)
7
+ 1. [Available Formats](#formats)
8
+ 1. [JavaScript/TypeScript](#formats--js-ts)
9
+ 1. [CSS](#formats--css)
10
+ 1. [vanilla-extract](#formats--vanilla-extract)
11
+ 1. [Sass](#formats--sass)
12
+
13
+ <a name="one-oh-one"></a>
14
+ ## What are design tokens?
15
+
16
+ Design tokens are the primitives of a design system. They are a record of design decisions - font sizes, spacing values, border radii, etc. - in a format that is both human and machine readable. They are the single source of truth from which consumable artifacts can be generated, such as CSS classes, palettes for design tools, or XML files for mobile app development.
17
+
18
+ <a name="how-it-works"></a>
19
+ ## How this package works
20
+
21
+ The token source files are located in the `src/tokens` directory. To generate consumables from them, we use a tool called [Style Dictionary](https://amzn.github.io/style-dictionary/), developed by Amazon. The Style Dictionary configuration is at the package root, `config.js`. Style Dictionary comes with a number of built-in formats that can be generated, and it's also easy to add your own. In `src/formats` you will find the custom formats we've created.
22
+
23
+ Style Dictionary also has a concept of "transforms" which apply to the token values. For example, you might want to define your colors using hex in the source files, but output hsla format in the generated consumables. Each format comes with a default group of transforms. In our case, we are modifying the transform groups we're using with a custom one treat size values in the source as pixels and convert that to rem in the output. (The default is to treat size tokens' values as rem and simply append `"rem"` to them for the output.)
24
+
25
+ Additionally, we have [vanilla-extract sprinkles](https://vanilla-extract.style/documentation/sprinkles-api/) where the file that defines them is not generated, but that file imports a file that is generated that contains the tokens in an object whose shape is tailored to what the sprinkle definitions need.
26
+
27
+ This means that the build process follows a series of stages in a particular order:
28
+
29
+ 1. Run `style-dictionary build` to generate files from the token source files. Non-TypeScript outputs go into `lib` which is excluded from git, TS outputs go into `src` and are committed.
30
+ 2. Run `vite build` to build the TypeScript exports provided by `src/index.ts` into `lib`.
31
+ 3. Run `tsc` with the flag to only emit declarations to generate `.d.ts` files in `lib` for consumers that are using TypeScript.
32
+
33
+ <a name="formats"></a>
34
+ ## Formats
35
+
36
+ <a name="formats--js-ts"></a>
37
+ ### JavaScript/TypeScript
38
+
39
+ For JS/TS code, we export a simple object of the token values, along with TypeScript typing for it.
40
+
41
+ ```typescript
42
+ import { tokens } from "@sps-woodland/tokens";
43
+
44
+ console.log(tokens.size.spacing.lg); // "2rem"
45
+ ```
46
+
47
+ <a name="formats--css"></a>
48
+ ### CSS
49
+
50
+ Two CSS files are provided: one that declares our tokens as [CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties), and one that defines utility classes to apply them. The utility classes are defined using the custom properties, so if you want to use those, you must include both files.
51
+
52
+ ```typescript
53
+ // in index.tsx or App.tsx for your application
54
+ import "@sps-woodland/tokens/lib/css/tokens.css";
55
+ import "@sps-woodland/tokens/lib/css/utils.css";
56
+ ```
57
+
58
+ ```css
59
+ /* usage in CSS */
60
+ .some-element {
61
+ color: var(--color-blue-medium);
62
+ }
63
+ ```
64
+
65
+ ```jsx
66
+ // usage in JSX
67
+ <div className="mt-sm type-body-md">...</div>
68
+ ```
69
+
70
+ #### Available utility classes
71
+
72
+ * Colors, as `.COLOR-VARIANT`, e.g. `.purple-dark` or `.grey-medium-light`
73
+ * Background colors, as `.bg-COLOR-VARIANT`, e.g. `.bg-blue-light`
74
+ * Bootstrap-esque margin and spacing classes, as `.PREFIX-SIZE`, where `PREFIX` is either `m` for margin or `p` for padding, optionally followed by `t`/`b`/`l`/`r` for top/bottom/left/right or `x`/`y` for x (left + right)/y (top + bottom). E.g.:
75
+ * `.my-sm` = margin y, small (small spacing for margin-top and margin-bottom)
76
+ * `.p-md` = padding medium (medium spacing for padding all the way around)
77
+ * `.ml-xs` = margin left, extra small
78
+ * Font weights (`.fw-normal` and `.fw-bold`)
79
+ * Typography font size + line height combinations, e.g. `.type-body-md` for medium body type, `.type-title-lg` for large title type, etc.
80
+ * Font sizes and line heights individually, e.g. `.fs-body-sm` for the small body font size, `.lh-title-sm` for the small title line height, etc.
81
+
82
+ <a name="formats--vanilla-extract"></a>
83
+ ### vanilla-extract
84
+
85
+ The tool of the future for UI styles at SPS is [vanilla-extract](https://vanilla-extract.style/), and as such we are providing our design tokens as [sprinkles](https://vanilla-extract.style/documentation/sprinkles-api/).
86
+
87
+ For these to work you will need to import the CSS file that goes along with them in your index or main App component:
88
+
89
+ ```typescript
90
+ import "@sps-woodland/tokens/lib/vanilla-extract/style.css";
91
+ ```
92
+
93
+ Then, in your `.css.ts` files, you can import our sprinkles and use them per the sprinkles documentation linked above.
94
+
95
+ ```typescript
96
+ import { style } from "@vanilla-extract/css";
97
+ import { sprinkles, rem } from "@sps-woodland/tokens";
98
+
99
+ export const fooClass = sprinkles({
100
+ color: "blue-medium",
101
+ marginTop: "md",
102
+ });
103
+
104
+ // or with additional custom styles - again, see the vanilla-extract docs
105
+ export const barClass = style([
106
+ sprinkles({
107
+ color: "red-dark",
108
+ type: "title-xl",
109
+ }),
110
+ /* We also export this utility function for your custom style
111
+ * definitions in vanilla-extract. It will find all the pixel values
112
+ * within and convert them to rem. */
113
+ rem({
114
+ maxWidth: "200px",
115
+ }),
116
+ ]);
117
+ ```
118
+
119
+ <a name="formats--sass"></a>
120
+ ### Sass
121
+
122
+ The consumables for Sass are essentially the same as for CSS. There is a file of Sass variables for our tokens and a file of utility classes defined using those variables.
123
+
124
+ ```scss
125
+ // in your root scss file
126
+ @import "@sps-woodland/tokens/lib/scss/tokens";
127
+ @import "@sps-woodland/tokens/lib/scss/utils";
128
+ ```
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ /* eslint-env node */
7
+ /* eslint-disable import/no-import-module-exports */
8
+ /* eslint-disable import/no-commonjs */
9
+ const style_dictionary_1 = __importDefault(require("style-dictionary"));
10
+ const dotenv_1 = require("dotenv");
11
+ require("./formats/fontFace");
12
+ require("./formats/jsSimpleObject");
13
+ require("./formats/utilityClasses");
14
+ require("./formats/vanillaExtractSprinkleValues");
15
+ require("./transforms/attrFont");
16
+ require("./transforms/attrGridColumns");
17
+ (0, dotenv_1.config)({ path: "../../../.env" });
18
+ function configureTransforms(sdConfig) {
19
+ for (const platform of Object.values(sdConfig.platforms)) {
20
+ platform.transforms = [
21
+ ...platform.transforms.filter((transform) => transform !== "size/rem"),
22
+ "size/pxToRem",
23
+ "attribute/grid-columns",
24
+ "attribute/font",
25
+ ];
26
+ }
27
+ return sdConfig;
28
+ }
29
+ module.exports = configureTransforms({
30
+ source: ["./src/tokens/**/*.json"],
31
+ platforms: {
32
+ "css-fonts": {
33
+ buildPath: "lib/",
34
+ files: [
35
+ {
36
+ format: "font-face",
37
+ destination: "font.css",
38
+ },
39
+ ],
40
+ transforms: style_dictionary_1.default.transformGroup.css,
41
+ },
42
+ css: {
43
+ buildPath: "lib/css/",
44
+ files: [
45
+ {
46
+ format: "css/variables",
47
+ destination: "tokens.css",
48
+ },
49
+ {
50
+ format: "css/utility-classes",
51
+ destination: "utils.css",
52
+ },
53
+ ],
54
+ transforms: style_dictionary_1.default.transformGroup.css,
55
+ },
56
+ scss: {
57
+ buildPath: "lib/scss/",
58
+ files: [
59
+ {
60
+ format: "scss/variables",
61
+ destination: "tokens.scss",
62
+ },
63
+ {
64
+ format: "scss/utility-classes",
65
+ destination: "utils.scss",
66
+ },
67
+ ],
68
+ transforms: style_dictionary_1.default.transformGroup.scss,
69
+ },
70
+ ts: {
71
+ files: [
72
+ {
73
+ format: "javascript/detailed-object",
74
+ destination: "src/dictionary.ts",
75
+ },
76
+ {
77
+ format: "javascript/simple-object",
78
+ destination: "src/tokens.ts",
79
+ },
80
+ {
81
+ format: "vanilla-extract/sprinkle-values",
82
+ destination: "src/vanilla-extract/sprinkleValues.ts",
83
+ },
84
+ ],
85
+ transforms: style_dictionary_1.default.transformGroup.js,
86
+ },
87
+ },
88
+ });
89
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../config-src/config.ts"],"names":[],"mappings":";;;;;AAAA,qBAAqB;AACrB,oDAAoD;AACpD,uCAAuC;AACvC,wEAA+C;AAE/C,mCAAgC;AAEhC,8BAA4B;AAC5B,oCAAkC;AAClC,oCAAkC;AAClC,kDAAgD;AAEhD,iCAA+B;AAC/B,wCAAsC;AAEtC,IAAA,eAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;AAElC,SAAS,mBAAmB,CAAC,QAAgB;IAC3C,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACxD,QAAQ,CAAC,UAAU,GAAG;YACpB,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,UAAU,CAAC;YACtE,cAAc;YACd,wBAAwB;YACxB,gBAAgB;SACjB,CAAC;KACH;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,mBAAmB,CAAC;IACnC,MAAM,EAAE,CAAC,wBAAwB,CAAC;IAClC,SAAS,EAAE;QACT,WAAW,EAAE;YACX,SAAS,EAAE,MAAM;YACjB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,WAAW;oBACnB,WAAW,EAAE,UAAU;iBACxB;aACF;YACD,UAAU,EAAE,0BAAe,CAAC,cAAc,CAAC,GAAG;SAC/C;QACD,GAAG,EAAE;YACH,SAAS,EAAE,UAAU;YACrB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,eAAe;oBACvB,WAAW,EAAE,YAAY;iBAC1B;gBACD;oBACE,MAAM,EAAE,qBAAqB;oBAC7B,WAAW,EAAE,WAAW;iBACzB;aACF;YACD,UAAU,EAAE,0BAAe,CAAC,cAAc,CAAC,GAAG;SAC/C;QACD,IAAI,EAAE;YACJ,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,gBAAgB;oBACxB,WAAW,EAAE,aAAa;iBAC3B;gBACD;oBACE,MAAM,EAAE,sBAAsB;oBAC9B,WAAW,EAAE,YAAY;iBAC1B;aACF;YACD,UAAU,EAAE,0BAAe,CAAC,cAAc,CAAC,IAAI;SAChD;QACD,EAAE,EAAE;YACF,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,4BAA4B;oBACpC,WAAW,EAAE,mBAAmB;iBACjC;gBACD;oBACE,MAAM,EAAE,0BAA0B;oBAClC,WAAW,EAAE,eAAe;iBAC7B;gBACD;oBACE,MAAM,EAAE,iCAAiC;oBACzC,WAAW,EAAE,uCAAuC;iBACrD;aACF;YACD,UAAU,EAAE,0BAAe,CAAC,cAAc,CAAC,EAAE;SAC9C;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ /* eslint-env node */
30
+ const style_dictionary_1 = __importDefault(require("style-dictionary"));
31
+ const prettier = __importStar(require("prettier"));
32
+ const utils_1 = require("./utils");
33
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src
34
+ const MAP_EXT_TO_FORMAT_NAME = {
35
+ woff2: "woff2",
36
+ woff: "woff",
37
+ ttf: "truetype",
38
+ otf: "opentype",
39
+ svg: "svg",
40
+ eot: "embedded-opentype",
41
+ };
42
+ function tokenIsFontAssetToken(token) {
43
+ return token.attributes.category === "asset" && token.attributes.type === "font";
44
+ }
45
+ style_dictionary_1.default.registerFormat({
46
+ name: "font-face",
47
+ formatter: ({ dictionary: { allTokens }, file }) => {
48
+ const fontFaceRules = allTokens
49
+ .filter(tokenIsFontAssetToken)
50
+ .map((token) => {
51
+ const { attributes: { family, weight, style }, formats, value: path, } = token;
52
+ const urls = formats.map((extension) => (0, utils_1.trim)(`
53
+ url("${process.env.ASSETS_BASE_PATH}/${path}.${extension}") format("${MAP_EXT_TO_FORMAT_NAME[extension]}")
54
+ `)).join(",");
55
+ return (0, utils_1.trim)(`
56
+ @font-face {
57
+ font-family: "${family}";
58
+ font-style: ${style};
59
+ font-weight: ${weight};
60
+ src: ${urls};
61
+ font-display: fallback;
62
+ }
63
+ `);
64
+ })
65
+ .join("\n");
66
+ return prettier.format(`
67
+ ${style_dictionary_1.default.formatHelpers.fileHeader({ file })}
68
+ ${fontFaceRules}
69
+ * { font-family: "Source Sans Pro", sans-serif; }
70
+ `, { parser: "css" });
71
+ },
72
+ });
73
+ //# sourceMappingURL=fontFace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fontFace.js","sourceRoot":"","sources":["../../config-src/formats/fontFace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,wEAA+C;AAE/C,mDAAqC;AACrC,mCAA+B;AAE/B,kEAAkE;AAClE,MAAM,sBAAsB,GAAG;IAC7B,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,mBAAmB;CACzB,CAAC;AAaF,SAAS,qBAAqB,CAAC,KAAuB;IACpD,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,MAAM,CAAC;AACnF,CAAC;AAED,0BAAe,CAAC,cAAc,CAAC;IAC7B,IAAI,EAAE,WAAW;IACjB,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACjD,MAAM,aAAa,GAAG,SAAS;aAC5B,MAAM,CAAC,qBAAqB,CAAC;aAC7B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACb,MAAM,EACJ,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EACrC,OAAO,EACP,KAAK,EAAE,IAAI,GACZ,GAAG,KAAK,CAAC;YAEV,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CACtB,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,YAAI,EAAC;mBACX,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,IAAI,IAAI,SAAS,cAAc,sBAAsB,CAAC,SAAS,CAAC;WACxG,CAAC,CACH,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAEZ,OAAO,IAAA,YAAI,EAAC;;4BAEQ,MAAM;0BACR,KAAK;2BACJ,MAAM;mBACd,IAAI;;;SAGd,CAAC,CAAC;QACL,CAAC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,OAAO,QAAQ,CAAC,MAAM,CAAC;QACnB,0BAAe,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;QAClD,aAAa;;KAEhB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACxB,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const style_dictionary_1 = __importDefault(require("style-dictionary"));
30
+ const prettier = __importStar(require("prettier"));
31
+ const utils_1 = require("./utils");
32
+ style_dictionary_1.default.registerFormat({
33
+ name: "javascript/simple-object",
34
+ formatter({ dictionary }) {
35
+ const tokens = (0, utils_1.simplifyTokens)(dictionary.tokens);
36
+ return prettier.format(`
37
+ /* eslint-disable */
38
+ /**
39
+ * GENERATED
40
+ * Do not edit directly
41
+ */
42
+ export const Tokens = Object.freeze(${JSON.stringify(tokens, null, 0)});
43
+ `, { parser: "typescript" });
44
+ },
45
+ });
46
+ style_dictionary_1.default.registerFormat({
47
+ name: "javascript/detailed-object",
48
+ formatter({ dictionary }) {
49
+ return prettier.format(`
50
+ /* eslint-disable */
51
+ /**
52
+ * GENERATED
53
+ * Do not edit directly
54
+ */
55
+ export const dictionary = Object.freeze(${JSON.stringify(dictionary, null, 0)});
56
+ `, { parser: "typescript" });
57
+ },
58
+ });
59
+ //# sourceMappingURL=jsSimpleObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsSimpleObject.js","sourceRoot":"","sources":["../../config-src/formats/jsSimpleObject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wEAA+C;AAC/C,mDAAqC;AACrC,mCAAyC;AAEzC,0BAAe,CAAC,cAAc,CAAC;IAC7B,IAAI,EAAE,0BAA0B;IAChC,SAAS,CAAC,EAAE,UAAU,EAAE;QACtB,MAAM,MAAM,GAAG,IAAA,sBAAc,EAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC,MAAM,CAAC;;;;;;4CAMiB,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;KACtE,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/B,CAAC;CACF,CAAC,CAAC;AAEH,0BAAe,CAAC,cAAc,CAAC;IAC7B,IAAI,EAAE,4BAA4B;IAClC,SAAS,CAAC,EAAE,UAAU,EAAE;QACtB,OAAO,QAAQ,CAAC,MAAM,CAAC;;;;;;gDAMqB,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;KAC9E,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/B,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.colorClasses = void 0;
4
+ exports.colorClasses = {
5
+ appliesTo: (token) => token.attributes.category === "color",
6
+ build(token, dictionary) {
7
+ const { type: tType, item: tItem } = token.attributes;
8
+ const hyphenate = tItem ? `-${tItem}` : "";
9
+ const colorName = `${tType}${hyphenate}`;
10
+ return `
11
+ .${colorName} {
12
+ color: ${token.variableReference} !important;
13
+ }
14
+ .bg-${colorName} {
15
+ background-color: ${token.variableReference} !important;
16
+ }
17
+ .border-${colorName} {
18
+ border-color: ${token.variableReference} !important;
19
+ border-style: solid;
20
+ border-width: ${dictionary.tokens.size.border.width.standard.variableReference};
21
+ }
22
+ `;
23
+ },
24
+ };
25
+ //# sourceMappingURL=color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.js","sourceRoot":"","sources":["../../../config-src/formats/utility-class-builders/color.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAwB;IAC/C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,OAAO;IAC3D,KAAK,CAAC,KAAK,EAAE,UAAU;QACrB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC;QACtD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,MAAM,SAAS,GAAG,GAAG,KAAK,GAAG,SAAS,EAAE,CAAC;QAEzC,OAAO;SACF,SAAS;iBACD,KAAK,CAAC,iBAAiB;;YAE5B,SAAS;4BACO,KAAK,CAAC,iBAAiB;;gBAEnC,SAAS;wBACD,KAAK,CAAC,iBAAiB;;wBAEvB,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,iBAAiB;;KAEjF,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.gridClasses = void 0;
4
+ exports.gridClasses = {
5
+ appliesTo: (token) => token.attributes.category === "grid"
6
+ && token.attributes.type === "columns",
7
+ build(token, dictionary) {
8
+ /*
9
+ * this custom attribute is added for this token type only by the
10
+ * "grid/columns" custom transform defined in config.ts
11
+ */
12
+ const gridTemplateColumns = token.attributes.cssValue;
13
+ const gridColumnClasses = new Array(token.value)
14
+ .fill(null)
15
+ .map((_, index) => `
16
+ .grid-${index + 1} {
17
+ grid-column: span ${index + 1} !important;
18
+ }
19
+ `)
20
+ .join("\n");
21
+ return `
22
+ .grid-root {
23
+ display: grid !important;
24
+ grid-template-columns: ${gridTemplateColumns} !important;
25
+ gap: ${dictionary.tokens.size.grid.gutter.variableReference} !important;
26
+ }
27
+ ${gridColumnClasses}
28
+ `;
29
+ },
30
+ };
31
+ //# sourceMappingURL=grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.js","sourceRoot":"","sources":["../../../config-src/formats/utility-class-builders/grid.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAwB;IAC9C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,MAAM;WACrD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,SAAS;IACxC,KAAK,CAAC,KAAK,EAAE,UAAU;QACrB;;;WAGG;QACH,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;QACtD,MAAM,iBAAiB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;aAC7C,IAAI,CAAC,IAAI,CAAC;aACV,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBACT,KAAK,GAAG,CAAC;8BACK,KAAK,GAAG,CAAC;;OAEhC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,OAAO;;;iCAGsB,mBAAmB;eACrC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB;;QAE3D,iBAAiB;KACpB,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.iconClasses = void 0;
4
+ const utils_1 = require("../utils");
5
+ exports.iconClasses = {
6
+ appliesTo: (token) => token.attributes.category === "icon"
7
+ && token.attributes.item === "character",
8
+ build(token, dictionary) {
9
+ const className = `.icon-${token.attributes.type}`;
10
+ let colorRule = "";
11
+ const colorToken = dictionary.tokens.icon[token.attributes.type].color;
12
+ if (colorToken) {
13
+ colorRule = (0, utils_1.trim)(`
14
+ ${className} {
15
+ color: ${colorToken.variableReference} !important;
16
+ }
17
+ `);
18
+ }
19
+ return (0, utils_1.trim)(`${colorRule}
20
+ ${className}::before {
21
+ content: ${token.variableReference} !important;
22
+ }
23
+ `);
24
+ },
25
+ };
26
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../config-src/formats/utility-class-builders/icon.ts"],"names":[],"mappings":";;;AAAA,oCAAgC;AAGnB,QAAA,WAAW,GAAwB;IAC9C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,MAAM;WACrD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,WAAW;IAC1C,KAAK,CAAC,KAAK,EAAE,UAAU;QACrB,MAAM,SAAS,GAAG,SAAS,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QAEnD,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;QACvE,IAAI,UAAU,EAAE;YACd,SAAS,GAAG,IAAA,YAAI,EAAC;UACb,SAAS;mBACA,UAAU,CAAC,iBAAiB;;OAExC,CAAC,CAAC;SACJ;QAED,OAAO,IAAA,YAAI,EAAC,GAAG,SAAS;QACpB,SAAS;mBACE,KAAK,CAAC,iBAAiB;;KAErC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.iconSizeClasses = void 0;
4
+ exports.iconSizeClasses = {
5
+ appliesTo: (token) => token.attributes.category === "size"
6
+ && token.attributes.type === "icon",
7
+ build(token) {
8
+ return `
9
+ .icon_size-${token.attributes.item} {
10
+ font-size: ${token.variableReference} !important;
11
+ }
12
+ `;
13
+ },
14
+ };
15
+ //# sourceMappingURL=iconSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iconSize.js","sourceRoot":"","sources":["../../../config-src/formats/utility-class-builders/iconSize.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAwB;IAClD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,MAAM;WACrD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,MAAM;IACrC,KAAK,CAAC,KAAK;QACT,OAAO;mBACQ,KAAK,CAAC,UAAU,CAAC,IAAI;qBACnB,KAAK,CAAC,iBAAiB;;KAEvC,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.spacingClasses = void 0;
4
+ const utils_1 = require("../utils");
5
+ function buildClasses(item, value) {
6
+ return ["margin", "padding"].map((prop) => {
7
+ const p = prop.charAt(0);
8
+ return (0, utils_1.trim)(`
9
+ .${p}-${item} {
10
+ ${prop}: ${value} !important;
11
+ }
12
+ .${p}x-${item} {
13
+ ${prop}-left: ${value} !important;
14
+ ${prop}-right: ${value} !important;
15
+ }
16
+ .${p}y-${item} {
17
+ ${prop}-top: ${value} !important;
18
+ ${prop}-bottom: ${value} !important;
19
+ }
20
+ .${p}t-${item} {
21
+ ${prop}-top: ${value} !important;
22
+ }
23
+ .${p}r-${item} {
24
+ ${prop}-right: ${value} !important;
25
+ }
26
+ .${p}b-${item} {
27
+ ${prop}-bottom: ${value} !important;
28
+ }
29
+ .${p}l-${item} {
30
+ ${prop}-left: ${value} !important;
31
+ }
32
+ `);
33
+ }).join("\n");
34
+ }
35
+ exports.spacingClasses = {
36
+ appliesTo: (token) => token.attributes.category === "size"
37
+ && token.attributes.type === "spacing",
38
+ build(token) {
39
+ return buildClasses(token.attributes.item, token.variableReference);
40
+ },
41
+ staticClasses: [["none", "0"], ["auto", "auto"]]
42
+ .map(([item, value]) => buildClasses(item, value)).join("\n"),
43
+ };
44
+ //# sourceMappingURL=spacing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.js","sourceRoot":"","sources":["../../../config-src/formats/utility-class-builders/spacing.ts"],"names":[],"mappings":";;;AAAA,oCAAgC;AAGhC,SAAS,YAAY,CAAC,IAAY,EAAE,KAAa;IAC/C,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACzB,OAAO,IAAA,YAAI,EAAC;SACP,CAAC,IAAI,IAAI;UACR,IAAI,KAAK,KAAK;;SAEf,CAAC,KAAK,IAAI;UACT,IAAI,UAAU,KAAK;UACnB,IAAI,WAAW,KAAK;;SAErB,CAAC,KAAK,IAAI;UACT,IAAI,SAAS,KAAK;UAClB,IAAI,YAAY,KAAK;;SAEtB,CAAC,KAAK,IAAI;UACT,IAAI,SAAS,KAAK;;SAEnB,CAAC,KAAK,IAAI;UACT,IAAI,WAAW,KAAK;;SAErB,CAAC,KAAK,IAAI;UACT,IAAI,YAAY,KAAK;;SAEtB,CAAC,KAAK,IAAI;UACT,IAAI,UAAU,KAAK;;KAExB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAEY,QAAA,cAAc,GAAwB;IACjD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,MAAM;WACrD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,SAAS;IACxC,KAAK,CAAC,KAAK;QACT,OAAO,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACtE,CAAC;IAED,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAC7C,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;CAChE,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typeSizeClasses = void 0;
4
+ exports.typeSizeClasses = {
5
+ appliesTo: (token) => token.attributes.category === "size"
6
+ && token.attributes.type === "type",
7
+ build(token, dictionary) {
8
+ const [prefix, prop] = {
9
+ font: ["fs", "font-size"],
10
+ line: ["lh", "line-height"],
11
+ }[token.attributes.subitem];
12
+ let composite = "";
13
+ if (token.attributes.subitem === "font") {
14
+ const lhToken = dictionary.tokens.size.type[token.attributes.item].line;
15
+ composite = `
16
+ .type-${token.attributes.item} {
17
+ font-size: ${token.variableReference} !important;
18
+ line-height: ${lhToken.variableReference} !important;
19
+ }
20
+ `;
21
+ }
22
+ return `
23
+ .${prefix}-${token.attributes.item} {
24
+ ${prop}: ${token.variableReference} !important;
25
+ }
26
+ ${composite}
27
+ `;
28
+ },
29
+ };
30
+ //# sourceMappingURL=typeSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeSize.js","sourceRoot":"","sources":["../../../config-src/formats/utility-class-builders/typeSize.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAwB;IAClD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,MAAM;WACrD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,MAAM;IACrC,KAAK,CAAC,KAAK,EAAE,UAAU;QACrB,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG;YACrB,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC;YACzB,IAAI,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC;SAC5B,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE5B,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,KAAK,MAAM,EAAE;YACvC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;YACxE,SAAS,GAAG;gBACF,KAAK,CAAC,UAAU,CAAC,IAAI;uBACd,KAAK,CAAC,iBAAiB;yBACrB,OAAO,CAAC,iBAAiB;;OAE3C,CAAC;SACH;QAED,OAAO;SACF,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI;UAC9B,IAAI,KAAK,KAAK,CAAC,iBAAiB;;QAElC,SAAS;KACZ,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typeWeightClasses = void 0;
4
+ exports.typeWeightClasses = {
5
+ appliesTo: (token) => token.attributes.category === "type"
6
+ && token.attributes.type === "weight",
7
+ build(token) {
8
+ return `
9
+ .fw-${token.attributes.item} {
10
+ font-weight: ${token.variableReference} !important;
11
+ }
12
+ `;
13
+ },
14
+ };
15
+ //# sourceMappingURL=typeWeight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeWeight.js","sourceRoot":"","sources":["../../../config-src/formats/utility-class-builders/typeWeight.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAwB;IACpD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,KAAK,MAAM;WACrD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,QAAQ;IACvC,KAAK,CAAC,KAAK;QACT,OAAO;YACC,KAAK,CAAC,UAAU,CAAC,IAAI;uBACV,KAAK,CAAC,iBAAiB;;KAEzC,CAAC;IACJ,CAAC;CACF,CAAC"}