File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
projects/igniteui-angular/src/lib/core/styles/themes/generators Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
@use ' sass:list' ;
2
+ @use ' sass:map' ;
2
3
@use ' sass:meta' ;
3
4
@use ' sass:string' ;
4
5
@use ' ../schemas' as * ;
72
73
// Stores all excluded component styles
73
74
$excluded : ();
74
75
$scope : if (is-root (), ' :root' , ' &' );
76
+ $theme : map .get ($schema , ' _meta' , ' theme' );
77
+ $variant : map .get ($schema , ' _meta' , ' variant' );
75
78
76
79
#{$scope } {
77
80
--ig-size-small : 1 ;
111
114
}
112
115
}
113
116
117
+ @if $theme {
118
+ #{$scope } {
119
+ --ig-theme : #{if ($theme == ' indigo-design' , ' indigo' , #{$theme } )} ;
120
+ --ig-theme-variant : #{$variant } ;
121
+ }
122
+ }
123
+
114
124
@if list .length ($exclude ) > 0 {
115
125
$excluded : is-component ($exclude );
116
126
}
Original file line number Diff line number Diff line change 285
285
< igx-hint > Helper text</ igx-hint >
286
286
</ igx-input-group >
287
287
288
- < igx-input-group [type] ="inputType " theme ="indigo-design ">
288
+ < igx-input-group [type] ="inputType " theme ="indigo ">
289
289
< label igxLabel > Always Indigo</ label >
290
290
< igx-prefix >
291
291
http://
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ $typeface: $material-typeface;
7
7
$type-scale : $material-type-scale ;
8
8
$variant : map .get ($schema , ' _meta' , ' variant' );
9
9
10
- :root {
11
- --ig-theme : material;
12
- }
13
-
14
10
$background-color : var (--ig-gray-900-contrast );
15
11
$foreground-color : hsl (var (--ig-gray-900 ));
16
12
You can’t perform that action at this time.
0 commit comments