Skip to content

Commit b2b8fbd

Browse files
committed
style(themes): Adding _meta property to all theme schemas.
- This will allow setting different colors overrides based on theme(material,fluent...) and variants(dark/light)
1 parent 96972e6 commit b2b8fbd

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

projects/igniteui-angular/src/lib/core/styles/themes/schemas/dark/_index.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ $dark-schema: (
198198
igx-tooltip: $dark-tooltip,
199199
igx-tree: $dark-tree,
200200
igx-watermark: $dark-watermark,
201+
_meta: (
202+
theme: 'material',
203+
variant: 'dark',
204+
),
201205
);
202206

203207
/// An alias of $dark-schema.
@@ -336,6 +340,10 @@ $dark-fluent-schema: (
336340
igx-tooltip: $dark-fluent-tooltip,
337341
igx-tree: $dark-fluent-tree,
338342
igx-watermark: $dark-fluent-watermark,
343+
_meta: (
344+
theme: 'fluent',
345+
variant: 'dark',
346+
),
339347
);
340348

341349
/// Used to create bootstrap component themes.
@@ -469,6 +477,10 @@ $dark-bootstrap-schema: (
469477
igx-tooltip: $dark-bootstrap-tooltip,
470478
igx-tree: $dark-bootstrap-tree,
471479
igx-watermark: $dark-bootstrap-watermark,
480+
_meta: (
481+
theme: 'bootstrap',
482+
variant: 'dark',
483+
),
472484
);
473485

474486
/// Used to create indigo component themes.
@@ -602,4 +614,8 @@ $dark-indigo-schema: (
602614
igx-tooltip: $dark-indigo-tooltip,
603615
igx-tree: $dark-indigo-tree,
604616
igx-watermark: $dark-indigo-watermark,
617+
_meta: (
618+
theme: 'indigo-desing',
619+
variant: 'dark',
620+
),
605621
);

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_index.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ $light-schema: (
198198
igx-tooltip: $light-tooltip,
199199
igx-tree: $light-tree,
200200
igx-watermark: $light-watermark,
201+
_meta: (
202+
theme: 'material',
203+
variant: 'light',
204+
),
201205
);
202206

203207
/// An alias of $light-schema.
@@ -273,6 +277,10 @@ $light-fluent-schema: (
273277
igx-tooltip: $fluent-tooltip,
274278
igx-tree: $fluent-tree,
275279
igx-watermark: $fluent-watermark,
280+
_meta: (
281+
theme: 'fluent',
282+
variant: 'light',
283+
),
276284
);
277285

278286
/// Used to create bootstrap component themes.
@@ -343,6 +351,10 @@ $light-bootstrap-schema: (
343351
igx-tooltip: $bootstrap-tooltip,
344352
igx-tree: $bootstrap-tree,
345353
igx-watermark: $bootstrap-watermark,
354+
_meta: (
355+
theme: 'bootstrap',
356+
variant: 'light',
357+
),
346358
);
347359

348360
/// Used to create indigo component themes.
@@ -413,5 +425,9 @@ $light-indigo-schema: (
413425
igx-tooltip: $indigo-tooltip,
414426
igx-tree: $indigo-tree,
415427
igx-watermark: $indigo-watermark,
428+
_meta: (
429+
theme: 'indigo-design',
430+
variant: 'light',
431+
),
416432
);
417433

0 commit comments

Comments
 (0)