igniteui-theming 1.0.0-beta.9 → 1.0.0-release

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 (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +104 -0
  3. package/_index.scss +3 -2
  4. package/json/colors/meta/multipliers.json +1 -0
  5. package/json/colors/meta/palette.json +1 -0
  6. package/json/colors/presets/palettes.json +1 -0
  7. package/json/elevations/elevations.json +1 -0
  8. package/json/typography/presets/typescales.json +1 -0
  9. package/package.json +12 -1
  10. package/sass/_index.scss +1 -0
  11. package/sass/animations/_easings.scss +77 -0
  12. package/sass/animations/_index.scss +41 -0
  13. package/sass/animations/_mixins.scss +50 -0
  14. package/sass/animations/entrances/_bounce.scss +289 -0
  15. package/sass/animations/entrances/_fade.scss +170 -0
  16. package/sass/animations/entrances/_flicker.scss +317 -0
  17. package/sass/animations/entrances/_flip.scss +127 -0
  18. package/sass/animations/entrances/_puff.scss +210 -0
  19. package/sass/animations/entrances/_roll.scss +67 -0
  20. package/sass/animations/entrances/_rotate.scss +414 -0
  21. package/sass/animations/entrances/_scale.scss +256 -0
  22. package/sass/animations/entrances/_slide.scss +533 -0
  23. package/sass/animations/entrances/_slit.scss +89 -0
  24. package/sass/animations/entrances/_swing.scss +143 -0
  25. package/sass/animations/entrances/_swirl.scss +309 -0
  26. package/sass/animations/exits/_bounce.scss +303 -0
  27. package/sass/animations/exits/_fade.scss +170 -0
  28. package/sass/animations/exits/_flicker.scss +333 -0
  29. package/sass/animations/exits/_flip.scss +127 -0
  30. package/sass/animations/exits/_puff.scss +210 -0
  31. package/sass/animations/exits/_roll.scss +67 -0
  32. package/sass/animations/exits/_rotate.scss +414 -0
  33. package/sass/animations/exits/_scale.scss +256 -0
  34. package/sass/animations/exits/_slide.scss +533 -0
  35. package/sass/animations/exits/_slit.scss +87 -0
  36. package/sass/animations/exits/_swing.scss +143 -0
  37. package/sass/animations/exits/_swirl.scss +309 -0
  38. package/sass/animations/generic/_flip.scss +671 -0
  39. package/sass/animations/generic/_rotate.scss +641 -0
  40. package/sass/animations/generic/_scale.scss +462 -0
  41. package/sass/animations/generic/_shadows.scss +582 -0
  42. package/sass/animations/generic/_slide.scss +517 -0
  43. package/sass/animations/generic/_swing.scss +247 -0
  44. package/sass/bem/_index.scss +397 -0
  45. package/sass/color/_functions.scss +3 -3
  46. package/sass/color/_types.scss +4 -22
  47. package/sass/color/presets/dark/_bootstrap.scss +3 -0
  48. package/sass/color/presets/dark/_extra.scss +23 -0
  49. package/sass/color/presets/dark/_fluent.scss +24 -0
  50. package/sass/color/presets/dark/_index.scss +1 -0
  51. package/sass/color/presets/dark/_indigo.scss +3 -0
  52. package/sass/color/presets/dark/_material.scss +4 -1
  53. package/sass/color/presets/light/_bootstrap.scss +3 -0
  54. package/sass/color/presets/light/_extra.scss +23 -0
  55. package/sass/color/presets/light/_fluent.scss +23 -0
  56. package/sass/color/presets/light/_index.scss +1 -0
  57. package/sass/color/presets/light/_indigo.scss +3 -0
  58. package/sass/color/presets/light/_material.scss +4 -1
  59. package/sass/elevations/presets/_index.scss +17 -1
  60. package/sass/elevations/presets/_material.scss +61 -30
  61. package/sass/themes/_functions.scss +58 -8
  62. package/sass/themes/_mixins.scss +4 -4
  63. package/sass/typography/presets/_bootstrap.scss +132 -116
  64. package/sass/typography/presets/_fluent.scss +133 -116
  65. package/sass/typography/presets/_indigo.scss +134 -117
  66. package/sass/typography/presets/_material.scss +134 -118
  67. package/sass/utils/_css.scss +32 -0
  68. package/sass/utils/_index.scss +3 -1
  69. package/sass/utils/_map.scss +23 -0
  70. package/sass/utils/_math.scss +31 -0
  71. package/sass/utils/_string.scss +75 -0
  72. package/.github/workflows/npm-publish.yml +0 -42
  73. package/.stylelintrc.json +0 -83
  74. package/test/_color.spec.scss +0 -251
  75. package/test/_elevations.spec.scss +0 -69
  76. package/test/_index.scss +0 -5
  77. package/test/_themes.spec.scss +0 -253
  78. package/test/_typography.spec.scss +0 -267
  79. package/test/_utils.spec.scss +0 -53
  80. package/test/e2e/theme.scss +0 -7
  81. 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';
@@ -0,0 +1 @@
1
+ {"color":{"s":{"50":"1.23","100":".8","200":".64","300":".73","400":".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":".89","700":".81","800":".73","900":".64","A100":"1.34","A200":"1.16","A400":".91","A700":".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":"#0078d4","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":"#0078d4","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,23 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0-release",
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
+ "clean": "rimraf \"json/\"",
8
+ "build": "npm run build:json && npm run build:e2e",
7
9
  "build:docs": "npx sassdoc ./sass",
8
10
  "build:e2e": "sass ./test/e2e/theme.scss ./test/e2e/theme.css",
11
+ "build:json": "node scripts/buildJSON.mjs",
9
12
  "lint": "stylelint ./sass",
10
13
  "test": "jest",
11
14
  "serve:docs": "npx http-server ./sassdoc"
12
15
  },
16
+ "files": [
17
+ "/sass",
18
+ "/json",
19
+ "/_index.scss"
20
+ ],
13
21
  "repository": {
14
22
  "type": "git",
15
23
  "url": "git+https://github.com/IgniteUI/igniteui-theming.git"
@@ -38,8 +46,11 @@
38
46
  }
39
47
  },
40
48
  "devDependencies": {
49
+ "globby": "^13.1.2",
41
50
  "jest": "^28.1.1",
42
51
  "postcss": "^8.4.14",
52
+ "rimraf": "^3.0.2",
53
+ "sass-export": "^2.1.2",
43
54
  "sass-true": "^6.1.0",
44
55
  "stylelint": "^14.9.1",
45
56
  "stylelint-config-standard-scss": "^4.0.0",
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,77 @@
1
+ ////
2
+ /// @group animations
3
+ /// @access public
4
+ /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
5
+ ////
6
+
7
+ /// @type Timing Function
8
+ $in-quad: cubic-bezier(.55, .085, .68, .53);
9
+
10
+ /// @type Timing Function
11
+ $in-cubic: cubic-bezier(.55, .55, .675, .19);
12
+
13
+ /// @type Timing Function
14
+ $in-quart: cubic-bezier(.895, .03, .685, .22);
15
+
16
+ /// @type Timing Function
17
+ $in-quint: cubic-bezier(.755, .05, .855, .06);
18
+
19
+ /// @type Timing Function
20
+ $in-sine: cubic-bezier(.47, 0, .745, .715);
21
+
22
+ /// @type Timing Function
23
+ $in-expo: cubic-bezier(.95, .05, .795, .035);
24
+
25
+ /// @type Timing Function
26
+ $in-circ: cubic-bezier(.95, .05, .795, .035);
27
+
28
+ /// @type Timing Function
29
+ $in-back: cubic-bezier(.95, .05, .795, .035);
30
+
31
+ /// @type Timing Function
32
+ $out-quad: cubic-bezier(.25, .46, .45, .94);
33
+
34
+ /// @type Timing Function
35
+ $out-cubic: cubic-bezier(.215, .61, .355, 1);
36
+
37
+ /// @type Timing Function
38
+ $out-quart: cubic-bezier(.165, .84, .44, 1);
39
+
40
+ /// @type Timing Function
41
+ $out-quint: cubic-bezier(.23, 1, .32, 1);
42
+
43
+ /// @type Timing Function
44
+ $out-sine: cubic-bezier(.39, .575, .565, 1);
45
+
46
+ /// @type Timing Function
47
+ $out-expo: cubic-bezier(.19, 1, .22, 1);
48
+
49
+ /// @type Timing Function
50
+ $out-circ: cubic-bezier(.075, .82, .165, 1);
51
+
52
+ /// @type Timing Function
53
+ $out-back: cubic-bezier(.175, .885, .32, 1.275);
54
+
55
+ /// @type Timing Function
56
+ $in-out-quad: cubic-bezier(.455, .03, .515, .955);
57
+
58
+ /// @type Timing Function
59
+ $in-out-cubic: cubic-bezier(.645, .045, .355, 1);
60
+
61
+ /// @type Timing Function
62
+ $in-out-quart: cubic-bezier(.77, 0, .175, 1);
63
+
64
+ /// @type Timing Function
65
+ $in-out-quint: .5s cubic-bezier(.86, 0, .07, 1);
66
+
67
+ /// @type Timing Function
68
+ $in-out-sine: cubic-bezier(.445, .05, .55, .95);
69
+
70
+ /// @type Timing Function
71
+ $in-out-expo: cubic-bezier(1, 0, 0, 1);
72
+
73
+ /// @type Timing Function
74
+ $in-out-circ: cubic-bezier(.785, .135, .15, .86);
75
+
76
+ /// @type Timing Function
77
+ $in-out-back: cubic-bezier(.68, -.55, .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,50 @@
1
+ /* stylelint-disable keyframes-name-pattern */
2
+ @use 'sass:list';
3
+ @use 'sass:map';
4
+ @use 'sass:string';
5
+
6
+ $keyframes: () !default;
7
+
8
+ /// Registers a keyframes animation in the keyframes registry.
9
+ /// @access public
10
+ /// @group animations
11
+ /// @param {String} $name - The name of the keyframes animation.
12
+ @mixin keyframes($name) {
13
+ $keyframe: map.has-key($keyframes, $name);
14
+
15
+ @if not($keyframe) {
16
+ $keyframe: string.unique-id();
17
+ $keyframes: map.merge($keyframes, (#{$name}: $keyframe)) !global;
18
+
19
+ @at-root {
20
+ @keyframes #{$name} {
21
+ @content;
22
+ }
23
+ }
24
+ }
25
+ }
26
+
27
+ /// Animates an element.
28
+ /// @access public
29
+ /// @group animations
30
+ /// @param {List} $animate - The list of animation properties.
31
+ /// @example scss - Animating an element
32
+ /// @include fade-in(); // include the 'fade-in' keyframes animation mixin
33
+ ///
34
+ /// .bozo {
35
+ /// @include animation('fade-in' .3s ease-out);
36
+ /// }
37
+ @mixin animation($animate...) {
38
+ $max: list.length($animate);
39
+ $animations: '';
40
+
41
+ @for $i from 1 through $max {
42
+ $animations: #{$animations + list.nth($animate, $i)};
43
+
44
+ @if $i < $max {
45
+ $animations: #{$animations + ', '};
46
+ }
47
+ }
48
+
49
+ animation: #{$animations};
50
+ }