@matteusan/himig 1.5.1 → 1.7.1

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 (77) hide show
  1. package/README.md +2 -2
  2. package/_index.scss +5 -23
  3. package/ms-badge/_badge-base.scss +1 -1
  4. package/ms-badge/_badge-extend.scss +1 -1
  5. package/ms-badge/_badge-styles.scss +1 -1
  6. package/ms-button/_button-base.scss +1 -1
  7. package/ms-button/_button-extend.scss +1 -1
  8. package/ms-button/_button-mixins.scss +1 -1
  9. package/ms-button/_button-styles.scss +26 -26
  10. package/ms-card/_card-base.scss +1 -1
  11. package/ms-card/_card-extend.scss +1 -1
  12. package/ms-card/_card-styles.scss +1 -1
  13. package/ms-form-field/_form-field-base.scss +1 -1
  14. package/ms-form-field/_form-field-extend.scss +1 -1
  15. package/ms-form-field/_form-field-styles.scss +1 -1
  16. package/ms-link/_link-base.scss +1 -1
  17. package/ms-link/_link-extend.scss +1 -1
  18. package/ms-link/_link-styles.scss +1 -1
  19. package/ms-list/_list-base.scss +1 -1
  20. package/ms-list/_list-extend.scss +1 -1
  21. package/ms-list/_list-styles.scss +1 -1
  22. package/ms-select-field/_select-field-base.scss +1 -1
  23. package/ms-select-field/_select-field-extend.scss +1 -1
  24. package/ms-select-field/_select-field-styles.scss +1 -1
  25. package/ms-tick-field/_tick-field-base.scss +1 -1
  26. package/ms-tick-field/_tick-field-extend.scss +1 -1
  27. package/ms-tick-field/_tick-field-styles.scss +1 -1
  28. package/ms-utils/_color-utils.scss +1 -1
  29. package/ms-utils/_consts.scss +1 -1
  30. package/ms-utils/_layout-utils.scss +1 -1
  31. package/ms-utils/_struct-utils.scss +1 -1
  32. package/ms-utils/_typography-utils.scss +7 -24
  33. package/ms-utils/_util-helpers.scss +1 -1
  34. package/package.json +11 -3
  35. package/pintig/README.md +0 -2
  36. package/pintig/_index.scss +0 -77
  37. package/pintig/breakpoint/_breakpoint-sentro.scss +0 -53
  38. package/pintig/breakpoint/_index.scss +0 -23
  39. package/pintig/color/_color-constants.scss +0 -33
  40. package/pintig/color/_color-setters.scss +0 -75
  41. package/pintig/color/_color-utils.scss +0 -62
  42. package/pintig/color/_color-validators.scss +0 -59
  43. package/pintig/color/_index.scss +0 -25
  44. package/pintig/component/_component-extend.scss +0 -56
  45. package/pintig/component/_index.scss +0 -23
  46. package/pintig/component/component-base.ts +0 -81
  47. package/pintig/component/component-properties.ts +0 -25
  48. package/pintig/component/index.ts +0 -29
  49. package/pintig/component/types/ms-component.d.ts +0 -24
  50. package/pintig/index.ts +0 -29
  51. package/pintig/package.json +0 -15
  52. package/pintig/sprite/_index.scss +0 -23
  53. package/pintig/sprite/_sprite-mixins.scss +0 -29
  54. package/pintig/struct/_index.scss +0 -24
  55. package/pintig/struct/_struct-setters.scss +0 -98
  56. package/pintig/struct/_struct-utils.scss +0 -218
  57. package/pintig/struct/_struct-validators.scss +0 -57
  58. package/pintig/theme/_index.scss +0 -30
  59. package/pintig/theme/_theme-get.scss +0 -41
  60. package/pintig/theme/_theme-keys.scss +0 -43
  61. package/pintig/theme/_theme-merge.scss +0 -46
  62. package/pintig/theme/_theme-properties.scss +0 -61
  63. package/pintig/theme/_theme-setters.scss +0 -167
  64. package/pintig/theme/_theme-tokens.scss +0 -57
  65. package/pintig/tokens/_index.scss +0 -23
  66. package/pintig/tokens/_token-data.scss +0 -249
  67. package/pintig/tokens/_token-methods.scss +0 -118
  68. package/pintig/tools/_index.scss +0 -27
  69. package/pintig/tools/_tools-color.scss +0 -79
  70. package/pintig/tools/_tools-helpers.scss +0 -30
  71. package/pintig/tools/_tools-sentro.scss +0 -52
  72. package/pintig/tools/_tools-string.scss +0 -45
  73. package/pintig/tools/_tools-validation.scss +0 -71
  74. package/pintig/typography/_index.scss +0 -24
  75. package/pintig/typography/_typography-setters.scss +0 -78
  76. package/pintig/typography/_typography-utils.scss +0 -76
  77. package/pintig/typography/_typography-validators.scss +0 -47
package/README.md CHANGED
@@ -15,8 +15,8 @@ $ yarn add @matteusan/himig
15
15
  ```scss
16
16
  // main.scss
17
17
 
18
- @use 'node_modules/@matteusan/himig';
19
- @use 'node_modules/@matteusan/himig/ms-button';
18
+ @use 'pkg:@matteusan/himig';
19
+ @use 'pkg:@matteusan/himig/ms-button';
20
20
 
21
21
  @include himig.init {
22
22
  @include ms-button.render();
package/_index.scss CHANGED
@@ -1,31 +1,13 @@
1
- //---------------------------------------------------
2
- // Copyright (c) 2024 MatteuSan
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal
6
- // in the Software without restriction, including without limitation the rights
7
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- // copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in all
12
- // copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- // SOFTWARE.
21
- //---------------------------------------------------
1
+ // @license
2
+ // Copyright (c) 2025 MatteuSan
3
+ // SPDX-License-Identifier: MIT
22
4
 
23
5
  $expressive-inks: false !default;
24
6
  $module-mode: false !default;
25
7
  $test-mode: $module-mode !default;
26
8
  $vue-mode: $test-mode !default;
27
9
 
28
- @use 'pintig' with (
10
+ @use 'pkg:@matteusan/pintig' with (
29
11
  $expressive-inks: $expressive-inks,
30
12
  $module-mode: $module-mode,
31
13
  $test-mode: $test-mode,
@@ -35,7 +17,7 @@ $vue-mode: $test-mode !default;
35
17
  @use 'init-font-pack' as font-pack;
36
18
 
37
19
  // For accessing core lib from the main himig module.
38
- @forward 'pintig';
20
+ @forward 'pkg:@matteusan/pintig';
39
21
 
40
22
  @mixin init(
41
23
  $theme: (),
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-badge {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'badge-base' as base;
25
25
  @use 'badge-theme' as theme;
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-button {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:string';
26
26
 
@@ -1,26 +1,8 @@
1
- //---------------------------------------------------
2
- // Copyright (c) 2024 MatteuSan
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal
6
- // in the Software without restriction, including without limitation the rights
7
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- // copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in all
12
- // copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- // SOFTWARE.
21
- //---------------------------------------------------
22
-
23
- @use '../pintig';
1
+ // @license
2
+ // Copyright (c) 2025 MatteuSan
3
+ // SPDX-License-Identifier: MIT
4
+
5
+ @use 'pkg:@matteusan/pintig';
24
6
  @use 'sass:list';
25
7
  @use 'button-base' as base;
26
8
  @use 'button-theme' as theme;
@@ -67,9 +49,9 @@ $_states: ('error');
67
49
  @include pintig.struct-apply('button', $struct);
68
50
  @include pintig.typography-apply('button', $typography);
69
51
  @include pintig.color-apply('button', (
70
- fill: 'ms-grey.400',
71
- ink: 'ms-grey.800',
72
- border: 'ms-grey.400',
52
+ fill: 'ms-black.800',
53
+ ink: 'ms-white.200',
54
+ border: 'ms-black.800',
73
55
  ));
74
56
  @include style.text(
75
57
  $fills: $fills,
@@ -93,6 +75,24 @@ $_states: ('error');
93
75
  }
94
76
  }
95
77
 
78
+ &:where(.is-small) {
79
+ @include pintig.struct-bind('button', (
80
+ 'padding': ('sm' 'md')
81
+ ));
82
+ @include pintig.typography-apply('button', (
83
+ 'size': pintig.to-rem(12px)
84
+ ));
85
+ }
86
+
87
+ &:where(.is-large) {
88
+ @include pintig.struct-bind('button', (
89
+ 'padding': ('md' 'lg')
90
+ ));
91
+ @include pintig.typography-apply('button', (
92
+ 'size': 'md'
93
+ ));
94
+ }
95
+
96
96
  @each $state in $_states {
97
97
  &:where(.is-#{$state}) {
98
98
  @include style.text(
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:map';
25
25
 
26
26
  @mixin init(
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:list';
25
25
  @use 'card-base' as base;
26
26
  @use 'card-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @use 'sass:math';
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:list';
25
25
  @use 'form-field-base' as base;
26
26
  @use 'form-field-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-link {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'link-base' as base;
25
25
  @use 'link-theme' as theme;
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-list {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'list-base' as base;
25
25
  @use 'list-theme' as theme;
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @use 'sass:math';
26
26
 
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:list';
25
25
  @use 'select-field-base' as base;
26
26
  @use 'select-field-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  @mixin init() {
26
26
  .ms-tick-field {
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  /// Component variant maker.
26
26
  /// @param {string} $variants
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:list';
25
25
  @use 'tick-field-base' as base;
26
26
  @use 'tick-field-theme' as theme;
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:list';
26
26
  @use 'consts';
@@ -20,6 +20,6 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
 
25
25
  $breakpoints: ('small', 'medium', 'large', 'xlarge');
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:string';
25
25
  @use 'sass:list';
26
26
  @use 'consts';
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:map';
25
25
  @use 'sass:meta';
26
26
  @use 'sass:list';
@@ -1,29 +1,12 @@
1
- //---------------------------------------------------
2
- // Copyright (c) 2024 MatteuSan
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal
6
- // in the Software without restriction, including without limitation the rights
7
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- // copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in all
12
- // copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- // SOFTWARE.
21
- //---------------------------------------------------
1
+ // @license
2
+ // Copyright (c) 2025 MatteuSan
3
+ // SPDX-License-Identifier: MIT
22
4
 
23
- @use '../pintig';
5
+ @use 'pkg:@matteusan/pintig';
24
6
  @use 'sass:map';
25
7
  @use 'sass:meta';
26
8
  @use 'sass:list';
9
+ @use 'sass:string';
27
10
  @use 'consts';
28
11
  @use 'util-helpers' as helpers;
29
12
 
@@ -170,13 +153,13 @@ $_alignments: ('center', 'left', 'right', 'justify', 'justify-all');
170
153
  @if list.index($utils-to-render, 'alignment') {
171
154
  @each $alignment in $_alignments {
172
155
  .align-#{$alignment} {
173
- text-align: unquote($alignment);
156
+ text-align: string.unquote($alignment);
174
157
  }
175
158
 
176
159
  @each $breakpoint in $_breakpoints {
177
160
  .\@#{$breakpoint}\:align-#{$alignment} {
178
161
  @include pintig.breakpoint-create($breakpoint) {
179
- text-align: unquote($alignment) !important;
162
+ text-align: string.unquote($alignment) !important;
180
163
  }
181
164
  }
182
165
  }
@@ -20,7 +20,7 @@
20
20
  // SOFTWARE.
21
21
  //---------------------------------------------------
22
22
 
23
- @use '../pintig';
23
+ @use 'pkg:@matteusan/pintig';
24
24
  @use 'sass:list';
25
25
 
26
26
  @function handle-include-exclude($default-utils, $include: (), $exclude: ()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matteusan/himig",
3
- "version": "1.5.1",
3
+ "version": "1.7.1",
4
4
  "description": "Matteu's personal design system for building user interfaces.",
5
5
  "repository": "https://github.com/MatteuSan/himig",
6
6
  "author": "Matteu <matteugt@gmail.com>",
@@ -8,8 +8,16 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
+ "exports": {
12
+ ".": {
13
+ "sass": "./_index.scss"
14
+ },
15
+ "./**/*.scss": {
16
+ "sass": "./**/*.scss"
17
+ }
18
+ },
11
19
  "dependencies": {
12
- "@matteusan/pintig": "1.4.0",
13
- "@matteusan/sentro": "0.1.25"
20
+ "@matteusan/pintig": "^1.0",
21
+ "@matteusan/sentro": "^1.2.2"
14
22
  }
15
23
  }
package/pintig/README.md DELETED
@@ -1,2 +0,0 @@
1
- # pintig
2
- The core library for the Himig Design System. For internal use only.
@@ -1,77 +0,0 @@
1
- //---------------------------------------------------
2
- // Copyright (c) 2024 MatteuSan
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal
6
- // in the Software without restriction, including without limitation the rights
7
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- // copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in all
12
- // copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- // SOFTWARE.
21
- //---------------------------------------------------
22
-
23
- $module-mode: false !default;
24
- $test-mode: $module-mode !default;
25
- $vue-mode: $test-mode !default;
26
- $validation: if($vue-mode == true, false, true);
27
- $expressive-inks: false !default;
28
-
29
- /// @type map
30
- /// @description helper variable for inheriting values for all color properties
31
- $color-inherit-template: (
32
- fill: inherit,
33
- ink: inherit,
34
- border: inherit
35
- );
36
-
37
- /// @type map
38
- /// @description helper variable for inheriting values for all struct properties
39
- $struct-inherit-template: (
40
- width: inherit,
41
- height: inherit,
42
- radius: inherit,
43
- padding: inherit,
44
- margin: inherit,
45
- gap: inherit,
46
- border-width: inherit,
47
- border-style: inherit,
48
- shadow: inherit
49
- );
50
-
51
- /// @type map
52
- /// @description helper variable for inheriting values for all typography properties
53
- $type-inherit-template: (
54
- family: inherit,
55
- size: inherit,
56
- weight: inherit,
57
- line-height: inherit
58
- );
59
-
60
- @use 'node_modules/@matteusan/sentro' with (
61
- $prefix: 'ms',
62
- $context: 'theme',
63
- $token-validation: $validation,
64
- $key-validation: $validation,
65
- $breakpoint-validation: $validation,
66
- );
67
-
68
- @forward 'tokens';
69
- @forward 'theme' with ($expressive-inks: $expressive-inks);
70
- @forward 'tools';
71
- @forward 'breakpoint' as breakpoint-*;
72
-
73
- @forward 'color' as color-*;
74
- @forward 'struct' as struct-*;
75
- @forward 'sprite' as sprite-*;
76
- @forward 'typography' as typography-*;
77
- @forward 'component' as component-*;
@@ -1,53 +0,0 @@
1
- //---------------------------------------------------
2
- // Copyright (c) 2024 MatteuSan
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to deal
6
- // in the Software without restriction, including without limitation the rights
7
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- // copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in all
12
- // copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- // SOFTWARE.
21
- //---------------------------------------------------
22
-
23
- @use '../tools';
24
- @use 'node_modules/@matteusan/sentro';
25
- @use 'sass:map';
26
- @use 'sass:meta';
27
-
28
- $_registry: ();
29
-
30
- @mixin config($map: (), $breakpoints...) {
31
- @if not tools.is-empty($map) {
32
- @each $key, $value in $map {
33
- $_registry: map.set($_registry, $key, $value) !global;
34
- }
35
- }
36
- @if meta.keywords($breakpoints) {
37
- @each $key, $value in meta.keywords($breakpoints) {
38
- $_registry: map.set($_registry, $key, $value) !global;
39
- }
40
- }
41
- @include sentro.breakpoint-config($map, $breakpoints...);
42
- }
43
-
44
- @mixin create($query) {
45
- @include sentro.breakpoint-create($query) {
46
- @content;
47
- }
48
- }
49
-
50
- /// @access protected
51
- @function registry-get() {
52
- @return $_registry;
53
- }