<link rel="stylesheet" href="/styles-2YLIEYNE.css">
This site uses cookies from Google to deliver its services and to analyze traffic.
More details

How to style slider

Styles from the material/slider package can be customized using the slider-overrides mixin. This mixin accepts a set of tokens that control how the components will look, either for the entire app or under a specific selector. For example:
@use '@angular/material' as mat;

// Customize the entire app. Change :root to your selector if you want to scope the styles.
:root {
  @include mat.slider-overrides((
    active-track-color: orange,
    disabled-active-track-color: red,
  ));
}
You can find the full list of supported mixins and tokens below.

Tokens supported by slider-overrides

NameTypeDefault value
active-track-shapeBase--mat-sys-corner-full
handle-shapeBase--mat-sys-corner-full
inactive-track-shapeBase--mat-sys-corner-full
with-tick-marks-container-shapeBase--mat-sys-corner-full
value-indicator-opacityBase1
value-indicator-paddingBase0
value-indicator-widthBase28px
value-indicator-heightBase28px
value-indicator-caret-displayBasenone
value-indicator-border-radiusBase50%,50%,50%,0
value-indicator-text-transformBaserotate(45deg)
value-indicator-container-transformBasetranslateX(-50%),rotate(-45deg)
active-track-heightBase4px
handle-heightBase20px
handle-widthBase20px
inactive-track-heightBase4px
with-overlap-handle-outline-widthBase1px
with-tick-marks-active-container-opacityBase0.38
with-tick-marks-container-sizeBase2px
with-tick-marks-inactive-container-opacityBase0.38
value-indicator-transform-originBase0,28px
active-track-colorColor--mat-sys-primary
disabled-active-track-colorColor--mat-sys-on-surface
disabled-handle-colorColor--mat-sys-on-surface
disabled-inactive-track-colorColor--mat-sys-on-surface
focus-handle-colorColor--mat-sys-primary
focus-state-layer-colorColorcolor-mix(in srgb, var(--mat-sys-primary) 20%, transparent)
handle-colorColor--mat-sys-primary
handle-elevationColor--mat-sys-level1
hover-handle-colorColor--mat-sys-primary
hover-state-layer-colorColorcolor-mix(in srgb, var(--mat-sys-primary) 5%, transparent)
inactive-track-colorColor--mat-sys-surface-variant
label-container-colorColor--mat-sys-primary
label-label-text-colorColor--mat-sys-on-primary
ripple-colorColor--mat-sys-primary
with-overlap-handle-outline-colorColor--mat-sys-on-primary
with-tick-marks-active-container-colorColor--mat-sys-on-primary
with-tick-marks-disabled-container-colorColor--mat-sys-on-surface
with-tick-marks-inactive-container-colorColor--mat-sys-on-surface-variant
label-label-text-fontTypography--mat-sys-label-medium-font
label-label-text-line-heightTypography--mat-sys-label-medium-line-height
label-label-text-sizeTypography--mat-sys-label-medium-size
label-label-text-trackingTypography--mat-sys-label-medium-tracking
label-label-text-weightTypography--mat-sys-label-medium-weight
Azure & Blue theme selected.