Skip to content

Commit 9861f2c

Browse files
authored
fix(themes): missing colors in theme presets (#12382)
1 parent 551d27e commit 9861f2c

File tree

3 files changed

+53
-5
lines changed

3 files changed

+53
-5
lines changed

projects/igniteui-angular/src/lib/core/styles/themes/generators/_bootstrap.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@
1616
$primary: color($palette, 'primary');
1717
$secondary: color($palette, 'secondary');
1818
$surface: color($palette, 'surface');
19+
$info: color($palette, 'info');
20+
$success: color($palette, 'success');
21+
$warn: color($palette, 'warn');
22+
$error: color($palette, 'error');
1923

2024
@include theme(
2125
$palette: palette(
2226
$primary,
2327
$secondary,
2428
$surface: if($surface != #f8f9fa, $surface, #f8f9fa),
25-
$gray: #212529
29+
$gray: #212529,
30+
$info: $info,
31+
$success: $success,
32+
$warn: $warn,
33+
$error: $error
2634
),
2735
$schema: $light-bootstrap-schema,
2836
$exclude: $exclude,
@@ -45,13 +53,21 @@
4553
$primary: color($palette, 'primary');
4654
$secondary: color($palette, 'secondary');
4755
$surface: color($palette, 'surface');
56+
$info: color($palette, 'info');
57+
$success: color($palette, 'success');
58+
$warn: color($palette, 'warn');
59+
$error: color($palette, 'error');
4860

4961
@include theme(
5062
$palette: palette(
5163
$primary,
5264
$secondary,
5365
$surface: if($surface != white, $surface, #222),
54-
$gray: #fff
66+
$gray: #fff,
67+
$info: $info,
68+
$success: $success,
69+
$warn: $warn,
70+
$error: $error
5571
),
5672
$schema: $dark-bootstrap-schema,
5773
$exclude: $exclude,

projects/igniteui-angular/src/lib/core/styles/themes/generators/_fluent.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@
1616
$primary: color($palette, 'primary');
1717
$secondary: color($palette, 'secondary');
1818
$surface: color($palette, 'surface');
19+
$info: color($palette, 'info');
20+
$success: color($palette, 'success');
21+
$warn: color($palette, 'warn');
22+
$error: color($palette, 'error');
1923

2024
@include theme(
2125
$palette: palette(
2226
$primary,
2327
$secondary,
2428
$surface: if($surface != #fff, $surface, #fff),
25-
$gray: #000
29+
$gray: #000,
30+
$info: $info,
31+
$success: $success,
32+
$warn: $warn,
33+
$error: $error
2634
),
2735
$schema: $light-fluent-schema,
2836
$exclude: $exclude,
@@ -45,13 +53,21 @@
4553
$primary: color($palette, 'primary');
4654
$secondary: color($palette, 'secondary');
4755
$surface: color($palette, 'surface');
56+
$info: color($palette, 'info');
57+
$success: color($palette, 'success');
58+
$warn: color($palette, 'warn');
59+
$error: color($palette, 'error');
4860

4961
@include theme(
5062
$palette: palette(
5163
$primary,
5264
$secondary,
5365
$surface: if($surface != #fff, $surface, #222),
54-
$gray: #fff
66+
$gray: #fff,
67+
$info: $info,
68+
$success: $success,
69+
$warn: $warn,
70+
$error: $error
5571
),
5672
$schema: $dark-fluent-schema,
5773
$exclude: $exclude,

projects/igniteui-angular/src/lib/core/styles/themes/generators/_indigo.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@
1616
$primary: color($palette, 'primary');
1717
$secondary: color($palette, 'secondary');
1818
$surface: color($palette, 'surface');
19+
$info: color($palette, 'info');
20+
$success: color($palette, 'success');
21+
$warn: color($palette, 'warn');
22+
$error: color($palette, 'error');
1923

2024
@include theme(
2125
$palette: palette(
2226
$primary,
2327
$secondary,
2428
$surface: if($surface != #fff, $surface, #fff),
2529
$gray: #060716,
30+
$info: $info,
31+
$success: $success,
32+
$warn: $warn,
33+
$error: $error
2634
),
2735
$schema: $light-indigo-schema,
2836
$exclude: $exclude,
@@ -45,13 +53,21 @@
4553
$primary: color($palette, 'primary');
4654
$secondary: color($palette, 'secondary');
4755
$surface: color($palette, 'surface');
56+
$info: color($palette, 'info');
57+
$success: color($palette, 'success');
58+
$warn: color($palette, 'warn');
59+
$error: color($palette, 'error');
4860

4961
@include theme(
5062
$palette: palette(
5163
$primary,
5264
$secondary,
5365
$surface: if($surface != white, $surface, #2a2b2f),
54-
$gray: #fff
66+
$gray: #fff,
67+
$info: $info,
68+
$success: $success,
69+
$warn: $warn,
70+
$error: $error
5571
),
5672
$schema: $dark-indigo-schema,
5773
$exclude: $exclude,

0 commit comments

Comments
 (0)