diff --git a/en/components/accordion.md b/en/components/accordion.md
index c4e9aab700..4d4968cc5f 100644
--- a/en/components/accordion.md
+++ b/en/components/accordion.md
@@ -275,12 +275,13 @@ In order to take advantage of the functions exposed by the theming engine, we ha
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`expansion-panel-theme`]({environment:sassApiUrl}/index.html#function-expansion-panel-theme) and accepts an `$expanded-margin`, `$body-color` and `$header-focus-background` parameters.
+Following the simplest approach, we create a new theme that extends the [`expansion-panel-theme`]({environment:sassApiUrl}/index.html#function-expansion-panel-theme) and accepts a `$header-background`, `$body-color` and `$expanded-margin` parameters. The theme automatically assigns foreground colors, either black or white, based on which provides better contrast with the specified backgrounds.
+
```scss
$custom-panel-theme: expansion-panel-theme(
- $expanded-margin: 10px,
- $body-color: #282885,
- $header-focus-background: #efefef
+ $header-background: #011627,
+ $body-background: #f0ece7,
+ $expanded-margin: 10px
);
```
diff --git a/en/components/action-strip.md b/en/components/action-strip.md
index 570272c347..d70a7cca36 100644
--- a/en/components/action-strip.md
+++ b/en/components/action-strip.md
@@ -174,11 +174,9 @@ Next, we have to create a new theme that extends the `action-strip-theme` and pa
```scss
$custom-strip: action-strip-theme(
- $background: rgba(150, 133, 143, 0.4),
- $actions-background: rgba(109, 121, 147, 0.6),
- $icon-color: null,
- $delete-action: null,
- $actions-border-radius: 0,
+ $background: rgba(109, 121, 147, 0.2),
+ $actions-background: rgba(#011627, 0.9),
+ $actions-border-radius: 0
);
```
diff --git a/en/components/avatar.md b/en/components/avatar.md
index a69162efb9..dad836db10 100644
--- a/en/components/avatar.md
+++ b/en/components/avatar.md
@@ -150,13 +150,13 @@ To get started with styling the avatar, we need to import the `index` file, wher
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`avatar-theme`]({environment:sassApiUrl}/index.html#function-avatar-theme) and accepts the `$background`, `$color`, and the `$border-radius` parameters.
+Following the simplest approach, we create a new theme that extends the [`avatar-theme`]({environment:sassApiUrl}/index.html#function-avatar-theme) providing values for the `$background` and `$border-radius` parameters. The `$color` (or `$icon-color`) is automatically set to either black or white, depending on which offers better contrast with the specified background. Note that the `$border-radius` property only takes effect when the avatar's `shape` is set to `rounded`.
Given the following markup:
```html
-
+
```
@@ -165,7 +165,6 @@ We create the following avatar theme:
```scss
$custom-avatar-theme: avatar-theme(
$background: #72da67,
- $color: #000000,
$border-radius: 16px
);
```
diff --git a/en/components/badge.md b/en/components/badge.md
index 1cc5ad8093..823aadc072 100644
--- a/en/components/badge.md
+++ b/en/components/badge.md
@@ -297,13 +297,12 @@ To get started with styling the badges, we need to import the `index` file, wher
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`badge-theme`]({environment:sassApiUrl}/index.html#function-badge-theme) and accepts some parameters that style the badge's items.
+Following the simplest approach, we create a new theme that extends the [`badge-theme`]({environment:sassApiUrl}/index.html#function-badge-theme) and accepts some parameters that style the badge's items. When you set the `$background-color`, the `$icon-color` and `$text-color` are automatically assigned based on which offers better contrast—black or white. Note that the `$border-radius` property only takes effect when the badge's `shape` is set to `square`.
```scss
$custom-badge-theme: badge-theme(
- $border-radius: 15px,
- $icon-color: white,
- $text-color: black,
+ $background-color: #57a5cd,
+ $border-radius: 4px
);
```
diff --git a/en/components/banner.md b/en/components/banner.md
index bb21725e76..0ef9521de2 100644
--- a/en/components/banner.md
+++ b/en/components/banner.md
@@ -265,13 +265,11 @@ First, in order to use the functions exposed by the theme engine, we need to imp
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`banner-theme`]({environment:sassApiUrl}/index.html#function-banner-theme) and accepts the `$banner-message-color`, `$banner-background` and the `$banner-illustration-color` parameters.
+Following the simplest approach, we create a new theme that extends the [`banner-theme`]({environment:sassApiUrl}/index.html#function-banner-theme) and specifying just the `$banner-background`. Based on this value, the `$banner-message-color` and `$banner-illustration-color` are automatically set to black or white, depending on which provides better contrast with the background.
```scss
$custom-banner-theme: banner-theme(
- $banner-message-color: #151515,
- $banner-background: #dedede,
- $banner-illustration-color: #666666
+ $banner-background: #011627,
);
```
diff --git a/en/components/button-group.md b/en/components/button-group.md
index 26239b7292..5e0096f232 100644
--- a/en/components/button-group.md
+++ b/en/components/button-group.md
@@ -257,19 +257,11 @@ To get started with styling the button group, we need to import the `index` file
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`button-group-theme`]({environment:sassApiUrl}/index.html#function-button-group-theme) and accepts some of the parameters that style the button group's items in their different states.
+Following the simplest approach, we create a new theme that extends the [`button-group-theme`]({environment:sassApiUrl}/index.html#function-button-group-theme) and specifying just the `$item-background`. Based on this value, the theme will automatically compute appropriate state colors, contrast foregrounds, and borders for the button group. Of course, you're still free to override any of the theme parameters with custom values if needed.
```scss
$custom-button-group: button-group-theme(
- $item-text-color: #fdfdfd,
- $item-background: #2f4d6a,
- $item-hover-text-color: #fdfdfd,
- $item-hover-background: #1f3347,
- $item-selected-text-color: #fdfdfd,
- $item-selected-background: #1f3347,
- $item-selected-hover-background: #1f3347,
- $disabled-text-color: gray,
- $disabled-background-color: lightgray,
+ $item-background: #57a5cd,
);
```
diff --git a/en/components/button.md b/en/components/button.md
index d72d665cfd..cb713c9556 100644
--- a/en/components/button.md
+++ b/en/components/button.md
@@ -292,6 +292,32 @@ The last step is to pass the custom button theme in our application:
}
```
+You can also choose to style only buttons of a specific type - `flat`, `outlined`, `contained`, or `fab`.
+To do this, you can use the new type-specific theme functions: [`flat-button-theme`]({environment:sassApiUrl}/index.html#function-flat-button-theme), [`outlined-button-theme`]({environment:sassApiUrl}/index.html#function-outlined-button-theme), [`contained-button-theme`]({environment:sassApiUrl}/index.html#function-contained-button-theme), and [`fab-button-theme`]({environment:sassApiUrl}/index.html#function-fab-button-theme)
+
+For example, given the following markup:
+
+```html
+
+
+
+
+
+
+```
+
+If you want to style only the `contained` button, you can use the [`contained-button-theme`]({environment:sassApiUrl}/index.html#function-flat-button-theme) function:
+
+```scss
+$custom-contained-theme: contained-button-theme(
+ $background: #348ae0,
+);
+```
+
+With the new type-specific theme functions, styling buttons is now easier. For [`contained-button-theme`]({environment:sassApiUrl}/index.html#function-contained-button-theme) and [`fab-button-theme`]({environment:sassApiUrl}/index.html#function-fab-button-theme) functions (as shown in the example above), you only need to provide a color to the `$background` parameter. All other button state and text colors will then be automatically generated and applied based on that value. The text color is determined by the newly added [`adaptive-contrast`]({environment:sassApiUrl}/index.html#function-adaptive-contrast) function, which calculates whether black or white provides better contrast against the supplied background color.
+
+For [`flat-button-theme`]({environment:sassApiUrl}/index.html#function-flat-button-theme) and [`outlined-button-theme`]({environment:sassApiUrl}/index.html#function-outlined-button-theme) functions, the button state colors are also automatically generated and applied, but they are derived from the supplied `$foreground` parameter instead of `$background`.
+
### Demo
[!NOTE]
> In order to style any additional components that are used as part of the dialog window's content (such as the [`IgxButton`](button.md)), an additional theme should be created that is specific to the respective component and is placed under the dialog window's scope only (so it does not affect the rest of the application).
+```scss
+$custom-button: contained-button-theme(
+ $background: #ecaa53,
+ $foreground: #011627,
+);
+```
+
Since the dialog window uses the [`IgxOverlayService`](overlay.md), in order for our custom theme to reach down the dialog window that we want to style, we will provide a specific outlet where the dialog window will be placed in the DOM when it is visible.
```html
diff --git a/en/components/drop-down.md b/en/components/drop-down.md
index c84512a9b8..70860ff8cd 100644
--- a/en/components/drop-down.md
+++ b/en/components/drop-down.md
@@ -505,21 +505,14 @@ Using the [Ignite UI for Angular Theming](themes/index.md), we can greatly alter
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`drop-down-theme`]({environment:sassApiUrl}/index.html#function-drop-down-theme) and accepts some of the default theme's parameters.
+Following the simplest approach, we create a new theme that extends the [`drop-down-theme`]({environment:sassApiUrl}/index.html#function-drop-down-theme) and accepts some of the default theme's parameters. When you provide a certain background color, the theme automatically calculates the state colors and appropriate contrasting foregrounds. By setting the `$background` property, you'll get a fully styled dropdown.
```scss
$custom-drop-down-theme: drop-down-theme(
- $background-color: #fdfdfd,
$header-text-color: #345779,
$item-text-color: #2dabe8,
- $selected-item-background: #345779,
- $selected-item-text-color: #fdfdfd,
- $selected-hover-item-background: #345779,
- $selected-hover-item-text-color: #fdfdfd,
- $selected-focus-item-background: #345779,
- $selected-focus-item-text-color: #fdfdfd,
- $hover-item-background: rgba(0, 0, 0, 0.12),
$hover-item-text-color: #345779,
+ $selected-item-background: #345779,
);
```
diff --git a/en/components/expansion-panel.md b/en/components/expansion-panel.md
index d7ddb42c2e..53a1c58159 100644
--- a/en/components/expansion-panel.md
+++ b/en/components/expansion-panel.md
@@ -256,7 +256,7 @@ $custom-panel-theme: expansion-panel-theme(
);
```
-If we prefer instead of creating a palette, we can assign the colors directly to the expansion-panel-theme function as arguments.
+If we prefer instead of creating a palette, we can assign the colors directly to the expansion-panel-theme function as arguments. If the `title-color`, `icon-color`, or other foreground properties are not explicitly provided, they will be automatically assigned to either black or white - whichever offers better contrast with the background.
```scss
$custom-panel-theme: expansion-panel-theme(
diff --git a/en/components/icon-button.md b/en/components/icon-button.md
index f0130faffa..36db7681d7 100644
--- a/en/components/icon-button.md
+++ b/en/components/icon-button.md
@@ -167,6 +167,21 @@ Following the simplest approach, we use CSS variables to customize the appearanc
Take a look at the [`icon-button-theme`]({environment:sassApiUrl}/index.html#function-icon-button-theme) section for a complete list of available parameters for styling any type of icon button.
+You can also choose to style only buttons of a specific type - `flat`, `outlined` or `contained`.
+To do this, you can use the new type-specific theme functions: [`flat-icon-button-theme`]({environment:sassApiUrl}/index.html#function-flat-icon-button-theme), [`outlined-icon-button-theme`]({environment:sassApiUrl}/index.html#function-outlined-icon-button-theme) and [`contained-icon-button-theme`]({environment:sassApiUrl}/index.html#function-contained-icon-button-theme)
+
+Here’s an example of using the `contained-icon-button-theme` function to define a custom theme in SCSS:
+
+```scss
+@use "igniteui-angular/theming" as *;
+
+$custom-contained: contained-icon-button-theme(
+ $background: #ECAA53,
+);
+```
+
+This will generate a fully themed `contained icon button`, including appropriate foreground and background colors for its various states like hover, focus, and active.
+
+>[!NOTE]
+>If your page includes multiple types of input groups — such as `box`, `border`, `line`, or `search` — it's best to scope your theme variables to the specific input group type.
+ For example:
+Use `.igx-input-group--box` when styling box-style inputs.
+Use `.igx-input-group--search` when targeting search inputs.
+This helps prevent style conflicts between different input types.
+For instance, setting a dark `$box-background` globally could cause the borders of border or line inputs to become invisible (usually appearing white).
+
## API References
diff --git a/en/components/linear-progress.md b/en/components/linear-progress.md
index bd2d9d4d83..804323a9ee 100644
--- a/en/components/linear-progress.md
+++ b/en/components/linear-progress.md
@@ -253,11 +253,10 @@ To get started with styling the linear progress bar, we need to import the `inde
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`progress-linear-theme`]({environment:sassApiUrl}/index.html#function-progress-linear-theme) and accepts the `$track-color`, `$fill-color-default` and `$text-color` parameters.
+Following the simplest approach, we create a new theme that extends the [`progress-linear-theme`]({environment:sassApiUrl}/index.html#function-progress-linear-theme) and override the `$fill-color-default` and `$text-color` parameters.
```scss
$custom-theme: progress-linear-theme(
- $track-color: #d3d3d3,
$fill-color-default: #ecaa53,
$text-color: #ecaa53,
);
diff --git a/en/components/list.md b/en/components/list.md
index cac6f35cf4..202e50fd45 100644
--- a/en/components/list.md
+++ b/en/components/list.md
@@ -618,11 +618,11 @@ Let's see how we can change the background of our list. First we need to import
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`list-theme`]({environment:sassApiUrl}/index.html#function-list-theme) and accepts the `$background` parameter.
+Following the simplest approach, we create a new theme that extends the [`list-theme`]({environment:sassApiUrl}/index.html#function-list-theme) and by passing only the `$background` parameter, the theme will automatically calculate the state colors and appropriate contrasting foregrounds. However, you can still manually define them if desired.
```scss
$my-list-theme: list-theme(
- $background: #0568ab
+ $background: #57a5cd
);
```
diff --git a/en/components/month-picker.md b/en/components/month-picker.md
index 03a372e152..ae4b3ce801 100644
--- a/en/components/month-picker.md
+++ b/en/components/month-picker.md
@@ -182,19 +182,13 @@ To get started with styling the month picker, we need to import the `index` file
// IMPORTANT: Prior to Ignite UI for Angular version 13 use:
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-The month picker uses the calendar's theme, so we have to create a new theme that extends the [`calendar-theme`]({environment:sassApiUrl}/index.html#function-calendar-theme) and use some of its parameters to style the month picker's items:
+The month picker uses the calendar's theme, so we have to create a new theme that extends the [`calendar-theme`]({environment:sassApiUrl}/index.html#function-calendar-theme). To style the month picker's items, you can set the `$content-background` parameter. Optionally, you can also set `$header-background` if you want to override the rest of the properties.
+These two parameters act as the foundation for the theme and are used to automatically generate the appropriate background and foreground colors for all interaction states, such as hover, selected, and active.
```scss
$my-calendar-theme: calendar-theme(
$border-radius: 15px,
- $content-background: #011627,
- $picker-background: #011627,
- $ym-current-foreground: #ecaa53,
- $ym-hover-background: #ecaa53,
- $navigation-color: #ecaa53,
- $picker-hover-foreground: #d37b08,
- $navigation-hover-color: #d37b08,
- $picker-foreground: #ecaa53,
+ $content-background: #57a5cd,
);
```
diff --git a/en/components/navbar.md b/en/components/navbar.md
index d36b10cc5d..ab179554e5 100644
--- a/en/components/navbar.md
+++ b/en/components/navbar.md
@@ -280,14 +280,12 @@ To get started with styling the navbar, we need to import the `index` file, wher
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`navbar-theme`]({environment:sassApiUrl}/index.html#function-navbar-theme) and accepts the `$text-color`, `$background`, `$idle-icon-color` and the `$hover-icon-color` parameters.
+Following the simplest approach, we create a new theme that extends the [`navbar-theme`]({environment:sassApiUrl}/index.html#function-navbar-theme) and provide just the `$background` and `$idle-icon-color` parameters. The theme will automatically compute all of the necessary background and foreground colors for various interaction states. If need, you can also manually override specific properties for finer control over the appearance.
```scss
$custom-navbar-theme: navbar-theme(
- $text-color: #151515,
- $background: #dedede,
- $idle-icon-color: #151515,
- $hover-icon-color: #8c8c8c,
+ $background: #011627,
+ $idle-icon-color: #ecaa53,
);
```
diff --git a/en/components/query-builder.md b/en/components/query-builder.md
index 949ca35011..68108c0862 100644
--- a/en/components/query-builder.md
+++ b/en/components/query-builder.md
@@ -283,6 +283,7 @@ The Query Builder takes its background color from the its theme, using the `back
```scss
$custom-query-builder: query-builder-theme(
+ $schema: $dark-material-schema,
$background: #292826,
...
);
@@ -291,25 +292,24 @@ $custom-query-builder: query-builder-theme(
Since we have other components inside the Query Builder, such as buttons, chips, dropdowns and inputs, we need to create a separate theme for each one:
```scss
-$custom-button: button-theme(
+$custom-button: flat-button-theme(
$schema: $dark-material-schema,
- $background: #292826,
$foreground: #ffcd0f,
- ...
);
$custom-input-group: input-group-theme(
+ $schema: $dark-material-schema,
$focused-secondary-color: #ffcd0f
);
$custom-chip: chip-theme(
+ $schema: $dark-material-schema,
$background: #ffcd0f,
- $text-color: #292826
);
-$custom-icon-button: icon-button-theme(
- $background: #ffcd0f,
- $foreground: #292826
+$custom-icon-button: outlined-icon-button-theme(
+ $schema: $dark-material-schema,
+ $foreground: #ffcd0f,
);
```
diff --git a/en/components/radio-button.md b/en/components/radio-button.md
index 79245d1046..0a54092605 100644
--- a/en/components/radio-button.md
+++ b/en/components/radio-button.md
@@ -155,15 +155,12 @@ To get started with styling the radio buttons, we need to import the `index` fil
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`radio-theme`]({environment:sassApiUrl}/index.html#function-radio-theme) and accepts some of the default theme's parameters:
+Following the simplest approach, we create a new theme that extends the [`radio-theme`]({environment:sassApiUrl}/index.html#function-radio-theme). By providing just two key parameters — `$empty-color` and `$fill-color` — you can generate a fully styled radio button. These values serve as the foundation for the theme, by providing them it will automatically compute all the required foreground and background colors for various states (e.g., hover, selected, disabled).
```scss
$custom-radio-theme: radio-theme(
- $disabled-color: lightgray,
- $empty-color: #345779,
+ $empty-color: #345779,
$fill-color: #2dabe8,
- $fill-color-hover: #2dabe8,
- $fill-hover-border-color: #2dabe8,
);
```
diff --git a/en/components/select.md b/en/components/select.md
index 817865c147..0febdba362 100644
--- a/en/components/select.md
+++ b/en/components/select.md
@@ -369,12 +369,11 @@ To get started with styling the Select component button, we need to import the `
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`select-theme`]({environment:sassApiUrl}/index.html#function-select-theme) and accepts some of the default theme's parameters:
+Following the simplest approach, we create a new theme that extends the [`select-theme`]({environment:sassApiUrl}/index.html#function-select-theme) and provide only the `$toggle-button-background` parameter. The theme function will automatically calculate all corresponding background and foreground colors for the different states based on this single value.
```scss
$custom-select-theme: select-theme(
- $toggle-button-background: #2b2b2b,
- $toggle-button-background-focus: #808080,
+ $toggle-button-background: #57a5cd,
);
```
diff --git a/en/components/slider/slider.md b/en/components/slider/slider.md
index 8dd8b00735..1fabdcc114 100644
--- a/en/components/slider/slider.md
+++ b/en/components/slider/slider.md
@@ -490,23 +490,15 @@ To customize the Slider, you first need to import the `index` file, where all st
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Next, we have to create a new theme that extends the `slider-theme` and pass the parameters which we'd like to change:
+Next, we have to create a new theme that extends the `slider-theme` and pass the parameters which we'd like to change. By providing just the `$track-color` or `$thumb-color` parameter, the theme will automatically generate all related colors for the track and thumb, and their various interaction states.
+
+You can also override additional properties, such as tick colors and labels, for more precise control.
```scss
$custom-slider-theme: slider-theme(
- $track-color: #ff7400,
- $track-hover-color: #ff7400,
-
$thumb-color: #ff7400,
-
- $base-track-color: #ddd,
- $base-track-hover-color: #ccc,
-
$tick-label-color: #b246c2,
- $tick-label-color-tall: #ff7400,
-
- $tick-color: #b246c2,
- $tick-color-tall: #ff7400,
+ $tick-color: #b246c2
);
```
diff --git a/en/components/splitter.md b/en/components/splitter.md
index 174225968e..40caa9d71f 100644
--- a/en/components/splitter.md
+++ b/en/components/splitter.md
@@ -219,17 +219,15 @@ To get started with styling the **igxSplitter** component, you need to import th
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-You can change the default styles of the splitter by creating a new theme that extends the [`splitter-theme`]({environment:sassApiUrl}/index.html#function-splitter-theme).
+You can change the default styles of the splitter by creating a new theme that extends the [`splitter-theme`]({environment:sassApiUrl}/index.html#function-splitter-theme). By providing just the base parameters, the theme will automatically generate all necessary styles for the interaction states.
```scss
// In splitter-styling-sample.component.scss
-$custom-splitter-theme: splitter-theme(
+$splitter-theme: splitter-theme(
$bar-color: #011627,
$handle-color: #ecaa53,
$expander-color: #ecaa53,
- $border-radius: 0,
- $focus-color: #ecaa53,
$size: 4px
);
```
diff --git a/en/components/stepper.md b/en/components/stepper.md
index 93630e0357..f6a5d41db4 100644
--- a/en/components/stepper.md
+++ b/en/components/stepper.md
@@ -330,29 +330,15 @@ First, in order to use the functions exposed by the theme engine, we need to imp
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [stepper-theme]({environment:sassApiUrl}/index.html#function-stepper-theme) and pass the parameters, which we would like to change:
+Following the simplest approach, we create a new theme that extends the [stepper-theme]({environment:sassApiUrl}/index.html#function-stepper-theme) and provide just a few base parameters. The theme will automatically generate all required styles, including state-specific colors and accessible contrasting foregrounds. You can also override any of the available parameters if you want more control over the appearance.
```scss
-$custom-stepper-theme: stepper-theme(
- $indicator-background: #fff,
-
+$stepper-theme: stepper-theme(
+ $step-background: #351e65,
$current-indicator-background: #f6cd28,
- $current-indicator-outline: #351e65,
-
- $current-title-color: #351e65,
- $current-subtitle-color: #5f4691,
-
- $complete-indicator-background: #351e65,
- $complete-indicator-outline: #351e65,
-
- $complete-title-color: red,
- $complete-subtitle-color: #5f4691,
$border-radius-step-header: 16px,
$border-radius-indicator: 10px 4px 10px 4px,
-
- $step-separator-color: #f6cd28,
- $complete-step-separator-color: #351e65,
);
```
diff --git a/en/components/switch.md b/en/components/switch.md
index 32469675b0..63a870109e 100644
--- a/en/components/switch.md
+++ b/en/components/switch.md
@@ -140,12 +140,12 @@ To get started with styling the switch, we need to import the `index` file, wher
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Then, we create a new theme that extends the [`switch-theme`]({environment:sassApiUrl}/index.html#function-switch-theme) and use some of its parameters to style the switch's items:
+Then, we create a new theme that extends the [`switch-theme`]({environment:sassApiUrl}/index.html#function-switch-theme) and by providing just two parameters - `$thumb-off-color` and `$thumb-on-color` you can get a fully styled switch, as the theme generates all the rest of the necessary colors based on these two, you can of course override any of the other parameters for a customized look:
```scss
$custom-switch-theme: switch-theme(
+ $thumb-off-color: #7cadd5,
$thumb-on-color: #ecaa53,
- $track-on-color: #f0cb9c,
);
```
diff --git a/en/components/tabs.md b/en/components/tabs.md
index 640683b516..a0676c50ab 100644
--- a/en/components/tabs.md
+++ b/en/components/tabs.md
@@ -392,18 +392,14 @@ To get started with styling the tabs, we need to import the theming module, wher
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`tabs-theme`]({environment:sassApiUrl}/index.html#function-tabs-theme) and accepts various properties that allow us to style the tab groups.
+Following the simplest approach, we create a new theme that extends the [`tabs-theme`]({environment:sassApiUrl}/index.html#function-tabs-theme). By passing just a few base parameters—such as `$item-background` and `$item-active-color`—you can style your tabs with minimal effort. The theme will automatically generate all necessary background and foreground colors for the various interaction states.
+
+You can, of course, override any additional parameters to further fine-tune the appearance.
```scss
$dark-tabs: tabs-theme(
- $item-text-color: #f4d45c,
$item-background: #292826,
- $item-hover-background: #f4d45c,
- $item-hover-color: #292826,
- $item-active-color: #f4d45c,
- $item-active-icon-color: #f4d45c,
- $indicator-color: #f4d45c,
- $tab-ripple-color: #f4d45c
+ $item-active-color: #F4D45C,
);
```
diff --git a/en/components/time-picker.md b/en/components/time-picker.md
index dcf06713f2..c27decd5a9 100644
--- a/en/components/time-picker.md
+++ b/en/components/time-picker.md
@@ -388,8 +388,6 @@ $my-time-picker-theme: time-picker-theme(
$hover-text-color: #ecaa53,
$selected-text-color: #ecaa53,
$header-background: #ecaa53,
- $header-hour-text-color: #011627,
- $header-time-period-color: #011627,
$background-color: #011627
);
```
diff --git a/en/components/toast.md b/en/components/toast.md
index fba7116651..1b6259a070 100644
--- a/en/components/toast.md
+++ b/en/components/toast.md
@@ -187,12 +187,12 @@ To get started with styling the toast, we need to import the index file, where a
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`toast-theme`]({environment:sassApiUrl}/index.html#function-toast-theme) and accepts the `$background`, `$text-color` and `$border-radius` parameters.
+Following the simplest approach, we create a new theme that extends the [`toast-theme`]({environment:sassApiUrl}/index.html#function-toast-theme) and provide the `$background`, `$text-color` and `$border-radius` parameters.
```scss
$custom-toast-theme: toast-theme(
- $background: #dedede,
- $text-color: #151515,
+ $text-color: #ffcd0f,
+ $background: #292826,
$border-radius: 12px
);
```
diff --git a/en/components/tooltip.md b/en/components/tooltip.md
index 797a273272..9796e20867 100644
--- a/en/components/tooltip.md
+++ b/en/components/tooltip.md
@@ -292,7 +292,7 @@ To get started with styling the tooltip, we need to import the `index` file, whe
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [`tooltip-theme`]({environment:sassApiUrl}/index.html#function-tooltip-theme) and accepts the `$text-color`, `$background` and the `$border-radius` parameters.
+Following the simplest approach, we create a new theme that extends the [`tooltip-theme`]({environment:sassApiUrl}/index.html#function-tooltip-theme) and provide the `$text-color`, `$background` and the `$border-radius` parameters.
```scss
$dark-tooltip: tooltip-theme(
diff --git a/en/components/tree.md b/en/components/tree.md
index ed03d9ae88..e33ce9888b 100644
--- a/en/components/tree.md
+++ b/en/components/tree.md
@@ -339,13 +339,11 @@ Using the [Ignite UI for Angular Theming](themes/index.md), we can greatly alter
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-Following the simplest approach, we create a new theme that extends the [tree-theme]({environment:sassApiUrl}/index.html#function-tree-theme) and pass the parameters, which we would like to change:
+Following the simplest approach, we create a new theme that extends the [tree-theme]({environment:sassApiUrl}/index.html#function-tree-theme) and provide just the `$background` parameter, the theme will automatically calculate all the other necessary colors, of course you can override any of the other properties:
```scss
$custom-tree-theme: tree-theme(
- $background-selected: #ffe6cc,
- $background-active: #ecaa53,
- $background-active-selected: #ff8c1a
+ $background: #ecaa53,
);
```
diff --git a/jp/components/accordion.md b/jp/components/accordion.md
index f6373a719d..25ecde06e3 100644
--- a/jp/components/accordion.md
+++ b/jp/components/accordion.md
@@ -275,13 +275,13 @@ Ignite UI for Angular Accordion のキーボード ナビゲーションは、
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-最も簡単な方法は、[`expansion-panel-theme`]({environment:sassApiUrl}/index.html#function-expansion-panel-theme) を拡張し、`$expanded-margin`、`$body-color`、および `$header-focus-background` パラメーターを受け入れる新しいテーマを作成する方法です。
+最もシンプルな方法として、[`expansion-panel-theme`]({environment:sassApiUrl}/index.html#function-expansion-panel-theme) を拡張し、`$header-background`、`$body-color`、および `$expanded-margin` の各パラメーターを受け取る新しいテーマを作成します。このテーマは、指定された背景色に対してコントラストの高い前景色 (黒または白) を自動的に選択して割り当てます。
```scss
$custom-panel-theme: expansion-panel-theme(
- $expanded-margin: 10px,
- $body-color: #282885,
- $header-focus-background: #efefef
+ $header-background: #011627,
+ $body-background: #f0ece7,
+ $expanded-margin: 10px
);
```
diff --git a/jp/components/action-strip.md b/jp/components/action-strip.md
index 3370bf3f27..4af21a73cb 100644
--- a/jp/components/action-strip.md
+++ b/jp/components/action-strip.md
@@ -91,7 +91,7 @@ Ignite UI for Angular Action Strip モジュールまたはディレクティブ
```
-デフォルトでアクション ストリップは表示されますが、これは [`hidden`]({environment:angularApiUrl}/classes/igxactionstripcomponent.html#hidden) の @Input プロパティで設定できます。
+デフォルトでアクション ストリップは表示されませんが、これは [`hidden`]({environment:angularApiUrl}/classes/igxactionstripcomponent.html#hidden) の @Input プロパティで設定できます。
### メニューのルック アンド フィール
@@ -175,11 +175,9 @@ Ignite UI for Angular Action Strip モジュールまたはディレクティブ
```scss
$custom-strip: action-strip-theme(
- $background: rgba(150, 133, 143, 0.4),
- $actions-background: rgba(109, 121, 147, 0.6),
- $icon-color: null,
- $delete-action: null,
- $actions-border-radius: 0,
+ $background: rgba(109, 121, 147, 0.2),
+ $actions-background: rgba(#011627, 0.9),
+ $actions-border-radius: 0
);
```
diff --git a/jp/components/avatar.md b/jp/components/avatar.md
index bf617b3326..dd79ffc2c6 100644
--- a/jp/components/avatar.md
+++ b/jp/components/avatar.md
@@ -151,13 +151,13 @@ Avatar のスタイル設定を始めるには、すべてのテーマ関数と
// @import '~igniteui-angular/lib/core/styles/themes/index';
```
-最も簡単な方法は、[`avatar-theme`]({environment:sassApiUrl}/index.html#function-avatar-theme) を拡張する新しいテーマを作成し、`$background`、`$color` と `$border-radius` パラメーターを受け取る方法です。
+最もシンプルな方法として、[`avatar-theme`]({environment:sassApiUrl}/index.html#function-avatar-theme) を拡張し、`$background` および `$border-radius` パラメーターを指定して新しいテーマを作成します。`$color` (または `$icon-color`) は、指定された背景に対してよりコントラストの高い色 (黒または白) が自動的に設定されます。なお、`$border-radius` プロパティはアバターの `shape` が `rounded` に設定されている場合のみ適用されます。
次のマークアップを前提として:
```html