igniteui-theming 1.1.2 → 1.1.4

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 (56) hide show
  1. package/json/colors/presets/palettes.json +1 -1
  2. package/package.json +14 -5
  3. package/sass/bem/_index.scss +4 -1
  4. package/sass/color/_charts.scss +22 -0
  5. package/sass/color/_functions.scss +2 -1
  6. package/sass/color/_types.scss +5 -0
  7. package/sass/color/presets/dark/_bootstrap.scss +13 -0
  8. package/sass/color/presets/dark/_extra.scss +27 -0
  9. package/sass/color/presets/dark/_fluent.scss +42 -1
  10. package/sass/color/presets/dark/_indigo.scss +13 -0
  11. package/sass/color/presets/dark/_material.scss +13 -0
  12. package/sass/color/presets/light/_bootstrap.scss +13 -0
  13. package/sass/color/presets/light/_extra.scss +27 -0
  14. package/sass/color/presets/light/_fluent.scss +42 -1
  15. package/sass/color/presets/light/_indigo.scss +13 -0
  16. package/sass/color/presets/light/_material.scss +13 -0
  17. package/sass/elevations/_functions.scss +2 -2
  18. package/sass/elevations/presets/_index.scss +3 -0
  19. package/sass/elevations/presets/_material.scss +10 -1
  20. package/sass/themes/_functions.scss +5 -1
  21. package/sass/themes/_mixins.scss +5 -0
  22. package/sass/themes/charts/_category-chart-theme.scss +1 -1
  23. package/sass/themes/charts/_data-chart-theme.scss +1 -1
  24. package/sass/themes/charts/_doughnut-chart-theme.scss +1 -1
  25. package/sass/themes/charts/_financial-chart-theme.scss +1 -1
  26. package/sass/themes/charts/_funnel-chart-theme.scss +1 -1
  27. package/sass/themes/charts/_gauge-theme.scss +5 -5
  28. package/sass/themes/charts/_geo-map-theme.scss +3 -3
  29. package/sass/themes/charts/_graph-theme.scss +3 -3
  30. package/sass/themes/charts/_pie-chart-theme.scss +1 -1
  31. package/sass/themes/charts/_shape-chart-theme.scss +1 -1
  32. package/sass/themes/charts/_sparkline-theme.scss +3 -3
  33. package/sass/themes/schemas/charts/dark/_category-chart.scss +0 -5
  34. package/sass/themes/schemas/charts/dark/_doughnut-chart.scss +0 -1
  35. package/sass/themes/schemas/charts/dark/_financial-chart.scss +0 -1
  36. package/sass/themes/schemas/charts/dark/_funnel-chart.scss +1 -2
  37. package/sass/themes/schemas/charts/dark/_index.scss +17 -0
  38. package/sass/themes/schemas/charts/dark/_shape-chart.scss +0 -1
  39. package/sass/themes/schemas/charts/dark/_sparkline.scss +0 -1
  40. package/sass/themes/schemas/charts/light/_category-chart.scss +0 -1
  41. package/sass/themes/schemas/charts/light/_data-chart.scss +0 -1
  42. package/sass/themes/schemas/charts/light/_doughnut-chart.scss +0 -1
  43. package/sass/themes/schemas/charts/light/_financial-chart.scss +0 -1
  44. package/sass/themes/schemas/charts/light/_funnel-chart.scss +0 -1
  45. package/sass/themes/schemas/charts/light/_gauge.scss +0 -1
  46. package/sass/themes/schemas/charts/light/_geo-map.scss +0 -1
  47. package/sass/themes/schemas/charts/light/_graph.scss +0 -1
  48. package/sass/themes/schemas/charts/light/_index.scss +17 -0
  49. package/sass/themes/schemas/charts/light/_shape-chart.scss +0 -1
  50. package/sass/themes/schemas/charts/light/_sparkline.scss +0 -1
  51. package/sass/typography/_types.scss +3 -0
  52. package/sass/typography/charts/_index.scss +5 -0
  53. package/sass/utils/_css.scss +1 -0
  54. package/sass/utils/_map.scss +2 -0
  55. package/sass/utils/_math.scss +1 -0
  56. package/sass/utils/_string.scss +6 -0
@@ -1 +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"}}
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"}}
package/package.json CHANGED
@@ -1,17 +1,22 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
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/\"",
7
+ "clean": "npm run clean:json && npm run clean:docs",
8
+ "clean:json": "rimraf \"json/\"",
9
+ "clean:docs": "rimraf \"docs/\"",
8
10
  "build": "npm run build:json && npm run build:e2e",
9
- "build:docs": "npx sassdoc ./sass",
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",
10
14
  "build:e2e": "sass ./test/e2e/theme.scss ./test/e2e/theme.css",
11
15
  "build:json": "node scripts/buildJSON.mjs",
12
16
  "lint": "stylelint ./sass",
17
+ "preview:palette": "node scripts/previewPalette.mjs",
13
18
  "test": "jest",
14
- "serve:docs": "npx http-server ./sassdoc"
19
+ "serve:docs": "npx http-server ./docs"
15
20
  },
16
21
  "files": [
17
22
  "/sass",
@@ -47,14 +52,18 @@
47
52
  },
48
53
  "devDependencies": {
49
54
  "globby": "^13.1.2",
55
+ "igniteui-sassdoc-theme": "^1.1.4",
50
56
  "jest": "^28.1.1",
57
+ "lunr": "^2.3.9",
51
58
  "postcss": "^8.4.14",
52
59
  "rimraf": "^3.0.2",
53
60
  "sass-export": "^2.1.2",
54
61
  "sass-true": "^6.1.0",
62
+ "sassdoc-plugin-localization": "^1.4.3",
55
63
  "stylelint": "^14.9.1",
56
64
  "stylelint-config-standard-scss": "^4.0.0",
57
- "stylelint-scss": "^4.2.0"
65
+ "stylelint-scss": "^4.2.0",
66
+ "yargs": "^17.6.2"
58
67
  },
59
68
  "peerDependencies": {
60
69
  "sass": "^1.53.0"
@@ -11,12 +11,15 @@
11
11
  ////
12
12
 
13
13
  /// @type String - The Element separator used. Default '__'.
14
+ /// @access private
14
15
  $bem--sep-elem: if(meta.variable-exists(bem--sep-elem), $bem--sep-elem, '__');
15
16
 
16
17
  /// @type String - The Modifier separator used. Default '--'.
18
+ /// @access private
17
19
  $bem--sep-mod: if(meta.variable-exists(bem--sep-mod), $bem--sep-mod, '--');
18
20
 
19
21
  /// @type String - The Modifier Value separator used. Default '-'.
22
+ /// @access private
20
23
  $bem--sep-mod-val: if(meta.variable-exists(bem--sep-mod-val), $bem--sep-mod-val, '-');
21
24
 
22
25
  /// Converts a passed selector value into plain string.
@@ -125,7 +128,7 @@ $bem--sep-mod-val: if(meta.variable-exists(bem--sep-mod-val), $bem--sep-mod-val,
125
128
  }
126
129
 
127
130
  /// Generates a full BEM selector.
128
- /// @access public
131
+ /// @access private
129
132
  /// @param {String} $block - Required. A string block name.
130
133
  /// @param {String|List} $elem - Optional. A sub-element name. If `$mod` is not present, it is
131
134
  /// joined with $block. If $mod is present, it is nested under `$block--$mod`.
@@ -1,6 +1,17 @@
1
1
  /// A list of color values to be used as brushes in charts.
2
+ /// @group palettes
2
3
  /// @type List
3
4
  /// @access public
5
+ /// @prop {Color} brush-1 [rgb(157 231 114)]
6
+ /// @prop {Color} brush-2 [rgb(139 91 177)]
7
+ /// @prop {Color} brush-3 [rgb(109 177 255)]
8
+ /// @prop {Color} brush-4 [rgb(154 242 228)]
9
+ /// @prop {Color} brush-5 [rgb(238 88 121)]
10
+ /// @prop {Color} brush-6 [rgb(115 86 86)]
11
+ /// @prop {Color} brush-7 [rgb(247 210 98)]
12
+ /// @prop {Color} brush-8 [rgb(168 168 183)]
13
+ /// @prop {Color} brush-9 [rgb(224 81 169)]
14
+ /// @prop {Color} brush-10 [rgb(248 161 95)]
4
15
  $brushes-regular: (
5
16
  rgb(157 231 114),
6
17
  rgb(139 91 177),
@@ -15,8 +26,19 @@ $brushes-regular: (
15
26
  );
16
27
 
17
28
  /// A list of color values to be used as color-blind brushes in charts.
29
+ /// @group palettes
18
30
  /// @type List
19
31
  /// @access public
32
+ /// @prop {Color} brush-1 [rgb(86 180 233)]
33
+ /// @prop {Color} brush-2 [rgb(0 158 115)]
34
+ /// @prop {Color} brush-3 [rgb(240 228 68)]
35
+ /// @prop {Color} brush-4 [rgb(213 94 0)]
36
+ /// @prop {Color} brush-5 [rgb(214 0 254)]
37
+ /// @prop {Color} brush-6 [rgb(0 73 159)]
38
+ /// @prop {Color} brush-7 [rgb(230 159 0)]
39
+ /// @prop {Color} brush-8 [rgb(0 0 0)]
40
+ /// @prop {Color} brush-9 [rgb(132 240 223)]
41
+ /// @prop {Color} brush-10 [rgb(115 86 86)]
20
42
  $brushes-color-blind: (
21
43
  rgb(86 180 233),
22
44
  rgb(0 158 115),
@@ -13,6 +13,7 @@ $_enhanced-accessibility: false;
13
13
 
14
14
  /// Configures the color module.
15
15
  /// @access public
16
+ /// @group color
16
17
  /// @param {Boolean} $enhanced-accessibility [null] - Enables features like color blind palettes.
17
18
  @mixin configure-colors($enhanced-accessibility: null) {
18
19
  @if $enhanced-accessibility {
@@ -261,7 +262,7 @@ $_enhanced-accessibility: false;
261
262
  }
262
263
 
263
264
  /// Mixes two colors to produce an opaque color.
264
- /// @access public
265
+ /// @access private
265
266
  /// @group Color
266
267
  /// @param {Color} $color-1 - The first color, usually transparent.
267
268
  /// @param {Color} $color-2 [#fff] - The second color, usually opaque.
@@ -7,14 +7,17 @@
7
7
 
8
8
  /// A list consisting of all generated gray shades
9
9
  /// @type Map
10
+ /// @access private
10
11
  $IGrayShades: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900);
11
12
 
12
13
  /// A list consisting of all generated shades for palette colors
13
14
  /// @type Map
15
+ /// @access private
14
16
  $IColorShades: list.join($IGrayShades, ('A100', 'A200', 'A400', 'A700'));
15
17
 
16
18
  /// All palette colors mapped with corresponding color shades
17
19
  /// @type Map
20
+ /// @access private
18
21
  $IPaletteColors: (
19
22
  'primary': $IColorShades,
20
23
  'secondary': $IColorShades,
@@ -28,10 +31,12 @@ $IPaletteColors: (
28
31
 
29
32
  /// A list consisting of palette metadata
30
33
  /// @type Map
34
+ /// @access private
31
35
  $IPaletteMeta: (
32
36
  'variant': null,
33
37
  );
34
38
 
35
39
  /// A map with all palette colors and palette meta
36
40
  /// @type Map
41
+ /// @access private
37
42
  $IPalette: map.merge($IPaletteColors, (_meta: $IPaletteMeta));
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="dark-bootstrap"
5
5
  */
6
+ /// Generates the dark bootstrap palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name dark-bootstrap-palette
11
+ /// @prop {Color} primary [#0d6efd] - The primary color
12
+ /// @prop {Color} secondary [#6c757d] - The secondary color
13
+ /// @prop {Color} gray [#adb5bd] - The gray color
14
+ /// @prop {Color} surface [#212529] - The surface color
15
+ /// @prop {Color} info [#0dcaf0] - The info color
16
+ /// @prop {Color} success [#198754] - The success color
17
+ /// @prop {Color} warn [#ffc107] - The warn color
18
+ /// @prop {Color} error [#dc3545] - The error color
6
19
  $palette: palette(
7
20
  $primary: #0d6efd,
8
21
  $secondary: #6c757d,
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="dark"
5
5
  */
6
+ /// Generates the dark green palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name dark-green-palette
11
+ /// @prop {Color} primary [#09f] - The primary color
12
+ /// @prop {Color} secondary [#72da67] - The secondary color
13
+ /// @prop {Color} gray [#fff] - The gray color
14
+ /// @prop {Color} surface [#222] - The surface color
15
+ /// @prop {Color} info [#1377d5] - The info color
16
+ /// @prop {Color} success [#4eb862] - The success color
17
+ /// @prop {Color} warn [#fbb13c] - The warn color
18
+ /// @prop {Color} error [#ff134a] - The error color
6
19
  $green-palette: palette(
7
20
  $primary: #09f,
8
21
  $secondary: #72da67,
@@ -12,6 +25,20 @@ $green-palette: palette(
12
25
  $warn: #fbb13c,
13
26
  $error: #ff134a,
14
27
  );
28
+
29
+ /// Generates the dark purple palette.
30
+ /// @type Map
31
+ /// @access public
32
+ /// @group palettes
33
+ /// @name dark-purple-palette
34
+ /// @prop {Color} primary [#00b4d6] - The primary color
35
+ /// @prop {Color} secondary [#514590] - The secondary color
36
+ /// @prop {Color} gray [#fff] - The gray color
37
+ /// @prop {Color} surface [#333] - The surface color
38
+ /// @prop {Color} info [#1377d5] - The info color
39
+ /// @prop {Color} success [#4eb862] - The success color
40
+ /// @prop {Color} warn [#fbb13c] - The warn color
41
+ /// @prop {Color} error [#ff134a] - The error color
15
42
  $purple-palette: palette(
16
43
  $primary: #00b4d6,
17
44
  $secondary: #514590,
@@ -3,9 +3,22 @@
3
3
  /**
4
4
  * @sass-export-section="dark-fluent"
5
5
  */
6
+ /// Generates the dark fluent palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name dark-fluent-palette
11
+ /// @prop {Color} primary [#0078d4] - The primary color
12
+ /// @prop {Color} secondary [#2b88d8] - The secondary color
13
+ /// @prop {Color} gray [#fff] - The gray color
14
+ /// @prop {Color} surface [#222] - The surface color
15
+ /// @prop {Color} info [#1377d5] - The info color
16
+ /// @prop {Color} success [#107c10] - The success color
17
+ /// @prop {Color} warn [#797673] - The warn color
18
+ /// @prop {Color} error [#a80000] - The error color
6
19
  $palette: palette(
7
20
  $primary: #0078d4,
8
- $secondary: #0078d4,
21
+ $secondary: #2b88d8,
9
22
  $surface: #222,
10
23
  $info: #1377d5,
11
24
  $success: #107c10,
@@ -13,6 +26,20 @@ $palette: palette(
13
26
  $error: #a80000,
14
27
  $variant: 'fluent'
15
28
  );
29
+
30
+ /// Generates the dark fluent word palette.
31
+ /// @type Map
32
+ /// @access public
33
+ /// @group palettes
34
+ /// @name dark-fluent-word-palette
35
+ /// @prop {Color} primary [#2b579a] - The primary color
36
+ /// @prop {Color} secondary [#2b579a] - The secondary color
37
+ /// @prop {Color} gray [#fff] - The gray color
38
+ /// @prop {Color} surface [#222] - The surface color
39
+ /// @prop {Color} info [#1377d5] - The info color
40
+ /// @prop {Color} success [#107c10] - The success color
41
+ /// @prop {Color} warn [#797673] - The warn color
42
+ /// @prop {Color} error [#a80000] - The error color
16
43
  $word-palette: palette(
17
44
  $primary: #2b579a,
18
45
  $secondary: #2b579a,
@@ -23,6 +50,20 @@ $word-palette: palette(
23
50
  $error: #a80000,
24
51
  $variant: 'fluent'
25
52
  );
53
+
54
+ /// Generates the dark fluent excel palette.
55
+ /// @type Map
56
+ /// @access public
57
+ /// @group palettes
58
+ /// @name dark-fluent-excel-palette
59
+ /// @prop {Color} primary [#217346] - The primary color
60
+ /// @prop {Color} secondary [#217346] - The secondary color
61
+ /// @prop {Color} gray [#fff] - The gray color
62
+ /// @prop {Color} surface [#222] - The surface color
63
+ /// @prop {Color} info [#1377d5] - The info color
64
+ /// @prop {Color} success [#107c10] - The success color
65
+ /// @prop {Color} warn [#797673] - The warn color
66
+ /// @prop {Color} error [#a80000] - The error color
26
67
  $excel-palette: palette(
27
68
  $primary: #217346,
28
69
  $secondary: #217346,
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="dark-indigo"
5
5
  */
6
+ /// Generates the dark indigo palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name dark-indigo-palette
11
+ /// @prop {Color} primary [#3f51b5] - The primary color
12
+ /// @prop {Color} secondary [#3f51b5] - The secondary color
13
+ /// @prop {Color} gray [hsl(262deg 8% 98%)] - The gray color
14
+ /// @prop {Color} surface [#2a2b2f] - The surface color
15
+ /// @prop {Color} info [#9208bc] - The info color
16
+ /// @prop {Color} success [#689f38] - The success color
17
+ /// @prop {Color} warn [#ff9800] - The warn color
18
+ /// @prop {Color} error [#cf1a2b] - The error color
6
19
  $palette: palette(
7
20
  $primary: #3f51b5,
8
21
  $secondary: #3f51b5,
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="dark-material"
5
5
  */
6
+ /// Generates the dark material palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name dark-material-palette
11
+ /// @prop {Color} primary [#09f] - The primary color
12
+ /// @prop {Color} secondary [#e41c77] - The secondary color
13
+ /// @prop {Color} gray [#fff] - The gray color
14
+ /// @prop {Color} surface [#222] - The surface color
15
+ /// @prop {Color} info [#1377d5] - The info color
16
+ /// @prop {Color} success [#4eb862] - The success color
17
+ /// @prop {Color} warn [#faa419] - The warn color
18
+ /// @prop {Color} error [#ff134a] - The error color
6
19
  $palette: palette(
7
20
  $primary: #09f,
8
21
  $secondary: #e41c77,
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="light-bootstrap"
5
5
  */
6
+ /// Generates the light bootstrap palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name light-bootstrap-palette
11
+ /// @prop {Color} primary [#0d6efd] - The primary color
12
+ /// @prop {Color} secondary [#6c757d] - The secondary color
13
+ /// @prop {Color} gray [#adb5bd] - The gray color
14
+ /// @prop {Color} surface [#f8f9fa] - The surface color
15
+ /// @prop {Color} info [#0dcaf0] - The info color
16
+ /// @prop {Color} success [#198754] - The success color
17
+ /// @prop {Color} warn [#ffc107] - The warn color
18
+ /// @prop {Color} error [#dc3545] - The error color
6
19
  $palette: palette(
7
20
  $primary: #0d6efd,
8
21
  $secondary: #6c757d,
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="light"
5
5
  */
6
+ /// Generates the light green palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name light-green-palette
11
+ /// @prop {Color} primary [#09f] - The primary color
12
+ /// @prop {Color} secondary [#72da67] - The secondary color
13
+ /// @prop {Color} gray [#000] - The gray color
14
+ /// @prop {Color} surface [#fff] - The surface color
15
+ /// @prop {Color} info [#1377d5] - The info color
16
+ /// @prop {Color} success [#4eb862] - The success color
17
+ /// @prop {Color} warn [#fbb13c] - The warn color
18
+ /// @prop {Color} error [#ff134a] - The error color
6
19
  $green-palette: palette(
7
20
  $primary: #09f,
8
21
  $secondary: #72da67,
@@ -12,6 +25,20 @@ $green-palette: palette(
12
25
  $warn: #fbb13c,
13
26
  $error: #ff134a
14
27
  );
28
+
29
+ /// Generates the light purple palette.
30
+ /// @type Map
31
+ /// @access public
32
+ /// @group palettes
33
+ /// @name light-purple-palette
34
+ /// @prop {Color} primary [#00b4d6] - The primary color
35
+ /// @prop {Color} secondary [#514590] - The secondary color
36
+ /// @prop {Color} gray [#000] - The gray color
37
+ /// @prop {Color} surface [#fff] - The surface color
38
+ /// @prop {Color} info [#1377d5] - The info color
39
+ /// @prop {Color} success [#4eb862] - The success color
40
+ /// @prop {Color} warn [#fbb13c] - The warn color
41
+ /// @prop {Color} error [#ff134a] - The error color
15
42
  $purple-palette: palette(
16
43
  $primary: #00b4d6,
17
44
  $secondary: #514590,
@@ -3,9 +3,22 @@
3
3
  /**
4
4
  * @sass-export-section="light-fluent"
5
5
  */
6
+ /// Generates the light fluent palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name light-fluent-palette
11
+ /// @prop {Color} primary [#0078d4] - The primary color
12
+ /// @prop {Color} secondary [#2b88d8] - The secondary color
13
+ /// @prop {Color} gray [#000] - The gray color
14
+ /// @prop {Color} surface [#fff] - The surface color
15
+ /// @prop {Color} info [#1377d5] - The info color
16
+ /// @prop {Color} success [#107c10] - The success color
17
+ /// @prop {Color} warn [#797673] - The warn color
18
+ /// @prop {Color} error [#a80000] - The error color
6
19
  $palette: palette(
7
20
  $primary: #0078d4,
8
- $secondary: #0078d4,
21
+ $secondary: #2b88d8,
9
22
  $surface: #fff,
10
23
  $info: #1377d5,
11
24
  $success: #107c10,
@@ -13,6 +26,20 @@ $palette: palette(
13
26
  $error: #a80000,
14
27
  $variant: 'fluent'
15
28
  );
29
+
30
+ /// Generates the light fluent word palette.
31
+ /// @type Map
32
+ /// @access public
33
+ /// @group palettes
34
+ /// @name light-fluent-word-palette
35
+ /// @prop {Color} primary [#2b579a] - The primary color
36
+ /// @prop {Color} secondary [#2b579a] - The secondary color
37
+ /// @prop {Color} gray [#000] - The gray color
38
+ /// @prop {Color} surface [#fff] - The surface color
39
+ /// @prop {Color} info [#1377d5] - The info color
40
+ /// @prop {Color} success [#107c10] - The success color
41
+ /// @prop {Color} warn [#797673] - The warn color
42
+ /// @prop {Color} error [#a80000] - The error color
16
43
  $word-palette: palette(
17
44
  $primary: #2b579a,
18
45
  $secondary: #2b579a,
@@ -23,6 +50,20 @@ $word-palette: palette(
23
50
  $error: #a80000,
24
51
  $variant: 'fluent'
25
52
  );
53
+
54
+ /// Generates the dark green palette.
55
+ /// @type Map
56
+ /// @access public
57
+ /// @group palettes
58
+ /// @name light-fluent-excel-palette
59
+ /// @prop {Color} primary [#217346] - The primary color
60
+ /// @prop {Color} secondary [#217346] - The secondary color
61
+ /// @prop {Color} gray [#000] - The gray color
62
+ /// @prop {Color} surface [#fff] - The surface color
63
+ /// @prop {Color} info [#1377d5] - The info color
64
+ /// @prop {Color} success [#107c10] - The success color
65
+ /// @prop {Color} warn [#797673] - The warn color
66
+ /// @prop {Color} error [#a80000] - The error color
26
67
  $excel-palette: palette(
27
68
  $primary: #217346,
28
69
  $secondary: #217346,
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="light-indigo"
5
5
  */
6
+ /// Generates the light indigo palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name light-indigo-palette
11
+ /// @prop {Color} primary [#3f51b5] - The primary color
12
+ /// @prop {Color} secondary [#3f51b5] - The secondary color
13
+ /// @prop {Color} gray [hsl(236deg 8% 5%)] - The gray color
14
+ /// @prop {Color} surface [#fff] - The surface color
15
+ /// @prop {Color} info [#9208bc] - The info color
16
+ /// @prop {Color} success [#689f38] - The success color
17
+ /// @prop {Color} warn [#ff9800] - The warn color
18
+ /// @prop {Color} error [#cf1a2b] - The error color
6
19
  $palette: palette(
7
20
  $primary: #3f51b5,
8
21
  $secondary: #3f51b5,
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @sass-export-section="light-material"
5
5
  */
6
+ /// Generates the light material palette.
7
+ /// @type Map
8
+ /// @access public
9
+ /// @group palettes
10
+ /// @name light-material-palette
11
+ /// @prop {Color} primary [#09f] - The primary color
12
+ /// @prop {Color} secondary [#e41c77] - The secondary color
13
+ /// @prop {Color} gray [#000] - The gray color
14
+ /// @prop {Color} surface [#fff] - The surface color
15
+ /// @prop {Color} info [#1377d5] - The info color
16
+ /// @prop {Color} success [#4eb862] - The success color
17
+ /// @prop {Color} warn [#faa419] - The warn color
18
+ /// @prop {Color} error [#ff134a] - The error color
6
19
  $palette: palette(
7
20
  $primary: #09f,
8
21
  $secondary: #e41c77,
@@ -9,7 +9,7 @@
9
9
  $factor: var(--ig-elevation-factor, 1);
10
10
 
11
11
  /// Checks if the passed argument is a valid box-shadow.
12
- /// @access public
12
+ /// @access private
13
13
  /// @param {List} $shadow - A list of shadow properties.
14
14
  /// @return {Boolean} - Returns a boolean depending on if the passed argument is a valid shadow.
15
15
  @function _is-shadow($shadow) {
@@ -31,7 +31,7 @@ $factor: var(--ig-elevation-factor, 1);
31
31
  }
32
32
 
33
33
  /// Transforms the passed box-shadow list according to the elevation factor value.
34
- /// @access public
34
+ /// @access private
35
35
  /// @param {List} $shadow - A list of shadow properties.
36
36
  /// @return {List} - The transformed shadow list.
37
37
  @function _transform-shadow($shadow) {
@@ -1,13 +1,16 @@
1
1
  /// Level 1 - The color used to generate umbra shadows.
2
2
  /// @type Color
3
+ /// @access private
3
4
  $color-1: rgba(0 0 0 / 26%) !default;
4
5
 
5
6
  /// Level 2 - The color used to generate penumbra shadows.
6
7
  /// @type Color
8
+ /// @access private
7
9
  $color-2: rgba(0 0 0 / 12%) !default;
8
10
 
9
11
  /// Level 3 - The color used to generate ambient shadows.
10
12
  /// @type Color
13
+ /// @access private
11
14
  $color-3: rgba(0 0 0 / 8%) !default;
12
15
 
13
16
  @forward './material' as material-* with(
@@ -7,17 +7,21 @@
7
7
 
8
8
  /// Level 1 - The color used to generate umbra shadows.
9
9
  /// @type Color
10
+ /// @access private
10
11
  $color-1: rgba(0 0 0 / 26%) !default;
11
12
 
12
13
  /// Level 2 - The color used to generate penumbra shadows.
13
14
  /// @type Color
15
+ /// @access private
14
16
  $color-2: rgba(0 0 0 / 12%) !default;
15
17
 
16
18
  /// Level 3 - The color used to generate ambient shadows.
17
19
  /// @type Color
20
+ /// @access private
18
21
  $color-3: rgba(0 0 0 / 8%) !default;
19
22
 
20
23
  /// All elevation levels
24
+ /// @access private
21
25
  $_1: box-shadow((0 1px 3px 0 $color-1, 0 1px 1px 0 $color-2, 0 2px 1px -1px $color-3));
22
26
  $_2: box-shadow((0 1px 5px 0 $color-1, 0 2px 2px 0 $color-2, 0 3px 1px -2px $color-3));
23
27
  $_3: box-shadow((0 1px 8px 0 $color-1, 0 3px 4px 0 $color-2, 0 3px 3px -2px $color-3));
@@ -43,7 +47,11 @@ $_22: box-shadow((0 10px 14px -6px $color-1, 0 22px 35px 3px $color-2, 0 8px 42p
43
47
  $_23: box-shadow((0 11px 14px -7px $color-1, 0 23px 36px 3px $color-2, 0 9px 44px 8px $color-3));
44
48
  $_24: box-shadow((0 11px 15px -7px $color-1, 0 24px 38px 3px $color-2, 0 9px 46px 8px $color-3));
45
49
 
46
- /// Allows user configration of this module.
50
+ /// Configures shadow colors for the material elevations.
51
+ /// @access public
52
+ /// @param {Color} $color-1 - The umbra shadow color.
53
+ /// @param {Color} $color-2 - The penumbra shadow color.
54
+ /// @param {Color} $color-3 - The ambiant shadow color.
47
55
  @mixin configure($color-1, $color-2, $color-3) {
48
56
  @if $color-1 {
49
57
  $color-1: $color-1 !global;
@@ -63,6 +71,7 @@ $_24: box-shadow((0 11px 15px -7px $color-1, 0 24px 38px 3px $color-2, 0 9px 46p
63
71
  */
64
72
  /// А map of 24 shadow elevations with the umbra, penumbra and ambient shadows.
65
73
  /// @type Map
74
+ /// @access private
66
75
  $elevations: (
67
76
  0: none,
68
77
  1: $_1,
@@ -96,7 +96,7 @@
96
96
  }
97
97
 
98
98
  /// Retrieves the CSS custom property reference for the given key in the component theme.
99
- /// @access public
99
+ /// @access private
100
100
  /// @param {Map} $theme - The source theme to be used to read values from.
101
101
  /// @param {String} $property - A key from the theme map to assign as value to the property.
102
102
  /// @param {String} $fallback [null] - A value to be used if the CSS property is not defined.
@@ -126,6 +126,7 @@
126
126
  }
127
127
 
128
128
  /// Used to switch between values based on the size of the component.
129
+ /// @group themes
129
130
  /// @access public
130
131
  /// @param {Number} $sm - The preferred value when the component's size is small.
131
132
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
@@ -140,6 +141,7 @@
140
141
  }
141
142
 
142
143
  /// Used to add spacing.
144
+ /// @group utilities
143
145
  /// @access public
144
146
  /// @param {Number} $sm - The preferred value when the component's size is small.
145
147
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
@@ -157,6 +159,7 @@
157
159
  }
158
160
 
159
161
  /// Used to add inline spacing.
162
+ /// @group utilities
160
163
  /// @access public
161
164
  /// @param {Number} $sm - The preferred value when the component's size is small.
162
165
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
@@ -167,6 +170,7 @@
167
170
  }
168
171
 
169
172
  /// Used to add block spacing.
173
+ /// @group utilities
170
174
  /// @access public
171
175
  /// @param {Number} $sm - The preferred value when the component's size is small.
172
176
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.