@medyll/cssfabric 0.0.15 → 0.1.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 (48) hide show
  1. package/bin/index.js +7 -0
  2. package/gulpfile.js +3 -15
  3. package/lib/styles/core/box/box.css +936 -1836
  4. package/lib/styles/core/box/box.min.css +1 -1
  5. package/lib/styles/core/box/box.responsive.css +3848 -9713
  6. package/lib/styles/core/box/box.responsive.min.css +1 -1
  7. package/lib/styles/core/color/color.css +912 -270
  8. package/lib/styles/core/color/color.min.css +1 -1
  9. package/lib/styles/core/color/color.responsive.css +4034 -2391
  10. package/lib/styles/core/color/color.responsive.min.css +1 -1
  11. package/lib/styles/core/flex/flex.responsive.css +0 -126
  12. package/lib/styles/core/flex/flex.responsive.min.css +1 -1
  13. package/lib/styles/core/grid/grid.responsive.css +0 -121
  14. package/lib/styles/core/grid/grid.responsive.min.css +1 -1
  15. package/lib/styles/core/menu/menu.responsive.css +0 -81
  16. package/lib/styles/core/menu/menu.responsive.min.css +1 -1
  17. package/lib/styles/core/overflow/overflow.responsive.css +0 -61
  18. package/lib/styles/core/overflow/overflow.responsive.min.css +1 -1
  19. package/lib/styles/core/scale/scale.css +286 -206
  20. package/lib/styles/core/scale/scale.min.css +1 -1
  21. package/lib/styles/core/scale/scale.responsive.css +1157 -1478
  22. package/lib/styles/core/scale/scale.responsive.min.css +1 -1
  23. package/lib/styles/core/table/table.responsive.css +0 -74
  24. package/lib/styles/core/table/table.responsive.min.css +1 -1
  25. package/lib/styles/core/text/text.css +4 -0
  26. package/lib/styles/core/text/text.responsive.css +0 -549
  27. package/lib/styles/core/text/text.responsive.min.css +1 -1
  28. package/lib/styles/core/vars.css +261 -129
  29. package/lib/styles/core/vars.min.css +1 -1
  30. package/lib/styles/cssfabric.css +2877 -2919
  31. package/lib/styles/cssfabric.min.css +5 -5
  32. package/lib/styles/cssfabric.responsive.css +11258 -16813
  33. package/lib/styles/cssfabric.responsive.min.css +9 -9
  34. package/package.json +13 -11
  35. package/src/_generated/export.variables.json +165 -166
  36. package/src/cssfabric/_utils.scss +22 -12
  37. package/src/cssfabric/modules/_cssfabric-config.scss +90 -17
  38. package/src/cssfabric/modules/box/_box-build.scss +149 -77
  39. package/src/cssfabric/modules/box/_box-vars.scss +48 -46
  40. package/src/cssfabric/modules/color/_color-build.scss +108 -24
  41. package/src/cssfabric/modules/scale/_scale-build.scss +26 -13
  42. package/src/cssfabric/modules/scale/_scale-vars.scss +50 -51
  43. package/src/cssfabric/modules/text/_text-build.scss +60 -3
  44. package/src/cssfabric/modules/text/text-responsive.scss +1 -0
  45. package/src/cssfabric/modules/theme/_theme-build.scss +27 -10
  46. package/src/cssfabric/modules/vars.scss +19 -86
  47. package/css/mystyles.css +0 -280
  48. package/css/mystyles.css.map +0 -1
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@medyll/cssfabric",
3
- "version": "0.0.15",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
- "main": "./lib",
6
- "repository": "https://github.com/medyll/cssfabric",
5
+ "bin": {
6
+ "@medyll/cssfabric": "./bin/index.js"
7
+ },
8
+ "repository": {
9
+ "type" : "git",
10
+ "url": "https://github.com/medyll/cssfabric.git"
11
+ },
7
12
  "scripts": {
8
13
  "dev": "tsc -w || exit 1",
9
14
  "build": "",
@@ -17,13 +22,13 @@
17
22
  },
18
23
  "dependencies": {
19
24
  "chokidar": "^3.5.1",
25
+ "fs-extra": "^10.0.1",
20
26
  "gulp-filelist": "^2.0.5",
21
- "gulp-sass-json": "^1.0.1",
27
+ "gulp-jsbeautifier": "^3.0.1",
22
28
  "gulp-sort": "^2.0.0",
23
29
  "JSON": "^1.0.0",
24
30
  "node-sass": "^6.0.0",
25
- "sass": "^1.32.12",
26
- "unescape-js": "^1.1.4"
31
+ "sass": "^1.32.12"
27
32
  },
28
33
  "devDependencies": {
29
34
  "clean-css": "^5.1.2",
@@ -41,13 +46,11 @@
41
46
  "gulp-ignore": "^3.0.0",
42
47
  "gulp-json-modify": "^1.0.2",
43
48
  "gulp-json-transform": "^0.4.7",
44
- "gulp-merge-json": "^2.1.1",
45
49
  "gulp-minify-css": "^1.2.4",
46
50
  "gulp-modify-file": "^1.0.1",
47
51
  "gulp-rename": "^2.0.0",
48
52
  "gulp-sass": "^4.1.0",
49
53
  "gulp-sass-export": "0.0.3",
50
- "gulp-sass-vars-to-js": "^0.1.2",
51
54
  "gulp-util": "^3.0.8",
52
55
  "json-to-scss": "^1.6.2",
53
56
  "json2md": "^1.10.0",
@@ -55,13 +58,12 @@
55
58
  "npm-run-all": "^4.1.5",
56
59
  "sass-json-export": "^2.0.1",
57
60
  "sass-loader": "^11.0.1",
58
- "sass-parser": "^0.1.2",
59
61
  "sassdoc": "^2.7.3",
62
+ "scss-to-json": "^2.0.0",
60
63
  "style-loader": "^2.0.0",
61
64
  "terminal": "^0.1.4",
62
65
  "through2": "^4.0.2",
63
66
  "tsconfig-paths": "^3.9.0",
64
- "webpack": "^5.36.2",
65
- "scss-to-json": "^2.0.0"
67
+ "webpack": "^5.36.2"
66
68
  }
67
69
  }
@@ -43,6 +43,120 @@
43
43
  "_docs": []
44
44
  }
45
45
 
46
+ ,
47
+ "color": {
48
+ "_data": {
49
+ "gray-config": {
50
+ "start": "#f4f4f4", "end": "#999", "steps": 5
51
+ }
52
+
53
+ ,
54
+ "color-types-config": ["color",
55
+ "bg",
56
+ "bg-themed",
57
+ "border-color"],
58
+ "theme": {
59
+ "primary": "#431700", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff"
60
+ }
61
+
62
+ ,
63
+ "scheme": {
64
+ "discrete": "#ccc", "success": "green", "info": "#ffdd57", "warning": "#e6b905", "alert": "#ff7300", "error": "red"
65
+ }
66
+
67
+ ,
68
+ "palette": {
69
+ "yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"
70
+ }
71
+
72
+ ,
73
+ "gray": "getGraySteps(5, #f4f4f4, #999)"
74
+ }
75
+
76
+ ,
77
+ "_metadata": {
78
+ "title": "color", "title_tag": "its about colors", "description": "cssfabric color system: its about colors"
79
+ }
80
+
81
+ ,
82
+ "_docs": {
83
+ "attributes": {
84
+ "color": {
85
+
86
+ "tag": "color",
87
+ "keys": ["scheme",
88
+ "palette",
89
+ "gray"],
90
+ "levelsLinked": {
91
+ "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]
92
+ }
93
+
94
+ ,
95
+ "levelsDeclin": {
96
+ "palette": ["_", "lighter", "light", "dark", "darker", "complement"]
97
+ }
98
+
99
+ ,
100
+ "about": "color for text level html elements"
101
+ }
102
+
103
+ ,
104
+ "background-color": {
105
+
106
+ "tag": "bg",
107
+ "keys": ["scheme",
108
+ "palette",
109
+ "gray"],
110
+ "levelsLinked": {
111
+ "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]
112
+ }
113
+
114
+ ,
115
+ "levelsDeclin": {
116
+ "palette": ["_", "lighter", "light", "dark", "darker", "complement"]
117
+ }
118
+
119
+ ,
120
+ "about": "background colors"
121
+ }
122
+
123
+ ,
124
+ "background-themed": {
125
+
126
+ "tag": "bg-themed",
127
+ "keys": ["scheme",
128
+ "palette",
129
+ "gray"],
130
+ "levelsLinked": {
131
+ "gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
132
+ }
133
+
134
+ ,
135
+ "levelsDeclin": {
136
+ "palette": ["_", "lighter", "light", "dark", "darker", "complement"]
137
+ }
138
+
139
+ ,
140
+ "about": "same as background-color, but with added contrasted color to text"
141
+ }
142
+
143
+ ,
144
+ "border-color": {
145
+
146
+ "tag": "border-color",
147
+ "keys": ["palette",
148
+ "gray"],
149
+ "levelsLinked": {
150
+ "gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
151
+ }
152
+
153
+ ,
154
+ "about": "border colors are slightly darker to maximize surrounding effect"
155
+ }
156
+ }
157
+ }
158
+ }
159
+
46
160
  ,
47
161
  "box": {
48
162
  "_data": {
@@ -51,9 +165,9 @@
51
165
  "border-unit-config": "px",
52
166
  "unit-size-config": 0.5,
53
167
  "unit-border-size-config": 1,
54
- "sizes-config": 32,
55
- "border-sizes-px-config": 5,
56
- "shadows-steps": 10,
168
+ "sizes-config": 12,
169
+ "border-sizes-px-config": 3,
170
+ "shadows-steps": 5,
57
171
  "shadows_step_multiplier": 2,
58
172
  "position-shorthand-config": "pos",
59
173
  "display-shorthand-config": "dsp",
@@ -99,12 +213,12 @@
99
213
  "ii",
100
214
  "tb"],
101
215
  "values": {
102
- "_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem", "13": "6.5rem", "14": "7rem", "15": "7.5rem", "16": "8rem", "17": "8.5rem", "18": "9rem", "19": "9.5rem", "20": "10rem", "21": "10.5rem", "22": "11rem", "23": "11.5rem", "24": "12rem", "25": "12.5rem", "26": "13rem", "27": "13.5rem", "28": "14rem", "29": "14.5rem", "30": "15rem", "31": "15.5rem", "32": "16rem"
216
+ "_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem"
103
217
  }
104
218
 
105
219
  ,
106
220
  "levels": {
107
- "_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]
221
+ "_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
108
222
  }
109
223
 
110
224
  ,
@@ -125,12 +239,12 @@
125
239
  "ii",
126
240
  "tb"],
127
241
  "values": {
128
- "_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem", "13": "6.5rem", "14": "7rem", "15": "7.5rem", "16": "8rem", "17": "8.5rem", "18": "9rem", "19": "9.5rem", "20": "10rem", "21": "10.5rem", "22": "11rem", "23": "11.5rem", "24": "12rem", "25": "12.5rem", "26": "13rem", "27": "13.5rem", "28": "14rem", "29": "14.5rem", "30": "15rem", "31": "15.5rem", "32": "16rem"
242
+ "_": "_", "1": "0.5rem", "2": "1rem", "3": "1.5rem", "4": "2rem", "5": "2.5rem", "6": "3rem", "7": "3.5rem", "8": "4rem", "9": "4.5rem", "10": "5rem", "11": "5.5rem", "12": "6rem"
129
243
  }
130
244
 
131
245
  ,
132
246
  "levels": {
133
- "_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]
247
+ "_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
134
248
  }
135
249
 
136
250
  ,
@@ -151,12 +265,12 @@
151
265
  "ii",
152
266
  "tb"],
153
267
  "values": {
154
- "_": "_", "1": "1px", "2": "2px", "3": "3px", "4": "4px", "5": "5px"
268
+ "_": "_", "1": "1px", "2": "2px", "3": "3px"
155
269
  }
156
270
 
157
271
  ,
158
272
  "levels": {
159
- "_": ["_", 1, 2, 3, 4, 5]
273
+ "_": ["_", 1, 2, 3]
160
274
  }
161
275
 
162
276
  ,
@@ -168,12 +282,12 @@
168
282
 
169
283
  "tag": "shad",
170
284
  "values": {
171
- "2": "0.83333333331.724137931", "4": "1.66666666673.4482758621", "8": "3.33333333336.8965517241", "16": "6.666666666713.7931034483", "32": "13.333333333327.5862068966", "64": "26.666666666755.1724137931", "128": "53.3333333333110.3448275862", "256": "106.6666666667220.6896551724"
285
+ "2": "0.83333333331.724137931", "4": "1.66666666673.4482758621", "8": "3.33333333336.8965517241", "16": "6.666666666713.7931034483", "32": "13.333333333327.5862068966"
172
286
  }
173
287
 
174
288
  ,
175
289
  "levels": {
176
- "_": [2, 4, 8, 16, 32, 64, 128, 256]
290
+ "_": [2, 4, 8, 16, 32]
177
291
  }
178
292
 
179
293
  ,
@@ -323,41 +437,6 @@
323
437
  }
324
438
  }
325
439
 
326
- ,
327
- "menu": {
328
- "_data": {
329
-
330
- "menu_class_name": "menu",
331
- "menu_class_name_short": "ul",
332
- "orientations": {
333
- "v": "vertical", "h": "horizontal"
334
- }
335
-
336
- ,
337
- "menu_item_class_name": "menu-item",
338
- "menu_item_class_name_short": "li",
339
- "menu_item_disabled_tag": "disabled",
340
- "menu_item_selected_tag": "selected",
341
- "menu_dropdown_tag": "drop",
342
- "menu_dropdown_open": "open",
343
- "menu_dropdown_close": "close"
344
- }
345
-
346
- ,
347
- "_metadata": {
348
- "title": "menu", "tag": "ul", "description": "cssfabric menu module to set menu style"
349
- }
350
-
351
- ,
352
- "_docs": {
353
- "attributes": {
354
- "menu": {
355
- "tag": "menu", "keys": ["h", "v"]
356
- }
357
- }
358
- }
359
- }
360
-
361
440
  ,
362
441
  "overflow": {
363
442
  "_data": {
@@ -402,6 +481,41 @@
402
481
  }
403
482
  }
404
483
 
484
+ ,
485
+ "menu": {
486
+ "_data": {
487
+
488
+ "menu_class_name": "menu",
489
+ "menu_class_name_short": "ul",
490
+ "orientations": {
491
+ "v": "vertical", "h": "horizontal"
492
+ }
493
+
494
+ ,
495
+ "menu_item_class_name": "menu-item",
496
+ "menu_item_class_name_short": "li",
497
+ "menu_item_disabled_tag": "disabled",
498
+ "menu_item_selected_tag": "selected",
499
+ "menu_dropdown_tag": "drop",
500
+ "menu_dropdown_open": "open",
501
+ "menu_dropdown_close": "close"
502
+ }
503
+
504
+ ,
505
+ "_metadata": {
506
+ "title": "menu", "tag": "ul", "description": "cssfabric menu module to set menu style"
507
+ }
508
+
509
+ ,
510
+ "_docs": {
511
+ "attributes": {
512
+ "menu": {
513
+ "tag": "menu", "keys": ["h", "v"]
514
+ }
515
+ }
516
+ }
517
+ }
518
+
405
519
  ,
406
520
  "scale": {
407
521
  "_data": {
@@ -412,8 +526,7 @@
412
526
  }
413
527
 
414
528
  ,
415
- "grid-ratios-config": [5,
416
- 12],
529
+ "grid-ratios-config": 16,
417
530
  "defined-step-size": 2,
418
531
  "defined-step-unit": "rem",
419
532
  "defined-steps": [1,
@@ -462,7 +575,7 @@
462
575
  "keys": ["w",
463
576
  "h"],
464
577
  "levels": {
465
- "_size": ["full", "mid", "quarter", "tiers"], "_content": ["content-max", "content-min"], "_defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "_grid-5": ["1-5", "2-5", "3-5", "4-5", "5-5"], "_grid-12": ["1-12", "2-12", "3-12", "4-12", "5-12", "6-12", "7-12", "8-12", "9-12", "10-12", "11-12", "12-12"]
578
+ "_size": ["full", "mid", "quarter", "tiers"], "_content": ["content-max", "content-min"], "_defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "_grid-16": ["1-16", "2-16", "3-16", "4-16", "5-16", "6-16", "7-16", "8-16", "9-16", "10-16", "11-16", "12-16", "13-16", "14-16", "15-16", "16-16"]
466
579
  }
467
580
  }
468
581
  }
@@ -535,7 +648,7 @@
535
648
  }
536
649
 
537
650
  ,
538
- "gray": "getGraySteps(8, #f4f4f4, #999)"
651
+ "gray": "getGraySteps(5, #f4f4f4, #999)"
539
652
  }
540
653
 
541
654
  ,
@@ -582,7 +695,7 @@
582
695
  "moduleName": "theme",
583
696
  "moduleNameShort": "theme",
584
697
  "color-default-config": {
585
- "primary": "#0288d1", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#f1f1f1"
698
+ "primary": "#431700", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff"
586
699
  }
587
700
 
588
701
  ,
@@ -599,7 +712,7 @@
599
712
  "bg",
600
713
  "border"],
601
714
  "color": {
602
- "primary": "#0288d1", "primary-light": "#23b0fd", "primary-lighter": "#6ecbfe", "primary-dark": "#02679e", "primary-darker": "#01466c", "primary-complement": "#d14b02", "primary-invert": "#fd772e", "secondary": "#D14B02", "secondary-light": "#fd7023", "secondary-lighter": "#fea16e", "secondary-dark": "#9e3902", "secondary-darker": "#6c2701", "secondary-complement": "#0288d1", "secondary-invert": "#2eb4fd", "tertiary": "#88D102", "tertiary-light": "#b0fd23", "tertiary-lighter": "#cbfe6e", "tertiary-dark": "#679e02", "tertiary-darker": "#466c01", "tertiary-complement": "#4b02d1", "tertiary-invert": "#772efd"
715
+ "primary": "#431700", "primary-light": "#903100", "primary-lighter": "#dc4c00", "primary-dark": "#100500", "primary-darker": "black", "primary-complement": "#002c43", "primary-invert": "#bce8ff", "secondary": "#D14B02", "secondary-light": "#fd7023", "secondary-lighter": "#fea16e", "secondary-dark": "#9e3902", "secondary-darker": "#6c2701", "secondary-complement": "#0288d1", "secondary-invert": "#2eb4fd", "tertiary": "#88D102", "tertiary-light": "#b0fd23", "tertiary-lighter": "#cbfe6e", "tertiary-dark": "#679e02", "tertiary-darker": "#466c01", "tertiary-complement": "#4b02d1", "tertiary-invert": "#772efd"
603
716
  }
604
717
  }
605
718
 
@@ -641,120 +754,6 @@
641
754
  "z_groups": "_"
642
755
  }
643
756
  }
644
-
645
- ,
646
- "color": {
647
- "_data": {
648
- "gray-config": {
649
- "start": "#f4f4f4", "end": "#999", "steps": 8
650
- }
651
-
652
- ,
653
- "color-types-config": ["color",
654
- "bg",
655
- "bg-themed",
656
- "border-color"],
657
- "theme": {
658
- "primary": "#0288d1", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#f1f1f1"
659
- }
660
-
661
- ,
662
- "scheme": {
663
- "discrete": "#ccc", "success": "green", "info": "#ffdd57", "warning": "#e6b905", "alert": "#ff7300", "error": "red"
664
- }
665
-
666
- ,
667
- "palette": {
668
- "yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"
669
- }
670
-
671
- ,
672
- "gray": "getGraySteps(8, #f4f4f4, #999)"
673
- }
674
-
675
- ,
676
- "_metadata": {
677
- "title": "color", "title_tag": "its about colors", "description": "cssfabric color system: its about colors"
678
- }
679
-
680
- ,
681
- "_docs": {
682
- "attributes": {
683
- "color": {
684
-
685
- "tag": "color",
686
- "keys": ["scheme",
687
- "palette",
688
- "gray"],
689
- "levelsLinked": {
690
- "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(8, #f4f4f4, #999)"]
691
- }
692
-
693
- ,
694
- "levelsDeclin": {
695
- "palette": ["_", "lighter", "light", "dark", "darker", "complement"]
696
- }
697
-
698
- ,
699
- "about": "color for text level html elements"
700
- }
701
-
702
- ,
703
- "background-color": {
704
-
705
- "tag": "bg",
706
- "keys": ["scheme",
707
- "palette",
708
- "gray"],
709
- "levelsLinked": {
710
- "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(8, #f4f4f4, #999)"]
711
- }
712
-
713
- ,
714
- "levelsDeclin": {
715
- "palette": ["_", "lighter", "light", "dark", "darker", "complement"]
716
- }
717
-
718
- ,
719
- "about": "background colors"
720
- }
721
-
722
- ,
723
- "background-themed": {
724
-
725
- "tag": "bg-themed",
726
- "keys": ["scheme",
727
- "palette",
728
- "gray"],
729
- "levelsLinked": {
730
- "gray": ["getGraySteps(8, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
731
- }
732
-
733
- ,
734
- "levelsDeclin": {
735
- "palette": ["_", "lighter", "light", "dark", "darker", "complement"]
736
- }
737
-
738
- ,
739
- "about": "same as background-color, but with added contrasted color to text"
740
- }
741
-
742
- ,
743
- "border-color": {
744
-
745
- "tag": "border-color",
746
- "keys": ["palette",
747
- "gray"],
748
- "levelsLinked": {
749
- "gray": ["getGraySteps(8, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
750
- }
751
-
752
- ,
753
- "about": "border colors are slightly darker to maximize surrounding effect"
754
- }
755
- }
756
- }
757
- }
758
757
  }
759
758
  }
760
759
  }
@@ -1,6 +1,8 @@
1
1
  @use "sass:string";
2
2
  @use "sass:map";
3
3
  @use "sass:math";
4
+ @use "sass:color";
5
+
4
6
  // load main fabric vars
5
7
  @use 'modules/cssfabric-config' as cssfabric-config;
6
8
 
@@ -9,12 +11,12 @@
9
11
  @if not $prop {
10
12
  @return cssfabric-config.$cssfabric-config;
11
13
  }
12
- @if $prop and not $val {
13
- @return map-get(cssfabric-config.$cssfabric-config, $prop);
14
+ @if $prop and not $val {
15
+ @return map-get(cssfabric-config.$cssfabric-config, $prop);
14
16
  }
15
- @if $val {
17
+ @if $val {
16
18
  $in: map-get(cssfabric-config.$cssfabric-config, $prop);
17
- @return map-get($in, $prop,$val);
19
+ @return map-get($in, $prop, $val);
18
20
  }
19
21
  }
20
22
 
@@ -22,8 +24,8 @@
22
24
  @mixin fabricResponsiveEncloser($mq_size_value, $mq_min_size_value: null) {
23
25
  // and (min-width: $mq_min_size_value + rem)
24
26
  // @debug $mq_size_value $mq_min_size_value;
25
- $type-width: if($mq_size_value==180 , max , max);
26
- $width: if($mq_size_value==180 , $mq_min_size_value , $mq_size_value);
27
+ $type-width: if($mq_size_value==180, max, max);
28
+ $width: if($mq_size_value==180, $mq_min_size_value, $mq_size_value);
27
29
 
28
30
  // @debug (#{$type-width}-width: $width + rem) ;
29
31
  @media only screen and (#{$type-width}-width: $width + px) {
@@ -66,6 +68,13 @@
66
68
  }
67
69
  }
68
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} : #{color.change($color,$alpha:$val)};
75
+ }
76
+ }
77
+
69
78
  @function getGraySteps($steps, $gray-start, $gray-end) {
70
79
  $gray-schemes: ();
71
80
 
@@ -101,6 +110,7 @@
101
110
  (
102
111
  color: color,
103
112
  text: color,
113
+ foreground: color,
104
114
  bg: background-color,
105
115
  bg-themed: background-color,
106
116
  border: border-color
@@ -112,7 +122,7 @@
112
122
  @function getThemeLevels($declinations-config, $color_primary) {
113
123
  $out: ();
114
124
  // primary secondary tertiary
115
- @each $color-grade,$color-value in $declinations-config {
125
+ @each $color-grade, $color-value in $declinations-config {
116
126
  $color: $color-value;
117
127
  $out: map.set($out, $color-grade, $color);
118
128
  @each $theme-level in (light lighter dark darker complement invert) {
@@ -126,7 +136,7 @@
126
136
  }
127
137
 
128
138
  @function getBoxIterator($iterator, $unit-config,$_unit-size-config) {
129
- $out: ("_": "_" );
139
+ $out: ("_": "_");
130
140
 
131
141
  @for $grid_size_value from 1 through $iterator {
132
142
  $css_size_value: ($grid_size_value * $_unit-size-config) + $unit-config;
@@ -150,11 +160,11 @@
150
160
  $acc: $acc * 2;
151
161
  $v: $shadows_step * 2;
152
162
 
153
- $v_val: math.div($acc , $v_fact);
154
- $h_val: math.div($acc , $h_fact);
163
+ $v_val: math.div($acc, $v_fact);
164
+ $h_val: math.div($acc, $h_fact);
155
165
 
156
- $v_val_2: math.div($acc , $v_fact_2);
157
- $h_val_2: math.div($acc , $h_fact_2);
166
+ $v_val_2: math.div($acc, $v_fact_2);
167
+ $h_val_2: math.div($acc, $h_fact_2);
158
168
 
159
169
  $out: map.set($out, $acc, #{$v_val} + #{$h_val});
160
170
  }