Theme slider

The theme slider is a navigation bar for special offers and topics that should be displayed prominently to the user with pictures.

All offers are listed horizontally next to each other. Sliding of offers is a characteristic feature of this components.


Elements#

  • Item
  • Background
  • Slider Button

theme slider: LG


Overall styling#

  • The title has the text-style of basic bold.
  • The subheadline comes in the text-style small.
  • The line-height is 120%.
  • The background comes in basic-white.
  • The whole component uses the shadow-default.
  • The width of the component is divisible by 8.
  • The image ratio is always 4:3.
  • Every component has rounded corners of 2px except the slider button.

States#

  • An item is a single navigation element in the theme-slider that is shown with an image and text.
  • The behavior of the slider button can be found in the Slider Button description.
TypesAttributesPreview
Defaulttext-color: gray-darker
background-color: gray-lightest
default
Hover / focustext-color: gray-darker
background-color: gray-lightest
Title gets underlined
Image has a basic-white overlay with 50% opacity
hover-focus
Activetext-color: basic-white
background-color: brand-primary-base
active

Spacing & measurements#

  • The total height and width of the component is based on the size of the individual elements and their corresponding spacings.
  • The width also depends on how many elements are displayed and is always a multiple of 8.
  • The padding and gutter always is 8px.
  • The slider button always has a width of 32px.

Complete#

TypeAttributesPreview
LGwidth: 1264pxcomplete: LG
MD+SMwidth: 944px (MD)
width: 584px (SM)
complete: MD+SM
XSwidth: 344pxcomplete: XS

Item#

TypeAttributesPreview
Horizontal spacingpadding: 8pxhorizontal-spacing: LG horizontal-spacing: MD+SM horizontal-spacing: LG
Vertical spacingpadding: 8px
margin: 4px
vertical-spacing: LG vertical-spacing: MD+SM vertical-spacing: XS
WidthLG: 160px
MD+SM: 160px
XS: 120px
width: LG width: MD+SM width: XS

What can be modified?#

  • Override text and image.
  • Modify theme sliders to your project needs by deleting single symbols (i.e. like the tab or slider button symbol).
  • Modify theme sliders to your project needs by shortening the complete symbol but please stick to the rule of 8 (i.e. theme slider with 6 items to a width of 1016px in LG).

Our workflow in Sketch#

  • Use the "Overrides"-function to customize the theme slider in the three possible variants or to change the titles or sub-headlines.
  • Use the "Overrides"-function to hide the slider buttons when they are not needed.

Change log#

Changed#

  • Sketch, Doc: "Theme slider" | Adjusted to new grid settings

Removed#

  • Doc: "Theme slider" | Removed danger hint text for the spacing and measurements

Changed#

  • Sketch, Doc: "Theme slider" | Adapted component to new grid settings and marked documentation with deviating measurements

Changed#

  • Doc: "Theme slider" | Clean up the documentation for the right structure and sentence case

Changed#

  • "Theme slider" | Changed symbols: with layer-style settings

4.4.1 Core & 4.4.1 Web - 2020-05-07#

Fixed#

  • "Theme slider" | Fixed symbols: missing underline of hover and focus state

4.1.0 Core & 4.1.0 Web - 2019-11-07#

Changed#

  • "Theme slider" | Changed symbols of items: padding to "8px"; spacing to "4px"

Removed#

  • "Theme slider" | Removed description: fixed height of complete symbol and item