@medyll/cssfabric 0.1.0 → 0.2.0

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 (202) hide show
  1. package/README.md +38 -240
  2. package/_generated/cssFabric.vars.json +13 -0
  3. package/{src/_generated → _generated}/export.variables.md +0 -0
  4. package/{src/_generated → _generated}/index.d.ts +0 -0
  5. package/{src/_generated → _generated}/readme.md +0 -0
  6. package/init/importCssVars.d.ts +1 -0
  7. package/init/importCssVars.js +2 -0
  8. package/package.json +113 -69
  9. package/{lib/scripts → scripts}/cssfabric.d.ts +0 -0
  10. package/scripts/cssfabric.js +43 -0
  11. package/{lib/scripts → scripts}/cssfabricClassNames.d.ts +0 -0
  12. package/{lib/scripts → scripts}/cssfabricClassNames.js +5 -9
  13. package/{src/scripts → scripts}/index.d.ts +0 -0
  14. package/scripts/index.js +4 -0
  15. package/{lib/scripts → scripts}/utils.d.ts +0 -0
  16. package/{lib/scripts → scripts}/utils.js +1 -3
  17. package/{lib/styles/core → styles}/animation/animation.css +0 -0
  18. package/{lib/styles/core → styles}/animation/animation.min.css +0 -0
  19. package/{lib/styles/core → styles}/base/base.css +0 -7
  20. package/styles/base/base.min.css +1 -0
  21. package/styles/box/box.css +1379 -0
  22. package/styles/box/box.min.css +1 -0
  23. package/styles/box/box.responsive.css +5524 -0
  24. package/styles/box/box.responsive.min.css +1 -0
  25. package/styles/color/color.css +1565 -0
  26. package/styles/color/color.min.css +1 -0
  27. package/styles/color/color.responsive.css +6268 -0
  28. package/styles/color/color.responsive.min.css +1 -0
  29. package/styles/cssfabric.css +61792 -0
  30. package/styles/cssfabric.min.css +168 -0
  31. package/styles/cssfabric.responsive.css +200596 -0
  32. package/styles/cssfabric.responsive.min.css +108 -0
  33. package/{lib/styles/core → styles}/flex/flex.css +0 -0
  34. package/styles/flex/flex.min.css +1 -0
  35. package/{lib/styles/core → styles}/flex/flex.responsive.css +0 -126
  36. package/styles/flex/flex.responsive.min.css +1 -0
  37. package/{lib/styles/core → styles}/grid/grid.css +0 -0
  38. package/styles/grid/grid.min.css +1 -0
  39. package/{lib/styles/core → styles}/grid/grid.responsive.css +0 -121
  40. package/styles/grid/grid.responsive.min.css +1 -0
  41. package/{lib/styles/core → styles}/menu/menu.css +16 -12
  42. package/styles/menu/menu.min.css +1 -0
  43. package/{lib/styles/core → styles}/menu/menu.responsive.css +64 -129
  44. package/styles/menu/menu.responsive.min.css +1 -0
  45. package/{lib/styles/core → styles}/overflow/overflow.css +0 -0
  46. package/{lib/styles/core → styles}/overflow/overflow.min.css +0 -0
  47. package/{lib/styles/core → styles}/overflow/overflow.responsive.css +0 -61
  48. package/styles/overflow/overflow.responsive.min.css +1 -0
  49. package/{lib/styles/core → styles}/scale/scale.css +286 -206
  50. package/styles/scale/scale.min.css +1 -0
  51. package/styles/scale/scale.responsive.css +2884 -0
  52. package/styles/scale/scale.responsive.min.css +1 -0
  53. package/{lib/styles/core → styles}/table/table.css +0 -0
  54. package/styles/table/table.min.css +1 -0
  55. package/{lib/styles/core → styles}/table/table.responsive.css +0 -74
  56. package/styles/table/table.responsive.min.css +1 -0
  57. package/{lib/styles/core → styles}/text/text.css +4 -0
  58. package/styles/text/text.min.css +1 -0
  59. package/styles/text/text.responsive.css +196 -0
  60. package/styles/text/text.responsive.min.css +1 -0
  61. package/{lib/styles/core → styles}/theme/theme.css +0 -0
  62. package/{lib/styles/core → styles}/theme/theme.min.css +0 -0
  63. package/styles/vars.css +414 -0
  64. package/styles/vars.min.css +1 -0
  65. package/{lib/styles/core → styles}/zindex/zindex.css +0 -0
  66. package/{lib/styles/core → styles}/zindex/zindex.min.css +0 -0
  67. package/.idea/cssfabric.iml +0 -8
  68. package/.idea/misc.xml +0 -9
  69. package/.idea/modules.xml +0 -8
  70. package/.idea/vcs.xml +0 -6
  71. package/.vscode/settings.json +0 -24
  72. package/bin/index.js +0 -7
  73. package/cssfabric.config.js +0 -3
  74. package/cssfabric.json +0 -8
  75. package/gulpfile.js +0 -598
  76. package/lib/_generated/export.variables.json +0 -583
  77. package/lib/index.d.ts +0 -2
  78. package/lib/index.js +0 -7
  79. package/lib/scripts/cssfabric.js +0 -48
  80. package/lib/scripts/index.d.ts +0 -2
  81. package/lib/scripts/index.js +0 -6
  82. package/lib/styles/core/base/base.min.css +0 -1
  83. package/lib/styles/core/box/box.css +0 -2449
  84. package/lib/styles/core/box/box.min.css +0 -1
  85. package/lib/styles/core/box/box.responsive.css +0 -12255
  86. package/lib/styles/core/box/box.responsive.min.css +0 -1
  87. package/lib/styles/core/color/color.css +0 -923
  88. package/lib/styles/core/color/color.min.css +0 -1
  89. package/lib/styles/core/color/color.responsive.css +0 -4625
  90. package/lib/styles/core/color/color.responsive.min.css +0 -1
  91. package/lib/styles/core/flex/flex.min.css +0 -1
  92. package/lib/styles/core/flex/flex.responsive.min.css +0 -1
  93. package/lib/styles/core/grid/grid.min.css +0 -1
  94. package/lib/styles/core/grid/grid.responsive.min.css +0 -1
  95. package/lib/styles/core/main.min.css +0 -1
  96. package/lib/styles/core/menu/menu.min.css +0 -1
  97. package/lib/styles/core/menu/menu.responsive.min.css +0 -1
  98. package/lib/styles/core/overflow/overflow.responsive.min.css +0 -1
  99. package/lib/styles/core/scale/scale.min.css +0 -1
  100. package/lib/styles/core/scale/scale.responsive.css +0 -3205
  101. package/lib/styles/core/scale/scale.responsive.min.css +0 -1
  102. package/lib/styles/core/table/table.min.css +0 -1
  103. package/lib/styles/core/table/table.responsive.min.css +0 -1
  104. package/lib/styles/core/text/text.min.css +0 -1
  105. package/lib/styles/core/text/text.responsive.css +0 -745
  106. package/lib/styles/core/text/text.responsive.min.css +0 -1
  107. package/lib/styles/core/vars.css +0 -274
  108. package/lib/styles/core/vars.min.css +0 -1
  109. package/lib/styles/cssfabric.css +0 -5367
  110. package/lib/styles/cssfabric.min.css +0 -15
  111. package/lib/styles/cssfabric.responsive.css +0 -23164
  112. package/lib/styles/cssfabric.responsive.min.css +0 -9
  113. package/src/_generated/export.variables.json +0 -760
  114. package/src/cssfabric/_utils.scss +0 -193
  115. package/src/cssfabric/index.d.ts +0 -3
  116. package/src/cssfabric/modules/_cssfabric-config.scss +0 -93
  117. package/src/cssfabric/modules/_mixins.scss +0 -1
  118. package/src/cssfabric/modules/animation/_animation-vars.scss +0 -17
  119. package/src/cssfabric/modules/animation/animation.scss +0 -3
  120. package/src/cssfabric/modules/base/_base-vars.scss +0 -19
  121. package/src/cssfabric/modules/base/base.scss +0 -80
  122. package/src/cssfabric/modules/box/_box-build.scss +0 -268
  123. package/src/cssfabric/modules/box/_box-vars.scss +0 -119
  124. package/src/cssfabric/modules/box/box-responsive.scss +0 -18
  125. package/src/cssfabric/modules/box/box.scss +0 -3
  126. package/src/cssfabric/modules/color/_color-build.scss +0 -108
  127. package/src/cssfabric/modules/color/_color-vars.scss +0 -80
  128. package/src/cssfabric/modules/color/color-responsive.scss +0 -23
  129. package/src/cssfabric/modules/color/color.scss +0 -9
  130. package/src/cssfabric/modules/css-fabric.scss +0 -2
  131. package/src/cssfabric/modules/flex/_flex-build.scss +0 -150
  132. package/src/cssfabric/modules/flex/_flex-vars.scss +0 -84
  133. package/src/cssfabric/modules/flex/flex-responsive.scss +0 -25
  134. package/src/cssfabric/modules/flex/flex.scss +0 -3
  135. package/src/cssfabric/modules/grid/_grid-build.scss +0 -84
  136. package/src/cssfabric/modules/grid/_grid-vars.scss +0 -88
  137. package/src/cssfabric/modules/grid/grid-responsive.scss +0 -25
  138. package/src/cssfabric/modules/grid/grid.scss +0 -6
  139. package/src/cssfabric/modules/menu/_menu-build.scss +0 -119
  140. package/src/cssfabric/modules/menu/_menu-vars.scss +0 -29
  141. package/src/cssfabric/modules/menu/menu-responsive.scss +0 -19
  142. package/src/cssfabric/modules/menu/menu.scss +0 -6
  143. package/src/cssfabric/modules/overflow/_overflow-build.scss +0 -22
  144. package/src/cssfabric/modules/overflow/_overflow-vars.scss +0 -31
  145. package/src/cssfabric/modules/overflow/overflow-responsive.scss +0 -25
  146. package/src/cssfabric/modules/overflow/overflow.scss +0 -7
  147. package/src/cssfabric/modules/scale/_scale-build.scss +0 -129
  148. package/src/cssfabric/modules/scale/_scale-vars.scss +0 -75
  149. package/src/cssfabric/modules/scale/scale-responsive.scss +0 -23
  150. package/src/cssfabric/modules/scale/scale.scss +0 -8
  151. package/src/cssfabric/modules/table/_table-build.scss +0 -134
  152. package/src/cssfabric/modules/table/_table-vars.scss +0 -30
  153. package/src/cssfabric/modules/table/table-responsive.scss +0 -24
  154. package/src/cssfabric/modules/table/table.scss +0 -8
  155. package/src/cssfabric/modules/text/_text-build.scss +0 -109
  156. package/src/cssfabric/modules/text/_text-vars.scss +0 -87
  157. package/src/cssfabric/modules/text/text-responsive.scss +0 -25
  158. package/src/cssfabric/modules/text/text.scss +0 -6
  159. package/src/cssfabric/modules/theme/_theme-build.scss +0 -76
  160. package/src/cssfabric/modules/theme/_theme-vars.scss +0 -55
  161. package/src/cssfabric/modules/theme/theme.scss +0 -6
  162. package/src/cssfabric/modules/vars.scss +0 -118
  163. package/src/cssfabric/modules/zindex/_zindex-vars.scss +0 -14
  164. package/src/cssfabric/modules/zindex/zindex.scss +0 -15
  165. package/src/index.d.ts +0 -3
  166. package/src/index.ts +0 -4
  167. package/src/scripts/cssfabric.ts +0 -54
  168. package/src/scripts/cssfabricClassNames.ts +0 -216
  169. package/src/scripts/index.ts +0 -8
  170. package/src/scripts/utils.ts +0 -37
  171. package/src/vendor/index.d.ts +0 -3
  172. package/src/vendor/normalize/normalize.min.css +0 -2
  173. package/src/vendor/sass-json-export/CHANGELOG.md +0 -26
  174. package/src/vendor/sass-json-export/Gruntfile.js +0 -60
  175. package/src/vendor/sass-json-export/LICENSE +0 -20
  176. package/src/vendor/sass-json-export/README.md +0 -90
  177. package/src/vendor/sass-json-export/package.json +0 -60
  178. package/src/vendor/sass-json-export/stylesheets/encode/api/_json.scss +0 -26
  179. package/src/vendor/sass-json-export/stylesheets/encode/encode.scss +0 -17
  180. package/src/vendor/sass-json-export/stylesheets/encode/helpers/_quote.scss +0 -9
  181. package/src/vendor/sass-json-export/stylesheets/encode/mixins/_json.scss +0 -42
  182. package/src/vendor/sass-json-export/stylesheets/encode/types/_bool.scss +0 -7
  183. package/src/vendor/sass-json-export/stylesheets/encode/types/_color.scss +0 -8
  184. package/src/vendor/sass-json-export/stylesheets/encode/types/_list.scss +0 -14
  185. package/src/vendor/sass-json-export/stylesheets/encode/types/_map.scss +0 -15
  186. package/src/vendor/sass-json-export/stylesheets/encode/types/_null.scss +0 -7
  187. package/src/vendor/sass-json-export/stylesheets/encode/types/_number.scss +0 -8
  188. package/src/vendor/sass-json-export/stylesheets/encode/types/_string.scss +0 -8
  189. package/src/vendor/sass-json-export/stylesheets/sass-json-export.scss +0 -2
  190. package/src/vendor/sass-json-export/test/encode/_index.scss +0 -14
  191. package/src/vendor/sass-json-export/test/encode/api/_json.scss +0 -29
  192. package/src/vendor/sass-json-export/test/encode/helpers/_quote.scss +0 -6
  193. package/src/vendor/sass-json-export/test/encode/types/_bool.scss +0 -6
  194. package/src/vendor/sass-json-export/test/encode/types/_color.scss +0 -7
  195. package/src/vendor/sass-json-export/test/encode/types/_list.scss +0 -25
  196. package/src/vendor/sass-json-export/test/encode/types/_map.scss +0 -17
  197. package/src/vendor/sass-json-export/test/encode/types/_null.scss +0 -8
  198. package/src/vendor/sass-json-export/test/encode/types/_number.scss +0 -68
  199. package/src/vendor/sass-json-export/test/encode/types/_string.scss +0 -9
  200. package/src/vendor/sass-json-export/test/test.scss +0 -9
  201. package/tsconfig.json +0 -46
  202. package/webpack.config.js +0 -53
@@ -1,8 +0,0 @@
1
-
2
-
3
- // load scss config file
4
- @use '../../_utils';
5
- @use '_scale-build'as build;
6
-
7
- // builder
8
- @include build.buildScale(null);
@@ -1,134 +0,0 @@
1
- @use 'table-vars';
2
- @use '../../_utils';
3
-
4
- $table-config: table-vars.$table-config;
5
-
6
- $TABLE_PREFIX: map-get($table-config, table_class_name);
7
- $TABLE_PREFIX_SHORT: map-get($table-config, table_class_name_short);
8
-
9
- $table_bg_color_head: map-get($table-config, table-bg-color-head);
10
- $table_bg_color_strip_main: map-get($table-config, table-bg-color-strip-main);
11
- $table_bg_color_strip_second: map-get($table-config, table-bg-color-strip-second);
12
-
13
- $table_border_color_header: map-get($table-config, table-border-color-header);
14
- $table_border_color_main: map-get($table-config, table-border-color-main);
15
- $table_border_color_second: map-get($table-config, table-border-color-second);
16
-
17
- // .table-bg-strip-2
18
- @mixin bg-strip($prefix_short,$nb_strips) {
19
- &.#{$prefix_short}-bg-strip-#{$nb_strips} {
20
- @for $nb_strip from 1 through $nb_strips {
21
- tr:nth-child(#{$nb_strips}n + #{$nb_strip}) td {
22
- @if ($nb_strip==$nb_strips) {
23
- background-color: #{$table_bg_color_strip_main};
24
- }
25
-
26
- @if ($nb_strips%2==1 and $nb_strip%2==0 and $nb_strips > 2 and $nb_strip !=$nb_strips) {
27
- // border-bottom: 10px solid black;
28
- }
29
- }
30
- }
31
- }
32
- }
33
-
34
- // .table-sticky
35
- @mixin sticky($table_prefix_short) {
36
- &.#{$table_prefix_short}-sticky {
37
- position: relative;
38
-
39
- thead tr,
40
- .thead .tr {
41
- position: static;
42
-
43
- th,
44
- .th {
45
- background-color: #ededed;
46
- position: sticky;
47
- top: 0;
48
- }
49
- }
50
- }
51
- }
52
- // -layout -h-line -v-line border
53
- @mixin fabric_table($mq_size_key: null) {
54
- /** cssfabric : #{$TABLE_PREFIX_SHORT}*/
55
- $prefix_short: if($mq_size_key, #{$TABLE_PREFIX_SHORT}-#{$mq_size_key}, $TABLE_PREFIX_SHORT);
56
-
57
- .#{$TABLE_PREFIX} {
58
- border-collapse: collapse;
59
- border-spacing: 0;
60
-
61
- thead,
62
- .thead {
63
- position: relative;
64
- margin-bottom:2rem;
65
- }
66
-
67
- &.#{$prefix_short}-head thead tr th {
68
- background-color: #{table_bg_color_head};
69
- }
70
-
71
- thead tr th,
72
- .thead .tr .th {
73
- padding: 0.5rem 0.25rem;
74
- font-weight: normal;
75
- }
76
-
77
- tbody tr td,
78
- .tbody .tr .td {
79
- padding: 0.25em;
80
- }
81
-
82
- &.#{$prefix_short}-layout {
83
- table-layout: fixed;
84
- }
85
-
86
- &.#{$prefix_short}-h-line {
87
-
88
- th,
89
- td,
90
- .th,
91
- .td {
92
- border-bottom: 1px solid #{$table_border_color_main};
93
- }
94
-
95
- &:last-child {
96
- border-bottom: none;
97
- }
98
- }
99
-
100
- &.#{$prefix_short}-v-line tr th,
101
- &.#{$prefix_short}-v-line tr td {
102
- border-right: 1px solid #{$table_border_color_main};
103
-
104
- &:last-child {
105
- border-right: none;
106
- }
107
- }
108
-
109
- &.#{$prefix_short}-border {
110
- border: 1px solid #{$table_border_color_main};
111
- }
112
-
113
- &.#{$prefix_short}-shad {
114
- thead tr th {
115
- box-shadow: 4px 4px 8px #ccc;
116
- z-index: 11;
117
-
118
- &:last-child {
119
- box-shadow: 4px 4px 8px #ccc;
120
- z-index: -1;
121
- }
122
- }
123
- }
124
-
125
- @include bg-strip($prefix_short, 2);
126
- @include bg-strip($prefix_short, 5);
127
-
128
- @include sticky($prefix_short);
129
- }
130
- }
131
-
132
- @mixin buildTable($mq_size_key: null) {
133
- @include fabric_table($mq_size_key);
134
- }
@@ -1,30 +0,0 @@
1
- $table-metadata: (
2
- title: table,
3
- tag: table,
4
- description: "cssfabric table module to set different table styles"
5
- );
6
- $table-config: (
7
- className: table,
8
- classNameShort: tbl,
9
- table_class_name: table,
10
- table_class_name_short: tbl,
11
- table-bg-color-head: #f4f4f4,
12
- table-bg-color-strip-main: #ededed,
13
- table-bg-color-strip-second: #f5f5f5,
14
- table-border-color-header: #ccc,
15
- table-border-color-main: #ededed,
16
- table-border-color-second: #f5f5f5
17
- );
18
-
19
- $table-docs: (
20
- attributes:(
21
- table: (
22
- tag: table,
23
- classNames:(
24
- "_": (bg-strip-2 bg-strip-5),
25
- "_pos": (sticky layout),
26
- "_deco": (h-line v-line border),
27
- ),
28
- about: "is a table"
29
- )
30
- ));
@@ -1,24 +0,0 @@
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
-
@@ -1,8 +0,0 @@
1
-
2
-
3
- // load scss config file
4
- @use '../../_utils';
5
- @use '_table-build' as build;
6
-
7
-
8
- @include build.buildTable(null);
@@ -1,109 +0,0 @@
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
- .#{$tag_short} {
57
- @each $fabricRule, $value in $textTransform {
58
- @include utils.fabricAttributes("&" + $sep, $fabricRule, "text-transform", $value);
59
- }
60
-
61
- @each $fabricRule, $value in $textAlign {
62
- @include utils.fabricAttributes("&" + $sep, $fabricRule, "text-align", $value);
63
- }
64
-
65
- @each $fabricRule, $value in $fontWeight {
66
- @include utils.fabricAttributes("&" + $sep, $fabricRule, "font-weight", var(--font-weight-#{$fabricRule}));
67
- }
68
-
69
- // text shadows color_schemes
70
- @each $fabricRule, $value in $color-schemes {
71
- @include utils.fabricAttributes("&" + $sep + shad + $sep, $fabricRule, "text-shadow", var(--text-shadow-#{$fabricRule}));
72
- }
73
-
74
- // text shadows color_palette_props
75
- @each $fabricRule, $value in $color-palette-props {
76
- @include utils.fabricAttributes("&" + $sep+ shad + $sep, $fabricRule, "text-shadow", var(--text-shadow-#{$fabricRule}));
77
- }
78
- }
79
- }
80
-
81
- @mixin textCssVars() {
82
- /*Hs*/
83
- @for $size-index from 1 through $font-size-h-steps {
84
- $acc: (( $font-size-h-steps - $size-index) * $step-size) + 1;
85
- --font-size-h#{$size-index}: #{$acc + $font-size-unit-config};
86
- }
87
- /*weight*/
88
- @each $fabricRule, $value in $fontWeight {
89
- --font-weight-#{$fabricRule}: #{$value};
90
- }
91
- /*text shadows color_schemes*/
92
- @each $fabricRule, $value in $color-schemes {
93
- $cast-value: 0 0 0.125em #{$value};
94
- --text-shadow-#{$fabricRule}: #{$cast-value};
95
- }
96
- /*text-shadows color_palette */
97
- @each $fabricRule, $value in $color-palette-props {
98
- $cast-value: 0 0 0.125em #{$value};
99
- --text-shadow-#{$fabricRule}: #{$cast-value};
100
- }
101
- }
102
-
103
-
104
- @mixin buildText($mq_size_key: null) {
105
-
106
- $property_key: if($mq_size_key, #{$moduleNameShort}-#{$mq_size_key}, #{$moduleNameShort});
107
-
108
- @include fabric_text($property_key);
109
- }
@@ -1,87 +0,0 @@
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
- );
@@ -1,25 +0,0 @@
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
- $min_value: $mq_size_value;
24
- }
25
-
@@ -1,6 +0,0 @@
1
-
2
- @use '_text-build' as build;
3
-
4
- @include build.buildText(null);
5
-
6
-
@@ -1,76 +0,0 @@
1
- @use "theme-vars";
2
- @use "../cssfabric-config";
3
- @use "../../_utils";
4
- @use "sass:color";
5
-
6
- $theme-config: theme-vars.$theme-config;
7
-
8
- // COLOR THEME
9
- $moduleNameShort: map-get($theme-config, moduleNameShort);
10
- //
11
- $color-themes: map-get($theme-config, color-default-config);
12
- $theme-levels: map-get($theme-config, theme-level-config);
13
- $theme-properties-apply-config: map-get($theme-config, theme-properties-apply-config);
14
-
15
- $color-primary: map-get($color-themes, primary);
16
- $color-secondary: map-get($color-themes, secondary);
17
- $color-tertiary: map-get($color-themes, tertiary);
18
-
19
- $declinations-config: map-get($theme-config, declinations-config);
20
-
21
- @mixin fabric_theme($mq_size_key: null) {
22
- // loop on each color grades
23
- @each $color-grade in $declinations-config {
24
-
25
- @each $text-or-bg-or-border in $theme-properties-apply-config {
26
- $property_key: if($mq_size_key, #{$text-or-bg-or-border}-#{$mq_size_key}, #{$text-or-bg-or-border});
27
-
28
- $switch-tag-type: utils.getColorPropertyType($text-or-bg-or-border);
29
-
30
- .#{$moduleNameShort}-#{$property_key}-#{$color-grade} {
31
- #{$switch-tag-type}: var(--theme-color-#{$color-grade});
32
-
33
- @each $theme-level in $theme-levels {
34
- $newColor: var(--theme-color-#{$color-grade}-#{$theme-level});
35
-
36
- @include utils.fabricAttributes("&-", $theme-level, #{$switch-tag-type}, $newColor);
37
- }
38
- }
39
- }
40
- }
41
- }
42
-
43
- @mixin themeCssVars() {
44
- /* theme primary colors*/
45
- --theme-color-primary: #{$color-primary};
46
- @each $theme-level in $theme-levels {
47
- --theme-color-primary-#{$theme-level}: #{utils.applyColorEffect($theme-level,$color-primary)};
48
- }
49
- --theme-color-primary-alpha-low: #{color.change($color-primary,$alpha:0.8)};
50
- --theme-color-primary-alpha-mid: #{color.change($color-primary,$alpha:0.3)};
51
- --theme-color-primary-alpha-high: #{color.change($color-primary,$alpha:0.1)};
52
-
53
- /* theme secondary colors*/
54
- --theme-color-secondary: #{$color-secondary};
55
- @each $theme-level in $theme-levels {
56
- --theme-color-secondary-#{$theme-level}: #{utils.applyColorEffect($theme-level,$color-secondary)};
57
- }
58
- --theme-color-secondary-alpha-low: #{color.change($color-secondary,$alpha:0.8)};
59
- --theme-color-secondary-alpha-mid: #{color.change($color-secondary,$alpha:0.3)};
60
- --theme-color-secondary-alpha-high: #{color.change($color-secondary,$alpha:0.1)};
61
-
62
- /* theme tertiary colors*/
63
- --theme-color-tertiary: #{$color-tertiary};
64
- @each $theme-level in $theme-levels {
65
- --theme-color-tertiary-#{$theme-level}: #{utils.applyColorEffect($theme-level,$color-tertiary)};
66
- }
67
- --theme-color-tertiary-alpha-low: #{color.change($color-tertiary,$alpha:0.8)};
68
- --theme-color-tertiary-alpha-mid: #{color.change($color-tertiary,$alpha:0.3)};
69
- --theme-color-tertiary-alpha-high: #{color.change($color-tertiary,$alpha:0.1)};
70
-
71
- }
72
-
73
- @mixin buildTheme($mq_size_key: null) {
74
-
75
- @include fabric_theme($mq_size_key);
76
- }
@@ -1,55 +0,0 @@
1
- @use '../../utils' as utils;
2
- @use "../cssfabric-config";
3
-
4
-
5
- $config: cssfabric-config.$cssfabric-config;
6
-
7
- $theme: map-get($config, theme);
8
-
9
- $color-primary: map-get($theme, primary) !default;
10
- $color-secondary: map-get($theme, secondary) !default;
11
- $color-tertiary: map-get($theme, tertiary) !default;
12
-
13
- $_foreground: map-get($theme, foreground) !default;
14
- $_background: map-get($theme, background) !default;
15
-
16
- $_declinations-config: (primary, secondary, tertiary);
17
- $themeii: (primary: $color-primary, secondary:$color-secondary, tertiary:$color-tertiary);
18
-
19
- $_theme-levels: (light lighter dark darker complement invert);
20
- $_theme-properties-apply: (text, bg, border);
21
-
22
-
23
- $theme-metadata: (
24
- "title": "theme",
25
- "description": ""
26
- );
27
-
28
- $_theme-levels-obj: (_ light lighter dark darker complement invert);
29
- $_declinations-config-object: (primary:$_theme-levels-obj, secondary:$_theme-levels-obj, tertiary:$_theme-levels-obj);
30
-
31
-
32
- $theme-config: (
33
- moduleName: theme,
34
- moduleNameShort: theme,
35
- color-default-config: (
36
- primary: $color-primary,
37
- secondary: $color-secondary,
38
- tertiary: $color-tertiary,
39
- foreground: $_foreground,
40
- background: $_background
41
- ),
42
- declinations-config:$_declinations-config,
43
- theme-level-config:$_theme-levels,
44
- theme-properties-apply-config:$_theme-properties-apply,
45
- // primary secondary tertiary
46
- color: utils.getThemeLevels($themeii, $color-primary)
47
- );
48
-
49
- $theme-docs: (attributes:(
50
- theme:(
51
- tag: theme,
52
- keys: $_theme-properties-apply,
53
- levels: $_declinations-config-object
54
- )
55
- ));
@@ -1,6 +0,0 @@
1
-
2
- @use '_theme-build' as build;
3
-
4
- @include build.buildTheme(null);
5
-
6
-
@@ -1,118 +0,0 @@
1
- @use "../_utils";
2
- @use "sass:color";
3
- @use 'cssfabric-config';
4
- @use '../../cssfabric/modules/color/color-vars';
5
- @use "../../cssfabric/modules/box/box-vars" as box;
6
- @use "../../cssfabric/modules/box/box-build" as boxBuild;
7
- @use "../../cssfabric/modules/theme/theme-build" as themeBuild;
8
- @use "../../cssfabric/modules/text/text-build" as textBuild;
9
-
10
-
11
- $config: cssfabric-config.$cssfabric-config;
12
- /* cssFabric vars */
13
-
14
- $tru: utils.get_fabric_conf('themes','light');
15
-
16
- // COLOR config
17
- $color-config: color-vars.$color-config;
18
- // COLOR SCHEMES
19
- $color-schemes: map-get($color-config, scheme);
20
- // COLOR PALETTE
21
- $color-palette: map-get($color-config, palette);
22
- // COLOR TYPES
23
- $color-types-config: map-get($color-config, color-types-config);
24
-
25
- $themes: map-get($config, themes) !default;
26
- $theme-light: map-get($themes, light) !default;
27
- $theme-dark: map-get($themes, dark) !default;
28
-
29
- // GREYS
30
- $gray-config: map-get($color-config, gray-config) !default;
31
- $color-gray-start: map-get($gray-config, start) !default;
32
- $color-gray-end: map-get($gray-config, end) !default;
33
- $color-gray-steps: map-get($gray-config, steps) !default;
34
- $gray-schemes: utils.getGraySteps($color-gray-steps, $color-gray-start, $color-gray-end);
35
-
36
-
37
- // BOX config
38
- $box-config: box.$box-config;
39
-
40
- $box-shadows-steps: map-get($box-config, shadows-steps) !default;
41
- $box-shadows-step-multiplier: map-get($box-config, shadows-step_multiplier) !default;
42
- $box-shadow-shorthand-config: map-get($box-config, shadow-shorthand-config) !default;
43
-
44
- :root {
45
-
46
- @include themeBuild.themeCssVars();
47
-
48
- --theme-color-foreground: #{map-get($theme-light, foreground)};
49
- --theme-color-text: #{map-get($theme-light, foreground)};
50
- --theme-color-background: #{map-get($theme-light, background)};
51
- --theme-color-paper: #{map-get($theme-light, paper)};
52
-
53
- --theme-color-border: rgba(208, 191, 151, 0.3);
54
- --theme-color-overlay: rgba(208, 191, 151, 0.2);
55
-
56
- /* color-scheme */
57
- @each $type-key, $type-prop in $color-schemes {
58
- --color-scheme-#{$type-key} : #{$type-prop};
59
- --color-scheme-#{$type-key}-light: #{utils.applyColorEffect('light',$type-prop)};
60
- --color-scheme-#{$type-key}-dark: #{utils.applyColorEffect('dark',$type-prop)};
61
- }
62
-
63
- /* color-palette */
64
- @each $type-key, $type-prop in $color-palette {
65
- /* color-palette #{$type-key} */
66
- --color-palette-#{$type-key} : #{$type-prop};
67
-
68
- --color-palette-#{$type-key}-lighter: #{utils.applyColorEffect('lighter',$type-prop)};
69
- --color-palette-#{$type-key}-light: #{utils.applyColorEffect('light',$type-prop)};
70
- --color-palette-#{$type-key}-dark: #{utils.applyColorEffect('dark',$type-prop)};
71
- --color-palette-#{$type-key}-darker: #{utils.applyColorEffect('darker',$type-prop)};
72
- --color-palette-#{$type-key}-complement: #{utils.applyColorEffect('complement',$type-prop)};
73
- --color-palette-#{$type-key}-invert: #{utils.applyColorEffect('invert',$type-prop)};
74
-
75
- --color-palette-#{$type-key}-alpha-low: #{color.change($type-prop,$alpha:0.8)};
76
- --color-palette-#{$type-key}-alpha-mid: #{color.change($type-prop,$alpha:0.3)};
77
- --color-palette-#{$type-key}-alpha-high: #{color.change($type-prop,$alpha:0.1)};
78
- }
79
-
80
- /* grays */
81
- @each $type-key, $type-prop in $gray-schemes {
82
- --color-gray-#{$type-key} : #{$type-prop};
83
- --color-gray-#{$type-key}-alpha-low: #{color.change($type-prop,$alpha:0.8)};
84
- }
85
-
86
- /* shadows */
87
- @include boxBuild.shadowsCssVars();
88
- /* boxes */
89
- @include boxBuild.pmbCssVars();
90
- /* text */
91
- @include textBuild.textCssVars();
92
-
93
- }
94
-
95
- /*[data-theme="light"] {
96
-
97
- --theme-color-foreground: #{map-get($theme-light, foreground)};
98
- --theme-color-text: #{map-get($theme-light, foreground)};
99
- --theme-color-background: #{map-get($theme-light, background)};
100
- --theme-color-paper: #{map-get($theme-light, paper)};
101
-
102
- --theme-color-border: var(--theme-color-primary-alpha-mid);
103
- --theme-color-overlay: '';
104
- }*/
105
-
106
- [data-theme="dark"] {
107
-
108
- --theme-color-foreground: #{map-get($theme-dark, foreground)};
109
- --theme-color-text: #{map-get($theme-dark, foreground)};
110
- --theme-color-background: #{map-get($theme-dark, background)};
111
- --theme-color-paper: #{map-get($theme-dark, paper)};
112
-
113
- --theme-color-border: rgba(255, 255, 255, 0.2);
114
- --theme-color-overlay: rgba(255,255,255,0.1);
115
- }
116
-
117
-
118
-