igniteui-theming 1.0.0-beta.9 → 1.0.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 (256) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +104 -0
  3. package/_index.scss +3 -2
  4. package/index.js +5 -0
  5. package/json/colors/meta/multipliers.json +1 -0
  6. package/json/colors/meta/palette.json +1 -0
  7. package/json/colors/presets/palettes.json +1 -0
  8. package/json/elevations/elevations.json +1 -0
  9. package/json/typography/presets/typescales.json +1 -0
  10. package/package.json +54 -13
  11. package/sass/_index.scss +1 -0
  12. package/sass/animations/_easings.scss +78 -0
  13. package/sass/animations/_index.scss +41 -0
  14. package/sass/animations/_mixins.scss +53 -0
  15. package/sass/animations/entrances/_bounce.scss +290 -0
  16. package/sass/animations/entrances/_fade.scss +171 -0
  17. package/sass/animations/entrances/_flicker.scss +302 -0
  18. package/sass/animations/entrances/_flip.scss +128 -0
  19. package/sass/animations/entrances/_puff.scss +211 -0
  20. package/sass/animations/entrances/_roll.scss +68 -0
  21. package/sass/animations/entrances/_rotate.scss +415 -0
  22. package/sass/animations/entrances/_scale.scss +257 -0
  23. package/sass/animations/entrances/_slide.scss +534 -0
  24. package/sass/animations/entrances/_slit.scss +90 -0
  25. package/sass/animations/entrances/_swing.scss +144 -0
  26. package/sass/animations/entrances/_swirl.scss +310 -0
  27. package/sass/animations/exits/_bounce.scss +304 -0
  28. package/sass/animations/exits/_fade.scss +171 -0
  29. package/sass/animations/exits/_flicker.scss +318 -0
  30. package/sass/animations/exits/_flip.scss +128 -0
  31. package/sass/animations/exits/_puff.scss +211 -0
  32. package/sass/animations/exits/_roll.scss +68 -0
  33. package/sass/animations/exits/_rotate.scss +415 -0
  34. package/sass/animations/exits/_scale.scss +257 -0
  35. package/sass/animations/exits/_slide.scss +534 -0
  36. package/sass/animations/exits/_slit.scss +88 -0
  37. package/sass/animations/exits/_swing.scss +144 -0
  38. package/sass/animations/exits/_swirl.scss +310 -0
  39. package/sass/animations/generic/_flip.scss +672 -0
  40. package/sass/animations/generic/_rotate.scss +642 -0
  41. package/sass/animations/generic/_scale.scss +463 -0
  42. package/sass/animations/generic/_shadows.scss +527 -0
  43. package/sass/animations/generic/_slide.scss +518 -0
  44. package/sass/animations/generic/_swing.scss +248 -0
  45. package/sass/bem/_index.scss +441 -0
  46. package/sass/color/_charts.scss +27 -3
  47. package/sass/color/_functions.scss +81 -79
  48. package/sass/color/_mixins.scss +52 -22
  49. package/sass/color/_multipliers.scss +14 -14
  50. package/sass/color/_types.scss +16 -23
  51. package/sass/color/presets/dark/_bootstrap.scss +21 -1
  52. package/sass/color/presets/dark/_extra.scss +52 -0
  53. package/sass/color/presets/dark/_fluent.scss +67 -2
  54. package/sass/color/presets/dark/_index.scss +1 -0
  55. package/sass/color/presets/dark/_indigo.scss +21 -1
  56. package/sass/color/presets/dark/_material.scss +22 -2
  57. package/sass/color/presets/light/_bootstrap.scss +21 -1
  58. package/sass/color/presets/light/_extra.scss +52 -0
  59. package/sass/color/presets/light/_fluent.scss +66 -2
  60. package/sass/color/presets/light/_index.scss +1 -0
  61. package/sass/color/presets/light/_indigo.scss +21 -1
  62. package/sass/color/presets/light/_material.scss +22 -2
  63. package/sass/elevations/_functions.scss +13 -2
  64. package/sass/elevations/_mixins.scss +8 -2
  65. package/sass/elevations/presets/_index.scss +16 -1
  66. package/sass/elevations/presets/_material.scss +72 -31
  67. package/sass/themes/_functions.scss +106 -24
  68. package/sass/themes/_index.scss +1 -0
  69. package/sass/themes/_mixins.scss +44 -11
  70. package/sass/themes/charts/_category-chart-theme.scss +325 -0
  71. package/sass/themes/charts/_data-chart-theme.scss +141 -0
  72. package/sass/themes/charts/_doughnut-chart-theme.scss +83 -0
  73. package/sass/themes/charts/_financial-chart-theme.scss +331 -0
  74. package/sass/themes/charts/_funnel-chart-theme.scss +104 -0
  75. package/sass/themes/charts/_gauge-theme.scss +161 -0
  76. package/sass/themes/charts/_geo-map-theme.scss +54 -0
  77. package/sass/themes/charts/_graph-theme.scss +135 -0
  78. package/sass/themes/charts/_index.scss +12 -0
  79. package/sass/themes/charts/_pie-chart-theme.scss +111 -0
  80. package/sass/themes/charts/_shape-chart-theme.scss +277 -0
  81. package/sass/themes/charts/_sparkline-theme.scss +116 -0
  82. package/sass/themes/charts/_theme.scss +27 -0
  83. package/sass/themes/schemas/_index.scss +12 -0
  84. package/sass/themes/schemas/charts/_index.scss +2 -0
  85. package/sass/themes/schemas/charts/dark/_category-chart.scss +29 -0
  86. package/sass/themes/schemas/charts/dark/_data-chart.scss +28 -0
  87. package/sass/themes/schemas/charts/dark/_doughnut-chart.scss +28 -0
  88. package/sass/themes/schemas/charts/dark/_financial-chart.scss +28 -0
  89. package/sass/themes/schemas/charts/dark/_funnel-chart.scss +28 -0
  90. package/sass/themes/schemas/charts/dark/_gauge.scss +48 -0
  91. package/sass/themes/schemas/charts/dark/_geo-map.scss +32 -0
  92. package/sass/themes/schemas/charts/dark/_graph.scss +28 -0
  93. package/sass/themes/schemas/charts/dark/_index.scss +86 -0
  94. package/sass/themes/schemas/charts/dark/_pie-chart.scss +32 -0
  95. package/sass/themes/schemas/charts/dark/_shape-chart.scss +28 -0
  96. package/sass/themes/schemas/charts/dark/_sparkline.scss +28 -0
  97. package/sass/themes/schemas/charts/light/_category-chart.scss +222 -0
  98. package/sass/themes/schemas/charts/light/_data-chart.scss +69 -0
  99. package/sass/themes/schemas/charts/light/_doughnut-chart.scss +50 -0
  100. package/sass/themes/schemas/charts/light/_financial-chart.scss +140 -0
  101. package/sass/themes/schemas/charts/light/_funnel-chart.scss +48 -0
  102. package/sass/themes/schemas/charts/light/_gauge.scss +141 -0
  103. package/sass/themes/schemas/charts/light/_geo-map.scss +35 -0
  104. package/sass/themes/schemas/charts/light/_graph.scss +101 -0
  105. package/sass/themes/schemas/charts/light/_index.scss +86 -0
  106. package/sass/themes/schemas/charts/light/_pie-chart.scss +55 -0
  107. package/sass/themes/schemas/charts/light/_shape-chart.scss +121 -0
  108. package/sass/themes/schemas/charts/light/_sparkline.scss +74 -0
  109. package/sass/themes/schemas/components/_index.scss +2 -0
  110. package/sass/themes/schemas/components/dark/_action-strip.scss +50 -0
  111. package/sass/themes/schemas/components/dark/_avatar.scss +46 -0
  112. package/sass/themes/schemas/components/dark/_badge.scss +39 -0
  113. package/sass/themes/schemas/components/dark/_banner.scss +54 -0
  114. package/sass/themes/schemas/components/dark/_bottom-nav.scss +61 -0
  115. package/sass/themes/schemas/components/dark/_button-group.scss +190 -0
  116. package/sass/themes/schemas/components/dark/_button.scss +485 -0
  117. package/sass/themes/schemas/components/dark/_calendar.scss +338 -0
  118. package/sass/themes/schemas/components/dark/_card.scss +71 -0
  119. package/sass/themes/schemas/components/dark/_carousel.scss +127 -0
  120. package/sass/themes/schemas/components/dark/_checkbox.scss +97 -0
  121. package/sass/themes/schemas/components/dark/_chip.scss +109 -0
  122. package/sass/themes/schemas/components/dark/_column-actions.scss +28 -0
  123. package/sass/themes/schemas/components/dark/_combo.scss +56 -0
  124. package/sass/themes/schemas/components/dark/_date-range-picker.scss +28 -0
  125. package/sass/themes/schemas/components/dark/_dialog.scss +55 -0
  126. package/sass/themes/schemas/components/dark/_divider.scss +43 -0
  127. package/sass/themes/schemas/components/dark/_dock-manager.scss +349 -0
  128. package/sass/themes/schemas/components/dark/_drop-down.scss +86 -0
  129. package/sass/themes/schemas/components/dark/_expansion-panel.scss +87 -0
  130. package/sass/themes/schemas/components/dark/_grid-filtering.scss +28 -0
  131. package/sass/themes/schemas/components/dark/_grid-summary.scss +83 -0
  132. package/sass/themes/schemas/components/dark/_grid-toolbar.scss +36 -0
  133. package/sass/themes/schemas/components/dark/_grid.scss +684 -0
  134. package/sass/themes/schemas/components/dark/_highlight.scss +72 -0
  135. package/sass/themes/schemas/components/dark/_icon.scss +40 -0
  136. package/sass/themes/schemas/components/dark/_index.scss +310 -0
  137. package/sass/themes/schemas/components/dark/_input-group.scss +170 -0
  138. package/sass/themes/schemas/components/dark/_label.scss +33 -0
  139. package/sass/themes/schemas/components/dark/_list.scss +116 -0
  140. package/sass/themes/schemas/components/dark/_navbar.scss +27 -0
  141. package/sass/themes/schemas/components/dark/_navdrawer.scss +142 -0
  142. package/sass/themes/schemas/components/dark/_overlay.scss +34 -0
  143. package/sass/themes/schemas/components/dark/_pagination.scss +42 -0
  144. package/sass/themes/schemas/components/dark/_pivot-data-selector.scss +27 -0
  145. package/sass/themes/schemas/components/dark/_progress.scss +103 -0
  146. package/sass/themes/schemas/components/dark/_query-builder.scss +35 -0
  147. package/sass/themes/schemas/components/dark/_radio.scss +139 -0
  148. package/sass/themes/schemas/components/dark/_rating.scss +29 -0
  149. package/sass/themes/schemas/components/dark/_ripple.scss +28 -0
  150. package/sass/themes/schemas/components/dark/_scrollbar.scss +69 -0
  151. package/sass/themes/schemas/components/dark/_select.scss +56 -0
  152. package/sass/themes/schemas/components/dark/_slider.scss +136 -0
  153. package/sass/themes/schemas/components/dark/_snackbar.scss +55 -0
  154. package/sass/themes/schemas/components/dark/_splitter.scss +68 -0
  155. package/sass/themes/schemas/components/dark/_stepper.scss +184 -0
  156. package/sass/themes/schemas/components/dark/_switch.scss +222 -0
  157. package/sass/themes/schemas/components/dark/_tabs.scss +65 -0
  158. package/sass/themes/schemas/components/dark/_time-picker.scss +54 -0
  159. package/sass/themes/schemas/components/dark/_toast.scss +67 -0
  160. package/sass/themes/schemas/components/dark/_tooltip.scss +44 -0
  161. package/sass/themes/schemas/components/dark/_tree.scss +132 -0
  162. package/sass/themes/schemas/components/dark/_watermark.scss +48 -0
  163. package/sass/themes/schemas/components/elevation/_badge.scss +17 -0
  164. package/sass/themes/schemas/components/elevation/_bottom-nav.scss +23 -0
  165. package/sass/themes/schemas/components/elevation/_button-group.scss +29 -0
  166. package/sass/themes/schemas/components/elevation/_button.scss +63 -0
  167. package/sass/themes/schemas/components/elevation/_card.scss +37 -0
  168. package/sass/themes/schemas/components/elevation/_carousel.scss +29 -0
  169. package/sass/themes/schemas/components/elevation/_chip.scss +29 -0
  170. package/sass/themes/schemas/components/elevation/_dialog.scss +17 -0
  171. package/sass/themes/schemas/components/elevation/_drop-down.scss +29 -0
  172. package/sass/themes/schemas/components/elevation/_grid.scss +21 -0
  173. package/sass/themes/schemas/components/elevation/_input-group.scss +37 -0
  174. package/sass/themes/schemas/components/elevation/_navbar.scss +23 -0
  175. package/sass/themes/schemas/components/elevation/_navdrawer.scss +17 -0
  176. package/sass/themes/schemas/components/elevation/_snackbar.scss +17 -0
  177. package/sass/themes/schemas/components/elevation/_switch.scss +15 -0
  178. package/sass/themes/schemas/components/elevation/_time-picker.scss +13 -0
  179. package/sass/themes/schemas/components/elevation/_toast.scss +17 -0
  180. package/sass/themes/schemas/components/light/_action-strip.scss +113 -0
  181. package/sass/themes/schemas/components/light/_avatar.scss +74 -0
  182. package/sass/themes/schemas/components/light/_badge.scss +82 -0
  183. package/sass/themes/schemas/components/light/_banner.scss +96 -0
  184. package/sass/themes/schemas/components/light/_bottom-nav.scss +61 -0
  185. package/sass/themes/schemas/components/light/_button-group.scss +443 -0
  186. package/sass/themes/schemas/components/light/_button.scss +1866 -0
  187. package/sass/themes/schemas/components/light/_calendar.scss +966 -0
  188. package/sass/themes/schemas/components/light/_card.scss +224 -0
  189. package/sass/themes/schemas/components/light/_carousel.scss +205 -0
  190. package/sass/themes/schemas/components/light/_checkbox.scss +352 -0
  191. package/sass/themes/schemas/components/light/_chip.scss +558 -0
  192. package/sass/themes/schemas/components/light/_column-actions.scss +42 -0
  193. package/sass/themes/schemas/components/light/_combo.scss +312 -0
  194. package/sass/themes/schemas/components/light/_date-range-picker.scss +35 -0
  195. package/sass/themes/schemas/components/light/_dialog.scss +119 -0
  196. package/sass/themes/schemas/components/light/_divider.scss +33 -0
  197. package/sass/themes/schemas/components/light/_dock-manager.scss +548 -0
  198. package/sass/themes/schemas/components/light/_drop-down.scss +411 -0
  199. package/sass/themes/schemas/components/light/_expansion-panel.scss +181 -0
  200. package/sass/themes/schemas/components/light/_grid-filtering.scss +105 -0
  201. package/sass/themes/schemas/components/light/_grid-summary.scss +138 -0
  202. package/sass/themes/schemas/components/light/_grid-toolbar.scss +126 -0
  203. package/sass/themes/schemas/components/light/_grid.scss +1429 -0
  204. package/sass/themes/schemas/components/light/_highlight.scss +86 -0
  205. package/sass/themes/schemas/components/light/_icon.scss +51 -0
  206. package/sass/themes/schemas/components/light/_index.scss +310 -0
  207. package/sass/themes/schemas/components/light/_input-group.scss +869 -0
  208. package/sass/themes/schemas/components/light/_label.scss +53 -0
  209. package/sass/themes/schemas/components/light/_list.scss +343 -0
  210. package/sass/themes/schemas/components/light/_navbar.scss +116 -0
  211. package/sass/themes/schemas/components/light/_navdrawer.scss +234 -0
  212. package/sass/themes/schemas/components/light/_overlay.scss +42 -0
  213. package/sass/themes/schemas/components/light/_pagination.scss +105 -0
  214. package/sass/themes/schemas/components/light/_pivot-data-selector.scss +38 -0
  215. package/sass/themes/schemas/components/light/_progress.scss +218 -0
  216. package/sass/themes/schemas/components/light/_query-builder.scss +138 -0
  217. package/sass/themes/schemas/components/light/_radio.scss +279 -0
  218. package/sass/themes/schemas/components/light/_rating.scss +129 -0
  219. package/sass/themes/schemas/components/light/_ripple.scss +36 -0
  220. package/sass/themes/schemas/components/light/_scrollbar.scss +79 -0
  221. package/sass/themes/schemas/components/light/_select.scss +164 -0
  222. package/sass/themes/schemas/components/light/_slider.scss +358 -0
  223. package/sass/themes/schemas/components/light/_snackbar.scss +149 -0
  224. package/sass/themes/schemas/components/light/_splitter.scss +105 -0
  225. package/sass/themes/schemas/components/light/_stepper.scss +709 -0
  226. package/sass/themes/schemas/components/light/_switch.scss +535 -0
  227. package/sass/themes/schemas/components/light/_tabs.scss +412 -0
  228. package/sass/themes/schemas/components/light/_time-picker.scss +250 -0
  229. package/sass/themes/schemas/components/light/_toast.scss +113 -0
  230. package/sass/themes/schemas/components/light/_tooltip.scss +113 -0
  231. package/sass/themes/schemas/components/light/_tree.scss +296 -0
  232. package/sass/themes/schemas/components/light/_watermark.scss +101 -0
  233. package/sass/typography/_functions.scss +45 -5
  234. package/sass/typography/_mixins.scss +45 -6
  235. package/sass/typography/_types.scss +7 -17
  236. package/sass/typography/charts/_index.scss +28 -0
  237. package/sass/typography/presets/_bootstrap.scss +134 -117
  238. package/sass/typography/presets/_fluent.scss +134 -116
  239. package/sass/typography/presets/_indigo.scss +135 -117
  240. package/sass/typography/presets/_material.scss +135 -118
  241. package/sass/utils/_css.scss +42 -0
  242. package/sass/utils/_index.scss +3 -1
  243. package/sass/utils/_map.scss +31 -6
  244. package/sass/utils/_math.scss +36 -0
  245. package/sass/utils/_meta.scss +22 -1
  246. package/sass/utils/_string.scss +93 -0
  247. package/.github/workflows/npm-publish.yml +0 -42
  248. package/.stylelintrc.json +0 -83
  249. package/test/_color.spec.scss +0 -251
  250. package/test/_elevations.spec.scss +0 -69
  251. package/test/_index.scss +0 -5
  252. package/test/_themes.spec.scss +0 -253
  253. package/test/_typography.spec.scss +0 -267
  254. package/test/_utils.spec.scss +0 -53
  255. package/test/e2e/theme.scss +0 -7
  256. package/test/test.js +0 -5
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ © Copyright 2022 INFRAGISTICS. All Rights Reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,104 @@
1
+
2
+ <h1 align="center">
3
+ Ignite UI Theming - from Infragistics
4
+ </h1>
5
+
6
+ [![npm version](https://badge.fury.io/js/igniteui-theming.svg)](https://badge.fury.io/js/igniteui-theming)
7
+
8
+ The Ignite UI Theming repository collects a set of Sass mixins, functions, and variables used to create themes for a variety of UI frameworks built by Infragistics. The theming package makes it super easy to create palettes, elevations and typography styles for your projects.
9
+
10
+ ## Palettes
11
+ We provide four predefined palettes - material, bootstrap, fluent and indigo that have all the necessary colors along with diffent variants of those colors to make it even easier picking the right one for your case. Here's what they look like:
12
+
13
+ ![Palettes](https://user-images.githubusercontent.com/45598235/189592212-0d58b08d-3c98-4f27-8ec3-c6f674c9942b.png)
14
+
15
+ To access any of the colors in the palettes, you can use the `color` function:
16
+
17
+ ```scss
18
+ background: color($light-material-palette, 'primary', 500);
19
+ ```
20
+
21
+ You can take a further look on what color functions and mixins the package contains and how to use them in the [Colors Wiki Page](https://github.com/IgniteUI/igniteui-theming/wiki/Colors-(Draft))
22
+
23
+
24
+ ## Typography
25
+ Another valuable module of our theming package is the typography, helping you have consistency all over your project. There are again four typography presets for the four themes that we provide out of the box.
26
+
27
+ ![Typography](https://user-images.githubusercontent.com/45598235/189596034-d8697bc1-e683-4d4a-a113-96e17fc90d4b.png)
28
+
29
+ You can set any of the typefaces by using the `typography` mixin, which accepts 2 arguments(font-family and type-scale). By default the typography is using the material typeface and type-scale.
30
+
31
+ ```scss
32
+ @include typography($font-family: $material-typeface, $type-scale: $material-type-scale);
33
+ ```
34
+
35
+ Learn more about the typography module in the package by checking out the [Typography Wiki Page](https://github.com/IgniteUI/igniteui-theming/wiki/Typography-(Draft))
36
+
37
+ ## Elevations
38
+ The theming package is providing one preset of shadows that can be used to give your components a lift. They're super helpful using with buttons, cards, navigation bars, etc.
39
+
40
+ ![Elevations](https://user-images.githubusercontent.com/45598235/189627744-1fa47d35-6b3b-4b7a-b26e-5b46fe4311a4.png)
41
+
42
+ You can set elevations 0-24, by using the `elevation` function, which accepts the elevation level as an argument:
43
+
44
+ ```scss
45
+ box-shadow: elevation(12);
46
+ ```
47
+
48
+ Learn more about elevations and their abilities in the [Elevations Wiki Page](https://github.com/IgniteUI/igniteui-theming/wiki/Elevations-(draft))
49
+
50
+ ## Usage
51
+
52
+ In order to use the Ignite UI Theming in your application you should install the `igniteui-theming` package:
53
+
54
+ ```
55
+ npm install igniteui-theming
56
+ ```
57
+
58
+ Next, you will need to **use** it in the file that you want like this:
59
+
60
+ ```scss
61
+ @use '.../node_modules/igniteui-theming/' as *;
62
+ ```
63
+
64
+ You can also **use** just a fraction of the package:
65
+
66
+ ```scss
67
+ @use '.../node_modules/igniteui-theming/sass/color' as *;
68
+ ```
69
+
70
+ We provide presets for **material, bootstrap, fluent and indigo** themes for the color(light and dark palettes), typography and elevations fractions. You can import them into your scss file like this:
71
+
72
+ ```scss
73
+ @use '.../node_modules/igniteui-theming/sass/typography/presets' as *;
74
+ ```
75
+
76
+ You can read more about what the package contains on the [Wiki page](https://github.com/IgniteUI/igniteui-theming/wiki)
77
+
78
+ ## Linting and Testing
79
+
80
+ To scan the project for linting errors, run
81
+
82
+ ```
83
+ npm run lint
84
+ ```
85
+
86
+ To run the suite of tests, run
87
+
88
+ ```
89
+ npm run test
90
+ ```
91
+
92
+ ## Building and Running API Docs
93
+
94
+ To build the docs, run
95
+
96
+ ```
97
+ npm run build:docs
98
+ ```
99
+
100
+ To start the docs in your browser, run
101
+
102
+ ```
103
+ npm run serve:docs
104
+ ```
package/_index.scss CHANGED
@@ -1,5 +1,6 @@
1
+ @forward './sass/bem';
1
2
  @forward './sass/color';
2
- @forward './sass/typography';
3
3
  @forward './sass/elevations';
4
- @forward './sass/utils';
5
4
  @forward './sass/themes';
5
+ @forward './sass/typography';
6
+ @forward './sass/utils';
package/index.js CHANGED
@@ -0,0 +1,5 @@
1
+ export { default as Palettes } from "./json/colors/presets/palettes.json";
2
+ export { default as PaletteMeta } from "./json/colors/meta/palette.json";
3
+ export { default as PaletteMultipliers } from "./json/colors/meta/multipliers.json";
4
+ export { default as Typescales } from "./json/typography/presets/typescales.json";
5
+ export { default as Elevations } from "./json/elevations/elevations.json";
@@ -0,0 +1 @@
1
+ {"color":{"s":{"50":"1.23","100":"0.8","200":"0.64","300":"0.73","400":"0.875","500":"1","600":"1.26","700":"1.52","800":"1.5","900":"1.34","A100":"1.23","A200":"1.22","A400":"1.23","A700":"1.23"},"l":{"50":"1.78","100":"1.66","200":"1.43","300":"1.19","400":"1.08","500":"1","600":"0.89","700":"0.81","800":"0.73","900":"0.64","A100":"1.34","A200":"1.16","A400":"0.91","A700":"0.65"}},"grayscale":{"l":{"50":"13%","100":"26%","200":"38%","300":"54%","400":"62%","500":"74%","600":"88%","700":"93%","800":"96%","900":"98%"}}}
@@ -0,0 +1 @@
1
+ {"primary":["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],"secondary":["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],"gray":["50","100","200","300","400","500","600","700","800","900"],"surface":["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],"info":["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],"success":["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],"warn":["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],"error":["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"]}
@@ -0,0 +1 @@
1
+ {"dark-bootstrap-palette":{"primary":"#0d6efd","secondary":"#6c757d","gray":"#adb5bd","surface":"#212529","info":"#0dcaf0","success":"#198754","warn":"#ffc107","error":"#dc3545"},"dark-green-palette":{"primary":"#09f","secondary":"#72da67","surface":"#222","info":"#1377d5","success":"#4eb862","warn":"#fbb13c","error":"#ff134a"},"dark-purple-palette":{"primary":"#00b4d6","secondary":"#514590","surface":"#333","info":"#1377d5","success":"#4eb862","warn":"#fbb13c","error":"#ff134a"},"dark-fluent-palette":{"primary":"#0078d4","secondary":"#2b88d8","surface":"#222","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"dark-fluent-word-palette":{"primary":"#2b579a","secondary":"#2b579a","surface":"#222","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"dark-fluent-excel-palette":{"primary":"#217346","secondary":"#217346","surface":"#222","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"dark-indigo-palette":{"primary":"#3f51b5","secondary":"#3f51b5","gray":"hsl(262deg 8% 98%)","surface":"#2a2b2f","info":"#9208bc","success":"#689f38","warn":"#ff9800","error":"#cf1a2b"},"dark-material-palette":{"primary":"#09f","secondary":"#e41c77","surface":"#222","info":"#1377d5","success":"#4eb862","warn":"#faa419","error":"#ff134a"},"light-bootstrap-palette":{"primary":"#0d6efd","secondary":"#6c757d","gray":"#adb5bd","surface":"#f8f9fa","info":"#0dcaf0","success":"#198754","warn":"#ffc107","error":"#dc3545"},"light-green-palette":{"primary":"#09f","secondary":"#72da67","surface":"#fff","info":"#1377d5","success":"#4eb862","warn":"#fbb13c","error":"#ff134a"},"light-purple-palette":{"primary":"#00b4d6","secondary":"#514590","surface":"#fff","info":"#1377d5","success":"#4eb862","warn":"#fbb13c","error":"#ff134a"},"light-fluent-palette":{"primary":"#0078d4","secondary":"#2b88d8","surface":"#fff","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"light-fluent-word-palette":{"primary":"#2b579a","secondary":"#2b579a","surface":"#fff","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"light-fluent-excel-palette":{"primary":"#217346","secondary":"#217346","surface":"#fff","info":"#1377d5","success":"#107c10","warn":"#797673","error":"#a80000"},"light-indigo-palette":{"primary":"#3f51b5","secondary":"#3f51b5","gray":"hsl(236deg 8% 5%)","surface":"#fff","info":"#9208bc","success":"#689f38","warn":"#ff9800","error":"#cf1a2b"},"light-material-palette":{"primary":"#09f","secondary":"#e41c77","surface":"white","info":"#1377d5","success":"#4eb862","warn":"#faa419","error":"#ff134a"}}
@@ -0,0 +1 @@
1
+ {"material":{"elevations":{"0":"none","1":"0 calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * 3px) 0 rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * 1px) 0 rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 2px) calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * -1px) rgba(0, 0, 0, 0.08)","2":"0 calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * 5px) 0 rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 2px) calc(var(--ig-elevation-factor, 1) * 2px) 0 rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * -2px) rgba(0, 0, 0, 0.08)","3":"0 calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * 8px) 0 rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * 4px) 0 rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * -2px) rgba(0, 0, 0, 0.08)","4":"0 calc(var(--ig-elevation-factor, 1) * 2px) calc(var(--ig-elevation-factor, 1) * 4px) calc(var(--ig-elevation-factor, 1) * -1px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 4px) calc(var(--ig-elevation-factor, 1) * 5px) 0 rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * 10px) 0 rgba(0, 0, 0, 0.08)","5":"0 calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * -1px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * 8px) 0 rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * 14px) 0 rgba(0, 0, 0, 0.08)","6":"0 calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * -1px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * 10px) 0 rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 1px) calc(var(--ig-elevation-factor, 1) * 18px) 0 rgba(0, 0, 0, 0.08)","7":"0 calc(var(--ig-elevation-factor, 1) * 4px) calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * -2px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 7px) calc(var(--ig-elevation-factor, 1) * 10px) calc(var(--ig-elevation-factor, 1) * 1px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 2px) calc(var(--ig-elevation-factor, 1) * 16px) calc(var(--ig-elevation-factor, 1) * 1px) rgba(0, 0, 0, 0.08)","8":"0 calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * -3px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * 10px) calc(var(--ig-elevation-factor, 1) * 1px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * 14px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.08)","9":"0 calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * -3px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 9px) calc(var(--ig-elevation-factor, 1) * 12px) calc(var(--ig-elevation-factor, 1) * 1px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 3px) calc(var(--ig-elevation-factor, 1) * 16px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.08)","10":"0 calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * -3px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 10px) calc(var(--ig-elevation-factor, 1) * 14px) calc(var(--ig-elevation-factor, 1) * 1px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 4px) calc(var(--ig-elevation-factor, 1) * 18px) calc(var(--ig-elevation-factor, 1) * 3px) rgba(0, 0, 0, 0.08)","11":"0 calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * 7px) calc(var(--ig-elevation-factor, 1) * -4px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 11px) calc(var(--ig-elevation-factor, 1) * 15px) calc(var(--ig-elevation-factor, 1) * 1px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 4px) calc(var(--ig-elevation-factor, 1) * 20px) calc(var(--ig-elevation-factor, 1) * 3px) rgba(0, 0, 0, 0.08)","12":"0 calc(var(--ig-elevation-factor, 1) * 7px) calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * -4px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 12px) calc(var(--ig-elevation-factor, 1) * 17px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * 22px) calc(var(--ig-elevation-factor, 1) * 4px) rgba(0, 0, 0, 0.08)","13":"0 calc(var(--ig-elevation-factor, 1) * 7px) calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * -4px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 13px) calc(var(--ig-elevation-factor, 1) * 19px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * 24px) calc(var(--ig-elevation-factor, 1) * 4px) rgba(0, 0, 0, 0.08)","14":"0 calc(var(--ig-elevation-factor, 1) * 7px) calc(var(--ig-elevation-factor, 1) * 9px) calc(var(--ig-elevation-factor, 1) * -4px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 14px) calc(var(--ig-elevation-factor, 1) * 21px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 5px) calc(var(--ig-elevation-factor, 1) * 26px) calc(var(--ig-elevation-factor, 1) * 4px) rgba(0, 0, 0, 0.08)","15":"0 calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * 9px) calc(var(--ig-elevation-factor, 1) * -5px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 15px) calc(var(--ig-elevation-factor, 1) * 22px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * 28px) calc(var(--ig-elevation-factor, 1) * 5px) rgba(0, 0, 0, 0.08)","16":"0 calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * 10px) calc(var(--ig-elevation-factor, 1) * -5px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 16px) calc(var(--ig-elevation-factor, 1) * 24px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * 30px) calc(var(--ig-elevation-factor, 1) * 5px) rgba(0, 0, 0, 0.08)","17":"0 calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * 11px) calc(var(--ig-elevation-factor, 1) * -5px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 17px) calc(var(--ig-elevation-factor, 1) * 26px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 6px) calc(var(--ig-elevation-factor, 1) * 32px) calc(var(--ig-elevation-factor, 1) * 5px) rgba(0, 0, 0, 0.08)","18":"0 calc(var(--ig-elevation-factor, 1) * 9px) calc(var(--ig-elevation-factor, 1) * 11px) calc(var(--ig-elevation-factor, 1) * -5px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 18px) calc(var(--ig-elevation-factor, 1) * 28px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 7px) calc(var(--ig-elevation-factor, 1) * 34px) calc(var(--ig-elevation-factor, 1) * 6px) rgba(0, 0, 0, 0.08)","19":"0 calc(var(--ig-elevation-factor, 1) * 9px) calc(var(--ig-elevation-factor, 1) * 12px) calc(var(--ig-elevation-factor, 1) * -6px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 19px) calc(var(--ig-elevation-factor, 1) * 29px) calc(var(--ig-elevation-factor, 1) * 2px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 7px) calc(var(--ig-elevation-factor, 1) * 36px) calc(var(--ig-elevation-factor, 1) * 6px) rgba(0, 0, 0, 0.08)","20":"0 calc(var(--ig-elevation-factor, 1) * 10px) calc(var(--ig-elevation-factor, 1) * 13px) calc(var(--ig-elevation-factor, 1) * -6px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 20px) calc(var(--ig-elevation-factor, 1) * 31px) calc(var(--ig-elevation-factor, 1) * 3px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * 38px) calc(var(--ig-elevation-factor, 1) * 7px) rgba(0, 0, 0, 0.08)","21":"0 calc(var(--ig-elevation-factor, 1) * 10px) calc(var(--ig-elevation-factor, 1) * 13px) calc(var(--ig-elevation-factor, 1) * -6px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 21px) calc(var(--ig-elevation-factor, 1) * 33px) calc(var(--ig-elevation-factor, 1) * 3px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * 40px) calc(var(--ig-elevation-factor, 1) * 7px) rgba(0, 0, 0, 0.08)","22":"0 calc(var(--ig-elevation-factor, 1) * 10px) calc(var(--ig-elevation-factor, 1) * 14px) calc(var(--ig-elevation-factor, 1) * -6px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 22px) calc(var(--ig-elevation-factor, 1) * 35px) calc(var(--ig-elevation-factor, 1) * 3px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 8px) calc(var(--ig-elevation-factor, 1) * 42px) calc(var(--ig-elevation-factor, 1) * 7px) rgba(0, 0, 0, 0.08)","23":"0 calc(var(--ig-elevation-factor, 1) * 11px) calc(var(--ig-elevation-factor, 1) * 14px) calc(var(--ig-elevation-factor, 1) * -7px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 23px) calc(var(--ig-elevation-factor, 1) * 36px) calc(var(--ig-elevation-factor, 1) * 3px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 9px) calc(var(--ig-elevation-factor, 1) * 44px) calc(var(--ig-elevation-factor, 1) * 8px) rgba(0, 0, 0, 0.08)","24":"0 calc(var(--ig-elevation-factor, 1) * 11px) calc(var(--ig-elevation-factor, 1) * 15px) calc(var(--ig-elevation-factor, 1) * -7px) rgba(0, 0, 0, 0.26), 0 calc(var(--ig-elevation-factor, 1) * 24px) calc(var(--ig-elevation-factor, 1) * 38px) calc(var(--ig-elevation-factor, 1) * 3px) rgba(0, 0, 0, 0.12), 0 calc(var(--ig-elevation-factor, 1) * 9px) calc(var(--ig-elevation-factor, 1) * 46px) calc(var(--ig-elevation-factor, 1) * 8px) rgba(0, 0, 0, 0.08)"}}}
@@ -0,0 +1 @@
1
+ {"bootstrap":{"typeface":"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'","h1":{"font-size":"2.5rem","font-weight":"500","letter-spacing":"-0.09375rem","line-height":"3rem","text-transform":"none","margin-top":"0","margin-bottom":"0.5rem"},"h2":{"font-size":"2rem","font-weight":"500","letter-spacing":"-0.03125rem","line-height":"2.4rem","text-transform":"none","margin-top":"0","margin-bottom":"0.5rem"},"h3":{"font-size":"1.75rem","font-weight":"500","letter-spacing":"0","line-height":"2.1rem","text-transform":"none","margin-top":"0","margin-bottom":"0.5rem"},"h4":{"font-size":"1.5rem","font-weight":"500","letter-spacing":"0.015625rem","line-height":"1.8rem","text-transform":"none","margin-top":"0","margin-bottom":"0.5rem"},"h5":{"font-size":"1.25rem","font-weight":"500","letter-spacing":"0","line-height":"1.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0.5rem"},"h6":{"font-size":"1rem","font-weight":"500","letter-spacing":"0.009375rem","line-height":"1.2rem","text-transform":"none","margin-top":"0","margin-bottom":"0.5rem"},"body-1":{"font-size":"1rem","font-weight":"400","letter-spacing":"0.03125rem","line-height":"1.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"body-2":{"font-size":"0.9rem","font-weight":"400","letter-spacing":"0.015625rem","line-height":"1.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"subtitle-1":{"font-size":"0.875rem","font-weight":"400","letter-spacing":"0.009375rem","line-height":"1.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"subtitle-2":{"font-size":"0.9rem","font-weight":"400","letter-spacing":"0.00625rem","line-height":"1.35rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"button":{"font-size":"1rem","font-weight":"500","letter-spacing":"0.046875rem","line-height":"1.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"caption":{"font-size":"0.75rem","font-weight":"400","letter-spacing":"0.025rem","line-height":"1rem","text-transform":"none"},"overline":{"font-size":"0.625rem","font-weight":"400","letter-spacing":"0.09375rem","line-height":"1rem","text-transform":"uppercase"},"bootstrap_weekday":{"font-size":"0.8125rem","font-weight":"400","line-height":"normal","text-transform":"none","margin-top":"0","margin-bottom":"0"}},"fluent":{"typeface":"'Open Sans', Helvetica, Arial, sans-serif","h1":{"font-size":"4.25rem","font-weight":"700","letter-spacing":"-0.09375rem","line-height":"4.75rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h2":{"font-size":"2.625rem","font-weight":"700","letter-spacing":"-0.03125rem","line-height":"3.25rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h3":{"font-size":"2rem","font-weight":"600","letter-spacing":"0","line-height":"2.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h4":{"font-size":"1.75rem","font-weight":"400","letter-spacing":"0.015625rem","line-height":"2.25rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h5":{"font-size":"1.5rem","font-weight":"400","letter-spacing":"0","line-height":"2rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h6":{"font-size":"1.25rem","font-weight":"400","letter-spacing":"0.009375rem","line-height":"1.75rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"body-1":{"font-size":"1rem","font-weight":"400","letter-spacing":"0.03125rem","line-height":"1.375rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"body-2":{"font-size":"0.875rem","font-weight":"400","letter-spacing":"0.015625rem","line-height":"1.25rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"subtitle-1":{"font-size":"1.125rem","font-weight":"400","letter-spacing":"0.009375rem","line-height":"1.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"subtitle-2":{"font-size":"0.875rem","font-weight":"600","letter-spacing":"0.00625rem","line-height":"1.25rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"button":{"font-size":"0.875rem","font-weight":"400","letter-spacing":"0.046875rem","line-height":"0.875rem","text-transform":"capitalize","margin-top":"0","margin-bottom":"0"},"caption":{"font-size":"0.75rem","font-weight":"400","font-style":"normal","letter-spacing":"0.025rem","line-height":"1rem","text-transform":"none"},"overline":{"font-size":"0.625rem","font-weight":"400","letter-spacing":"0.09375rem","line-height":"0.875rem","text-transform":"uppercase","margin-top":"0","margin-bottom":"0"}},"indigo":{"typeface":"'Nunito Sans', sans-serif","h1":{"font-size":"6rem","font-weight":"200","letter-spacing":"-0.09375rem","line-height":"7rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h2":{"font-size":"3.75rem","font-weight":"200","letter-spacing":"-0.03125rem","line-height":"4.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h3":{"font-size":"3rem","font-weight":"200","letter-spacing":"0","line-height":"3.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h4":{"font-size":"2.25rem","font-weight":"200","letter-spacing":"0.015625rem","line-height":"2.625rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h5":{"font-size":"1.5rem","font-weight":"200","letter-spacing":"0","line-height":"1.75rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"h6":{"font-size":"1.25rem","font-weight":"600","letter-spacing":"0.009375rem","line-height":"1.625rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"body-1":{"font-size":"1rem","font-weight":"400","letter-spacing":"0.03125rem","line-height":"1.25rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"body-2":{"font-size":"0.875rem","font-weight":"400","letter-spacing":"0.015625rem","line-height":"1.25rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"subtitle-1":{"font-size":"1rem","font-weight":"600","letter-spacing":"0.009375rem","line-height":"1.375rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"subtitle-2":{"font-size":"0.875rem","font-weight":"700","letter-spacing":"0.00625rem","line-height":"1.25rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"button":{"font-size":"0.75rem","font-weight":"700","letter-spacing":"0.046875rem","line-height":"normal","text-transform":"uppercase","margin-top":"0","margin-bottom":"0"},"caption":{"font-size":"0.75rem","font-weight":"400","letter-spacing":"0.025rem","line-height":"1rem","text-transform":"normal","margin-top":"0","margin-bottom":"0"},"overline":{"font-size":"0.625rem","font-weight":"700","letter-spacing":"0.0125rem","line-height":"0.875rem","text-transform":"uppercase","margin-top":"0","margin-bottom":"0"}},"material":{"typeface":"'Titillium Web', sans-serif","h1":{"font-size":"6rem","font-weight":"300","font-style":"normal","letter-spacing":"-0.09375rem","line-height":"7rem","text-transform":"none","margin-top":"1.75rem","margin-bottom":"3.5rem"},"h2":{"font-size":"3.75rem","font-weight":"300","font-style":"normal","letter-spacing":"-0.03125rem","line-height":"4.4375rem","text-transform":"none","margin-top":"1.75rem","margin-bottom":"1.75rem"},"h3":{"font-size":"3rem","font-weight":"400","font-style":"normal","letter-spacing":"0","line-height":"3.5625rem","text-transform":"none","margin-top":"1.75rem","margin-bottom":"0"},"h4":{"font-size":"2.125rem","font-weight":"400","font-style":"normal","letter-spacing":"0.015625rem","line-height":"2.5rem","text-transform":"none","margin-top":"1.75rem","margin-bottom":"0"},"h5":{"font-size":"1.5rem","font-weight":"400","font-style":"normal","letter-spacing":"0","line-height":"1.75rem","text-transform":"none","margin-top":"1.75rem","margin-bottom":"0"},"h6":{"font-size":"1.25rem","font-weight":"600","font-style":"normal","letter-spacing":"0.009375rem","line-height":"1.5rem","text-transform":"none","margin-top":"0","margin-bottom":"0"},"body-1":{"font-size":"1rem","font-weight":"400","font-style":"normal","letter-spacing":"0.03125rem","line-height":"1.75rem","text-transform":"none","margin-top":"1.75rem","margin-bottom":"1rem"},"body-2":{"font-size":"0.875rem","font-weight":"400","font-style":"normal","letter-spacing":"0.015625rem","line-height":"1.25rem","text-transform":"none"},"subtitle-1":{"font-size":"1rem","font-weight":"400","font-style":"normal","letter-spacing":"0.009375rem","line-height":"1.5rem","text-transform":"none"},"subtitle-2":{"font-size":"0.875rem","font-weight":"600","font-style":"normal","letter-spacing":"0.00625rem","line-height":"1.5rem","text-transform":"none"},"button":{"font-size":"0.875rem","font-weight":"600","font-style":"normal","letter-spacing":"0.046875rem","line-height":"1rem","text-transform":"uppercase"},"caption":{"font-size":"0.75rem","font-weight":"400","font-style":"normal","letter-spacing":"0.025rem","line-height":"1rem","text-transform":"none"},"overline":{"font-size":"0.625rem","font-weight":"400","font-style":"normal","letter-spacing":"0.09375rem","line-height":"1rem","text-transform":"uppercase"}}}
package/package.json CHANGED
@@ -1,15 +1,40 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0",
4
4
  "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "build:docs": "npx sassdoc ./sass",
7
+ "clean": "npm run clean:json && npm run clean:docs",
8
+ "clean:json": "rimraf \"json/\"",
9
+ "clean:docs": "rimraf \"docs/\"",
10
+ "build": "npm run build:json && npm run build:e2e",
11
+ "build:docs": "npm run clean:docs && npm run build:docs:en:production",
12
+ "build:docs:en:production": "set NODE_ENV=production && npx sassdoc ./sass -d docs",
13
+ "build:docs:en:staging": "set NODE_ENV=staging && npx sassdoc ./sass -d docs",
8
14
  "build:e2e": "sass ./test/e2e/theme.scss ./test/e2e/theme.css",
9
- "lint": "stylelint ./sass",
15
+ "build:json": "node scripts/buildJSON.mjs",
16
+ "serve:docs": "npx http-server ./docs",
17
+ "preview:palette": "node scripts/previewPalette.mjs",
18
+ "lint": "npm run lint:styles && npm run lint:prettier",
19
+ "lint:styles": "stylelint ./sass/**/*.scss",
20
+ "lint:prettier": "prettier \"./sass/**/*.scss\" --check --ignore-path .gitignore",
10
21
  "test": "jest",
11
- "serve:docs": "npx http-server ./sassdoc"
22
+ "format": "stylelint \"./sass/**/*.{scss,css}\" --fix --allow-empty-input --ignore-path .gitignore && prettier \"./sass/**/*.{scss,css}\" --write --ignore-path .gitignore",
23
+ "prepare": "husky install"
12
24
  },
25
+ "jest": {
26
+ "testEnvironment": "jest-environment-node-single-context"
27
+ },
28
+ "lint-staged": {
29
+ "sass/**/*.{scss,css}": [
30
+ "npm run format"
31
+ ]
32
+ },
33
+ "files": [
34
+ "/sass",
35
+ "/json",
36
+ "/_index.scss"
37
+ ],
13
38
  "repository": {
14
39
  "type": "git",
15
40
  "url": "git+https://github.com/IgniteUI/igniteui-theming.git"
@@ -31,21 +56,37 @@
31
56
  "homepage": "https://github.com/IgniteUI/igniteui-theming#readme",
32
57
  "exports": {
33
58
  ".": {
34
- "sass": "./_index.scss"
59
+ "sass": "./_index.scss",
60
+ "esm2020": "./index.js",
61
+ "es2020": "./index.js",
62
+ "es2015": "./index.js",
63
+ "node": "./index.js",
64
+ "default": "./index.js"
35
65
  },
36
66
  "./functions": {
37
67
  "sass": "./sass/_functions.scss"
38
- }
68
+ },
69
+ "./sass/**/*.*": "./sass/**/*.*"
39
70
  },
40
71
  "devDependencies": {
41
- "jest": "^28.1.1",
42
- "postcss": "^8.4.14",
43
- "sass-true": "^6.1.0",
44
- "stylelint": "^14.9.1",
45
- "stylelint-config-standard-scss": "^4.0.0",
46
- "stylelint-scss": "^4.2.0"
72
+ "globby": "^13.1.4",
73
+ "husky": "^8.0.3",
74
+ "igniteui-sassdoc-theme": "^1.1.6",
75
+ "jest": "^29.5.0",
76
+ "jest-environment-node-single-context": "^29.0.0",
77
+ "lunr": "^2.3.9",
78
+ "postcss": "^8.4.23",
79
+ "prettier": "^2.8.8",
80
+ "rimraf": "^4.4.1",
81
+ "sass-export": "^2.1.2",
82
+ "sass-true": "^7.0.0",
83
+ "sassdoc-plugin-localization": "^1.4.3",
84
+ "stylelint": "^15.6.2",
85
+ "stylelint-config-standard-scss": "^7.0.1",
86
+ "stylelint-scss": "^4.7.0",
87
+ "yargs": "^17.7.2"
47
88
  },
48
89
  "peerDependencies": {
49
- "sass": "^1.53.0"
90
+ "sass": "^1.58.1"
50
91
  }
51
92
  }
package/sass/_index.scss CHANGED
@@ -1,3 +1,4 @@
1
+ @forward 'bem';
1
2
  @forward 'color';
2
3
  @forward 'elevations';
3
4
  @forward 'typography';
@@ -0,0 +1,78 @@
1
+ ////
2
+ /// @package theming
3
+ /// @group animations
4
+ /// @access public
5
+ /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
6
+ ////
7
+
8
+ /// @type Timing Function
9
+ $in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
10
+
11
+ /// @type Timing Function
12
+ $in-cubic: cubic-bezier(0.55, 0.55, 0.675, 0.19);
13
+
14
+ /// @type Timing Function
15
+ $in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
16
+
17
+ /// @type Timing Function
18
+ $in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
19
+
20
+ /// @type Timing Function
21
+ $in-sine: cubic-bezier(0.47, 0, 0.745, 0.715);
22
+
23
+ /// @type Timing Function
24
+ $in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
25
+
26
+ /// @type Timing Function
27
+ $in-circ: cubic-bezier(0.95, 0.05, 0.795, 0.035);
28
+
29
+ /// @type Timing Function
30
+ $in-back: cubic-bezier(0.95, 0.05, 0.795, 0.035);
31
+
32
+ /// @type Timing Function
33
+ $out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
34
+
35
+ /// @type Timing Function
36
+ $out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
37
+
38
+ /// @type Timing Function
39
+ $out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
40
+
41
+ /// @type Timing Function
42
+ $out-quint: cubic-bezier(0.23, 1, 0.32, 1);
43
+
44
+ /// @type Timing Function
45
+ $out-sine: cubic-bezier(0.39, 0.575, 0.565, 1);
46
+
47
+ /// @type Timing Function
48
+ $out-expo: cubic-bezier(0.19, 1, 0.22, 1);
49
+
50
+ /// @type Timing Function
51
+ $out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
52
+
53
+ /// @type Timing Function
54
+ $out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
55
+
56
+ /// @type Timing Function
57
+ $in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
58
+
59
+ /// @type Timing Function
60
+ $in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
61
+
62
+ /// @type Timing Function
63
+ $in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
64
+
65
+ /// @type Timing Function
66
+ $in-out-quint: 0.5s cubic-bezier(0.86, 0, 0.07, 1);
67
+
68
+ /// @type Timing Function
69
+ $in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95);
70
+
71
+ /// @type Timing Function
72
+ $in-out-expo: cubic-bezier(1, 0, 0, 1);
73
+
74
+ /// @type Timing Function
75
+ $in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
76
+
77
+ /// @type Timing Function
78
+ $in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
@@ -0,0 +1,41 @@
1
+ // Easing Functions
2
+ @forward 'easings' as ease-*;
3
+
4
+ // mixins
5
+ @forward 'mixins';
6
+
7
+ // Generic Animations
8
+ @forward 'generic/flip';
9
+ @forward 'generic/rotate';
10
+ @forward 'generic/scale';
11
+ @forward 'generic/shadows';
12
+ @forward 'generic/slide';
13
+ @forward 'generic/swing';
14
+
15
+ // Entrance Animations
16
+ @forward 'entrances/bounce';
17
+ @forward 'entrances/fade';
18
+ @forward 'entrances/flicker';
19
+ @forward 'entrances/flip';
20
+ @forward 'entrances/puff';
21
+ @forward 'entrances/roll';
22
+ @forward 'entrances/rotate';
23
+ @forward 'entrances/scale';
24
+ @forward 'entrances/slide';
25
+ @forward 'entrances/slit';
26
+ @forward 'entrances/swing';
27
+ @forward 'entrances/swirl';
28
+
29
+ // Exit Animations
30
+ @forward 'exits/bounce';
31
+ @forward 'exits/fade';
32
+ @forward 'exits/flicker';
33
+ @forward 'exits/flip';
34
+ @forward 'exits/puff';
35
+ @forward 'exits/roll';
36
+ @forward 'exits/rotate';
37
+ @forward 'exits/scale';
38
+ @forward 'exits/slide';
39
+ @forward 'exits/slit';
40
+ @forward 'exits/swing';
41
+ @forward 'exits/swirl';
@@ -0,0 +1,53 @@
1
+ /* stylelint-disable keyframes-name-pattern */
2
+ @use 'sass:list';
3
+ @use 'sass:map';
4
+ @use 'sass:string';
5
+
6
+ ////
7
+ /// @package theming
8
+ /// @group animations
9
+ /// @access public
10
+ /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
11
+ ////
12
+
13
+ $keyframes: () !default;
14
+
15
+ /// Registers a keyframes animation in the keyframes registry.
16
+ /// @param {String} $name - The name of the keyframes animation.
17
+ @mixin keyframes($name) {
18
+ $keyframe: map.has-key($keyframes, $name);
19
+
20
+ @if not($keyframe) {
21
+ $keyframe: string.unique-id();
22
+ $keyframes: map.merge($keyframes, (#{$name}: $keyframe)) !global;
23
+
24
+ @at-root {
25
+ @keyframes #{$name} {
26
+ @content;
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ /// Animates an element.
33
+ /// @param {List} $animate - The list of animation properties.
34
+ /// @example scss - Animating an element
35
+ /// @include fade-in(); // include the 'fade-in' keyframes animation mixin
36
+ ///
37
+ /// .bozo {
38
+ /// @include animation('fade-in' .3s ease-out);
39
+ /// }
40
+ @mixin animation($animate...) {
41
+ $max: list.length($animate);
42
+ $animations: '';
43
+
44
+ @for $i from 1 through $max {
45
+ $animations: #{$animations + list.nth($animate, $i)};
46
+
47
+ @if $i < $max {
48
+ $animations: #{$animations + ', '};
49
+ }
50
+ }
51
+
52
+ animation: #{$animations};
53
+ }