@medyll/cssfabric 0.2.0 → 0.2.1-beta.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.
Files changed (173) hide show
  1. package/README.md +58 -38
  2. package/dist/NewMenu.svelte +41 -0
  3. package/dist/NewMenu.svelte.d.ts +19 -0
  4. package/dist/css/animation/animation.css +2 -0
  5. package/dist/css/base/base.css +47 -0
  6. package/dist/css/base/base.min.css +1 -0
  7. package/{styles → dist/css}/box/box.css +118 -0
  8. package/dist/css/box/box.min.css +1 -0
  9. package/{styles → dist/css}/box/box.responsive.css +3063 -1550
  10. package/dist/css/box/box.responsive.min.css +1 -0
  11. package/{styles → dist/css}/color/color.css +11 -9
  12. package/{styles → dist/css}/color/color.responsive.css +3446 -1932
  13. package/dist/css/color/color.responsive.min.css +1 -0
  14. package/dist/css/cssfabric.css +5167 -0
  15. package/dist/css/cssfabric.min.css +4877 -0
  16. package/dist/css/cssfabric.responsive.css +20419 -0
  17. package/dist/css/cssfabric.responsive.min.css +1 -0
  18. package/{styles → dist/css}/flex/flex.css +2 -0
  19. package/{styles → dist/css}/flex/flex.responsive.css +192 -114
  20. package/dist/css/flex/flex.responsive.min.css +1 -0
  21. package/{styles → dist/css}/grid/grid.css +2 -0
  22. package/{styles → dist/css}/grid/grid.responsive.css +230 -212
  23. package/dist/css/grid/grid.responsive.min.css +1 -0
  24. package/{styles → dist/css}/menu/menu.css +2 -0
  25. package/{styles → dist/css}/menu/menu.responsive.css +165 -78
  26. package/dist/css/menu/menu.responsive.min.css +1 -0
  27. package/{styles → dist/css}/overflow/overflow.css +2 -0
  28. package/{styles → dist/css}/overflow/overflow.responsive.css +98 -105
  29. package/dist/css/overflow/overflow.responsive.min.css +1 -0
  30. package/{styles → dist/css}/scale/scale.css +2 -0
  31. package/{styles → dist/css}/scale/scale.responsive.css +1520 -1152
  32. package/dist/css/scale/scale.responsive.min.css +1 -0
  33. package/{styles → dist/css}/table/table.css +2 -0
  34. package/{styles → dist/css}/table/table.responsive.css +162 -86
  35. package/dist/css/table/table.responsive.min.css +1 -0
  36. package/{styles → dist/css}/text/text.css +2 -0
  37. package/{styles → dist/css}/text/text.responsive.css +76 -55
  38. package/dist/css/text/text.responsive.min.css +1 -0
  39. package/{styles → dist/css}/theme/theme.css +51 -0
  40. package/{styles → dist/css}/theme/theme.min.css +1 -1
  41. package/{styles → dist/css}/vars.css +66 -67
  42. package/dist/css/vars.min.css +1 -0
  43. package/{styles → dist/css}/zindex/zindex.css +2 -0
  44. package/dist/cssFabric/config.d.ts +29 -0
  45. package/dist/cssFabric/config.js +29 -0
  46. package/dist/cssFabric/cssFabricSheet.d.ts +1226 -0
  47. package/dist/cssFabric/cssFabricSheet.js +1270 -0
  48. package/dist/cssFabric/cssProperties.d.ts +27 -0
  49. package/dist/cssFabric/cssProperties.js +343 -0
  50. package/dist/cssFabric/cssVariationsAi.d.ts +12 -0
  51. package/dist/cssFabric/cssVariationsAi.js +111 -0
  52. package/dist/cssFabric/index.d.ts +113 -0
  53. package/dist/cssFabric/index.js +341 -0
  54. package/dist/cssf/README.md +197 -0
  55. package/{init/importCssVars.d.ts → dist/cssf/cssf.d.ts} +1 -1
  56. package/dist/cssf/cssf.js +12 -0
  57. package/dist/cssf/cssfGuide.d.ts +14 -0
  58. package/dist/cssf/cssfGuide.js +50 -0
  59. package/dist/cssf/cssfLib.d.ts +134 -0
  60. package/dist/cssf/cssfLib.js +116 -0
  61. package/dist/cssf/cssfModel.d.ts +8 -0
  62. package/dist/cssf/cssfModel.js +59 -0
  63. package/dist/cssf/cssfPlugin.d.ts +3 -0
  64. package/dist/cssf/cssfPlugin.js +37 -0
  65. package/dist/cssf/cssfTransformer.d.ts +2 -0
  66. package/dist/cssf/cssfTransformer.js +100 -0
  67. package/dist/cssf/index.d.ts +6 -0
  68. package/dist/cssf/index.js +7 -0
  69. package/dist/cssfVsCode/.vscode/launch.json +17 -0
  70. package/dist/cssfVsCode/.vscodeignore +4 -0
  71. package/dist/cssfVsCode/CHANGELOG.md +9 -0
  72. package/dist/cssfVsCode/README.md +65 -0
  73. package/dist/cssfVsCode/language-configuration.json +36 -0
  74. package/dist/cssfVsCode/package.json +40 -0
  75. package/dist/cssfVsCode/syntaxes/cssf.tmLanguage.json +1868 -0
  76. package/dist/cssfVsCode/test.cssf +6 -0
  77. package/dist/cssfVsCode/vsc-extension-quickstart.md +29 -0
  78. package/{_generated → dist/generated}/cssFabric.vars.json +4 -4
  79. package/{_generated/export.variables.md → dist/generated/cssFabric.vars.md} +268 -240
  80. package/dist/index.d.ts +119 -0
  81. package/dist/index.js +120 -0
  82. package/dist/scripts/cssfabric.d.ts +24 -0
  83. package/{scripts → dist/scripts}/cssfabric.js +43 -43
  84. package/{scripts → dist/scripts}/cssfabricClassNames.d.ts +14 -14
  85. package/{scripts → dist/scripts}/cssfabricClassNames.js +146 -146
  86. package/dist/scripts/index.d.ts +2 -0
  87. package/{scripts → dist/scripts}/index.js +4 -4
  88. package/{scripts → dist/scripts}/utils.d.ts +5 -5
  89. package/{scripts → dist/scripts}/utils.js +38 -38
  90. package/dist/scss/_utils.scss +203 -0
  91. package/dist/scss/modules/_cssfabric-config.scss +178 -0
  92. package/dist/scss/modules/_mixins.scss +1 -0
  93. package/dist/scss/modules/animation/_animation-vars.scss +17 -0
  94. package/dist/scss/modules/animation/animation.scss +3 -0
  95. package/dist/scss/modules/base/_base-vars.scss +19 -0
  96. package/dist/scss/modules/base/base.scss +58 -0
  97. package/dist/scss/modules/box/_box-build.scss +305 -0
  98. package/dist/scss/modules/box/_box-vars.scss +121 -0
  99. package/dist/scss/modules/box/box-responsive.scss +18 -0
  100. package/dist/scss/modules/box/box.scss +3 -0
  101. package/dist/scss/modules/color/_color-build.scss +196 -0
  102. package/dist/scss/modules/color/_color-vars.scss +80 -0
  103. package/dist/scss/modules/color/color-responsive.scss +23 -0
  104. package/dist/scss/modules/color/color.scss +9 -0
  105. package/dist/scss/modules/css-fabric.scss +1 -0
  106. package/dist/scss/modules/flex/_flex-build.scss +150 -0
  107. package/dist/scss/modules/flex/_flex-vars.scss +84 -0
  108. package/dist/scss/modules/flex/flex-responsive.scss +25 -0
  109. package/dist/scss/modules/flex/flex.scss +3 -0
  110. package/dist/scss/modules/grid/_grid-build.scss +87 -0
  111. package/dist/scss/modules/grid/_grid-vars.scss +88 -0
  112. package/dist/scss/modules/grid/grid-responsive.scss +25 -0
  113. package/dist/scss/modules/grid/grid.scss +6 -0
  114. package/dist/scss/modules/menu/_menu-build.scss +120 -0
  115. package/dist/scss/modules/menu/_menu-vars.scss +29 -0
  116. package/dist/scss/modules/menu/menu-responsive.scss +19 -0
  117. package/dist/scss/modules/menu/menu.scss +6 -0
  118. package/dist/scss/modules/overflow/_overflow-build.scss +22 -0
  119. package/dist/scss/modules/overflow/_overflow-vars.scss +31 -0
  120. package/dist/scss/modules/overflow/overflow-responsive.scss +25 -0
  121. package/dist/scss/modules/overflow/overflow.scss +7 -0
  122. package/dist/scss/modules/scale/_scale-build.scss +142 -0
  123. package/dist/scss/modules/scale/_scale-vars.scss +84 -0
  124. package/dist/scss/modules/scale/scale-responsive.scss +23 -0
  125. package/dist/scss/modules/scale/scale.scss +8 -0
  126. package/dist/scss/modules/table/_table-build.scss +134 -0
  127. package/dist/scss/modules/table/_table-vars.scss +30 -0
  128. package/dist/scss/modules/table/table-responsive.scss +24 -0
  129. package/dist/scss/modules/table/table.scss +8 -0
  130. package/dist/scss/modules/text/_text-build.scss +166 -0
  131. package/dist/scss/modules/text/_text-vars.scss +87 -0
  132. package/dist/scss/modules/text/text-responsive.scss +26 -0
  133. package/dist/scss/modules/text/text.scss +6 -0
  134. package/dist/scss/modules/theme/_theme-build.scss +128 -0
  135. package/dist/scss/modules/theme/_theme-vars.scss +46 -0
  136. package/dist/scss/modules/theme/theme.scss +6 -0
  137. package/dist/scss/modules/vars.scss +46 -0
  138. package/dist/scss/modules/zindex/_zindex-vars.scss +14 -0
  139. package/dist/scss/modules/zindex/zindex.scss +15 -0
  140. package/package.json +70 -113
  141. package/_generated/readme.md +0 -0
  142. package/init/importCssVars.js +0 -2
  143. package/scripts/cssfabric.d.ts +0 -24
  144. package/scripts/index.d.ts +0 -2
  145. package/styles/animation/animation.css +0 -0
  146. package/styles/base/base.css +0 -215
  147. package/styles/base/base.min.css +0 -1
  148. package/styles/box/box.min.css +0 -1
  149. package/styles/box/box.responsive.min.css +0 -1
  150. package/styles/color/color.responsive.min.css +0 -1
  151. package/styles/cssfabric.css +0 -61792
  152. package/styles/cssfabric.min.css +0 -168
  153. package/styles/cssfabric.responsive.css +0 -200596
  154. package/styles/cssfabric.responsive.min.css +0 -108
  155. package/styles/flex/flex.responsive.min.css +0 -1
  156. package/styles/grid/grid.responsive.min.css +0 -1
  157. package/styles/menu/menu.responsive.min.css +0 -1
  158. package/styles/overflow/overflow.responsive.min.css +0 -1
  159. package/styles/scale/scale.responsive.min.css +0 -1
  160. package/styles/table/table.responsive.min.css +0 -1
  161. package/styles/text/text.responsive.min.css +0 -1
  162. package/styles/vars.min.css +0 -1
  163. /package/{styles → dist/css}/animation/animation.min.css +0 -0
  164. /package/{styles → dist/css}/color/color.min.css +0 -0
  165. /package/{styles → dist/css}/flex/flex.min.css +0 -0
  166. /package/{styles → dist/css}/grid/grid.min.css +0 -0
  167. /package/{styles → dist/css}/menu/menu.min.css +0 -0
  168. /package/{styles → dist/css}/overflow/overflow.min.css +0 -0
  169. /package/{styles → dist/css}/scale/scale.min.css +0 -0
  170. /package/{styles → dist/css}/table/table.min.css +0 -0
  171. /package/{styles → dist/css}/text/text.min.css +0 -0
  172. /package/{styles → dist/css}/zindex/zindex.min.css +0 -0
  173. /package/{_generated → dist/scss}/index.d.ts +0 -0
@@ -0,0 +1,24 @@
1
+
2
+ // load scss config file
3
+ @use '../../_utils';
4
+ @use '_table-build' as build;
5
+ @use "../cssfabric-config";
6
+ // load general config variables
7
+ $config: cssfabric-config.$cssfabric-config;
8
+
9
+ // load general config variables
10
+ // media queries sizes, in rem
11
+ $_media_quey_sizes: map-get($config, media_quey_sizes);
12
+
13
+ // builder responsive
14
+ $min_value: 0;
15
+
16
+ @each $mq_size_key,
17
+ $mq_size_value in $_media_quey_sizes {
18
+
19
+ @include utils.fabricResponsiveEncloser($mq_size_value,$min_value) {
20
+ @include build.buildTable($mq_size_key);
21
+ }
22
+ $min_value: $mq_size_value;
23
+ }
24
+
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // load scss config file
4
+ @use '../../_utils';
5
+ @use '_table-build' as build;
6
+
7
+
8
+ @include build.buildTable(null);
@@ -0,0 +1,166 @@
1
+ @use 'text-vars';
2
+ @use "../cssfabric-config";
3
+ @use '../../_utils';
4
+ @use "sass:math";
5
+
6
+ // load general config variables
7
+ $cssfabric-config: cssfabric-config.$cssfabric-config;
8
+ $sep: map-get($cssfabric-config, sep);
9
+
10
+ $text-config: text-vars.$text-config;
11
+ $moduleName: map-get($text-config, moduleName);
12
+ $moduleNameShort: map-get($text-config, moduleNameShort);
13
+
14
+ $cssProps: map-get($text-config, cssProps);
15
+ $color-schemes: map-get($text-config, scheme);
16
+ $color-palette-props: map-get($text-config, palette);
17
+
18
+ $gray-list: map-get($text-config, gray);
19
+
20
+ $textTransform: map-get($cssProps, textTransform);
21
+ $fontWeight: map-get($cssProps, fontWeight);
22
+ $textAlign: map-get($cssProps, textAlign);
23
+
24
+ $font-size-unit-config: map-get($text-config, font-size-unit-config) !default;
25
+ $font-size-h-steps: map-get($text-config, title-size-declination-config) !default;
26
+ $font-size-h-max-config: map-get($text-config, font-sizes-h1-rem-config) !default;
27
+ $font-size-h-min-config: map-get($text-config, font-size-h-min-rem-config) !default;
28
+
29
+ $size-diff: $font-size-h-max-config - $font-size-h-min-config;
30
+ $steps: $font-size-h-steps - 1;
31
+
32
+ $step-size: math.div($size-diff, $steps);
33
+
34
+ @mixin fabric_text($tag_short) {
35
+
36
+ $acc: 1 - $step-size ;
37
+
38
+ .#{$tag_short}-ellipsis {
39
+ text-overflow: ellipsis;
40
+ overflow: hidden;
41
+ white-space: nowrap;
42
+ }
43
+
44
+ @for $size-index from 1 through $font-size-h-steps {
45
+ //
46
+ $acc: (( $font-size-h-steps - $size-index) * $step-size) + 1;
47
+
48
+ .h#{$size-index},
49
+ h#{$size-index} {
50
+ font-size: var(--font-size-h#{$size-index});
51
+ line-height: 1.2;
52
+ font-weight: 400;
53
+ }
54
+ }
55
+
56
+
57
+ }
58
+
59
+ @mixin textBuildTransform($tag_short) {
60
+ .#{$tag_short} {
61
+ @each $fabricRule, $value in $textTransform {
62
+ @include utils.fabricAttributes("&" + $sep, $fabricRule, "text-transform", $value);
63
+ }
64
+ }
65
+ }
66
+
67
+ @mixin textBuildAlign($tag_short) {
68
+ .#{$tag_short} {
69
+ @each $fabricRule, $value in $textAlign {
70
+ @include utils.fabricAttributes("&" + $sep, $fabricRule, "text-align", $value);
71
+ }
72
+ }
73
+ }
74
+
75
+ @mixin textBuildFontWeight($tag_short) {
76
+ .#{$tag_short} {
77
+ @each $fabricRule, $value in $fontWeight {
78
+ @include utils.fabricAttributes("&" + $sep, $fabricRule, "font-weight", var(--font-weight-#{$fabricRule}));
79
+ }
80
+ }
81
+ }
82
+
83
+ @mixin textBuildShadowColorScheme($tag_short) {
84
+ // text shadows color_schemes
85
+ .#{$tag_short} {
86
+ @each $fabricRule, $value in $color-schemes {
87
+ @include utils.fabricAttributes("&" + $sep + shad + $sep, $fabricRule, "text-shadow", var(--text-shadow-#{$fabricRule}));
88
+ }
89
+ }
90
+ }
91
+
92
+ @mixin textBuildShadowPalette($tag_short) {
93
+ // text shadows color_palette_props
94
+ .#{$tag_short} {
95
+ @each $fabricRule, $value in $color-palette-props {
96
+ @include utils.fabricAttributes("&" + $sep+ shad + $sep, $fabricRule, "text-shadow", var(--text-shadow-#{$fabricRule}));
97
+ }
98
+ }
99
+ }
100
+
101
+ @mixin textCssVars() {
102
+ /*Hs*/
103
+ @for $size-index from 1 through $font-size-h-steps {
104
+ $acc: (( $font-size-h-steps - $size-index) * $step-size) + 1;
105
+ --font-size-h#{$size-index}: #{$acc + $font-size-unit-config};
106
+ }
107
+ /*weight*/
108
+ @each $fabricRule, $value in $fontWeight {
109
+ --font-weight-#{$fabricRule}: #{$value};
110
+ }
111
+ /*text shadows color_schemes*/
112
+ @each $fabricRule, $value in $color-schemes {
113
+ $cast-value: 0 0 0.125em #{$value};
114
+ --text-shadow-#{$fabricRule}: #{$cast-value};
115
+ }
116
+ /*text-shadows color_palette */
117
+ @each $fabricRule, $value in $color-palette-props {
118
+ $cast-value: 0 0 0.125em #{$value};
119
+ --text-shadow-#{$fabricRule}: #{$cast-value};
120
+ }
121
+ }
122
+
123
+
124
+ @mixin buildText($mq_size_key: null) {
125
+
126
+ $property_key: if($mq_size_key, #{$moduleNameShort}-#{$mq_size_key}, #{$moduleNameShort});
127
+
128
+ @include fabric_text($property_key);
129
+
130
+ @if ($mq_size_key == null) {
131
+ @if (cssfabric-config.$has-text-transform) {
132
+ @include textBuildTransform($property_key)
133
+ }
134
+ @if (cssfabric-config.$has-text-align) {
135
+ @include textBuildAlign($property_key)
136
+ }
137
+ @if (cssfabric-config.$has-text-font) {
138
+ @include textBuildFontWeight($property_key)
139
+ }
140
+ @if (cssfabric-config.$has-text-shadow-color-scheme) {
141
+ @include textBuildShadowColorScheme($property_key)
142
+ }
143
+ @if (cssfabric-config.$has-text-shadow-color-palette) {
144
+ @include textBuildShadowPalette($property_key)
145
+ }
146
+ }
147
+
148
+ @if ($mq_size_key != null) {
149
+ @if (cssfabric-config.$has-text-transform-responsive) {
150
+ @include textBuildTransform($property_key)
151
+ }
152
+ @if (cssfabric-config.$has-text-align-responsive) {
153
+ @include textBuildAlign($property_key)
154
+ }
155
+ @if (cssfabric-config.$has-text-font-responsive) {
156
+ @include textBuildFontWeight($property_key)
157
+ }
158
+ @if (cssfabric-config.$has-text-shadow-color-scheme-responsive) {
159
+ @include textBuildShadowColorScheme($property_key)
160
+ }
161
+ @if (cssfabric-config.$has-text-shadow-color-palette-responsive) {
162
+ @include textBuildShadowPalette($property_key)
163
+ }
164
+ }
165
+
166
+ }
@@ -0,0 +1,87 @@
1
+ @use '../../_utils';
2
+
3
+ $cssProps: (
4
+ text-transform: (
5
+ cap: capitalize,
6
+ up: uppercase,
7
+ low: lowercase,
8
+ none: none,
9
+ full: full-width
10
+ ),
11
+ font-weight: (
12
+ 50: 50,
13
+ 100: 100,
14
+ 300: 400,
15
+ 500: 500,
16
+ 900: 900,
17
+ light: lighter,
18
+ cap: normal,
19
+ bold: bold,
20
+ bolder: bolder
21
+ ),
22
+ text-align: (
23
+ l: left,
24
+ r: right,
25
+ center: center,
26
+ justify: justify
27
+ ),
28
+ text-shadow: (
29
+ palette:(primary, secondary)
30
+ )
31
+ );
32
+
33
+ $text-metadata: (
34
+ title: text,
35
+ tag: text,
36
+ description: "cssfabric text module to set text style on all html elements"
37
+ );
38
+
39
+ $text-config: (
40
+ moduleName: text,
41
+ moduleNameShort: text,
42
+ title-size-declination-config: 6,
43
+ font-size-unit-config: rem,
44
+ font-sizes-h1-rem-config: 3.1,
45
+ font-size-h-min-rem-config: 1,
46
+ text-ellipsis-tag-config: ellipsis,
47
+ cssProps: (
48
+ textTransform: (
49
+ cap: capitalize,
50
+ up: uppercase,
51
+ low: lowercase,
52
+ none: none,
53
+ full: full-width
54
+ ),
55
+ fontWeight: map-get($cssProps, "font-weight"),
56
+ textAlign: map-get($cssProps, "text-align")
57
+ ),
58
+ scheme: utils.get_fabric_conf(scheme),
59
+ palette: utils.get_fabric_conf(palette),
60
+ gray: utils.get_fabric_conf(gray)
61
+ );
62
+
63
+ $text-docs: (
64
+ attributes: (
65
+ text-transform: (
66
+ tag: text,
67
+ keys: utils.getObjectKeys(map-get($cssProps, text-transform))
68
+ ),
69
+ font-weight: (
70
+ tag: text,
71
+ keys: utils.getObjectKeys(map-get($cssProps, font-weight))
72
+ ),
73
+ text-align: (
74
+ tag: text,
75
+ keys: utils.getObjectKeys(map-get($cssProps, text-align))
76
+ ),
77
+ text-shadow: (
78
+ tag: text-shad,
79
+ keys: utils.getObjectKeys(map-get($cssProps, text-shadow))
80
+ )
81
+ ),
82
+ classNames: (
83
+ "_": (
84
+ et: "ellipsis"
85
+ )
86
+ )
87
+ );
@@ -0,0 +1,26 @@
1
+
2
+ @use "sass:map";
3
+ // load scss config file
4
+ @use '../../_utils';
5
+ @use '_text-build' as build;
6
+ @use "../cssfabric-config";
7
+ // load general config variables
8
+ $config: cssfabric-config.$cssfabric-config;
9
+
10
+ // load general config variables
11
+ // media queries sizes, in rem
12
+ $_media_quey_sizes: map-get($config, media_quey_sizes);
13
+
14
+ // builder responsive
15
+ $min_value: 0;
16
+
17
+ @each $mq_size_key,
18
+ $mq_size_value in $_media_quey_sizes {
19
+
20
+ @include utils.fabricResponsiveEncloser($mq_size_value,$min_value) {
21
+ @include build.buildText($mq_size_key);
22
+ }
23
+
24
+ $min_value: $mq_size_value;
25
+ }
26
+
@@ -0,0 +1,6 @@
1
+
2
+ @use '_text-build' as build;
3
+
4
+ @include build.buildText(null);
5
+
6
+
@@ -0,0 +1,128 @@
1
+ @use "../../_utils";
2
+ @use "sass:color";
3
+ @use "theme-vars";
4
+
5
+ @import "theme-vars";
6
+ @import "../cssfabric-config";
7
+
8
+ // COLOR THEME
9
+ $moduleNameShort: map-get($theme-config, moduleNameShort);
10
+ //
11
+ $theme-levels: map-get($theme-config, theme-level-config);
12
+ $theme-properties-apply-config: map-get($theme-config, theme-properties-apply-config);
13
+
14
+
15
+ $declinations-config: map-get($theme-config, declinations-config);
16
+
17
+ @mixin fabric_theme($mq_size_key: null) {
18
+ // loop on each color grades primary secondary tertiary
19
+ @each $color-grade in $declinations-config {
20
+ // text, bg, border
21
+ @each $text-or-bg-or-border in $theme-properties-apply-config {
22
+ $property_key: if($mq_size_key, #{$text-or-bg-or-border}-#{$mq_size_key}, #{$text-or-bg-or-border});
23
+ // font-size border-color background-color
24
+ $switch-tag-type: utils.getColorPropertyType($text-or-bg-or-border);
25
+
26
+ .#{$moduleNameShort}-#{$property_key}-#{$color-grade} {
27
+ #{$switch-tag-type}: var(--theme-color-#{$color-grade});
28
+ // light lighter dark ...
29
+ @each $theme-level in $theme-levels {
30
+ $newColor: var(--theme-color-#{$color-grade}-#{$theme-level});
31
+
32
+ @include utils.fabricAttributes("&-", $theme-level, #{$switch-tag-type}, $newColor);
33
+ }
34
+ }
35
+ }
36
+ }
37
+ .theme-text-color, .theme-foreground-color {
38
+ color: var(--theme-color-text);
39
+ }
40
+
41
+ .theme-foreground-color-alpha {
42
+ color: var(--theme-color-foreground-alpha);
43
+ }
44
+ .theme-foreground-color-alpha-low {
45
+ color: var(--theme-color-foreground-alpha-low);
46
+ }
47
+ .theme-foreground-color-alpha-high {
48
+ color: var(--theme-color-foreground-alpha-high);
49
+ }
50
+
51
+ .theme-bg{
52
+ background-color: var(--theme-color-background);
53
+ }
54
+ .theme-bg-alpha{
55
+ background-color: var(--theme-color-background-alpha);
56
+ }
57
+ .theme-bg-alpha-low{
58
+ background-color: var(--theme-color-background-alpha-low);
59
+ }
60
+ .theme-bg-alpha-high{
61
+ background-color: var(--theme-color-background-alpha-high);
62
+ }
63
+
64
+ .theme-bg-paper{
65
+ background-color: var(--theme-color-paper);
66
+ }
67
+
68
+ .theme-bg-paper-alpha{
69
+ background-color: var(--theme-color-paper-alpha);
70
+ }
71
+
72
+ .theme-bg-paper-alpha-low{
73
+ background-color: var(--theme-color-paper-alpha-low);
74
+ }
75
+
76
+ .theme-bg-paper-alpha-high{
77
+ background-color: var(--theme-color-paper-alpha-high);
78
+ }
79
+ }
80
+
81
+ @mixin themeBaseVars($theme-color-foreground,$theme-color-background,$theme-color-paper) {
82
+ /* theme base colors*/
83
+ --theme-color-text: #{$theme-color-foreground};
84
+ --theme-color-foreground: #{$theme-color-foreground};
85
+
86
+ @include utils.alphaTize(--theme-color-foreground, $theme-color-foreground);
87
+ --theme-color-background: #{$theme-color-background};
88
+ @include utils.alphaTize(--theme-color-background, $theme-color-background);
89
+ --theme-color-paper: #{$theme-color-paper};
90
+ @include utils.alphaTize(--theme-color-paper, $theme-color-paper);
91
+ }
92
+
93
+ /* primary,secondary with alphas */
94
+ @mixin themeCssVars($theme-color-primary,$theme-color-secondary,$theme-color-tertiary) {
95
+
96
+ /* theme primary colors*/
97
+ --theme-color-primary: #{$theme-color-primary};
98
+ @each $theme-level in $theme-levels {
99
+ --theme-color-primary-#{$theme-level}: #{utils.applyColorEffect($theme-level,$theme-color-primary)};
100
+ }
101
+
102
+ --theme-color-primary-alpha-low: #{color.change($theme-color-primary,$alpha:0.8)};
103
+ --theme-color-primary-alpha: #{color.change($theme-color-primary,$alpha:0.3)};
104
+ --theme-color-primary-alpha-high: #{color.change($theme-color-primary,$alpha:0.1)};
105
+
106
+ /* theme secondary colors*/
107
+ --theme-color-secondary: #{$theme-color-secondary};
108
+ @each $theme-level in $theme-levels {
109
+ --theme-color-secondary-#{$theme-level}: #{utils.applyColorEffect($theme-level,$theme-color-secondary)};
110
+ }
111
+ --theme-color-secondary-alpha-low: #{color.change($theme-color-secondary,$alpha:0.8)};
112
+ --theme-color-secondary-alpha: #{color.change($theme-color-secondary,$alpha:0.3)};
113
+ --theme-color-secondary-alpha-high: #{color.change($theme-color-secondary,$alpha:0.1)};
114
+
115
+ /* theme tertiary colors*/
116
+ --theme-color-tertiary: #{$theme-color-tertiary};
117
+ @each $theme-level in $theme-levels {
118
+ --theme-color-tertiary-#{$theme-level}: #{utils.applyColorEffect($theme-level,$theme-color-tertiary)};
119
+ }
120
+ --theme-color-tertiary-alpha-low: #{color.change($theme-color-tertiary,$alpha:0.8)};
121
+ --theme-color-tertiary-alpha: #{color.change($theme-color-tertiary,$alpha:0.3)};
122
+ --theme-color-tertiary-alpha-high: #{color.change($theme-color-tertiary,$alpha:0.1)};
123
+ }
124
+
125
+ @mixin buildTheme($mq_size_key: null) {
126
+
127
+ @include fabric_theme($mq_size_key);
128
+ }
@@ -0,0 +1,46 @@
1
+ @use '../../utils' as utils;
2
+ @import "../cssfabric-config";
3
+
4
+
5
+
6
+ $_declinations-config: (primary, secondary, tertiary);
7
+ $themeii : (primary: $theme-color-primary, secondary:$theme-color-secondary, tertiary:$theme-color-tertiary);
8
+
9
+ $_theme-levels: (light lighter dark darker complement invert);
10
+ $_theme-properties-apply: (text, bg, border);
11
+
12
+
13
+ $theme-metadata: (
14
+ "title": "theme",
15
+ "description": ""
16
+ );
17
+
18
+ $_theme-levels-obj: (_ light lighter dark darker complement invert);
19
+ $_declinations-config-object: (primary:$_theme-levels-obj, secondary:$_theme-levels-obj, tertiary:$_theme-levels-obj);
20
+
21
+
22
+ $theme-config: (
23
+ moduleName: theme,
24
+ moduleNameShort: theme,
25
+ color-default-config: (
26
+ primary: $theme-color-primary,
27
+ secondary: $theme-color-secondary,
28
+ tertiary: $theme-color-tertiary,
29
+ foreground: $theme-color-foreground,
30
+ background: $theme-color-background,
31
+ paper: $theme-color-paper,
32
+ ),
33
+ declinations-config:$_declinations-config,
34
+ theme-level-config:$_theme-levels,
35
+ theme-properties-apply-config:$_theme-properties-apply,
36
+ // primary secondary tertiary
37
+ color: utils.getThemeLevels($themeii, $theme-color-primary)
38
+ );
39
+
40
+ $theme-docs: (attributes:(
41
+ theme:(
42
+ tag: theme,
43
+ keys: $_theme-properties-apply,
44
+ levels: $_declinations-config-object
45
+ )
46
+ ));
@@ -0,0 +1,6 @@
1
+
2
+ @use '_theme-build' as build;
3
+
4
+ @include build.buildTheme(null);
5
+
6
+
@@ -0,0 +1,46 @@
1
+ @use "../_utils";
2
+ @use "sass:color";
3
+ @use "./color/color-vars";
4
+ @use "./color/color-build" as colorBuild;
5
+ @use "./box/box-build" as boxBuild;
6
+ @use "./theme/theme-build" as themeBuild;
7
+ @use "./text/text-build" as textBuild;
8
+
9
+ @import "cssfabric-config";
10
+
11
+ /*
12
+ cssFabric vars
13
+ */
14
+ :root {
15
+ /* --theme-color-primary|*-alpha-|* */
16
+ @include themeBuild.themeCssVars($theme-color-primary, $theme-color-secondary, $theme-color-tertiary);
17
+
18
+ @include colorBuild.buildColorCssVars();
19
+ /* text */
20
+ @include textBuild.textCssVars();
21
+ /* boxes */
22
+ @include boxBuild.pmbCssVars();
23
+ /* shadows */
24
+ @include boxBuild.shadowsCssVars();
25
+
26
+ // @include themeBuild.themeBaseVars($theme-color-foreground, $theme-color-background, $theme-color-paper);
27
+
28
+ &,
29
+ [data-theme="light"] {
30
+ @include themeBuild.themeBaseVars($theme-color-foreground, $theme-color-background, $theme-color-paper);
31
+
32
+ --theme-color-border: #{color.change($theme-color-foreground, $alpha: 0.2)};
33
+ --theme-color-overlay: rgba($theme-color-foreground, 0.4);
34
+ }
35
+
36
+ [data-theme="dark"] {
37
+ @include themeBuild.themeBaseVars(
38
+ $theme-dark-color-foreground,
39
+ $theme-dark-color-background,
40
+ $theme-dark-color-paper
41
+ );
42
+
43
+ --theme-color-border: #{color.change($theme-dark-color-foreground, $alpha: 0.3)};
44
+ --theme-color-overlay: rgba($theme-dark-color-background, 0.4);
45
+ }
46
+ }
@@ -0,0 +1,14 @@
1
+ $zindex-metadata: (
2
+ title: zindex,
3
+ tag: zI,
4
+ description: "cssfabric zindex module to set z-index on all html elements",
5
+ );
6
+ $zindex-config: (
7
+ z_groups: (
8
+ a,
9
+ z
10
+ ),
11
+ );
12
+ $zindex-docs: (
13
+ z_groups: _,
14
+ );
@@ -0,0 +1,15 @@
1
+
2
+ @use 'zindex-vars';
3
+ $zindex-config: zindex-vars.$zindex-config;
4
+ // load scss config file
5
+ @use '../../_utils';
6
+
7
+ // read variables
8
+ $z_groups: map-get($zindex-config, z_groups);
9
+
10
+
11
+ @for $z_value from 0 through 10 {
12
+ .zI-#{$z_value} {
13
+ z-index: (($z_value) * 100);
14
+ }
15
+ }