igniteui-theming 5.0.0-beta.4 → 5.0.0-beta.6

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.
@@ -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":"#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":{"100":"to-hsl(#ffb0b7)","200":"to-hsl(#fc7f8a)","300":"to-hsl(#ec5461)","400":"to-hsl(#dd3544)","500":"to-hsl(#cf1a2b)","600":"to-hsl(#c31223)","700":"to-hsl(#b90415)","800":"to-hsl(#ae0111)","900":"to-hsl(#9f000f)","primary":"( 50: to-hsl(#c5cdff)","50-contrast":"black","100-contrast":"black","200-contrast":"black","300-contrast":"black","400-contrast":"black","500-contrast":"white","600-contrast":"white","700-contrast":"white","800-contrast":"white","900-contrast":"white","A100":"to-hsl(#c31223)","A100-contrast":"white","A200":"to-hsl(#b90415)","A200-contrast":"white","A400":"to-hsl(#ae0111)","A400-contrast":"white","A700":"to-hsl(#9f000f)","A700-contrast":"white","secondary":"( 50: to-hsl(#c5cdff)","gray":"( 50: to-hsl(#24252c)","info":"( 50: to-hsl(#f1c3ff)","success":"( 50: to-hsl(#edf3e7)","warn":"( 50: to-hsl(#fed7b7)","error":"( 50: to-hsl(#ffebf0)","surface":"( 500: to-hsl(#1e1e1e)"},"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":{"100":"to-hsl(#ffb0b7)","200":"to-hsl(#fc7f8a)","300":"to-hsl(#ec5461)","400":"to-hsl(#dd3544)","500":"to-hsl(#cf1a2b)","600":"to-hsl(#c31223)","700":"to-hsl(#b90415)","800":"to-hsl(#ae0111)","900":"to-hsl(#9f000f)","primary":"( 50: to-hsl(#c5cdff)","50-contrast":"black","100-contrast":"black","200-contrast":"black","300-contrast":"black","400-contrast":"black","500-contrast":"black","600-contrast":"white","700-contrast":"white","800-contrast":"white","900-contrast":"white","A100":"to-hsl(#c31223)","A100-contrast":"white","A200":"to-hsl(#b90415)","A200-contrast":"white","A400":"to-hsl(#ae0111)","A400-contrast":"white","A700":"to-hsl(#9f000f)","A700-contrast":"white","secondary":"( 50: to-hsl(#c5cdff)","gray":"( 50: to-hsl(#fcfcfd)","info":"( 50: to-hsl(#f1c3ff)","success":"( 50: to-hsl(#edf3e7)","warn":"( 50: to-hsl(#fed7b7)","error":"( 50: to-hsl(#ffebf0)","surface":"( 500: to-hsl(#f8f8fa)"},"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":{"100":"to-hsl(#ffb0b7)","200":"to-hsl(#fc7f8a)","300":"to-hsl(#ec5461)","400":"to-hsl(#dd3544)","500":"to-hsl(#cf1a2b)","600":"to-hsl(#c31223)","700":"to-hsl(#b90415)","800":"to-hsl(#ae0111)","900":"to-hsl(#9f000f)","primary":"( 50: to-hsl(#c5cdff)","50-contrast":"black","100-contrast":"black","200-contrast":"black","300-contrast":"black","400-contrast":"black","500-contrast":"white","600-contrast":"white","700-contrast":"white","800-contrast":"white","900-contrast":"white","A100":"to-hsl(#c31223)","A100-contrast":"white","A200":"to-hsl(#b90415)","A200-contrast":"white","A400":"to-hsl(#ae0111)","A400-contrast":"white","A700":"to-hsl(#9f000f)","A700-contrast":"white","secondary":"( 50: to-hsl(#c5cdff)","gray":"( 50: to-hsl(#24252c)","info":"( 50: to-hsl(#f1c3ff)","success":"( 50: to-hsl(#edf3e7)","warn":"( 50: to-hsl(#fed7b7)","error":"( 50: to-hsl(#ffebf0)","surface":"( 500: to-hsl(#1e1e1e)","_meta":"( variant: 'indigo', )"},"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":{"100":"to-hsl(#ffb0b7)","200":"to-hsl(#fc7f8a)","300":"to-hsl(#ec5461)","400":"to-hsl(#dd3544)","500":"to-hsl(#cf1a2b)","600":"to-hsl(#c31223)","700":"to-hsl(#b90415)","800":"to-hsl(#ae0111)","900":"to-hsl(#9f000f)","primary":"( 50: to-hsl(#c5cdff)","50-contrast":"black","100-contrast":"black","200-contrast":"black","300-contrast":"black","400-contrast":"black","500-contrast":"black","600-contrast":"white","700-contrast":"white","800-contrast":"white","900-contrast":"white","A100":"to-hsl(#c31223)","A100-contrast":"white","A200":"to-hsl(#b90415)","A200-contrast":"white","A400":"to-hsl(#ae0111)","A400-contrast":"white","A700":"to-hsl(#9f000f)","A700-contrast":"white","secondary":"( 50: to-hsl(#c5cdff)","gray":"( 50: to-hsl(#fcfcfd)","info":"( 50: to-hsl(#f1c3ff)","success":"( 50: to-hsl(#edf3e7)","warn":"( 50: to-hsl(#fed7b7)","error":"( 50: to-hsl(#ffebf0)","surface":"( 500: to-hsl(#f8f8fa)","_meta":"( variant: 'indigo', )"},"light-material-palette":{"primary":"#09f","secondary":"#e41c77","surface":"white","info":"#1377d5","success":"#4eb862","warn":"#faa419","error":"#ff134a"}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "5.0.0-beta.4",
3
+ "version": "5.0.0-beta.6",
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": {
@@ -185,7 +185,13 @@ $_enhanced-accessibility: false;
185
185
  @return if($contrast, $_mix-alpha, $_hsl-alpha);
186
186
  }
187
187
 
188
- @return rgba(map.get($c, $variant), $alpha: $_alpha);
188
+ $_shade: map.get($c, $variant);
189
+
190
+ @if meta.type-of($_shade) == 'list' and list.length($_shade) == 3 {
191
+ $_shade: hsl($_shade...);
192
+ }
193
+
194
+ @return rgba($_shade, $alpha: $_alpha);
189
195
  }
190
196
 
191
197
  /// Retrieves a contrast text color for a given color variant from a color palette.
@@ -15,20 +15,21 @@
15
15
  @mixin _base($color, $shade, $value) {
16
16
  @if $shade == 500 {
17
17
  $_type: meta.type-of($value);
18
+ $_color: '' + $color;
18
19
 
19
20
  @if $_type == 'color' {
20
- --ig-#{$color}-h: #{math.round(color.hue($value))};
21
- --ig-#{$color}-s: #{math.round(color.saturation($value))};
22
- --ig-#{$color}-l: #{math.round(color.lightness($value))};
23
- --ig-#{$color}-a: #{color.alpha($value)};
21
+ --ig-#{$_color}-h: #{math.round(color.hue($value))};
22
+ --ig-#{$_color}-s: #{math.round(color.saturation($value))};
23
+ --ig-#{$_color}-l: #{math.round(color.lightness($value))};
24
+ --ig-#{$_color}-a: #{color.alpha($value)};
24
25
  }
25
26
 
26
27
  // Cover handmade palettes with hsl values for base color
27
28
  @if $_type == 'list' and list.length($value) == 3 {
28
- --ig-#{$color}-h: #{list.nth($value, 1)};
29
- --ig-#{$color}-s: #{list.nth($value, 2)};
30
- --ig-#{$color}-l: #{list.nth($value, 3)};
31
- --ig-#{$color}-a: 1;
29
+ --ig-#{$_color}-h: #{list.nth($value, 1)};
30
+ --ig-#{$_color}-s: #{list.nth($value, 2)};
31
+ --ig-#{$_color}-l: #{list.nth($value, 3)};
32
+ --ig-#{$_color}-a: 1;
32
33
  }
33
34
  }
34
35
  }
@@ -39,19 +40,20 @@
39
40
  $_shade: meta.type-of($shade) == 'string';
40
41
  $_hsl: if($_shade, string.index($shade, 'hsl'), false);
41
42
  $_contrast: if($_shade, string.index($shade, 'contrast'), false);
43
+ $_color: '' + $color;
42
44
 
43
45
  @if $_hsl {
44
46
  $variant: string.slice($shade, 1, string.index($shade, '-hsl') - 1);
45
47
 
46
- --ig-#{$color}-#{$variant}: #{$value};
48
+ --ig-#{$_color}-#{$variant}: #{$value};
47
49
  }
48
50
 
49
51
  @if not($_hsl) and not($_contrast) {
50
- --ig-#{$color}-#{$shade}: #{$value};
52
+ --ig-#{$_color}-#{$shade}: #{$value};
51
53
  }
52
54
 
53
55
  @if $_contrast and $contrast {
54
- --ig-#{$color}-#{$shade}: #{$value};
56
+ --ig-#{$_color}-#{$shade}: #{$value};
55
57
  }
56
58
  }
57
59
 
@@ -30,7 +30,7 @@ $palette: (
30
30
  '200-contrast': black,
31
31
  300: to-hsl(#7385f4),
32
32
  '300-contrast': black,
33
- 400: to-hsl(#5c6edb),
33
+ 400: to-hsl(#5468d9),
34
34
  '400-contrast': black,
35
35
  500: to-hsl(#3f51b5),
36
36
  '500-contrast': white,
@@ -60,7 +60,7 @@ $palette: (
60
60
  '200-contrast': black,
61
61
  300: to-hsl(#7385f4),
62
62
  '300-contrast': black,
63
- 400: to-hsl(#5c6edb),
63
+ 400: to-hsl(#5468d9),
64
64
  '400-contrast': black,
65
65
  500: to-hsl(#3f51b5),
66
66
  '500-contrast': white,
@@ -227,5 +227,7 @@ $palette: (
227
227
  500: to-hsl(#1e1e1e),
228
228
  '500-contrast': white,
229
229
  ),
230
- variant: 'indigo',
230
+ _meta: (
231
+ variant: 'indigo',
232
+ ),
231
233
  );
@@ -30,7 +30,7 @@ $palette: (
30
30
  '200-contrast': black,
31
31
  300: to-hsl(#7385f4),
32
32
  '300-contrast': black,
33
- 400: to-hsl(#5c6edb),
33
+ 400: to-hsl(#5468d9),
34
34
  '400-contrast': black,
35
35
  500: to-hsl(#3f51b5),
36
36
  '500-contrast': white,
@@ -60,7 +60,7 @@ $palette: (
60
60
  '200-contrast': black,
61
61
  300: to-hsl(#7385f4),
62
62
  '300-contrast': black,
63
- 400: to-hsl(#5c6edb),
63
+ 400: to-hsl(#5468d9),
64
64
  '400-contrast': black,
65
65
  500: to-hsl(#3f51b5),
66
66
  '500-contrast': white,
@@ -227,5 +227,7 @@ $palette: (
227
227
  500: to-hsl(#f8f8fa),
228
228
  '500-contrast': black,
229
229
  ),
230
- variant: 'indigo',
230
+ _meta: (
231
+ variant: 'indigo',
232
+ ),
231
233
  );
@@ -19,9 +19,9 @@ $dark-fluent-banner: $fluent-banner;
19
19
 
20
20
  /// Generates a dark bootstrap banner schema.
21
21
  /// @type {Map}
22
- /// @prop {Map} banner-background [color: ('surface')] - The background color used banner background.
23
- /// @prop {Map} banner-message-color [color: ('gray', 600)] - The color used for banner label.
24
- /// @prop {Map} banner-illustration-color [color: ('gray', 600)] - The color used banner illustration.
22
+ /// @prop {Map} banner-background [color: ('surface')] - The color used for the banner background.
23
+ /// @prop {Map} banner-message-color [color: ('gray', 600)] - The color used for the banner label.
24
+ /// @prop {Map} banner-illustration-color [color: ('gray', 600)] - The color used for the banner illustration.
25
25
  /// @requires $bootstrap-banner
26
26
  $dark-bootstrap-banner: extend(
27
27
  $bootstrap-banner,
@@ -50,5 +50,24 @@ $dark-bootstrap-banner: extend(
50
50
 
51
51
  /// Generates a dark indigo banner schema.
52
52
  /// @type {Map}
53
+ /// @prop {Map} banner-background [color: ('gray', 50)] - The color used for the banner background.
54
+ /// @prop {Map} banner-border-color [color: ('gray', 100)] - The color used for the banner border.
53
55
  /// @requires $indigo-banner
54
- $dark-indigo-banner: $indigo-banner;
56
+ $dark-indigo-banner: extend(
57
+ $indigo-banner,
58
+ (
59
+ banner-background: (
60
+ color: (
61
+ 'gray',
62
+ 50,
63
+ ),
64
+ ),
65
+
66
+ banner-border-color: (
67
+ color: (
68
+ 'gray',
69
+ 100,
70
+ ),
71
+ ),
72
+ )
73
+ );
@@ -11,7 +11,13 @@ $default-elevation-snackbar: (
11
11
  );
12
12
 
13
13
  /// @type Map
14
- /// @prop {Number} elevation [10] - The elevation level, between 0-24, to be used in the snackbar.
14
+ /// @prop {Number} elevation [10] - The elevation level, between 0-24, to be used in the bootstrap snackbar.
15
15
  $bootstrap-elevation-snackbar: (
16
16
  elevation: 10,
17
17
  );
18
+
19
+ /// @type Map
20
+ /// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used in the indigo snackbar.
21
+ $indigo-elevation-snackbar: (
22
+ elevation: 0,
23
+ );
@@ -9,10 +9,10 @@
9
9
 
10
10
  /// Generates a light banner schema.
11
11
  /// @type {Map}
12
- /// @prop {Map} banner-background [color: 'surface']- The background color used banner background.
13
- /// @prop {Map} banner-message-color [contrast-color: 'surface']- The color used for banner label.
14
- /// @prop {Map} banner-border-color [color: ('gray', 400)] - The border color used banner border.
15
- /// @prop {Map} banner-illustration-color [contrast-color: 'surface'] - The color used banner illustration.
12
+ /// @prop {Map} banner-background [color: 'surface'] - The color used for the banner background.
13
+ /// @prop {Map} banner-message-color [contrast-color: 'surface'] - The color used for the banner label.
14
+ /// @prop {Map} banner-border-color [color: ('gray', 400)] - The color used for the banner border.
15
+ /// @prop {Map} banner-illustration-color [contrast-color: 'surface'] - The color used for the banner illustration.
16
16
  $light-banner: (
17
17
  banner-background: (
18
18
  color: 'surface',
@@ -46,9 +46,9 @@ $fluent-banner: $light-banner;
46
46
 
47
47
  /// Generates a bootstrap banner schema.
48
48
  /// @type {Map}
49
- /// @prop {Map} banner-background [contrast-color: ('gray', 900)] - The background color used banner background.
50
- /// @prop {Map} banner-message-color [color: ('gray', 800)] - The color used for banner label.
51
- /// @prop {Map} banner-illustration-color [color: ('gray', 800)] - The color used banner illustration.
49
+ /// @prop {Map} banner-background [contrast-color: ('gray', 900)] - The color used for the banner background.
50
+ /// @prop {Map} banner-message-color [color: ('gray', 800)] - The color used for the banner label.
51
+ /// @prop {Map} banner-illustration-color [color: ('gray', 800)] - The color used for the banner illustration.
52
52
  /// @requires {Map} $light-banner
53
53
  $bootstrap-banner: extend(
54
54
  $light-banner,
@@ -78,24 +78,36 @@ $bootstrap-banner: extend(
78
78
 
79
79
  /// Generates an indigo banner schema.
80
80
  /// @type {Map}
81
- /// @prop {Map} banner-message-color [color: ('gray', 900)]- The color used for banner label.
82
- /// @prop {Map} banner-illustration-color [color: ('gray', 600)] - The color used banner illustration.
83
- /// @requires {Map} $light-banner
84
- $indigo-banner: extend(
85
- $light-banner,
86
- (
87
- banner-message-color: (
88
- color: (
89
- 'gray',
90
- 900,
91
- ),
81
+ /// @prop {Map} banner-background [color: ('gray', 200)] - The color used for the banner background.
82
+ /// @prop {Map} banner-message-color [color: ('gray', 700)] - The color used for the banner label.
83
+ /// @prop {Map} banner-border-color [color: ('gray', 300)] - The color used for the banner border.
84
+ /// @prop {Map} banner-illustration-color [color: ('gray', 600)] - The color used for the banner illustration.
85
+ $indigo-banner: (
86
+ banner-background: (
87
+ color: (
88
+ 'gray',
89
+ 200,
92
90
  ),
91
+ ),
93
92
 
94
- banner-illustration-color: (
95
- color: (
96
- 'gray',
97
- 600,
98
- ),
93
+ banner-border-color: (
94
+ color: (
95
+ 'gray',
96
+ 300,
99
97
  ),
100
- )
98
+ ),
99
+
100
+ banner-message-color: (
101
+ color: (
102
+ 'gray',
103
+ 700,
104
+ ),
105
+ ),
106
+
107
+ banner-illustration-color: (
108
+ color: (
109
+ 'gray',
110
+ 600,
111
+ ),
112
+ ),
101
113
  );
@@ -108,31 +108,32 @@ $bootstrap-snackbar: extend(
108
108
 
109
109
  /// Generates an indigo snackbar schema.
110
110
  /// @type {Map}
111
- /// @prop {Map} background [color: ('gray', 700, .9)] - The background color used in the snackbar.
112
- /// @prop {Map} text-color [contrast-color: ('gray', 700)] - The text color used in the snackbar.
113
- /// @prop {Map} button-color [contrast-color: ('gray', 700)] - The button color used in the snackbar.
111
+ /// @prop {Map} background [color: ('gray', 200)] - The background color used in the snackbar.
112
+ /// @prop {Map} text-color [color: ('gray', 700)] - The text color used in the snackbar.
113
+ /// @prop {Map} button-color [color: ('gray', 700)] - The button color used in the snackbar.
114
114
  /// @prop {List} border-radius [(rem(6px), rem(0), rem(24px))] - The border radius used for snackbar.
115
115
  /// @requires $light-snackbar
116
+ /// @requires {Map} $indigo-elevation-snackbar
116
117
  $indigo-snackbar: extend(
117
118
  $light-snackbar,
119
+ $indigo-elevation-snackbar,
118
120
  (
119
121
  background: (
120
122
  color: (
121
123
  'gray',
122
- 700,
123
- 0.9,
124
+ 200,
124
125
  ),
125
126
  ),
126
127
 
127
128
  text-color: (
128
- contrast-color: (
129
+ color: (
129
130
  'gray',
130
131
  700,
131
132
  ),
132
133
  ),
133
134
 
134
135
  button-color: (
135
- contrast-color: (
136
+ color: (
136
137
  'gray',
137
138
  700,
138
139
  ),