@mevbg/design-essentials-vendor 2.0.0 → 2.0.2
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.
- package/README.md +137 -142
- package/dist/defaults.js +1 -1
- package/dist/defaults.js.map +1 -1
- package/dist/generators/master/master.generator.js.map +1 -1
- package/dist/generators/tokens/handlers/color.handler.js +3 -2
- package/dist/generators/tokens/handlers/color.handler.js.map +1 -1
- package/dist/generators/tokens/utils/color-tokens.utils.d.ts +1 -1
- package/dist/generators/tokens/utils/color-tokens.utils.js +18 -2
- package/dist/generators/tokens/utils/color-tokens.utils.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -254,27 +254,27 @@ Of all four parameters, only the `generators` object is **required**, as it must
|
|
|
254
254
|
|
|
255
255
|
##### **`buildPath`**
|
|
256
256
|
|
|
257
|
-
**Type**: `string` _(optional)_
|
|
258
|
-
**Default**: `'dist'`
|
|
259
|
-
**Description**: This field specifies the path to the directory where the generated output should be placed. If no path is provided, a `dist` directory will be created at the root of the project from which the process is executed.
|
|
257
|
+
- **Type**: `string` _(optional)_
|
|
258
|
+
- **Default**: `'dist'`
|
|
259
|
+
- **Description**: This field specifies the path to the directory where the generated output should be placed. If no path is provided, a `dist` directory will be created at the root of the project from which the process is executed.
|
|
260
260
|
|
|
261
261
|
##### **`prefix`**
|
|
262
262
|
|
|
263
|
-
**Type**: `string` _(optional)_
|
|
264
|
-
**Default**: `'ds'` _(stands for "Design System")_
|
|
265
|
-
**Description**: This prefix is used exclusively by Style Dictionary when generating CSS Custom Properties.
|
|
263
|
+
- **Type**: `string` _(optional)_
|
|
264
|
+
- **Default**: `'ds'` _(stands for "Design System")_
|
|
265
|
+
- **Description**: This prefix is used exclusively by Style Dictionary when generating CSS Custom Properties.
|
|
266
266
|
It is primarily utilized by the Viewport Scaler Generator and Tokens Generator, as both produce CSS output containing custom properties whose names are structured using this prefix.
|
|
267
267
|
|
|
268
268
|
##### **`baseFontSize`**
|
|
269
269
|
|
|
270
|
-
**Type**: `number` _(optional)_
|
|
271
|
-
**Default**: `10`
|
|
272
|
-
**Description**: This value defines the base font size of the web document, from which all relative `rem` units are derived. It also serves as the foundation for the CSS formulas that are integral to both Scaling Layout logic and Content Scaling logic. More details about these two strategies can be found further down in this documentation.
|
|
270
|
+
- **Type**: `number` _(optional)_
|
|
271
|
+
- **Default**: `10`
|
|
272
|
+
- **Description**: This value defines the base font size of the web document, from which all relative `rem` units are derived. It also serves as the foundation for the CSS formulas that are integral to both Scaling Layout logic and Content Scaling logic. More details about these two strategies can be found further down in this documentation.
|
|
273
273
|
|
|
274
274
|
##### **`generators`**
|
|
275
275
|
|
|
276
|
-
**Type**: `object` **_(required)_**
|
|
277
|
-
**Description**: This object accepts optional properties corresponding to the available feature-based generators. Each property represents a configuration object that contains the necessary parameters for the respective feature. Only the generators with a configuration object provided will produce output. If an empty object `{}` is passed to `generators`, no output will be generated at all. Some generators require mandatory configuration fields, and their usage depends on providing those parameters. Others have default values for all parameters, in which case passing an empty object `{}` is sufficient to trigger production. Detailed information about the required and optional parameters for each generator is provided further down in this documentation.
|
|
276
|
+
- **Type**: `object` **_(required)_**
|
|
277
|
+
- **Description**: This object accepts optional properties corresponding to the available feature-based generators. Each property represents a configuration object that contains the necessary parameters for the respective feature. Only the generators with a configuration object provided will produce output. If an empty object `{}` is passed to `generators`, no output will be generated at all. Some generators require mandatory configuration fields, and their usage depends on providing those parameters. Others have default values for all parameters, in which case passing an empty object `{}` is sufficient to trigger production. Detailed information about the required and optional parameters for each generator is provided further down in this documentation.
|
|
278
278
|
|
|
279
279
|
#### Usage of Master Generator
|
|
280
280
|
|
|
@@ -371,61 +371,58 @@ Of all parameters, only `sourcePath` is **required** as it specifies where the d
|
|
|
371
371
|
|
|
372
372
|
##### **`sourcePath`**
|
|
373
373
|
|
|
374
|
-
**Type**: `string` **_(required)_**
|
|
375
|
-
**Description**: This field specifies the path to the directory or glob pattern where the design token source files are located. These files should contain the raw design tokens that will be processed and transformed into the specified output formats.
|
|
374
|
+
- **Type**: `string` **_(required)_**
|
|
375
|
+
- **Description**: This field specifies the path to the directory or glob pattern where the design token source files are located. These files should contain the raw design tokens that will be processed and transformed into the specified output formats.
|
|
376
376
|
|
|
377
377
|
##### **`platforms`**
|
|
378
378
|
|
|
379
|
-
**Type**: `PlatformType[]` _(optional)_
|
|
380
|
-
**Default**: `['css', 'scss', 'js', 'json']`
|
|
381
|
-
**Description**: This array specifies which output platforms should be generated. Available options are:
|
|
382
|
-
|
|
383
|
-
- `'
|
|
384
|
-
- `'
|
|
385
|
-
- `'
|
|
386
|
-
- `'json'` - Generates JSON files with all tokens
|
|
379
|
+
- **Type**: `PlatformType[]` _(optional)_
|
|
380
|
+
- **Default**: `['css', 'scss', 'js', 'json']`
|
|
381
|
+
- **Description**: This array specifies which output platforms should be generated. Available options are:
|
|
382
|
+
- `'css'` - Generates CSS files with CSS Custom Properties
|
|
383
|
+
- `'scss'` - Generates SCSS files with SCSS variables
|
|
384
|
+
- `'js'` - Generates JavaScript files with static values and CSS custom properties
|
|
385
|
+
- `'json'` - Generates JSON files with all tokens
|
|
387
386
|
|
|
388
387
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
389
388
|
##### **`prefix`**
|
|
390
389
|
|
|
391
|
-
**Type**: `string` _(optional)_
|
|
392
|
-
**Default**: `'ds'` _(stands for "Design System")_
|
|
393
|
-
**Description**: This prefix is used by Style Dictionary when generating CSS Custom Properties and other prefixed outputs. It helps namespace the generated tokens to avoid conflicts.
|
|
390
|
+
- **Type**: `string` _(optional)_
|
|
391
|
+
- **Default**: `'ds'` _(stands for "Design System")_
|
|
392
|
+
- **Description**: This prefix is used by Style Dictionary when generating CSS Custom Properties and other prefixed outputs. It helps namespace the generated tokens to avoid conflicts.
|
|
394
393
|
|
|
395
394
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
396
395
|
##### **`baseFontSize`**
|
|
397
396
|
|
|
398
|
-
**Type**: `number` _(optional)_
|
|
399
|
-
**Default**: `10`
|
|
400
|
-
**Description**: This value defines the base font size used for calculating relative units and fluid typography scaling. It serves as the foundation for Utopia scheme calculations.
|
|
397
|
+
- **Type**: `number` _(optional)_
|
|
398
|
+
- **Default**: `10`
|
|
399
|
+
- **Description**: This value defines the base font size used for calculating relative units and fluid typography scaling. It serves as the foundation for Utopia scheme calculations.
|
|
401
400
|
|
|
402
401
|
##### **`colorScheme`**
|
|
403
402
|
|
|
404
|
-
**Type**: `ColorSchemeParams` _(optional)_
|
|
405
|
-
**Default**: `{ default: 'light', method: 'combined' }`
|
|
406
|
-
**Description**: This object configures color scheme behavior. It contains:
|
|
407
|
-
|
|
408
|
-
- `
|
|
409
|
-
- `
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
- `'combined'` - Uses both methods with class priority
|
|
403
|
+
- **Type**: `ColorSchemeParams` _(optional)_
|
|
404
|
+
- **Default**: `{ default: 'light', method: 'combined' }`
|
|
405
|
+
- **Description**: This object configures color scheme behavior. It contains:
|
|
406
|
+
- `default` - The default color scheme (`'light'` or `'dark'`)
|
|
407
|
+
- `method` - The method for applying color schemes:
|
|
408
|
+
- `'media'` - Uses `prefers-color-scheme` media query
|
|
409
|
+
- `'class'` - Uses CSS classes on the root element
|
|
410
|
+
- `'combined'` - Uses both methods with class priority
|
|
413
411
|
|
|
414
412
|
##### **`utopiaScheme`**
|
|
415
413
|
|
|
416
|
-
**Type**: `UtopiaSchemeParams` _(optional)_
|
|
417
|
-
**Default**: `{ minViewportW: 600, maxViewportW: 1200 }`
|
|
418
|
-
**Description**: This object configures Utopia fluid typography scaling. It contains:
|
|
419
|
-
|
|
420
|
-
- `
|
|
421
|
-
- `maxViewportW` - Maximum viewport width for scaling _(in pixels)_
|
|
414
|
+
- **Type**: `UtopiaSchemeParams` _(optional)_
|
|
415
|
+
- **Default**: `{ minViewportW: 600, maxViewportW: 1200 }`
|
|
416
|
+
- **Description**: This object configures Utopia fluid typography scaling. It contains:
|
|
417
|
+
- `minViewportW` - Minimum viewport width for scaling _(in pixels)_
|
|
418
|
+
- `maxViewportW` - Maximum viewport width for scaling _(in pixels)_
|
|
422
419
|
|
|
423
420
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
424
421
|
##### **`buildPath`**
|
|
425
422
|
|
|
426
|
-
**Type**: `string` _(optional)_
|
|
427
|
-
**Default**: `'dist'`
|
|
428
|
-
**Description**: This field specifies the path to the directory where the generated output files should be placed.
|
|
423
|
+
- **Type**: `string` _(optional)_
|
|
424
|
+
- **Default**: `'dist'`
|
|
425
|
+
- **Description**: This field specifies the path to the directory where the generated output files should be placed.
|
|
429
426
|
|
|
430
427
|
#### Usage of Tokens Generator
|
|
431
428
|
|
|
@@ -522,35 +519,35 @@ All parameters are **optional** and have sensible defaults. Here are more detail
|
|
|
522
519
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
523
520
|
##### **`prefix`**
|
|
524
521
|
|
|
525
|
-
**Type**: `string` _(optional)_
|
|
526
|
-
**Default**: `'ds'` _(stands for "Design System")_
|
|
527
|
-
**Description**: This prefix is used for the CSS custom property name to avoid conflicts with other custom properties. The generated property will be named `--{prefix}-root-font-size`.
|
|
522
|
+
- **Type**: `string` _(optional)_
|
|
523
|
+
- **Default**: `'ds'` _(stands for "Design System")_
|
|
524
|
+
- **Description**: This prefix is used for the CSS custom property name to avoid conflicts with other custom properties. The generated property will be named `--{prefix}-root-font-size`.
|
|
528
525
|
|
|
529
526
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
530
527
|
##### **`baseFontSize`**
|
|
531
528
|
|
|
532
|
-
**Type**: `number` _(optional)_
|
|
533
|
-
**Default**: `10`
|
|
534
|
-
**Description**: This value defines the base font size used for calculating the scaling formula. It serves as the foundation for all viewport-based calculations.
|
|
529
|
+
- **Type**: `number` _(optional)_
|
|
530
|
+
- **Default**: `10`
|
|
531
|
+
- **Description**: This value defines the base font size used for calculating the scaling formula. It serves as the foundation for all viewport-based calculations.
|
|
535
532
|
|
|
536
533
|
##### **`minViewportW`**
|
|
537
534
|
|
|
538
|
-
**Type**: `number` _(optional)_
|
|
539
|
-
**Default**: `300`
|
|
540
|
-
**Description**: This is the minimum viewport width _(in pixels)_ below which the viewport scaler is applied. Below this breakpoint, the root font size scales proportionally with the viewport width.
|
|
535
|
+
- **Type**: `number` _(optional)_
|
|
536
|
+
- **Default**: `300`
|
|
537
|
+
- **Description**: This is the minimum viewport width _(in pixels)_ below which the viewport scaler is applied. Below this breakpoint, the root font size scales proportionally with the viewport width.
|
|
541
538
|
|
|
542
539
|
##### **`maxViewportW`**
|
|
543
540
|
|
|
544
|
-
**Type**: `number` _(optional)_
|
|
545
|
-
**Default**: `2100`
|
|
546
|
-
**Description**: This is the maximum viewport width _(in pixels)_ above which the viewport scaler is applied in presentation mode. Above this breakpoint, the root font size scales proportionally with the viewport width when the `html.presentation-mode` class is present.
|
|
541
|
+
- **Type**: `number` _(optional)_
|
|
542
|
+
- **Default**: `2100`
|
|
543
|
+
- **Description**: This is the maximum viewport width _(in pixels)_ above which the viewport scaler is applied in presentation mode. Above this breakpoint, the root font size scales proportionally with the viewport width when the `html.presentation-mode` class is present.
|
|
547
544
|
|
|
548
545
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
549
546
|
##### **`buildPath`**
|
|
550
547
|
|
|
551
|
-
**Type**: `string` _(optional)_
|
|
552
|
-
**Default**: `'dist'`
|
|
553
|
-
**Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
548
|
+
- **Type**: `string` _(optional)_
|
|
549
|
+
- **Default**: `'dist'`
|
|
550
|
+
- **Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
554
551
|
|
|
555
552
|
#### Usage of Viewport Scaler Generator
|
|
556
553
|
|
|
@@ -621,58 +618,58 @@ All parameters are **optional** and have sensible defaults. Here are more detail
|
|
|
621
618
|
|
|
622
619
|
##### **`areaWidth`**
|
|
623
620
|
|
|
624
|
-
**Type**: `number` _(optional)_
|
|
625
|
-
**Default**: `16`
|
|
626
|
-
**Description**: This value defines the total width _(in pixels)_ of the scrollbar area for vertical scrollbars and the height for horizontal scrollbars.
|
|
621
|
+
- **Type**: `number` _(optional)_
|
|
622
|
+
- **Default**: `16`
|
|
623
|
+
- **Description**: This value defines the total width _(in pixels)_ of the scrollbar area for vertical scrollbars and the height for horizontal scrollbars.
|
|
627
624
|
|
|
628
625
|
##### **`thumbSizeBase`**
|
|
629
626
|
|
|
630
|
-
**Type**: `number` _(optional)_
|
|
631
|
-
**Default**: `4`
|
|
632
|
-
**Description**: This value defines the base width _(in pixels)_ of the scrollbar thumb in its normal state.
|
|
627
|
+
- **Type**: `number` _(optional)_
|
|
628
|
+
- **Default**: `4`
|
|
629
|
+
- **Description**: This value defines the base width _(in pixels)_ of the scrollbar thumb in its normal state.
|
|
633
630
|
|
|
634
631
|
##### **`thumbSizeOver`**
|
|
635
632
|
|
|
636
|
-
**Type**: `number` _(optional)_
|
|
637
|
-
**Default**: `10`
|
|
638
|
-
**Description**: This value defines the width _(in pixels)_ of the scrollbar thumb when hovered or active, providing visual feedback to users.
|
|
633
|
+
- **Type**: `number` _(optional)_
|
|
634
|
+
- **Default**: `10`
|
|
635
|
+
- **Description**: This value defines the width _(in pixels)_ of the scrollbar thumb when hovered or active, providing visual feedback to users.
|
|
639
636
|
|
|
640
637
|
##### **`thumbMinSize`**
|
|
641
638
|
|
|
642
|
-
**Type**: `number` _(optional)_
|
|
643
|
-
**Default**: `80`
|
|
644
|
-
**Description**: This value defines the minimum size _(in pixels)_ that the scrollbar thumb can have, ensuring it remains usable even on very long content.
|
|
639
|
+
- **Type**: `number` _(optional)_
|
|
640
|
+
- **Default**: `80`
|
|
641
|
+
- **Description**: This value defines the minimum size _(in pixels)_ that the scrollbar thumb can have, ensuring it remains usable even on very long content.
|
|
645
642
|
|
|
646
643
|
##### **`scrollbarBackground`**
|
|
647
644
|
|
|
648
|
-
**Type**: `string` _(optional)_
|
|
649
|
-
**Default**: `'transparent'`
|
|
650
|
-
**Description**: This value defines the background color of the scrollbar track area. Can be any valid CSS color value.
|
|
645
|
+
- **Type**: `string` _(optional)_
|
|
646
|
+
- **Default**: `'transparent'`
|
|
647
|
+
- **Description**: This value defines the background color of the scrollbar track area. Can be any valid CSS color value.
|
|
651
648
|
|
|
652
649
|
##### **`thumbColor`**
|
|
653
650
|
|
|
654
|
-
**Type**: `string` _(optional)_
|
|
655
|
-
**Default**: `'#ccc'`
|
|
656
|
-
**Description**: This value defines the color of the scrollbar thumb in its normal state. Can be any valid CSS color value.
|
|
651
|
+
- **Type**: `string` _(optional)_
|
|
652
|
+
- **Default**: `'#ccc'`
|
|
653
|
+
- **Description**: This value defines the color of the scrollbar thumb in its normal state. Can be any valid CSS color value.
|
|
657
654
|
|
|
658
655
|
##### **`thumbColorHover`**
|
|
659
656
|
|
|
660
|
-
**Type**: `string` _(optional)_
|
|
661
|
-
**Default**: `'#ccc'`
|
|
662
|
-
**Description**: This value defines the color of the scrollbar thumb when hovered. Can be any valid CSS color value.
|
|
657
|
+
- **Type**: `string` _(optional)_
|
|
658
|
+
- **Default**: `'#ccc'`
|
|
659
|
+
- **Description**: This value defines the color of the scrollbar thumb when hovered. Can be any valid CSS color value.
|
|
663
660
|
|
|
664
661
|
##### **`thumbColorActive`**
|
|
665
662
|
|
|
666
|
-
**Type**: `string` _(optional)_
|
|
667
|
-
**Default**: `'#999'`
|
|
668
|
-
**Description**: This value defines the color of the scrollbar thumb when active (being dragged). Can be any valid CSS color value.
|
|
663
|
+
- **Type**: `string` _(optional)_
|
|
664
|
+
- **Default**: `'#999'`
|
|
665
|
+
- **Description**: This value defines the color of the scrollbar thumb when active (being dragged). Can be any valid CSS color value.
|
|
669
666
|
|
|
670
667
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
671
668
|
##### **`buildPath`**
|
|
672
669
|
|
|
673
|
-
**Type**: `string` _(optional)_
|
|
674
|
-
**Default**: `'dist'`
|
|
675
|
-
**Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
670
|
+
- **Type**: `string` _(optional)_
|
|
671
|
+
- **Default**: `'dist'`
|
|
672
|
+
- **Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
676
673
|
|
|
677
674
|
#### Usage of Scrollbar Generator
|
|
678
675
|
|
|
@@ -746,17 +743,16 @@ Two parameters are **required** and one is optional. Here are more details:
|
|
|
746
743
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
747
744
|
##### **`sourcePath`**
|
|
748
745
|
|
|
749
|
-
**Type**: `string` **_(required)_**
|
|
750
|
-
**Description**: This field specifies the path to the directory containing font files. The generator expects a specific directory structure where each font family has its own subdirectory containing the font files.
|
|
746
|
+
- **Type**: `string` **_(required)_**
|
|
747
|
+
- **Description**: This field specifies the path to the directory containing font files. The generator expects a specific directory structure where each font family has its own subdirectory containing the font files.
|
|
751
748
|
|
|
752
749
|
##### **`fonts`**
|
|
753
750
|
|
|
754
|
-
**Type**: `Record<string, Record<string, number>>` **_(required)_**
|
|
755
|
-
**Description**: This object maps font family names to their weight configurations. The structure is:
|
|
756
|
-
|
|
757
|
-
- **
|
|
758
|
-
- **
|
|
759
|
-
- **Value**: CSS font-weight number _(e.g., 400 for normal, 700 for bold)_
|
|
751
|
+
- **Type**: `Record<string, Record<string, number>>` **_(required)_**
|
|
752
|
+
- **Description**: This object maps font family names to their weight configurations. The structure is:
|
|
753
|
+
- **Outer key**: Font family name _(must match the directory name)_
|
|
754
|
+
- **Inner key**: Weight name _(must match the filename pattern)_
|
|
755
|
+
- **Value**: CSS font-weight number _(e.g., 400 for normal, 700 for bold)_
|
|
760
756
|
|
|
761
757
|
Example:
|
|
762
758
|
|
|
@@ -772,9 +768,9 @@ Example:
|
|
|
772
768
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
773
769
|
##### **`buildPath`**
|
|
774
770
|
|
|
775
|
-
**Type**: `string` _(optional)_
|
|
776
|
-
**Default**: `'dist'`
|
|
777
|
-
**Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
771
|
+
- **Type**: `string` _(optional)_
|
|
772
|
+
- **Default**: `'dist'`
|
|
773
|
+
- **Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
778
774
|
|
|
779
775
|
#### Usage of Fonts Faces Generator
|
|
780
776
|
|
|
@@ -858,11 +854,10 @@ One parameter is **required** and three are optional. Here are more details:
|
|
|
858
854
|
|
|
859
855
|
##### **`list`**
|
|
860
856
|
|
|
861
|
-
**Type**: `Record<string, string>` **_(required)_**
|
|
862
|
-
**Description**: This object maps icon names to their Unicode character codes. The structure is:
|
|
863
|
-
|
|
864
|
-
- **
|
|
865
|
-
- **Value**: Unicode character code (without the `\u` prefix)
|
|
857
|
+
- **Type**: `Record<string, string>` **_(required)_**
|
|
858
|
+
- **Description**: This object maps icon names to their Unicode character codes. The structure is:
|
|
859
|
+
- **Key**: Icon name (used in the HTML `data-i` attribute)
|
|
860
|
+
- **Value**: Unicode character code (without the `\u` prefix)
|
|
866
861
|
|
|
867
862
|
Example:
|
|
868
863
|
|
|
@@ -877,22 +872,22 @@ Example:
|
|
|
877
872
|
|
|
878
873
|
##### **`fontFamily`**
|
|
879
874
|
|
|
880
|
-
**Type**: `string` _(optional)_
|
|
881
|
-
**Default**: `'Iconography'`
|
|
882
|
-
**Description**: This value defines the font family that will be used for displaying the icons. It should match the font family name of your icon font (e.g., Font Awesome, Material Icons, or a custom icon font).
|
|
875
|
+
- **Type**: `string` _(optional)_
|
|
876
|
+
- **Default**: `'Iconography'`
|
|
877
|
+
- **Description**: This value defines the font family that will be used for displaying the icons. It should match the font family name of your icon font (e.g., Font Awesome, Material Icons, or a custom icon font).
|
|
883
878
|
|
|
884
879
|
##### **`color`**
|
|
885
880
|
|
|
886
|
-
**Type**: `string` _(optional)_
|
|
887
|
-
**Default**: `'currentColor'`
|
|
888
|
-
**Description**: This value defines the default color for all icons. Using `currentColor` allows icons to inherit the text color from their parent element, making them flexible and themeable.
|
|
881
|
+
- **Type**: `string` _(optional)_
|
|
882
|
+
- **Default**: `'currentColor'`
|
|
883
|
+
- **Description**: This value defines the default color for all icons. Using `currentColor` allows icons to inherit the text color from their parent element, making them flexible and themeable.
|
|
889
884
|
|
|
890
885
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
891
886
|
##### **`buildPath`**
|
|
892
887
|
|
|
893
|
-
**Type**: `string` _(optional)_
|
|
894
|
-
**Default**: `'dist'`
|
|
895
|
-
**Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
888
|
+
- **Type**: `string` _(optional)_
|
|
889
|
+
- **Default**: `'dist'`
|
|
890
|
+
- **Description**: This field specifies the path to the directory where the generated CSS file should be placed.
|
|
896
891
|
|
|
897
892
|
#### Usage of Icons Generator
|
|
898
893
|
|
|
@@ -997,71 +992,71 @@ Six parameters are **required** and the rest are optional. Here are more details
|
|
|
997
992
|
|
|
998
993
|
##### **`id`**
|
|
999
994
|
|
|
1000
|
-
**Type**: `string` **_(required)_**
|
|
1001
|
-
**Description**: This field specifies the unique identifier for the web application. It is used in the generated manifest file and helps identify the app across different platforms.
|
|
995
|
+
- **Type**: `string` **_(required)_**
|
|
996
|
+
- **Description**: This field specifies the unique identifier for the web application. It is used in the generated manifest file and helps identify the app across different platforms.
|
|
1002
997
|
|
|
1003
998
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
1004
999
|
##### **`sourcePath`**
|
|
1005
1000
|
|
|
1006
|
-
**Type**: `string` **_(required)_**
|
|
1007
|
-
**Description**: This field specifies the path to the source image file that will be used to generate all favicon variants. The image should be high quality (at least 1024x1024 pixels) and square.
|
|
1001
|
+
- **Type**: `string` **_(required)_**
|
|
1002
|
+
- **Description**: This field specifies the path to the source image file that will be used to generate all favicon variants. The image should be high quality (at least 1024x1024 pixels) and square.
|
|
1008
1003
|
|
|
1009
1004
|
##### **`appName`**
|
|
1010
1005
|
|
|
1011
|
-
**Type**: `string` **_(required)_**
|
|
1012
|
-
**Description**: This field specifies the full name of the web application as it will appear in app stores and device home screens.
|
|
1006
|
+
- **Type**: `string` **_(required)_**
|
|
1007
|
+
- **Description**: This field specifies the full name of the web application as it will appear in app stores and device home screens.
|
|
1013
1008
|
|
|
1014
1009
|
##### **`appShortName`**
|
|
1015
1010
|
|
|
1016
|
-
**Type**: `string` **_(required)_**
|
|
1017
|
-
**Description**: This field specifies the short name of the web application, typically used when space is limited _(e.g., on home screens)_.
|
|
1011
|
+
- **Type**: `string` **_(required)_**
|
|
1012
|
+
- **Description**: This field specifies the short name of the web application, typically used when space is limited _(e.g., on home screens)_.
|
|
1018
1013
|
|
|
1019
1014
|
##### **`appDescription`**
|
|
1020
1015
|
|
|
1021
|
-
**Type**: `string` **_(required)_**
|
|
1022
|
-
**Description**: This field provides a brief description of the web application for app stores and device listings.
|
|
1016
|
+
- **Type**: `string` **_(required)_**
|
|
1017
|
+
- **Description**: This field provides a brief description of the web application for app stores and device listings.
|
|
1023
1018
|
|
|
1024
1019
|
##### **`version`**
|
|
1025
1020
|
|
|
1026
|
-
**Type**: `string` **_(required)_**
|
|
1027
|
-
**Description**: This field specifies the version number of the web application _(e.g., "1.0.0")_.
|
|
1021
|
+
- **Type**: `string` **_(required)_**
|
|
1022
|
+
- **Description**: This field specifies the version number of the web application _(e.g., "1.0.0")_.
|
|
1028
1023
|
|
|
1029
1024
|
##### **`developerName`**
|
|
1030
1025
|
|
|
1031
|
-
**Type**: `string` _(optional)_
|
|
1032
|
-
**Default**: `'Martin Metodiev'`
|
|
1033
|
-
**Description**: This field specifies the name of the developer or organization that created the web application.
|
|
1026
|
+
- **Type**: `string` _(optional)_
|
|
1027
|
+
- **Default**: `'Martin Metodiev'`
|
|
1028
|
+
- **Description**: This field specifies the name of the developer or organization that created the web application.
|
|
1034
1029
|
|
|
1035
1030
|
##### **`developerURL`**
|
|
1036
1031
|
|
|
1037
|
-
**Type**: `string` _(optional)_
|
|
1038
|
-
**Default**: `'https://mev.bg'`
|
|
1039
|
-
**Description**: This field specifies the URL of the developer or organization website.
|
|
1032
|
+
- **Type**: `string` _(optional)_
|
|
1033
|
+
- **Default**: `'https://mev.bg'`
|
|
1034
|
+
- **Description**: This field specifies the URL of the developer or organization website.
|
|
1040
1035
|
|
|
1041
1036
|
##### **`background`**
|
|
1042
1037
|
|
|
1043
|
-
**Type**: `string` _(optional)_
|
|
1044
|
-
**Default**: `'#fff'`
|
|
1045
|
-
**Description**: This field specifies the background color for flattened icons and splash screens.
|
|
1038
|
+
- **Type**: `string` _(optional)_
|
|
1039
|
+
- **Default**: `'#fff'`
|
|
1040
|
+
- **Description**: This field specifies the background color for flattened icons and splash screens.
|
|
1046
1041
|
|
|
1047
1042
|
##### **`theme_color`**
|
|
1048
1043
|
|
|
1049
|
-
**Type**: `string` _(optional)_
|
|
1050
|
-
**Default**: `'#fff'`
|
|
1051
|
-
**Description**: This field specifies the theme color used in browser UI elements and Android task switcher.
|
|
1044
|
+
- **Type**: `string` _(optional)_
|
|
1045
|
+
- **Default**: `'#fff'`
|
|
1046
|
+
- **Description**: This field specifies the theme color used in browser UI elements and Android task switcher.
|
|
1052
1047
|
|
|
1053
1048
|
##### **`display`**
|
|
1054
1049
|
|
|
1055
|
-
**Type**: `string` _(optional)_
|
|
1056
|
-
**Default**: `'standalone'`
|
|
1057
|
-
**Description**: This field specifies the preferred display mode for the web application. Options include: `'fullscreen'`, `'standalone'`, `'minimal-ui'`, or `'browser'`.
|
|
1050
|
+
- **Type**: `string` _(optional)_
|
|
1051
|
+
- **Default**: `'standalone'`
|
|
1052
|
+
- **Description**: This field specifies the preferred display mode for the web application. Options include: `'fullscreen'`, `'standalone'`, `'minimal-ui'`, or `'browser'`.
|
|
1058
1053
|
|
|
1059
1054
|
<!-- markdownlint-disable-next-line MD024 -->
|
|
1060
1055
|
##### **`buildPath`**
|
|
1061
1056
|
|
|
1062
|
-
**Type**: `string` _(optional)_
|
|
1063
|
-
**Default**: `'dist'`
|
|
1064
|
-
**Description**: This field specifies the path to the directory where the generated favicon files should be placed.
|
|
1057
|
+
- **Type**: `string` _(optional)_
|
|
1058
|
+
- **Default**: `'dist'`
|
|
1059
|
+
- **Description**: This field specifies the path to the directory where the generated favicon files should be placed.
|
|
1065
1060
|
|
|
1066
1061
|
#### Usage of Favicons Generator
|
|
1067
1062
|
|
package/dist/defaults.js
CHANGED
|
@@ -20,7 +20,7 @@ const DEFAULT_PREFIX = 'ds'; // "ds" stands for "Design System"
|
|
|
20
20
|
// COLOR SCHEME
|
|
21
21
|
const DEFAULT_COLOR_SCHEME_PARAMS = {
|
|
22
22
|
default: ColorSchemeType.LIGHT,
|
|
23
|
-
method: ColorSchemeMethod.
|
|
23
|
+
method: ColorSchemeMethod.CLASS
|
|
24
24
|
};
|
|
25
25
|
//
|
|
26
26
|
// ---------------------------------------------------
|
package/dist/defaults.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,cAAc;AACd,yDAAyD;AAEzD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EACL,iBAAiB,EAEjB,eAAe,EAKf,YAAY,EAKb,MAAM,kBAAkB,CAAC;AAE1B,EAAE;AACF,sDAAsD;AACtD,aAAa;AAEb,MAAM,kBAAkB,GAAW,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;AAElF,EAAE;AACF,sDAAsD;AACtD,iBAAiB;AAEjB,MAAM,sBAAsB,GAAW,EAAE,CAAC;AAE1C,EAAE;AACF,sDAAsD;AACtD,SAAS;AAET,MAAM,cAAc,GAAW,IAAI,CAAC,CAAC,kCAAkC;AAEvE,EAAE;AACF,sDAAsD;AACtD,eAAe;AAEf,MAAM,2BAA2B,GAAsB;IACrD,OAAO,EAAE,eAAe,CAAC,KAAK;IAC9B,MAAM,EAAE,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"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CAAC,CAAC;IACnF,CAAC,CAAC,CACL,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -20,10 +20,11 @@ export const colorHandler = async ({ name, category, type, formatArgs, tokens, c
|
|
|
20
20
|
const { designData } = options;
|
|
21
21
|
// Parse color scheme tokens
|
|
22
22
|
if (category !== CustomFormatterCategory.JS || type !== JsCustomFormatterType.VARIABLE) {
|
|
23
|
-
const colorScheme = getColorScheme(tokens, category === CustomFormatterCategory.JS ? 'pascal' : 'kebab');
|
|
23
|
+
const colorScheme = getColorScheme(tokens, category === CustomFormatterCategory.JS ? 'pascal' : 'kebab', designData.colorScheme?.default);
|
|
24
24
|
const parsers = {
|
|
25
25
|
css: () => {
|
|
26
26
|
// no method case
|
|
27
|
+
// (just a fallback case that is expected to never happen)
|
|
27
28
|
if (!designData.colorScheme?.method) {
|
|
28
29
|
output.push(wrapper({
|
|
29
30
|
code: definer({
|
|
@@ -51,7 +52,7 @@ export const colorHandler = async ({ name, category, type, formatArgs, tokens, c
|
|
|
51
52
|
if (['class', 'combined'].includes(designData.colorScheme?.method)) {
|
|
52
53
|
Object.entries(colorScheme).forEach(([scheme, tokens]) => {
|
|
53
54
|
output.push(wrapper({
|
|
54
|
-
name: `html.${scheme}`,
|
|
55
|
+
name: scheme === designData.colorScheme.default ? ':root' : `html.${scheme}`,
|
|
55
56
|
code: definer({ tokens })
|
|
56
57
|
}) + '\n');
|
|
57
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.handler.js","sourceRoot":"","sources":["../../../../src/generators/tokens/handlers/color.handler.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,+BAA+B;AAC/B,yDAAyD;AAEzD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAEL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,EAAE;AACF,sDAAsD;AACtD,mBAAmB;AAEnB,gDAAgD;AAChD,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,EACjC,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,MAAM,EACN,MAAM,EACc,EAAmB,EAAE,CACzC,aAAa,CAAC;IACZ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;QACnC,4CAA4C;QAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;QAC/B,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAE/B,4BAA4B;QAC5B,IAAI,QAAQ,KAAK,uBAAuB,CAAC,EAAE,IAAI,IAAI,KAAK,qBAAqB,CAAC,QAAQ,EAAE,CAAC;YACvF,MAAM,WAAW,GAAG,cAAc,CAChC,MAAM,EACN,QAAQ,KAAK,uBAAuB,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"color.handler.js","sourceRoot":"","sources":["../../../../src/generators/tokens/handlers/color.handler.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,+BAA+B;AAC/B,yDAAyD;AAEzD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAEL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,EAAE;AACF,sDAAsD;AACtD,mBAAmB;AAEnB,gDAAgD;AAChD,MAAM,CAA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,MAAM,gBAAgB,GACpB,QAAQ,KAAK,uBAAuB,CAAC,EAAE,IAAI,IAAI,KAAK,qBAAqB,CAAC,QAAQ;YAChF,CAAC,CAAC,MAAM;iBACH,MAAM,CACL,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CACjB,UAAU,EAAE,IAAI,KAAK,QAAQ;gBAC7B,UAAU,EAAE,IAAI,KAAK,UAAU,CAAC,WAAW,CAAC,OAAO,CACtD;iBACA,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBACb,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAExB,OAAO;oBACL,GAAG,KAAK;oBACR,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CACtB,SAAS,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,EACrD,EAAE,CACH;oBACD,IAAI,EAAE,KAAK,CAAC,IAAI;iBACjB,CAAC;YACJ,CAAC,CAAC;YACN,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,YAAY,GAAG,CAAC,GAAG,eAAe,EAAE,GAAG,gBAAgB,CAAC,CAAC;QAC/D,IAAI,YAAY,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,CAAC,IAAI,CACT,OAAO,CAAC;gBACN,IAAI,EAAE,QAAQ,KAAK,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;gBACjE,IAAI,EAAE,OAAO,CAAC;oBACZ,IAAI;oBACJ,MAAM,EAAE,YAAY;oBACpB,OAAO;iBACR,CAAC;aACH,CAAC,CACH,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -4,5 +4,5 @@ declare const nameReplacers: {
|
|
|
4
4
|
kebab: (name: string, scheme: string) => string;
|
|
5
5
|
};
|
|
6
6
|
type Syntax = keyof typeof nameReplacers;
|
|
7
|
-
export declare const getColorScheme: (tokens: TransformedToken[], syntax: Syntax) => Record<string, TransformedToken[]>;
|
|
7
|
+
export declare const getColorScheme: (tokens: TransformedToken[], syntax: Syntax, defaultScheme?: string) => Record<string, TransformedToken[]>;
|
|
8
8
|
export {};
|
|
@@ -14,11 +14,27 @@ const getColorSchemeTokens = (tokens, scheme, syntax) => tokens
|
|
|
14
14
|
...rest
|
|
15
15
|
}));
|
|
16
16
|
// Returns the color scheme tokens for a given syntax
|
|
17
|
-
export const getColorScheme = (tokens, syntax) => {
|
|
17
|
+
export const getColorScheme = (tokens, syntax, defaultScheme) => {
|
|
18
18
|
const schemeTokens = tokens.filter(({ attributes }) => attributes?.type === 'scheme');
|
|
19
|
-
|
|
19
|
+
// Create base color scheme object
|
|
20
|
+
const baseColorScheme = {
|
|
20
21
|
light: getColorSchemeTokens(schemeTokens, 'light', syntax),
|
|
21
22
|
dark: getColorSchemeTokens(schemeTokens, 'dark', syntax)
|
|
22
23
|
};
|
|
24
|
+
// If default scheme is specified and it's different from 'light', reorder the keys
|
|
25
|
+
if (defaultScheme && defaultScheme !== 'light') {
|
|
26
|
+
const reorderedColorScheme = {};
|
|
27
|
+
// Put the default scheme first
|
|
28
|
+
reorderedColorScheme[defaultScheme] =
|
|
29
|
+
baseColorScheme[defaultScheme];
|
|
30
|
+
// Add the remaining schemes
|
|
31
|
+
Object.keys(baseColorScheme).forEach((scheme) => {
|
|
32
|
+
if (scheme !== defaultScheme) {
|
|
33
|
+
reorderedColorScheme[scheme] = baseColorScheme[scheme];
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return reorderedColorScheme;
|
|
37
|
+
}
|
|
38
|
+
return baseColorScheme;
|
|
23
39
|
};
|
|
24
40
|
//# sourceMappingURL=color-tokens.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-tokens.utils.js","sourceRoot":"","sources":["../../../../src/generators/tokens/utils/color-tokens.utils.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,mCAAmC;AACnC,yDA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AK,aAAa,EAAE,CAAC;gBAC7B,oBAAoB,CAAC,MAAM,CAAC,GAAG,eAAe,CAAC,MAAsC,CAAC,CAAC;YACzF,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mevbg/design-essentials-vendor",
|
|
3
3
|
"title": "Design Essentials Vendor",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "Mev’s personal vendor of design system essentials.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"design essentials vendor",
|
|
@@ -71,15 +71,15 @@
|
|
|
71
71
|
"style-dictionary": "^5.0.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@eslint/js": "^9.
|
|
75
|
-
"@types/node": "^24.2.
|
|
74
|
+
"@eslint/js": "^9.33.0",
|
|
75
|
+
"@types/node": "^24.2.1",
|
|
76
76
|
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
77
77
|
"@typescript-eslint/parser": "^8.39.0",
|
|
78
78
|
"chokidar": "^4.0.3",
|
|
79
79
|
"colorjs.io": "^0.6.0-alpha.1",
|
|
80
80
|
"del-cli": "^6.0.0",
|
|
81
81
|
"esbuild-register": "^3.6.0",
|
|
82
|
-
"eslint": "^9.
|
|
82
|
+
"eslint": "^9.33.0",
|
|
83
83
|
"eslint-config-prettier": "^10.1.8",
|
|
84
84
|
"eslint-plugin-prettier": "^5.5.4",
|
|
85
85
|
"globals": "^16.3.0",
|