igniteui-theming 5.0.0-beta.5 → 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.
|
|
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
|
-
|
|
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.
|
package/sass/color/_mixins.scss
CHANGED
|
@@ -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-#{$
|
|
21
|
-
--ig-#{$
|
|
22
|
-
--ig-#{$
|
|
23
|
-
--ig-#{$
|
|
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-#{$
|
|
29
|
-
--ig-#{$
|
|
30
|
-
--ig-#{$
|
|
31
|
-
--ig-#{$
|
|
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-#{$
|
|
48
|
+
--ig-#{$_color}-#{$variant}: #{$value};
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
@if not($_hsl) and not($_contrast) {
|
|
50
|
-
--ig-#{$
|
|
52
|
+
--ig-#{$_color}-#{$shade}: #{$value};
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
@if $_contrast and $contrast {
|
|
54
|
-
--ig-#{$
|
|
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(#
|
|
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(#
|
|
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
|
-
|
|
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(#
|
|
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(#
|
|
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
|
-
|
|
230
|
+
_meta: (
|
|
231
|
+
variant: 'indigo',
|
|
232
|
+
),
|
|
231
233
|
);
|