All Components

Customization

The following table lists the available variables for customizing the Material theme.

Variables

Common

Name Default value Description
$font-size 14px Base font size across all components.
$font-family Roboto, "Helvetica Neue", sans-serif Font family across all components.
$font-family-monospace Consolas, "Ubuntu Mono", "Lucida Console", "Courier New", monospace Font family for monospaced text. Used for styling the code.
$line-height (28 / 14) Line height used along with $font-size.
$border-radius 2px Border radius for all components.
$primary #43a047 The color that focuses the user attention.
Used for primary buttons and for elements of primary importance across the theme.
$primary-contrast #ffffff The color used along with the primary color denoted by $primary.
Used to provide contrast between the background and foreground colors.
$secondary #3193ee The secondary (accent) color of the theme.
$secondary-contrast #ffffff The color used along with the secondary color denoted by $secondary.
Used to provide contrast between the background and foreground colors.
$base-text rgb(0, 0, 0) The text color of the components' chrome area.
$base-bg #fff The background of the components' chrome area.
$base-gradient $base-bg, darken( $base-bg, 2% ) The gradient background of the components' chrome area.
$hovered-text #656565 The text color of hovered items.
$hovered-bg #ededed The background of hovered items.
$hovered-border rgba( black, .15 ) The border color of hovered items.
$hovered-gradient $hovered-bg, darken( $hovered-bg, 2% ) The gradient background of hovered items.
$selected-text $accent-contrast The text color of selected items.
$selected-bg $accent The background of selected items.
$selected-border rgba( black, .1 ) The border color of selected items.
$selected-gradient none The gradient background of selected items.
$error #f31700 The color for error messages and states.
$warning #ffc000 The color for warning messages and states.
$success #37b400 The color for success messages and states.
$info #0058e9 The color for informational messages and states.

Buttons

Name Default value Description
$button-text $base-text The text color of the buttons.
$button-bg $base-bg The background of the buttons.
$button-border $base-border The border color of the buttons.
$button-gradient $base-gradient The background gradient of the buttons.
$button-hovered-text $hovered-text The text color of hovered buttons.
$button-hovered-bg rgba(0, 0, 0, .12) The background of hovered buttons.
$button-hovered-border $hovered-border The border color of hovered buttons.
$button-hovered-gradient $hovered-gradient The background gradient of hovered buttons.
$button-pressed-text $button-text The text color of pressed buttons.
$button-pressed-bg $button-bg The background color of pressed buttons.
$button-pressed-border $button-border The border color of pressed buttons.
$button-pressed-gradient none The background gradient of pressed buttons.
$button-focused-shadow $button-shadow The shadow of focused buttons.

Charts

Name Default value Description
$series-a #499f50 The color of the first series.
$series-b #3193ee The clor of the second series.
$series-c #673ab1 The color of the third series.
$series-d #e52864 The color of the fourth series.
$series-e #fc5a33 The color of the fifth series.
$series-f #fdc139 The color of the sixth series.
$chart-major-lines rgba(0, 0, 0, .08) The color of the Chart grid lines (major).
$chart-minor-lines rgba(0, 0, 0, .04) The color of the Chart grid lines (minor).

Toolbar

Name Default value Description
$toolbar-padding-x $padding-x The horizontal padding of the container.
$toolbar-padding-y $padding-x The vertical padding of the container.

Mixins

In this article