Customization

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

Variables

Common

NameTypeDefault valueComputed value
$border-radius2px2px
Description
Border radius for all components.
$base-bg#f6f6f6#f6f6f6
Description
The background of the components' chrome area.
$base-text#656565#656565
Description
The text color of the components' chrome area.
$base-borderrgba( black, .08 )rgba( black, .08 )
Description
The border color of the components' chrome area.
$base-gradient$base-bg, darken( $base-bg, 2% )$base-bg, darken( $base-bg, 2% )
Description
The gradient background of the components' chrome area.
$hovered-bg#ededed#ededed
Description
The background of hovered items.
$hovered-text$base-text#656565
Description
The text color of hovered items.
$hovered-borderrgba( black, .15 )rgba( black, .15 )
Description
The border color of hovered items.
$hovered-gradient$hovered-bg, darken( $hovered-bg, 2% )$hovered-bg, darken( $hovered-bg, 2% )
Description
The gradient background of hovered items.
$selected-bg$primary#ff6358
Description
The background of selected items.
$selected-textcontrast-wcag( $selected-bg )contrast-wcag( $selected-bg )
Description
The text color of selected items.
$selected-borderrgba( black, .1 )rgba( black, .1 )
Description
The border color of selected items.
$selected-gradientnonenone
Description
The gradient background of selected items.
### Buttons
NameTypeDefault valueComputed value
$button-border-width1px1px
Description
Width of border around buttons
$button-border-radius$border-radius2px
Description
Border radius of buttons
$button-text$base-text#656565
Description
The text color of the buttons.
$button-bg$base-bg#f6f6f6
Description
The background of the buttons.
$button-border$base-borderrgba( black, .08 )
Description
The border color of the buttons.
$button-gradient$base-gradient$base-bg, darken( $base-bg, 2% )
Description
The background gradient of the buttons.
$button-hovered-text$hovered-text$base-text
Description
The text color of hovered buttons.
$button-hovered-bg$hovered-bg#ededed
Description
The background of hovered buttons.
$button-hovered-border$hovered-borderrgba( black, .15 )
Description
The border color of hovered buttons.
$button-hovered-gradient$hovered-gradient$hovered-bg, darken( $hovered-bg, 2% )
Description
The background gradient of hovered buttons.
$button-pressed-text$button-text#656565
Description
The text color of pressed buttons.
$button-pressed-bg$button-bg#f6f6f6
Description
The background color of pressed buttons.
$button-pressed-border$button-borderrgba( black, .08 )
Description
The border color of pressed buttons.
$button-pressed-gradientnonenone
Description
The background gradient of pressed buttons.
$button-focused-shadow0 3px 4px 0 rgba(0, 0, 0, .06)0 3px 4px 0 rgba(0, 0, 0, .06)
Description
The shadow of focused buttons.
### Charts
NameTypeDefault valueComputed value
$series-a#ff6358#ff6358
Description
The color of the first series.
$series-b#ffd246#ffd246
Description
The color of the second series.
$series-c#78d237#78d237
Description
The color of the third series.
$series-d#28b4c8#28b4c8
Description
The color of the fourth series.
$series-e#2d73f5#2d73f5
Description
The color of the fifth series.
$series-f#aa46be#aa46be
Description
The color of the sixth series.
$chart-major-linesrgba(0, 0, 0, .08)rgba(0, 0, 0, .08)
Description
The color of the Chart grid lines (major).
$chart-minor-linesrgba(0, 0, 0, .04)rgba(0, 0, 0, .04)
Description
The color of the Chart grid lines (minor).
### Color System
NameTypeDefault valueComputed value
$accentColor#ff6358#ff6358
Deprecated
Will be removed in v5. Use `$primary` variable instead.
Description
The color that focuses the user attention.
$accent-contrastColorcontrast-wcag( $accent )contrast-wcag( $accent )
Deprecated
Will be removed in v5. Use `$primary-contrast` variable instead.
Description
The color used along with the accent color denoted by $primary.
$primaryColor$accent#ff6358
Description
The color that focuses the user attention.
Used for primary buttons and for elements of primary importance across the theme.
$primary-contrastColor$accent-contrastcontrast-wcag( $accent )
Description
The color used along with the accent color denoted by $primary.
Used to provide contrast between the background and foreground colors.
$secondaryColor#f6f6f6#f6f6f6
Description
The secondary color of the theme.
$secondary-contrastColorcontrast-wcag( $secondary )contrast-wcag( $secondary )
Description
The color used along with the secondary color denoted by $secondary.
Used to provide contrast between the background and foreground colors.
$tertiaryColor#03a9f4#03a9f4
Description
The tertiary color of the theme.
$tertiary-contrastColorcontrast-wcag( $tertiary )contrast-wcag( $tertiary )
Description
The color used along with the tertiary color denoted by $tertiary.
Used to provide contrast between the background and foreground colors.
$infoColor#0058e9#0058e9
Description
The color for informational messages and states.
$successColor#37b400#37b400
Description
The color for success messages and states.
$warningColor#ffc000#ffc000
Description
The color for warning messages and states.
$errorColor#f31700#f31700
Description
The color for error messages and states.
$darkColor#404040#404040
Description
The dark color of the theme.
$lightColor#ebebeb#ebebeb
Description
The light color of the theme.
$inverseif( $is-dark-theme, $light, $dark )if( $is-dark-theme, $light, $dark )
Description
Inverse color of the theme. Depending on the theme luminance dark or lught, it will be light or dark
### Component
NameTypeDefault valueComputed value
$component-bg$body-bg
Description
Background color of a component.
Note: do not use this variable directly. Instead derive it as `$component-name-bg` e.g. `$grid-bg: $component-bg !defualt;`.
$component-text$body-text
Description
Text color of a component.
Note: do not use this variable directly. Instead derive it as `$component-name-text` e.g. `$grid-text: component-text !default;`.
$component-borderrgba( black, .08 )rgba( black, .08 )
Description
Border color of a component.
Note: do not use this variable directly. Instead derive it as `$component-name-border` e.g. `$grid-border: component-border !default;`.
$widget-bg$component-bg
Deprecated
Will be removed in v5. Use `$component-bg` variable instead.
Description
Background color of a component.
$widget-text$component-text
Deprecated
Will be removed in v5. Use `$component-text` variable instead.
Description
Text color of a component.
$widget-border$component-borderrgba( black, .08 )
Deprecated
Will be removed in v5. Use `$component-border` variable instead.
Description
Border color of a component.
### Grid
NameTypeDefault valueComputed value
$grid-bg$component-bg
Description
Background color of the grid component
$grid-text$component-text
Description
Text color of the grid component
$grid-border$component-borderrgba( black, .08 )
Description
Border color of the grid component
$grid-header-bg$header-bg
Description
Background color of grid header
$grid-header-text$header-text
Description
Text color of grid header
$grid-header-border$grid-borderrgba( black, .08 )
Description
Border color of grid header
$grid-header-gradient$header-gradient
Description
Background gradient of grid header
$grid-alt-bgrgba( contrast-wcag( $grid-bg ), .04 )rgba( contrast-wcag( $grid-bg ), .04 )
Description
Background color of alternating rows in grid
$grid-alt-textnullnull
Description
Text color of alternating rows in grid
$grid-alt-bordernullnull
Description
Border color of alternating rows in grid
$grid-hovered-bgdarken($grid-bg, 7%)darken($grid-bg, 7%)
Description
Background color of hovered rows in grid
$grid-hovered-textnullnull
Description
Text color of hovered rows in grid
$grid-hovered-bordernullnull
Description
Border color of hovered rows in grid
$grid-selected-bgrgba($selected-bg, .25)rgba($selected-bg, .25)
Description
Background color of selected rows in grid
$grid-selected-textnullnull
Description
Text color of selected rows in grid
$grid-selected-bordernullnull
Description
Border color of selected rows in grid
### Icons
NameTypeDefault valueComputed value
$icon-font-urlnullnull
Description
The URL to the icon font that will be used by the theme
The default value of `null` embeds the package font with a `data:` URL
### Tabstrip
NameTypeDefault valueComputed value
$button-padding-x$padding-x
Description
Horizontal padding of buttons
$button-padding-y$padding-y
Description
Vertical padding of buttons
$tabstrip-bgnullnull
Description
Background color of tabstrip component
$tabstrip-text$component-text
Description
Text color of tabstrip component
$tabstrip-border$component-borderrgba( black, .08 )
Description
Border color of tabstrip component
$tabstrip-item-padding-x$nav-item-padding-x
Description
Horizontal padding of tabs
$tabstrip-item-padding-y$nav-item-padding-y
Description
Vertical padding of tabs
$tabstrip-item-border-width1px1px
Description
Width of border around tabs
$tabstrip-item-border-radius$border-radius2px
Description
Border radius of tabs
$tabstrip-item-gap$nav-item-margin
Description
Spacing between tabs
$tabstrip-item-bgnullnull
Description
Background color of tabs
$tabstrip-item-text$link-text
Description
Text color of tabs
$tabstrip-item-bordernullnull
Description
Border color of tabs
$tabstrip-item-gradientnullnull
Description
Background gradient of tabs
$tabstrip-item-hovered-bgnullnull
Description
Background color of hovered tabs
$tabstrip-item-hovered-text$link-hover-text
Description
Text color of hovered tabs
$tabstrip-item-hovered-bordernullnull
Description
Border color of hovered tabs
$tabstrip-item-hovered-gradientnullnull
Description
Background gradient of hovered tabs
$tabstrip-item-selected-bg$component-bg
Description
Background color of selected tabs
$tabstrip-item-selected-text$component-text
Description
Text color of selected tabs
$tabstrip-item-selected-border$component-borderrgba( black, .08 )
Description
Border color of selected tabs
$tabstrip-item-selected-gradientnullnull
Description
Background gradient of selected tabs
$tabstrip-content-padding-x$tabstrip-item-padding-x
Description
Horizontal padding of tabstrip content
$tabstrip-content-padding-y$tabstrip-item-padding-y
Description
Vertical padding of tabstrip content
$tabstrip-content-border-width1px1px
Description
Width of border around tabstrip content
$tabstrip-content-bg$component-bg
Description
Background color of tabstrip content
$tabstrip-content-text$component-text
Description
Text color of tabstrip content
$tabstrip-content-border$component-borderrgba( black, .08 )
Description
Border color of tabstrip content
### Toolbar
NameTypeDefault valueComputed value
$toolbar-padding-x$padding-x
Description
The horizontal padding of the container.
$toolbar-padding-y$padding-x
Description
The vertical padding of the container.
### Typography
NameTypeDefault valueComputed value
$font-size14px14px
Description
Base font size across all components.
$font-familyinheritinherit
Description
Font family across all components.
$font-family-monospaceSFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospaceSFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospace
Description
Font family for monospaced text. Used for styling the code.
$line-height(20 / 14)(20 / 14)
Description
Line height used along with $font-size.

Mixins

exports

Outputs a module once, no matter how many times it is included.

Parameters

  • name : String - The name of the exported module.

In this article

Not finding the help you need?