@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
package/README.md CHANGED
@@ -1,240 +1,38 @@
1
- # Welcome to cssfabric
2
-
3
-
4
- Willing to bring my utility-first 2011 css framework to a more decent life !
5
-
6
-
7
- This is also a learning point about gulp, webpack, packages and friends.
8
-
9
- > yaocf !
10
-
11
-
12
- <br/>
13
-
14
- ## Incoming features
15
-
16
-
17
- <br/>
18
-
19
- | modules | |
20
- | ------- | --- |
21
- | cssfabric | cssfabric global config variables
22
- animation | cssfabric simplest animation module
23
- box | cssfabric box module to set heights, paddings, margins and shadows on all html elements
24
- base | cssfabric base config variables
25
- color | cssfabric color system: its about colors
26
- grid | cssfabric flex grid system module
27
- menu | cssfabric menu module to set menu style
28
- overflow | cssfabric overflow module to set overflow styles on all html elements
29
- scale | cssfabric scale module to set dimensions and ratios on all html elements
30
- table | cssfabric table module to set different table styles
31
- text | cssfabric text module to set text style on all html elements
32
- theme |
33
- zindex | cssfabric zindex module to set z-index on all html elements |
34
-
35
-
36
- <br/>
37
-
38
-
39
-
40
-
41
- <br/>
42
-
43
- ### More details
44
-
45
- ---
46
-
47
- #### <strong>module box</strong>
48
-
49
- #### [padding]
50
-
51
-
52
- - padding properties for html elements
53
-
54
-
55
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: pad
56
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _&nbsp;&nbsp;t&nbsp;&nbsp;b&nbsp;&nbsp;l&nbsp;&nbsp;r&nbsp;&nbsp;all&nbsp;&nbsp;u&nbsp;&nbsp;ii&nbsp;&nbsp;tb
57
- - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;8
58
-
59
- #### [margin]
60
-
61
-
62
- - margin properties for html elements
63
-
64
-
65
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: marg
66
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _&nbsp;&nbsp;t&nbsp;&nbsp;b&nbsp;&nbsp;l&nbsp;&nbsp;r&nbsp;&nbsp;all&nbsp;&nbsp;u&nbsp;&nbsp;ii&nbsp;&nbsp;tb
67
- - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;8
68
-
69
- #### [border]
70
-
71
-
72
- - border properties for html elements
73
-
74
-
75
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border
76
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _&nbsp;&nbsp;t&nbsp;&nbsp;b&nbsp;&nbsp;l&nbsp;&nbsp;r&nbsp;&nbsp;all&nbsp;&nbsp;u&nbsp;&nbsp;ii&nbsp;&nbsp;tb
77
- - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;5
78
-
79
- #### [shadow]
80
-
81
-
82
- - applying shadows give depth and levels to your design
83
-
84
-
85
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: shad
86
- - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: 2&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;32&nbsp;&nbsp;&nbsp;&nbsp;64&nbsp;&nbsp;&nbsp;&nbsp;128&nbsp;&nbsp;&nbsp;&nbsp;256
87
-
88
- ---
89
-
90
- #### <strong>module color</strong>
91
-
92
- #### [color]
93
-
94
-
95
- - color for text level html elements
96
-
97
-
98
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: color
99
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme&nbsp;&nbsp;palette&nbsp;&nbsp;gray
100
-
101
- #### [background-color]
102
-
103
-
104
- - background colors
105
-
106
-
107
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg
108
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme&nbsp;&nbsp;palette&nbsp;&nbsp;gray
109
-
110
- #### [background-themed]
111
-
112
-
113
- - same as background-color, but with added contrasted color to text
114
-
115
-
116
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg-themed
117
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme&nbsp;&nbsp;palette&nbsp;&nbsp;gray
118
-
119
- #### [border-color]
120
-
121
-
122
- - border colors are slightly darker to maximize surrounding effect
123
-
124
-
125
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border-color
126
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette&nbsp;&nbsp;gray
127
-
128
- ---
129
-
130
- #### <strong>module grid</strong>
131
-
132
- #### [grid]
133
-
134
-
135
- - a classic grid system, and hey, it gets height !
136
-
137
-
138
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: grid
139
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: v&nbsp;&nbsp;h
140
-
141
- #### [self]
142
-
143
-
144
- - grid children specific classnames
145
-
146
-
147
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: self
148
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: start&nbsp;&nbsp;end&nbsp;&nbsp;stretch
149
-
150
- ---
151
-
152
- #### <strong>module menu</strong>
153
-
154
- #### [menu]
155
-
156
-
157
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: menu
158
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: h&nbsp;&nbsp;v
159
-
160
- ---
161
-
162
- #### <strong>module overflow</strong>
163
-
164
- #### [overflow]
165
-
166
-
167
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flow
168
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible&nbsp;&nbsp;hidden&nbsp;&nbsp;clip&nbsp;&nbsp;scroll&nbsp;&nbsp;auto
169
-
170
- #### [overflowX]
171
-
172
-
173
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowX
174
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible&nbsp;&nbsp;hidden&nbsp;&nbsp;clip&nbsp;&nbsp;scroll&nbsp;&nbsp;auto
175
-
176
- #### [overflowY]
177
-
178
-
179
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowY
180
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible&nbsp;&nbsp;hidden&nbsp;&nbsp;clip&nbsp;&nbsp;scroll&nbsp;&nbsp;auto
181
-
182
- ---
183
-
184
- #### <strong>module scale</strong>
185
-
186
- #### [scale]
187
-
188
-
189
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: scale
190
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: w&nbsp;&nbsp;h
191
- - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _size</span>: full&nbsp;&nbsp;&nbsp;&nbsp;mid&nbsp;&nbsp;&nbsp;&nbsp;quarter&nbsp;&nbsp;&nbsp;&nbsp;tiers<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _content</span>: content-max&nbsp;&nbsp;&nbsp;&nbsp;content-min<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _defined-steps</span>: 1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;24&nbsp;&nbsp;&nbsp;&nbsp;32&nbsp;&nbsp;&nbsp;&nbsp;48&nbsp;&nbsp;&nbsp;&nbsp;64<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-5</span>: 1-5&nbsp;&nbsp;&nbsp;&nbsp;2-5&nbsp;&nbsp;&nbsp;&nbsp;3-5&nbsp;&nbsp;&nbsp;&nbsp;4-5&nbsp;&nbsp;&nbsp;&nbsp;5-5<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-12</span>: 1-12&nbsp;&nbsp;&nbsp;&nbsp;2-12&nbsp;&nbsp;&nbsp;&nbsp;3-12&nbsp;&nbsp;&nbsp;&nbsp;4-12&nbsp;&nbsp;&nbsp;&nbsp;5-12&nbsp;&nbsp;&nbsp;&nbsp;6-12&nbsp;&nbsp;&nbsp;&nbsp;7-12&nbsp;&nbsp;&nbsp;&nbsp;8-12&nbsp;&nbsp;&nbsp;&nbsp;9-12&nbsp;&nbsp;&nbsp;&nbsp;10-12&nbsp;&nbsp;&nbsp;&nbsp;11-12&nbsp;&nbsp;&nbsp;&nbsp;12-12
192
-
193
- ---
194
-
195
- #### <strong>module table</strong>
196
-
197
- #### [table]
198
-
199
-
200
- - is a table
201
-
202
-
203
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: table
204
-
205
- ---
206
-
207
- #### <strong>module text</strong>
208
-
209
- #### [text-transform]
210
-
211
-
212
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
213
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: cap&nbsp;&nbsp;up&nbsp;&nbsp;low&nbsp;&nbsp;none&nbsp;&nbsp;full
214
-
215
- #### [font-weight]
216
-
217
-
218
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
219
-
220
- #### [text-align]
221
-
222
-
223
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
224
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: l&nbsp;&nbsp;r&nbsp;&nbsp;center&nbsp;&nbsp;justify
225
-
226
- #### [text-shadow]
227
-
228
-
229
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text-shad
230
-
231
- ---
232
-
233
- #### <strong>module theme</strong>
234
-
235
- #### [theme]
236
-
237
-
238
- - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: theme
239
- - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: text&nbsp;&nbsp;bg&nbsp;&nbsp;border
240
- - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- primary</span>: _&nbsp;&nbsp;&nbsp;&nbsp;light&nbsp;&nbsp;&nbsp;&nbsp;lighter&nbsp;&nbsp;&nbsp;&nbsp;dark&nbsp;&nbsp;&nbsp;&nbsp;darker&nbsp;&nbsp;&nbsp;&nbsp;complement&nbsp;&nbsp;&nbsp;&nbsp;invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- secondary</span>: _&nbsp;&nbsp;&nbsp;&nbsp;light&nbsp;&nbsp;&nbsp;&nbsp;lighter&nbsp;&nbsp;&nbsp;&nbsp;dark&nbsp;&nbsp;&nbsp;&nbsp;darker&nbsp;&nbsp;&nbsp;&nbsp;complement&nbsp;&nbsp;&nbsp;&nbsp;invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- tertiary</span>: _&nbsp;&nbsp;&nbsp;&nbsp;light&nbsp;&nbsp;&nbsp;&nbsp;lighter&nbsp;&nbsp;&nbsp;&nbsp;dark&nbsp;&nbsp;&nbsp;&nbsp;darker&nbsp;&nbsp;&nbsp;&nbsp;complement&nbsp;&nbsp;&nbsp;&nbsp;invert
1
+ # create-svelte
2
+
3
+ Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4
+
5
+ ## Creating a project
6
+
7
+ If you're seeing this, you've probably already done this step. Congrats!
8
+
9
+ ```bash
10
+ # create a new project in the current directory
11
+ npm init svelte
12
+
13
+ # create a new project in my-app
14
+ npm init svelte my-app
15
+ ```
16
+
17
+ ## Developing
18
+
19
+ Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20
+
21
+ ```bash
22
+ npm run dev
23
+
24
+ # or start the server and open the app in a new browser tab
25
+ npm run dev -- --open
26
+ ```
27
+
28
+ ## Building
29
+
30
+ To create a production version of your app:
31
+
32
+ ```bash
33
+ npm run build
34
+ ```
35
+
36
+ You can preview the production build with `npm run preview`.
37
+
38
+ > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
@@ -0,0 +1,13 @@
1
+ {"cssfabric":{"modules":{"animation":{"_data": {"attention_props": [], "in_out_props": {"back": []}}, "_metadata": {"title": "animation", "description": "cssfabric simplest animation module"}, "_docs": {"attention_props": "", "in_out_props": ""}},
2
+ "box":{"_data": {"unit-config": "rem", "border-unit-config": "px", "unit-size-config": 0.5, "unit-border-size-config": 1, "sizes-config": 12, "border-sizes-px-config": 3, "shadows-steps": 5, "shadows_step_multiplier": 2, "position-shorthand-config": "pos", "display-shorthand-config": "dsp", "shadow-shorthand-config": "shad", "border-shorthand-config": "border", "padding-shorthand-config": "pad", "margin-shorthand-config": "marg", "cssProps": {"borderShorthands": {"_": ["top", "bottom", "left", "right"], "t": "top", "b": "bottom", "l": "left", "r": "right", "all": ["top", "bottom", "left", "right"], "u": ["bottom", "left", "right"], "ii": ["left", "right"], "tb": ["top", "bottom"]}, "positionProps": {"abs": "absolute", "rel": "relative", "stat": "static", "fix": "fixed", "sticky": "sticky"}, "displayProps": {"block": "block", "none": "none", "inline": "inline", "block-inline": "inline-block", "flex-inline": "inline-flex", "tbl": "table", "tbl-row": "table-row", "tbl-cell": "table-cell", "tbl-column": "table-column"}}}, "_metadata": {"title": "box", "tag": "box", "description": "cssfabric box module to set heights, paddings, margins and shadows on all html elements"}, "_docs": {"attributes": {"padding": {"tag": "pad", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "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"}, "levels": {"_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]}, "about": "padding properties for html elements"}, "margin": {"tag": "marg", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "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"}, "levels": {"_": ["_", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]}, "about": "margin properties for html elements"}, "border": {"tag": "border", "keys": ["_", "t", "b", "l", "r", "all", "u", "ii", "tb"], "values": {"_": "_", "1": "1px", "2": "2px", "3": "3px"}, "levels": {"_": ["_", 1, 2, 3]}, "about": "border properties for html elements"}, "radius": {"tag": "radiusGuy"}, "shadow": {"tag": "shad", "values": {"2": "0.83333333331.724137931", "4": "1.66666666673.4482758621", "8": "3.33333333336.8965517241", "16": "6.666666666713.7931034483", "32": "13.333333333327.5862068966"}, "levels": {"_": [2, 4, 8, 16, 32]}, "about": "applying shadows give depth and levels to your design"}}}},
3
+ "base":{"_data": {"cfg-has-dimension-strict": true, "CFG_HAS_DIMENSION_MIN": true, "CFG_HAS_DIMENSION_MAX": true, "size_step": "0.5rem", "sizes": {"tiny": 32, "small": 64, "medium": 128, "large": 256, "full": "100%"}}, "_metadata": {"title": "base", "tag": "base", "description": "cssfabric base config variables"}, "_docs": []},
4
+ "color":{"_data": {"gray-config": {"start": "#f4f4f4", "end": "#999", "steps": 5}, "color-types-config": ["color", "bg", "bg-themed", "border-color"], "theme": {"primary": "#201700", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff", "paper": "#f1f1f1"}, "scheme": {"discrete": "#ccc", "success": "green", "info": "#FFDD57FF", "warning": "#e6b905", "alert": "#ff7300", "error": "red"}, "palette": {"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"}, "gray": "getGraySteps(5, #f4f4f4, #999)"}, "_metadata": {"title": "color", "title_tag": "its about colors", "description": "cssfabric color system: its about colors"}, "_docs": {"attributes": {"color": {"tag": "color", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "color for text level html elements"}, "background-color": {"tag": "bg", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(5, #f4f4f4, #999)"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "background colors"}, "background-themed": {"tag": "bg-themed", "keys": ["scheme", "palette", "gray"], "levelsLinked": {"gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]}, "levelsDeclin": {"palette": ["_", "lighter", "light", "dark", "darker", "complement"]}, "about": "same as background-color, but with added contrasted color to text"}, "border-color": {"tag": "border-color", "keys": ["palette", "gray"], "levelsLinked": {"gray": ["getGraySteps(5, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]}, "about": "border colors are slightly darker to maximize surrounding effect"}}}},
5
+ "flex":{"_data": {"moduleName": "flex", "moduleNameShort": "flex", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 2, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}}, "_metadata": {"title": "flex", "tag": "flex", "description": "cssfabric flex system module"}, "_docs": {"attributes": {"grid": {"tag": "flex", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic flex grid system, and hey, it gets height !"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "flex children specific classnames"}}}},
6
+ "grid":{"_data": {"moduleName": "grid", "moduleNameShort": "grid", "horCode": "h", "vertCode": "v", "gridFullWidth": "main", "grow-shrink-steps": 4, "cssProps": {"flexWrap": {"wrap": "wrap", "wrap-reverse": "wrap-reverse"}, "grid-justify": {"start": "flex-start", "end": "flex-end", "between": "space-between", "stretch": "stretch", "center": "flex-center"}, "grid-items": {"baseline": "baseline", "stretch": "stretch", "start": "flex-start", "center": "center", "end": "flex-end"}, "grid-content": {"start": "flex-start", "center": "center", "end": "flex-end", "between": "space-between", "equal": "space-evenly"}}, "cssItemsProps": {"self": {"start": "flex-start", "end": "flex-end", "stretch": "stretch"}}, "grid-max-rows": 8, "grid-max-cols": 12}, "_metadata": {"title": "grid", "tag": "grid", "description": "cssfabric flex grid system module"}, "_docs": {"attributes": {"grid": {"tag": "grid", "keys": ["v", "h"], "classNames": {"align": ["top", "middle", "bottom", "left", "right", "center", "middle-center", "stretch"], "grid": ["wrap", "wrap-reverse"]}, "about": "a classic grid system"}, "self": {"tag": "self", "keys": ["start", "end", "stretch"], "about": "grid children specific classnames"}}}},
7
+ "menu":{"_data": {"menu_class_name": "menu", "menu_class_name_short": "ul", "orientations": {"v": "vertical", "h": "horizontal"}, "menu_item_class_name": "menu-item", "menu_item_class_name_short": "li", "menu_item_disabled_tag": "disabled", "menu_item_selected_tag": "selected", "menu_dropdown_tag": "drop", "menu_dropdown_open": "open", "menu_dropdown_close": "close"}, "_metadata": {"title": "menu", "tag": "ul", "description": "cssfabric menu module to set menu style"}, "_docs": {"attributes": {"menu": {"tag": "menu", "keys": ["h", "v"]}}}},
8
+ "overflow":{"_data": {"overflow_props": ["overflow", "overflow-x", "overflow-y"], "overflow_values": ["visible", "hidden", "clip", "scroll", "auto"], "cssProps": {"overflow": {"visible": "visible", "hidden": "hidden", "clip": "clip", "scroll": "scroll", "_": "auto"}}}, "_metadata": {"title": "overflow", "tag": "flow", "description": "cssfabric overflow module to set overflow styles on all html elements"}, "_docs": {"attributes": {"overflow": {"tag": "flow", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowX": {"tag": "flowX", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}, "overflowY": {"tag": "flowY", "keys": ["visible", "hidden", "clip", "scroll", "auto"]}}}},
9
+ "scale":{"_data": {"weight-config": "1em", "unit-tag-config": {"width": "w", "height": "h"}, "grid-ratios-config": 16, "defined-step-size": 2, "defined-step-unit": "rem", "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64], "cssProps": {"size": {"full": "100%", "mid": "50%", "quarter": "25%", "tiers": "33%"}, "content": {"content-max": "max-content", "content-min": "min-content"}, "defined-steps": [1, 2, 4, 8, 16, 24, 32, 48, 64]}}, "_metadata": {"title": "scale", "tag": "scale", "description": "cssfabric scale module to set dimensions and ratios on all html elements"}, "_docs": {"attributes": {"scale": {"tag": "scale", "keys": ["w", "h"], "levels": {"_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"]}}}}},
10
+ "table":{"_data": {"className": "table", "classNameShort": "tbl", "table_class_name": "table", "table_class_name_short": "tbl", "table-bg-color-head": "#f4f4f4", "table-bg-color-strip-main": "#ededed", "table-bg-color-strip-second": "#f5f5f5", "table-border-color-header": "#ccc", "table-border-color-main": "#ededed", "table-border-color-second": "#f5f5f5"}, "_metadata": {"title": "table", "tag": "table", "description": "cssfabric table module to set different table styles"}, "_docs": {"attributes": {"table": {"tag": "table", "classNames": {"_": ["bg-strip-2", "bg-strip-5"], "_pos": ["sticky", "layout"], "_deco": ["h-line", "v-line", "border"]}, "about": "is a table"}}}},
11
+ "text":{"_data": {"moduleName": "text", "moduleNameShort": "text", "title-size-declination-config": 6, "font-size-unit-config": "rem", "font-sizes-h1-rem-config": 3.1, "font-size-h-min-rem-config": 1, "text-ellipsis-tag-config": "ellipsis", "cssProps": {"textTransform": {"cap": "capitalize", "up": "uppercase", "low": "lowercase", "none": "none", "full": "full-width"}, "fontWeight": {"50": 50, "100": 100, "300": 400, "500": 500, "900": 900, "light": "lighter", "cap": "normal", "bold": "bold", "bolder": "bolder"}, "textAlign": {"l": "left", "r": "right", "center": "center", "justify": "justify"}}, "scheme": {"discrete": "#ccc", "success": "green", "info": "#FFDD57FF", "warning": "#e6b905", "alert": "#ff7300", "error": "red"}, "palette": {"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"}, "gray": "getGraySteps(5, #f4f4f4, #999)"}, "_metadata": {"title": "text", "tag": "text", "description": "cssfabric text module to set text style on all html elements"}, "_docs": {"attributes": {"text-transform": {"tag": "text", "keys": ["cap", "up", "low", "none", "full"]}, "font-weight": {"tag": "text", "keys": [50, 100, 300, 500, 900, "light", "cap", "bold", "bolder"]}, "text-align": {"tag": "text", "keys": ["l", "r", "center", "justify"]}, "text-shadow": {"tag": "text-shad", "keys": ["palette"]}}, "classNames": {"_": {"et": "ellipsis"}}}},
12
+ "theme":{"_data": {"moduleName": "theme", "moduleNameShort": "theme", "color-default-config": {"primary": "#201700", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#ffffff", "paper": "#f1f1f1"}, "declinations-config": ["primary", "secondary", "tertiary"], "theme-level-config": ["light", "lighter", "dark", "darker", "complement", "invert"], "theme-properties-apply-config": ["text", "bg", "border"], "color": {"primary": "#201700", "primary-light": "#6d4e00", "primary-lighter": "#b98500", "primary-dark": "black", "primary-darker": "black", "primary-complement": "#000920", "primary-invert": "#dfe8ff", "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"}}, "_metadata": {"title": "theme", "description": ""}, "_docs": {"attributes": {"theme": {"tag": "theme", "keys": ["text", "bg", "border"], "levels": {"primary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"], "secondary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"], "tertiary": ["_", "light", "lighter", "dark", "darker", "complement", "invert"]}}}}},
13
+ "zindex":{"_data": {"z_groups": ["a", "z"]}, "_metadata": {"title": "zindex", "tag": "zI", "description": "cssfabric zindex module to set z-index on all html elements"}, "_docs": {"z_groups": "_"}} }}}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ // copy css vars file
2
+ export {};
package/package.json CHANGED
@@ -1,69 +1,113 @@
1
- {
2
- "name": "@medyll/cssfabric",
3
- "version": "0.1.0",
4
- "private": false,
5
- "bin": {
6
- "@medyll/cssfabric": "./bin/index.js"
7
- },
8
- "repository": {
9
- "type" : "git",
10
- "url": "https://github.com/medyll/cssfabric.git"
11
- },
12
- "scripts": {
13
- "dev": "tsc -w || exit 1",
14
- "build": "",
15
- "watch-all": "npm-run-all -p -r watch-sass",
16
- "watch-sass": "gulp watchSass",
17
- "watch-json": "gulp watchJson",
18
- "watch-include": "gulp watchInclude",
19
- "watch-readme": "gulp watchReadme",
20
- "task-download": "gulp taskDownload",
21
- "css-build": "sass src/cssfabric/modules/vars.scss css/mystyles.css"
22
- },
23
- "dependencies": {
24
- "chokidar": "^3.5.1",
25
- "fs-extra": "^10.0.1",
26
- "gulp-filelist": "^2.0.5",
27
- "gulp-jsbeautifier": "^3.0.1",
28
- "gulp-sort": "^2.0.0",
29
- "JSON": "^1.0.0",
30
- "node-sass": "^6.0.0",
31
- "sass": "^1.32.12"
32
- },
33
- "devDependencies": {
34
- "clean-css": "^5.1.2",
35
- "cross-spawn": "^7.0.3",
36
- "css-loader": "^5.2.4",
37
- "documentjs": "^0.5.5",
38
- "gulp": "^4.0.2",
39
- "gulp-cached": "^1.1.1",
40
- "gulp-cli": "^2.3.0",
41
- "gulp-concat-util": "^0.5.5",
42
- "gulp-data": "^1.3.1",
43
- "gulp-debug": "^4.0.0",
44
- "gulp-download": "0.0.1",
45
- "gulp-download-stream": "^0.0.6",
46
- "gulp-ignore": "^3.0.0",
47
- "gulp-json-modify": "^1.0.2",
48
- "gulp-json-transform": "^0.4.7",
49
- "gulp-minify-css": "^1.2.4",
50
- "gulp-modify-file": "^1.0.1",
51
- "gulp-rename": "^2.0.0",
52
- "gulp-sass": "^4.1.0",
53
- "gulp-sass-export": "0.0.3",
54
- "gulp-util": "^3.0.8",
55
- "json-to-scss": "^1.6.2",
56
- "json2md": "^1.10.0",
57
- "mini-css-extract-plugin": "^1.6.0",
58
- "npm-run-all": "^4.1.5",
59
- "sass-json-export": "^2.0.1",
60
- "sass-loader": "^11.0.1",
61
- "sassdoc": "^2.7.3",
62
- "scss-to-json": "^2.0.0",
63
- "style-loader": "^2.0.0",
64
- "terminal": "^0.1.4",
65
- "through2": "^4.0.2",
66
- "tsconfig-paths": "^3.9.0",
67
- "webpack": "^5.36.2"
68
- }
69
- }
1
+ {
2
+ "name": "@medyll/cssfabric",
3
+ "version": "0.2.0",
4
+ "private": false,
5
+ "bin": {
6
+ "@medyll/cssfabric": "./bin/index.js"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/medyll/cssfabric.git"
11
+ },
12
+ "dependencies": {
13
+ "@lukeed/uuid": "^2.0.0",
14
+ "cookie": "^0.4.1",
15
+ "gulp-concat-util": "^0.5.5",
16
+ "gulp-filelist": "^2.0.5",
17
+ "JSON": "^1.0.0",
18
+ "sass": "^1.32.12",
19
+ "svelte2tsx": "^0.5.9"
20
+ },
21
+ "devDependencies": {
22
+ "@sveltejs/adapter-auto": "next",
23
+ "@sveltejs/kit": "next",
24
+ "@types/cookie": "^0.4.1",
25
+ "chokidar": "^3.5.3",
26
+ "cross-spawn": "^7.0.3",
27
+ "css-loader": "^5.2.4",
28
+ "gulp": "^4.0.2",
29
+ "gulp-cached": "^1.1.1",
30
+ "gulp-cli": "^2.3.0",
31
+ "gulp-data": "^1.3.1",
32
+ "gulp-download-stream": "^0.0.6",
33
+ "gulp-ignore": "^3.0.0",
34
+ "gulp-json-transform": "^0.4.7",
35
+ "gulp-rename": "^2.0.0",
36
+ "gulp-sass": "^5.1.0",
37
+ "gulp-util": "^3.0.8",
38
+ "json-to-scss": "^1.6.2",
39
+ "json2md": "^1.10.0",
40
+ "mini-css-extract-plugin": "^1.6.0",
41
+ "npm-run-all": "^4.1.5",
42
+ "sass-json-export": "^2.0.1",
43
+ "style-loader": "^2.0.0",
44
+ "svelte": "^3.46.0",
45
+ "svelte-check": "^2.2.6",
46
+ "svelte-highlight": "^6.0.1",
47
+ "svelte-preprocess": "^4.10.1",
48
+ "through2": "^4.0.2",
49
+ "tsconfig-paths": "^3.9.0",
50
+ "tslib": "^2.3.1",
51
+ "typescript": "~4.6.2",
52
+ "webpack": "^5.36.2"
53
+ },
54
+ "type": "module",
55
+ "exports": {
56
+ "./package.json": "./package.json",
57
+ "./init/importCssVars": "./init/importCssVars.js",
58
+ "./scripts/cssfabric": "./scripts/cssfabric.js",
59
+ "./scripts/cssfabricClassNames": "./scripts/cssfabricClassNames.js",
60
+ "./scripts": "./scripts/index.js",
61
+ "./scripts/utils": "./scripts/utils.js",
62
+ "./styles/animation/animation.css": "./styles/animation/animation.css",
63
+ "./styles/animation/animation.min.css": "./styles/animation/animation.min.css",
64
+ "./styles/base/base.css": "./styles/base/base.css",
65
+ "./styles/base/base.min.css": "./styles/base/base.min.css",
66
+ "./styles/box/box.css": "./styles/box/box.css",
67
+ "./styles/box/box.min.css": "./styles/box/box.min.css",
68
+ "./styles/box/box.responsive.css": "./styles/box/box.responsive.css",
69
+ "./styles/box/box.responsive.min.css": "./styles/box/box.responsive.min.css",
70
+ "./styles/color/color.css": "./styles/color/color.css",
71
+ "./styles/color/color.min.css": "./styles/color/color.min.css",
72
+ "./styles/color/color.responsive.css": "./styles/color/color.responsive.css",
73
+ "./styles/color/color.responsive.min.css": "./styles/color/color.responsive.min.css",
74
+ "./styles/cssfabric.css": "./styles/cssfabric.css",
75
+ "./styles/cssfabric.min.css": "./styles/cssfabric.min.css",
76
+ "./styles/cssfabric.responsive.css": "./styles/cssfabric.responsive.css",
77
+ "./styles/cssfabric.responsive.min.css": "./styles/cssfabric.responsive.min.css",
78
+ "./styles/flex/flex.css": "./styles/flex/flex.css",
79
+ "./styles/flex/flex.min.css": "./styles/flex/flex.min.css",
80
+ "./styles/flex/flex.responsive.css": "./styles/flex/flex.responsive.css",
81
+ "./styles/flex/flex.responsive.min.css": "./styles/flex/flex.responsive.min.css",
82
+ "./styles/grid/grid.css": "./styles/grid/grid.css",
83
+ "./styles/grid/grid.min.css": "./styles/grid/grid.min.css",
84
+ "./styles/grid/grid.responsive.css": "./styles/grid/grid.responsive.css",
85
+ "./styles/grid/grid.responsive.min.css": "./styles/grid/grid.responsive.min.css",
86
+ "./styles/menu/menu.css": "./styles/menu/menu.css",
87
+ "./styles/menu/menu.min.css": "./styles/menu/menu.min.css",
88
+ "./styles/menu/menu.responsive.css": "./styles/menu/menu.responsive.css",
89
+ "./styles/menu/menu.responsive.min.css": "./styles/menu/menu.responsive.min.css",
90
+ "./styles/overflow/overflow.css": "./styles/overflow/overflow.css",
91
+ "./styles/overflow/overflow.min.css": "./styles/overflow/overflow.min.css",
92
+ "./styles/overflow/overflow.responsive.css": "./styles/overflow/overflow.responsive.css",
93
+ "./styles/overflow/overflow.responsive.min.css": "./styles/overflow/overflow.responsive.min.css",
94
+ "./styles/scale/scale.css": "./styles/scale/scale.css",
95
+ "./styles/scale/scale.min.css": "./styles/scale/scale.min.css",
96
+ "./styles/scale/scale.responsive.css": "./styles/scale/scale.responsive.css",
97
+ "./styles/scale/scale.responsive.min.css": "./styles/scale/scale.responsive.min.css",
98
+ "./styles/table/table.css": "./styles/table/table.css",
99
+ "./styles/table/table.min.css": "./styles/table/table.min.css",
100
+ "./styles/table/table.responsive.css": "./styles/table/table.responsive.css",
101
+ "./styles/table/table.responsive.min.css": "./styles/table/table.responsive.min.css",
102
+ "./styles/text/text.css": "./styles/text/text.css",
103
+ "./styles/text/text.min.css": "./styles/text/text.min.css",
104
+ "./styles/text/text.responsive.css": "./styles/text/text.responsive.css",
105
+ "./styles/text/text.responsive.min.css": "./styles/text/text.responsive.min.css",
106
+ "./styles/theme/theme.css": "./styles/theme/theme.css",
107
+ "./styles/theme/theme.min.css": "./styles/theme/theme.min.css",
108
+ "./styles/vars.css": "./styles/vars.css",
109
+ "./styles/vars.min.css": "./styles/vars.min.css",
110
+ "./styles/zindex/zindex.css": "./styles/zindex/zindex.css",
111
+ "./styles/zindex/zindex.min.css": "./styles/zindex/zindex.min.css"
112
+ }
113
+ }
File without changes
@@ -0,0 +1,43 @@
1
+ import jsonConfig from "../_generated/cssFabric.vars.json";
2
+ import cssfabricClassNames from "./cssfabricClassNames";
3
+ //
4
+ const getModuleList = () => {
5
+ return jsonConfig["cssfabric"]?.["modules"] || {};
6
+ };
7
+ const getModuleConfig = (module) => {
8
+ if (module)
9
+ return jsonConfig["cssfabric"]?.["modules"]?.[module] || {};
10
+ return jsonConfig;
11
+ };
12
+ const getModuleData = (module) => {
13
+ if (module)
14
+ return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_data"] || {};
15
+ return jsonConfig;
16
+ };
17
+ const getModuleMetaData = (module) => {
18
+ if (module)
19
+ return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_metadata"] || {};
20
+ return jsonConfig;
21
+ };
22
+ const getModuleDocs = (module) => {
23
+ if (module)
24
+ return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_docs"] || {};
25
+ return jsonConfig;
26
+ };
27
+ const getModuleDocsAttributes = (module) => {
28
+ if (module)
29
+ return jsonConfig["cssfabric"]?.["modules"]?.[module]?.["_docs"]?.["attributes"] || {};
30
+ return jsonConfig;
31
+ };
32
+ export default {
33
+ getModuleList,
34
+ getModuleConfig,
35
+ getModuleData,
36
+ getModuleMetaData,
37
+ getModuleDocs,
38
+ getModuleDocsAttributes,
39
+ getClassNames: cssfabricClassNames,
40
+ getModuleClassNames: cssfabricClassNames,
41
+ getModuleTagClassNames: cssfabricClassNames.getModuleTagClassNames,
42
+ getModuleTagDebug: cssfabricClassNames.getModuleTagDebug,
43
+ };
@@ -1,16 +1,12 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const cssfabric_1 = __importDefault(require("./cssfabric"));
1
+ import cssfabric from "./cssfabric";
2
+ import utils from "./utils";
7
3
  function loopIt(props) {
8
4
  const { module } = props;
9
- const moduleAttributes = cssfabric_1.default.getModuleDocsAttributes(module);
5
+ const moduleAttributes = cssfabric.getModuleDocsAttributes(module);
10
6
  }
11
7
  function cssfabricClassNames(props) {
12
8
  const { module, moduleAttribute, outputStyle } = props;
13
- const moduleAttributes = cssfabric_1.default.getModuleDocsAttributes(module);
9
+ const moduleAttributes = cssfabric.getModuleDocsAttributes(module);
14
10
  const fabricAttributes = moduleAttributes[moduleAttribute];
15
11
  const moduleTag = fabricAttributes["tag"];
16
12
  const moduleKeys = fabricAttributes["keys"] || undefined;
@@ -141,7 +137,7 @@ function cssfabricClassNames(props) {
141
137
  });
142
138
  }
143
139
  }
144
- exports.default = {
140
+ export default {
145
141
  getModuleTagClassNames: cssfabricClassNames,
146
142
  getModuleTagDebug: function doIt(props) {
147
143
  props.outputStyle = 'debug';
File without changes