igniteui-theming 1.0.2 → 1.1.1

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 (42) hide show
  1. package/package.json +1 -1
  2. package/sass/themes/charts/_category-chart-theme.scss +319 -0
  3. package/sass/themes/charts/_data-chart-theme.scss +142 -0
  4. package/sass/themes/charts/_doughnut-chart-theme.scss +81 -0
  5. package/sass/themes/charts/_financial-chart-theme.scss +325 -0
  6. package/sass/themes/charts/_funnel-chart-theme.scss +98 -0
  7. package/sass/themes/charts/_gauge-theme.scss +167 -0
  8. package/sass/themes/charts/_geo-map-theme.scss +53 -0
  9. package/sass/themes/charts/_graph-theme.scss +133 -0
  10. package/sass/themes/charts/_index.scss +12 -0
  11. package/sass/themes/charts/_pie-chart-theme.scss +108 -0
  12. package/sass/themes/charts/_shape-chart-theme.scss +271 -0
  13. package/sass/themes/charts/_sparkline-theme.scss +114 -0
  14. package/sass/themes/charts/_theme.scss +27 -0
  15. package/sass/themes/schemas/_index.scss +35 -0
  16. package/sass/themes/schemas/charts/_index.scss +2 -0
  17. package/sass/themes/schemas/charts/dark/_category-chart.scss +33 -0
  18. package/sass/themes/schemas/charts/dark/_data-chart.scss +27 -0
  19. package/sass/themes/schemas/charts/dark/_doughnut-chart.scss +28 -0
  20. package/sass/themes/schemas/charts/dark/_financial-chart.scss +28 -0
  21. package/sass/themes/schemas/charts/dark/_funnel-chart.scss +28 -0
  22. package/sass/themes/schemas/charts/dark/_gauge.scss +47 -0
  23. package/sass/themes/schemas/charts/dark/_geo-map.scss +31 -0
  24. package/sass/themes/schemas/charts/dark/_graph.scss +27 -0
  25. package/sass/themes/schemas/charts/dark/_index.scss +68 -0
  26. package/sass/themes/schemas/charts/dark/_pie-chart.scss +31 -0
  27. package/sass/themes/schemas/charts/dark/_shape-chart.scss +28 -0
  28. package/sass/themes/schemas/charts/dark/_sparkline.scss +28 -0
  29. package/sass/themes/schemas/charts/light/_category-chart.scss +178 -0
  30. package/sass/themes/schemas/charts/light/_data-chart.scss +60 -0
  31. package/sass/themes/schemas/charts/light/_doughnut-chart.scss +50 -0
  32. package/sass/themes/schemas/charts/light/_financial-chart.scss +140 -0
  33. package/sass/themes/schemas/charts/light/_funnel-chart.scss +48 -0
  34. package/sass/themes/schemas/charts/light/_gauge.scss +132 -0
  35. package/sass/themes/schemas/charts/light/_geo-map.scss +35 -0
  36. package/sass/themes/schemas/charts/light/_graph.scss +86 -0
  37. package/sass/themes/schemas/charts/light/_index.scss +68 -0
  38. package/sass/themes/schemas/charts/light/_pie-chart.scss +51 -0
  39. package/sass/themes/schemas/charts/light/_shape-chart.scss +115 -0
  40. package/sass/themes/schemas/charts/light/_sparkline.scss +71 -0
  41. package/sass/typography/_mixins.scss +26 -0
  42. package/sass/typography/charts/_index.scss +19 -0
@@ -0,0 +1,51 @@
1
+ /* stylelint-disable max-line-length */
2
+ ////
3
+ /// @group schemas
4
+ /// @access public
5
+ /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
6
+ ////
7
+
8
+ /// Generates a material pie chart schema.
9
+ /// @type {Map}
10
+ /// @property {List} brushes [series] - Defines the palette from which automatically assigned series colors are selected.
11
+ /// @property {List} outlines [series] - Defines the palette from which automatically assigned series outline colors are selected.
12
+ /// @property {Number} label-extent [30] - Sets the pixel amount by which the labels are offset from the edge of the slices.
13
+ /// @property {Color} label-inner-color [null] - Sets the color for labels rendered inside of the pie chart.
14
+ /// @property {Color} label-outer-color [color: ('gray', 700)] - Sets the color for labels rendered outside of the pie chart.
15
+ /// @property {String} labels-position [null] - Sets the position of chart labels. Valid values are: 'none', 'center', 'insideEnd', 'outsideEnd', and 'bestFit'.
16
+ /// @property {Number} leader-line-margin [null] - Sets the margin between a label and the end of its leader line.
17
+ /// @property {String} leader-line-type [null] - Sets what type of leader lines will be used for the outside end labels. Valid values are: 'straight', 'spline', and 'arc'.
18
+ /// @property {String} leader-line-visibility [null] - Sets whether the leader lines are visible. Valid values are: 'visible' and 'collapsed'.
19
+ /// @property {Number} radius-factor [null] - Sets the scaling factor of the chart's radius. Value between 0 and 1.
20
+ $material-pie-chart: (
21
+ 'brushes': series,
22
+ 'outlines': series,
23
+ 'label-extent': 30,
24
+ 'label-inner-color': null,
25
+ 'label-outer-color': (
26
+ color: ('gray', 700)
27
+ ),
28
+ 'labels-position': null,
29
+ 'leader-line-margin': null,
30
+ 'leader-line-type': null,
31
+ 'leader-line-visibility': null,
32
+ 'radius-factor': null,
33
+ );
34
+
35
+ /// Generates a fluent pie chart schema.
36
+ /// @type {Map}
37
+ /// @requires {Map} $material-pie-chart
38
+ /// @see $material-pie-chart
39
+ $fluent-pie-chart: $material-pie-chart;
40
+
41
+ /// Generates a bootstrap pie chart schema.
42
+ /// @type {Map}
43
+ /// @requires {Map} $material-pie-chart
44
+ /// @see $material-pie-chart
45
+ $bootstrap-pie-chart: $material-pie-chart;
46
+
47
+ /// Generates an indigo pie chart schema.
48
+ /// @type {Map}
49
+ /// @requires {Map} $material-pie-chart
50
+ /// @see $material-pie-chart
51
+ $indigo-pie-chart: $material-pie-chart;
@@ -0,0 +1,115 @@
1
+ /* stylelint-disable max-line-length */
2
+ ////
3
+ /// @group schemas
4
+ /// @access public
5
+ /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
6
+ ////
7
+
8
+ /// Generates a material base shape chart schema.
9
+ /// @type {Map}
10
+ /// @property {List} margin [null] - Sets the margin (top, right, bottom, left) of the chart content.
11
+ /// @property {Color} title-alignment [null] - Sets horizontal alignment which determines the title position, relative to the left and right edges of the control.
12
+ /// @property {Color} title-text-color [null] - Sets the color of the chart title.
13
+ /// @property {List} title-margin [null] - Sets the margin (top, right, bottom, left) of the chart title.
14
+ /// @property {String} subtitle-alignment [null] - Sets horizontal alignment which determines the subtitle position, relative to the left and right edges of the control.
15
+ /// @property {Color} subtitle-text-color [null] - Sets the color of the chart subtitle.
16
+ /// @property {List} subtitle-margin [null] - Sets the margins (top, right, bottom, left) of the chart subtitle.
17
+ /// @property {List} brushes [series] - Defines the palette from which automatically assigned series colors are selected.
18
+ /// @property {List} marker-brushes [series] - Sets the palette of brushes used for rendering fill area of data point markers.
19
+ /// @property {List} outlines [series] - Sets the palette of brushes to use for outlines on the chart series.
20
+ /// @property {List} marker-outlines [series] - Sets the palette of brushes used for rendering outlines of data point markers.
21
+ ///
22
+ /// @property {Number} thickness [null] - Sets the thickness for all series in this chart.
23
+ /// @property {List} trend-line-brushes [series] - Sets the palette of brushes to used for coloring trend lines in this chart.
24
+ /// @property {Number} trend-line-thickness [null] - Sets the thickness of the trend lines in this chart. This property applies only to these chart types: point, line, spline, and bubble.
25
+ /// @property {List} x-axis-label-margin [null] - Sets the margin of labels on the X-axis.
26
+ /// @property {Color} x-axis-label-text-color [null] - Sets color of labels on the X-axis.
27
+ /// @property {String} x-axis-label-vertical-alignment [null] - Sets Vertical alignment of X-axis labels.
28
+ /// @property {Color} x-axis-major-stroke [null] - Sets the color to apply to major gridlines along the X-axis.
29
+ /// @property {Number} x-axis-major-stroke-thickness [null] - Sets the thickness to apply to major gridlines along the X-axis.
30
+ /// @property {Color} x-axis-minor-stroke [null] - Sets the color to apply to minor gridlines along the X-axis.
31
+ /// @property {Number} x-axis-minor-stroke-thickness [null] - Sets the thickness to apply to minor gridlines along the X-axis.
32
+ /// @property {Color} x-axis-strip [null] - Sets the color to apply to stripes along the X-axis.
33
+ /// @property {Color} x-axis-stroke [null] - Sets the color to apply to the X-axis line.
34
+ /// @property {Number} x-axis-stroke-thickness [null] - Sets the thickness to apply to the X-axis line.
35
+ /// @property {String} x-axis-title-alignment [null] - Sets Horizontal alignment of the X-axis title.
36
+ /// @property {Color} x-axis-title-color [null] - Sets color of title on the X-axis.
37
+ /// @property {List} x-axis-title-margin [null] - Sets the margin around the title on the X-axis.
38
+ /// @property {List} y-axis-label-margin [null] - Sets the margin of labels on the Y-axis.
39
+ /// @property {Color} y-axis-label-text-color [null] - Sets color of labels on the Y-axis.
40
+ /// @property {String} y-axis-label-vertical-alignment [null] - Sets Vertical alignment of Y-axis labels.
41
+ /// @property {Color} y-axis-major-stroke [null] - Sets the color to apply to major gridlines along the Y-axis.
42
+ /// @property {Number} y-axis-major-stroke-thickness [null] - Sets the thickness to apply to major gridlines along the Y-axis.
43
+ /// @property {Color} y-axis-minor-stroke [null] - Sets the color to apply to minor gridlines along the Y-axis.
44
+ /// @property {Number} y-axis-minor-stroke-thickness [null] - Sets the thickness to apply to minor gridlines along the Y-axis.
45
+ /// @property {Color} y-axis-strip [null] - Sets the color to apply to stripes along the Y-axis.
46
+ /// @property {Color} y-axis-stroke [null] - Sets the color to apply to the Y-axis line.
47
+ /// @property {Number} y-axis-stroke-thickness [null] - Sets the thickness to apply to the Y-axis line.
48
+ /// @property {String} y-axis-title-alignment [null] - Sets Horizontal alignment of the Y-axis title.
49
+ /// @property {Color} y-axis-title-color [null] - Sets color of title on the Y-axis.
50
+ /// @property {List} y-axis-title-margin [null] - Sets the margin around the title on the Y-axis.
51
+ /// @see $default-palette
52
+ $material-shape-chart: (
53
+ 'margin': null,
54
+ 'title-alignment': null,
55
+ 'title-text-color': (
56
+ color: ('gray', 900)
57
+ ),
58
+ 'title-margin': null,
59
+ 'subtitle-alignment': null,
60
+ 'subtitle-text-color': (
61
+ color: ('gray', 600)
62
+ ),
63
+ 'subtitle-margin': null,
64
+ 'brushes': series,
65
+ 'marker-brushes': series,
66
+ 'outlines': series,
67
+ 'marker-outlines': series,
68
+ 'thickness': null,
69
+ 'trend-line-brushes': series,
70
+ 'trend-line-thickness': null,
71
+ 'x-axis-label-margin': null,
72
+ 'x-axis-label-text-color': null,
73
+ 'x-axis-label-vertical-alignment': null,
74
+ 'x-axis-major-stroke': null,
75
+ 'x-axis-major-stroke-thickness': null,
76
+ 'x-axis-minor-stroke': null,
77
+ 'x-axis-minor-stroke-thickness': null,
78
+ 'x-axis-strip': null,
79
+ 'x-axis-stroke': null,
80
+ 'x-axis-stroke-thickness': null,
81
+ 'x-axis-title-alignment': null,
82
+ 'x-axis-title-color': null,
83
+ 'x-axis-title-margin': null,
84
+ 'y-axis-label-margin': null,
85
+ 'y-axis-label-text-color': null,
86
+ 'y-axis-label-vertical-alignment': null,
87
+ 'y-axis-major-stroke': null,
88
+ 'y-axis-major-stroke-thickness': null,
89
+ 'y-axis-minor-stroke': null,
90
+ 'y-axis-minor-stroke-thickness': null,
91
+ 'y-axis-strip': null,
92
+ 'y-axis-stroke': null,
93
+ 'y-axis-stroke-thickness': null,
94
+ 'y-axis-title-alignment': null,
95
+ 'y-axis-title-color': null,
96
+ 'y-axis-title-margin': null,
97
+ );
98
+
99
+ /// Generates a fluent shaep-chart schema.
100
+ /// @type {Map}
101
+ /// @requires {function} extend
102
+ /// @requires {Map} $material-shape-chart
103
+ $fluent-shape-chart: $material-shape-chart;
104
+
105
+ /// Generates a bootstrap shape-chart schema.
106
+ /// @type {Map}
107
+ /// @requires {function} extend
108
+ /// @requires {Map} $material-shape-chart
109
+ $bootstrap-shape-chart: $material-shape-chart;
110
+
111
+ /// Generates an indigo shape-chart schema.
112
+ /// @type {Map}
113
+ /// @requires {function} extend
114
+ /// @requires {Map} $material-shape-chart
115
+ $indigo-shape-chart: $material-shape-chart;
@@ -0,0 +1,71 @@
1
+ ////
2
+ /// @group schemas
3
+ /// @access public
4
+ /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
5
+ ////
6
+
7
+ /// Generates a material base sparkline schema.
8
+ /// @type {Map}
9
+ /// @prop {Color} brush [color: ('primary', 500)] - Sets the sparkline brush.
10
+ /// @prop {Number} line-thickness [null] - Sets the line thickness of the sparkline.
11
+ /// @prop {Color} marker-brush [null] - Sets the marker brush of the sparkline.
12
+ /// @prop {Color} marker-size [null] - Sets the marker size of the sparkline.
13
+ /// @prop {Color} first-marker-brush [null] - Sets the first marker brush of the sparkline.
14
+ /// @prop {Number} first-marker-size [null] - Sets the first marker size of the sparkline.
15
+ /// @prop {Color} last-marker-brush [null] - Sets the last marker brush of the sparkline.
16
+ /// @prop {Number} last-marker-size [null] - Sets the last marker size of the sparkline.
17
+ /// @prop {Color} low-marker-brush [null] - Sets the low marker brush of the sparkline.
18
+ /// @prop {Number} low-marker-size [null] - Sets the low marker size of the sparkline.
19
+ /// @prop {Color} high-marker-brush [null] - Sets the high marker brush of the sparkline.
20
+ /// @prop {Number} high-marker-size [null] - Sets the high marker size of the sparkline.
21
+ /// @prop {Color} negative-brush [null] - Sets the negative brush of the sparkline.
22
+ /// @prop {Color} negative-marker-brush [null] - Sets the negative marker brush of the sparkline.
23
+ /// @prop {Number} negative marker-size [null] - Sets the negative marker size of the sparkline.
24
+ /// @prop {Color} trend-line-brush [null] - Sets the trendline brush of the sparkline.
25
+ /// @prop {Color} trend-line-thickness [null] - Sets the thickness of the sparkline's trendline.
26
+ /// @prop {Color} horizontal-axis-brush [null] - Sets the horizontal axis line brush of the sparkline.
27
+ /// @prop {Color} vertical-axis-brush [null] - Sets the vertical axis line brush of the sparkline.
28
+ /// @prop {Color} normal-range-fill [null] - Sets the normal range brush of the sparkline.
29
+ /// @see $default-palette
30
+ $material-sparkline: (
31
+ 'brush': (
32
+ color: ('primary', 500)
33
+ ),
34
+ 'line-thickness': null,
35
+ 'marker-brush': null,
36
+ 'marker-size': null,
37
+ 'first-marker-brush': null,
38
+ 'first-marker-size': null,
39
+ 'last-marker-brush': null,
40
+ 'last-marker-size': null,
41
+ 'low-marker-brush': null,
42
+ 'low-marker-size': null,
43
+ 'high-marker-brush': null,
44
+ 'high-marker-size': null,
45
+ 'negative-brush': null,
46
+ 'negative-marker-brush': null,
47
+ 'negative-marker-size': null,
48
+ 'trend-line-brush': null,
49
+ 'trend-line-thickness': null,
50
+ 'horizontal-axis-brush': null,
51
+ 'vertical-axis-brush': null,
52
+ 'normal-range-fill': null,
53
+ );
54
+
55
+ /// Generates a fluent sparkline schema.
56
+ /// @type {Map}
57
+ /// @requires {function} extend
58
+ /// @requires {Map} $material-sparkline
59
+ $fluent-sparkline: $material-sparkline;
60
+
61
+ /// Generates a bootstrap sparkline schema.
62
+ /// @type {Map}
63
+ /// @requires {function} extend
64
+ /// @requires {Map} $material-sparkline
65
+ $bootstrap-sparkline: $material-sparkline;
66
+
67
+ /// Generates an indigo sparkline schema.
68
+ /// @type {Map}
69
+ /// @requires {function} extend
70
+ /// @requires {Map} $material-sparkline
71
+ $indigo-sparkline: $material-sparkline;
@@ -3,6 +3,7 @@
3
3
  @use 'sass:list';
4
4
  @use '../utils/meta' as *;
5
5
  @use './types';
6
+ @use '../themes/mixins' as *;
6
7
 
7
8
  ////
8
9
  /// @group Typography
@@ -73,6 +74,31 @@
73
74
  }
74
75
  }
75
76
 
77
+ /// Transforms a type style map into a font style rule assigned to a css variable.
78
+ /// @param {String} $name - The custom CSS variable name.
79
+ /// @param {Map} $type-style - A type style map reference as produces by type-style.
80
+ /// @param {String} $prefix [null] - Optional prefix.
81
+ /// @example scss Assign the `h1` styles to custom CSS property using the CSS font shorthand syntax.
82
+ /// $h1-style: type-scale-category($type-scale, 'h1');
83
+ /// @include font-var('h1-font', $h1-style);
84
+ @mixin font-var($name, $type-style, $prefix: null) {
85
+ $ff: var(--ig-font-family);
86
+ $fz: map.get($type-style, 'font-size');
87
+ $fw: map.get($type-style, 'font-weight');
88
+
89
+ // unused for now
90
+ $fs: map.get($type-style, 'font-style');
91
+ $lh: map.get($type-style, 'line-height');
92
+ $tt: map.get($type-style, 'text-transform');
93
+ $ls: map.get($type-style, 'letter-spacing');
94
+ $mt: map.get($type-style, 'margin-top');
95
+ $mb: map.get($type-style, 'margin-bottom');
96
+
97
+ @include css-vars-from-theme((
98
+ #{$name}: #{$fw $fz $ff},
99
+ ), $prefix);
100
+ }
101
+
76
102
  /// Adds typography styles for h1-h6, paragraph and creates custom typography class selectors.
77
103
  /// The produced styles are based on the passed typeface and type scale.
78
104
  /// @access public
@@ -0,0 +1,19 @@
1
+ @use '../../themes/charts/category-chart-theme' as *;
2
+ @use '../../themes/charts/data-chart-theme' as *;
3
+ @use '../../themes/charts/financial-chart-theme' as *;
4
+ @use '../../themes/charts/funnel-chart-theme' as *;
5
+ @use '../../themes/charts/gauge-theme' as *;
6
+ @use '../../themes/charts/graph-theme' as *;
7
+ @use '../../themes/charts/pie-chart-theme' as *;
8
+ @use '../../themes/charts/shape-chart-theme' as *;
9
+
10
+ @mixin charts-typography($type-scale, $target: 'angular') {
11
+ @include category-chart-typography($type-scale: $type-scale, $target: $target);
12
+ @include data-chart-typography($type-scale: $type-scale, $target: $target);
13
+ @include financial-chart-typography($type-scale: $type-scale, $target: $target);
14
+ @include funnel-chart-typography($type-scale: $type-scale, $target: $target);
15
+ @include gauge-typography($target: $target);
16
+ @include graph-typography($target: $target);
17
+ @include pie-chart-typography($type-scale: $type-scale, $target: $target);
18
+ @include shape-chart-typography($type-scale: $type-scale, $target: $target);
19
+ }