@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
@@ -1,38 +1,38 @@
1
- const utils = {
2
- isArrayOfTypes: (arr) => {
3
- let ret = '';
4
- if (!Array.isArray(arr)) {
5
- return false;
6
- }
7
- if (arr.every(x => Array.isArray(x)))
8
- ret = 'arrays';
9
- if (arr.every(x => typeof x === 'number' || typeof x === 'string'))
10
- ret = 'strings';
11
- if (arr.every(x => typeof x === 'string'))
12
- ret = 'strings';
13
- if (arr.every(x => typeof x === 'number'))
14
- ret = 'numbers';
15
- if (arr.every(x => typeof x === 'object' && !Array.isArray(x)))
16
- ret = 'objects';
17
- return ret;
18
- },
19
- isObjectOfTypes: (arr) => {
20
- if (Array.isArray(arr)) {
21
- return false;
22
- }
23
- let ret = '';
24
- let arrValues = Object.values(arr);
25
- if (arrValues.every(x => typeof x === 'number' || typeof x === 'string'))
26
- ret = 'strings';
27
- if (arrValues.every(x => Array.isArray(x)))
28
- ret = 'arrays';
29
- if (arrValues.every(x => typeof x === 'string'))
30
- ret = 'strings';
31
- if (arrValues.every(x => typeof x === 'number'))
32
- ret = 'numbers';
33
- if (arrValues.every(x => typeof x === 'object' && !Array.isArray(x)))
34
- ret = 'objects';
35
- return ret;
36
- }
37
- };
38
- export default utils;
1
+ const utils = {
2
+ isArrayOfTypes: (arr) => {
3
+ let ret = '';
4
+ if (!Array.isArray(arr)) {
5
+ return false;
6
+ }
7
+ if (arr.every(x => Array.isArray(x)))
8
+ ret = 'arrays';
9
+ if (arr.every(x => typeof x === 'number' || typeof x === 'string'))
10
+ ret = 'strings';
11
+ if (arr.every(x => typeof x === 'string'))
12
+ ret = 'strings';
13
+ if (arr.every(x => typeof x === 'number'))
14
+ ret = 'numbers';
15
+ if (arr.every(x => typeof x === 'object' && !Array.isArray(x)))
16
+ ret = 'objects';
17
+ return ret;
18
+ },
19
+ isObjectOfTypes: (arr) => {
20
+ if (Array.isArray(arr)) {
21
+ return false;
22
+ }
23
+ let ret = '';
24
+ let arrValues = Object.values(arr);
25
+ if (arrValues.every(x => typeof x === 'number' || typeof x === 'string'))
26
+ ret = 'strings';
27
+ if (arrValues.every(x => Array.isArray(x)))
28
+ ret = 'arrays';
29
+ if (arrValues.every(x => typeof x === 'string'))
30
+ ret = 'strings';
31
+ if (arrValues.every(x => typeof x === 'number'))
32
+ ret = 'numbers';
33
+ if (arrValues.every(x => typeof x === 'object' && !Array.isArray(x)))
34
+ ret = 'objects';
35
+ return ret;
36
+ }
37
+ };
38
+ export default utils;
@@ -0,0 +1,203 @@
1
+ @use "sass:string";
2
+ @use "sass:map";
3
+ @use "sass:math";
4
+ @use "sass:color";
5
+
6
+ // load main fabric vars
7
+ @use 'modules/cssfabric-config' as cssfabric-config;
8
+
9
+ // link to fabric conf scss file, which often move ;)
10
+ @function get_fabric_conf($prop: null,$val: null) {
11
+ @if not $prop {
12
+ @return cssfabric-config.$cssfabric-config;
13
+ }
14
+ @if $prop and not $val {
15
+ @return map-get(cssfabric-config.$cssfabric-config, $prop);
16
+ }
17
+ @if $val {
18
+ $in: map-get(cssfabric-config.$cssfabric-config, $prop);
19
+ @return map-get($in, $prop, $val);
20
+ }
21
+ }
22
+
23
+ // css dimensions rules builder responsive
24
+ @mixin fabricResponsiveEncloser($mq_size_value, $mq_min_size_value: null) {
25
+ // and (min-width: $mq_min_size_value + rem)
26
+ // @debug $mq_size_value $mq_min_size_value;
27
+ $type-width: "min"; // if($mq_size_value==180, max, max);
28
+ $width: if($mq_size_value==180, $mq_min_size_value, $mq_size_value);
29
+
30
+ // @debug (#{$type-width}-width: $width + rem) ;
31
+ @media only screen and (#{$type-width}-width: $width + px) {
32
+ @content;
33
+ }
34
+ }
35
+
36
+ @mixin fabricAttributes($sep, $frag, $property, $value) {
37
+ #{$sep + $frag} {
38
+ #{$property}: #{$value};
39
+ }
40
+ }
41
+
42
+ @mixin scssVarsToCssVars($module, $module-config) {
43
+ /**
44
+ * cssfabric generated file
45
+ * css vars for #{$module}
46
+ */
47
+ @each $red, $rt in $module-config {
48
+ // list map string
49
+ @if (type_of($rt) == "string") {
50
+ $key: #{$module}-#{$red};
51
+ --cssfabric-#{$key}: #{$rt};
52
+ }
53
+ @if (type_of($rt) == "map") {
54
+ @each $rtkey, $rtval in $rt {
55
+ $type: type_of($rtval);
56
+ $key: #{$module}-#{$red}-#{$rtkey};
57
+ $compval: is-map; // #{string.slice(#{#ss($rtval)}, 4)};
58
+
59
+ $comp: if($type== map or $type == list, #{$compval}, #{$rtval});
60
+
61
+ --cssfabric-#{$key}: #{$comp};
62
+ }
63
+ }
64
+ @if (type_of($rt) == "list") {
65
+ $key: #{$module}-#{$red};
66
+ --cssfabric-#{$key}: #{string.slice(#{#ss($rt)}, 4)};
67
+ }
68
+ }
69
+ }
70
+
71
+ @mixin alphaTize($key,$color,$ranges: (_:0.3,low:0.8,high:0.1)) {
72
+ @each $range, $val in $ranges {
73
+ $rg: if($range==_,'',-#{$range});
74
+ #{$key}-alpha#{$rg} : rgba($color,$val); // #{color.change($color,$alpha:$val)};
75
+ }
76
+ }
77
+
78
+ @function getGraySteps($steps, $gray-start, $gray-end) {
79
+ $gray-schemes: ();
80
+
81
+ @for $i from 0 through $steps {
82
+
83
+ $color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
84
+
85
+ $gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
86
+ }
87
+
88
+ @return $gray-schemes;
89
+ }
90
+
91
+ @function applyColorEffect($theme-level, $color) {
92
+ $switch-named: map-get(
93
+ (
94
+ light: lighten($color, 15%),
95
+ lighter: lighten($color, 30%),
96
+ dark: darken($color, 10%),
97
+ darker: darken($color, 20%),
98
+ complement: complement($color),
99
+ invert: invert($color)
100
+ ),
101
+ $theme-level
102
+ );
103
+
104
+ @return $switch-named;
105
+ }
106
+
107
+ @function getColorPropertyType($fabric-tag) {
108
+ /** get property for #{$fabric-tag} */
109
+ @return map-get(
110
+ (
111
+ color: color,
112
+ text: color,
113
+ foreground: color,
114
+ bg: background-color,
115
+ bg-themed: background-color,
116
+ border: border-color
117
+ ),
118
+ $fabric-tag
119
+ );
120
+ }
121
+
122
+ @function getThemeLevels($declinations-config, $color_primary) {
123
+ $out: ();
124
+ // primary secondary tertiary
125
+ @each $color-grade, $color-value in $declinations-config {
126
+ $color: $color-value;
127
+ $out: map.set($out, $color-grade, $color);
128
+ @each $theme-level in (light lighter dark darker complement invert) {
129
+ $new-theme-level: #{$color-grade}-#{$theme-level};
130
+ $newColor: applyColorEffect($theme-level, $color);
131
+ $out: map.set($out, $new-theme-level, $newColor);
132
+ }
133
+ }
134
+
135
+ @return $out;
136
+ }
137
+
138
+ @function getBoxIterator($iterator, $unit-config,$_unit-size-config) {
139
+ $out: ("_": "_");
140
+
141
+ @for $grid_size_value from 1 through $iterator {
142
+ $css_size_value: ($grid_size_value * $_unit-size-config) + $unit-config;
143
+ $out: map.set($out, $grid_size_value, $css_size_value);
144
+ }
145
+ @return $out
146
+ }
147
+
148
+ @function getShadowIterator($factors,$box-shadows-steps) {
149
+ $out: ();
150
+
151
+ $v_fact: map-get($factors, v_fact);
152
+ $h_fact: map-get($factors, h_fact);
153
+
154
+ $v_fact_2: map-get($factors, v_fact_2);
155
+ $h_fact_2: map-get($factors, h_fact_2);
156
+
157
+ $acc: 1;
158
+
159
+ @for $shadows_step from 1 through $box-shadows-steps {
160
+ $acc: $acc * 2;
161
+ $v: $shadows_step * 2;
162
+
163
+ $v_val: math.div($acc, $v_fact);
164
+ $h_val: math.div($acc, $h_fact);
165
+
166
+ $v_val_2: math.div($acc, $v_fact_2);
167
+ $h_val_2: math.div($acc, $h_fact_2);
168
+
169
+ $out: map.set($out, $acc, #{$v_val} + #{$h_val});
170
+ }
171
+
172
+ @return $out;
173
+ }
174
+
175
+ @function cssDimensionPropertyBuilder($scale_prop,$dimensions_grid_ratio) {
176
+ $out: ();
177
+
178
+ @for $z_value from 1 through $dimensions_grid_ratio {
179
+ $key: $z_value + "-" + $dimensions_grid_ratio;
180
+ $val: (math.div($z_value , $dimensions_grid_ratio) * 100) + #{"%"};
181
+
182
+ $out: map.set($out, $key, $val);
183
+ }
184
+
185
+ @return $out
186
+ }
187
+
188
+ @function getObjectKeys($object) {
189
+ $out: ();
190
+ @each $key, $value in $object {
191
+ $out: append($out, $key);
192
+ }
193
+
194
+ @return $out;
195
+ }
196
+
197
+ @function getObjectValues($object) {
198
+ @return $object;
199
+ }
200
+
201
+ @function getObjectKeyValues($object) {
202
+ @return $object;
203
+ }
@@ -0,0 +1,178 @@
1
+ @use "sass:map";
2
+ @use "sass:math";
3
+
4
+
5
+ // prefix ?
6
+ // scoped ?
7
+
8
+ // dimensions
9
+
10
+ // grays
11
+ $has-color-gray: true;
12
+ $has-color-gray-responsive: true;
13
+ // text - done conditionals
14
+ $has-text-transform: true;
15
+ $has-text-transform-responsive: false;
16
+ $has-text-align: true;
17
+ $has-text-align-responsive: false;
18
+ $has-text-font: true;
19
+ $has-text-font-responsive: false;
20
+ $has-text-shadow-color-scheme: true;
21
+ $has-text-shadow-color-scheme-responsive: false;
22
+ $has-text-shadow-color-palette: true;
23
+ $has-text-shadow-color-palette-responsive: false;
24
+
25
+ // colors
26
+ $has-color-palette: true;
27
+ $has-color-palette-responsive: false;
28
+ $has-color-scheme: true;
29
+ $has-color-scheme-responsive: false;
30
+ $has-color-gray: true;
31
+ $has-color-gray-responsive: false;
32
+
33
+ $has-color-foreground: true;
34
+ $has-color-bg: true;
35
+ $has-color-bg-themed: true;
36
+ $has-color-border: true;
37
+
38
+
39
+ $theme-color-primary: rgb(32, 23, 0) !default;
40
+ $theme-color-secondary: #D14B02 !default;
41
+ $theme-color-tertiary: #88D102 !default;
42
+ //light theme
43
+ $theme-color-foreground: #282230 !default;
44
+ $theme-color-background: #ffffff !default;
45
+ $theme-color-paper: #f1f1f1 !default;
46
+
47
+ $theme-color-shadow: green !default;
48
+ // dark theme
49
+ $theme-dark-color-foreground: #f1f1f1 !default;
50
+ $theme-dark-color-background: #27323a !default;
51
+ $theme-dark-color-paper: #3a3b3b !default;
52
+
53
+ $theme-dark-color-shadow: black !default;
54
+
55
+ // grays
56
+ $gray-start: #f4f4f4 !default;
57
+ $gray-end: #999 !default;
58
+ $gray-steps: 5 !default;
59
+
60
+ $densities-ratios: (small:0.5, default:1, large:1.75);
61
+
62
+ $box-position-shorthand: pos !default;
63
+ $box-display-shorthand: dsp !default;
64
+ $box-shadow-shorthand: shad !default;
65
+ $box-border-shorthand: border !default;
66
+ $box-padding-shorthand: pad !default;
67
+ $box-margin-shorthand: marg !default;
68
+ $box-gap-shorthand: gap !default;
69
+
70
+ $box-unit-presets: (tight:0.25,tiny:0.25, small:0.5, default: 1,medium:1.5, large:3) !default;
71
+ $box-radius: (tiny:4px, small:8px, medium:16px) !default;
72
+
73
+ $scale-tag-width-shorthand: w !default;
74
+ $scale-tag-height-shorthand: h !default;
75
+
76
+ $cssfabric-metadata: (
77
+ title: "cssfabric",
78
+ tag: "cssfabric",
79
+ description: "cssfabric global config variables"
80
+ );
81
+
82
+ // vars
83
+ $vars-box-density: --box-density !default;
84
+ $vars-box-density-preset: --box-density-preset !default;
85
+
86
+ $vars-theme-color-shadow: --theme-color-shadow !default;
87
+ $vars-theme-dark-color-shadow: --theme-dark-color-shadow !default;
88
+
89
+ $cssfabric-config: (
90
+ cfg-has-dimension-strict: true,
91
+ CFG_HAS_DIMENSION_MIN: true,
92
+ CFG_HAS_DIMENSION_MAX: true,
93
+ size_step: 0.5rem,
94
+ size-step-unit: rem,
95
+ sep: "-",
96
+ sizes: (
97
+ tiny: 32,
98
+ small: 64,
99
+ medium: 128,
100
+ large: 256,
101
+ full: 100%
102
+ ),
103
+ media_quey_sizes: (
104
+ sm:640,
105
+ md:768,
106
+ lg:1024,
107
+ xl:1280,
108
+ xxl:1540
109
+ /* xxl: 1300,
110
+ xl: 1200,
111
+ lg: 960,
112
+ md: 760 */
113
+ ),
114
+ densities-ratios: $densities-ratios,
115
+ themes:(
116
+ light:(
117
+ foreground: $theme-color-foreground,
118
+ background: $theme-color-background,
119
+ paper: $theme-color-paper,
120
+ ),
121
+ dark:(
122
+ foreground: $theme-dark-color-foreground,
123
+ background: $theme-dark-color-background,
124
+ paper: $theme-dark-color-paper
125
+ ),
126
+ ),
127
+ theme: (
128
+ primary: $theme-color-primary,
129
+ secondary: $theme-color-secondary,
130
+ tertiary: $theme-color-tertiary,
131
+ foreground: $theme-color-foreground,
132
+ background: $theme-color-background,
133
+ paper: $theme-color-paper,
134
+ ),
135
+ scheme: (
136
+ discrete: #ccc,
137
+ success: green,
138
+ info: #FFDD57FF,
139
+ warning: hsl(48, 96%, 46%),
140
+ alert: hsl(27, 100%, 50%),
141
+ error: red
142
+ ),
143
+ palette: (
144
+ 'yellow': #ffb900,
145
+ 'orange': #d83b01,
146
+ 'red': #d13438,
147
+ 'magenta': #b4009e,
148
+ 'purple': #5c2d91,
149
+ 'green': #107c10,
150
+ 'teal': #008272,
151
+ 'blue': #0078d4,
152
+ 'dark': #323232,
153
+ ),
154
+ border-radius:(
155
+ tiny:4px, small:8px, medium:16px
156
+ ),
157
+ gray: getGraySteps($gray-steps, $gray-start, $gray-end),
158
+ gray-config: (
159
+ start: $gray-start,
160
+ end: $gray-end,
161
+ steps: $gray-steps
162
+ )
163
+ );
164
+
165
+ @function getGraySteps($steps, $gray-start, $gray-end) {
166
+ $gray-schemes: ();
167
+
168
+ @for $i from 0 through $steps {
169
+
170
+ $color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
171
+
172
+ $gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
173
+ }
174
+
175
+ @return $gray-schemes;
176
+ }
177
+
178
+ $cssfabric-docs: ();
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,17 @@
1
+ $animation-metadata: (
2
+ title: "animation",
3
+ description: "cssfabric simplest animation module"
4
+ );
5
+ $animation-config: (
6
+ attention_props: (),
7
+ in_out_props: (
8
+ back: () /* bounce: (),
9
+ slide: (),
10
+ fade: (),
11
+ zoom: () */
12
+ )
13
+ );
14
+ $animation-docs: (
15
+ attention_props: "",
16
+ in_out_props: ""
17
+ );
@@ -0,0 +1,3 @@
1
+ // @use 'animation-build' as build;
2
+
3
+ // @include build.buildAnimation();
@@ -0,0 +1,19 @@
1
+
2
+ @use '../../_utils';
3
+
4
+ $base-metadata: (
5
+ title: "base",
6
+ tag: "base",
7
+ description: "cssfabric base config variables"
8
+ );
9
+
10
+ $base-config: (
11
+ cfg-has-dimension-strict: true,
12
+ CFG_HAS_DIMENSION_MIN: true,
13
+ CFG_HAS_DIMENSION_MAX: true,
14
+ size_step: 0.5rem,
15
+ sizes: utils.get_fabric_conf(sizes)
16
+ );
17
+
18
+ $base-docs: (
19
+ );
@@ -0,0 +1,58 @@
1
+ @use "sass:map";
2
+
3
+ p {
4
+ margin: auto;
5
+ }
6
+
7
+ .hover-parent {
8
+ .hover-show {
9
+ display: none;
10
+ }
11
+
12
+ .hover-hide {
13
+ display: initial;
14
+ }
15
+
16
+ &:hover {
17
+ .hover-show {
18
+ display: initial;
19
+ }
20
+
21
+ .hover-hide {
22
+ display: none;
23
+ }
24
+ }
25
+ }
26
+
27
+ .block:not(:last-child) {
28
+ margin-bottom: 1.5rem;
29
+ }
30
+
31
+ h1,
32
+ h2,
33
+ h3,
34
+ h4,
35
+ h5,
36
+ h6 {
37
+ margin-block-start: 0 !important;
38
+ margin-block-end: 0 !important;
39
+ margin-inline-start: 0 !important;
40
+ margin-inline-end: 0 !important;
41
+ }
42
+
43
+ .box-content {
44
+ padding: 0.25rem;
45
+ margin: 0.25rem 0;
46
+ }
47
+
48
+ .cell-padding {
49
+ & > * {
50
+ padding: 0.25em;
51
+ }
52
+ }
53
+
54
+ .cell-spacing {
55
+ & > * {
56
+ margin: 0.25em;
57
+ }
58
+ }