Navigation

ThemeWare® Knowledge Base

ThemeWare® CSS classes for Shopping Experiences (overview)

Look up which classes for animations, boxed layouts and block styling you can use in sections and blocks.

Animations – CSS animations for CMS blocks

Class Area Description
twt-cms-animation Block Activates the configured CSS animation for the corresponding CMS block.

Boxed classes – CSS classes for full-width sections

Class Area Description
twt-cms-block-boxed Block Sets a block to the maximum container width of the theme configuration (minus 40px).
twt-cms-boxed-content Section Sets a section to the maximum container width of the theme configuration.

ThemeWare® CMS styling

CSS class Area Description
twt-cms-block Block The CMS block receives predefined styling (border colour, background colour, bottom margin).
twt-cms-block-background Block The CMS block receives the background colour of the predefined styling.
twt-cms-block-border Block The CMS block receives the border colour of the predefined styling.
twt-cms-block-margin Block The CMS block receives the bottom margin of the predefined styling.
twt-cms-block-reset Block The predefined styling is not applied to the CMS block (border colour, background colour, bottom margin).
twt-cms-block-reset-background Block The background colour of the predefined styling is removed from the CMS block.
twt-cms-block-reset-border Block The border colour of the predefined styling is removed from the CMS block.
twt-cms-block-reset-margin Block The bottom margin of the predefined styling is removed from the CMS block.
twt-cms-reset-padding Section Removes double paddings in layouts with a sidebar.

Column classes – column spacing in CMS blocks

CSS class Area Description
twt-cms-col-padding-0 Block Sets the padding of columns in CMS blocks to 0 pixels.
twt-cms-col-padding-5 Block Sets the padding of columns in CMS blocks to 5 pixels.
twt-cms-col-padding-10 Block Sets the padding of columns in CMS blocks to 10 pixels.
twt-cms-col-padding-15 Block Sets the padding of columns in CMS blocks to 15 pixels.
- - 20 pixels is the default column spacing.
twt-cms-col-padding-25 Block Sets the padding of columns in CMS blocks to 25 pixels.
twt-cms-col-padding-30 Block Sets the padding of columns in CMS blocks to 30 pixels.
twt-cms-col-padding-35 Block Sets the padding of columns in CMS blocks to 35 pixels.
twt-cms-col-padding-40 Block Sets the padding of columns in CMS blocks to 40 pixels.

Mobile view

CSS class Area Description
- - 0 pixels is the default column spacing.
twt-cms-col-margin-5 Block Sets the bottom spacing of columns in CMS blocks to 5 pixels.
twt-cms-col-margin-10 Block Sets the bottom spacing of columns in CMS blocks to 10 pixels.
twt-cms-col-margin-15 Block Sets the bottom spacing of columns in CMS blocks to 15 pixels.
twt-cms-col-margin-20 Block Sets the bottom spacing of columns in CMS blocks to 20 pixels.
twt-cms-col-margin-25 Block Sets the bottom spacing of columns in CMS blocks to 25 pixels.
twt-cms-col-margin-30 Block Sets the bottom spacing of columns in CMS blocks to 30 pixels.
twt-cms-col-margin-35 Block Sets the bottom spacing of columns in CMS blocks to 35 pixels.
twt-cms-col-margin-40 Block Sets the bottom spacing of columns in CMS blocks to 40 pixels.
twt-cms-col-margin-45 Block Sets the bottom spacing of columns in CMS blocks to 45 pixels.
twt-cms-col-margin-50 Block Sets the bottom spacing of columns in CMS blocks to 50 pixels.
twt-cms-col-margin-55 Block Sets the bottom spacing of columns in CMS blocks to 55 pixels.
twt-cms-col-margin-60 Block Sets the bottom spacing of columns in CMS blocks to 60 pixels.
twt-cms-col-margin-65 Block Sets the bottom spacing of columns in CMS blocks to 65 pixels.
twt-cms-col-margin-70 Block Sets the bottom spacing of columns in CMS blocks to 70 pixels.
twt-cms-col-margin-75 Block Sets the bottom spacing of columns in CMS blocks to 75 pixels.
twt-cms-col-margin-80 Block Sets the bottom spacing of columns in CMS blocks to 80 pixels.

Gap classes – spacing in CMS blocks

Class Area Description
twt-cms-grid-gap-0 Block Sets the spacing in CMS blocks to 0 pixels.
twt-cms-grid-gap-5 Block Sets the spacing in CMS blocks to 5 pixels.
twt-cms-grid-gap-10 Block Sets the spacing in CMS blocks to 10 pixels.
twt-cms-grid-gap-15 Block Sets the spacing in CMS blocks to 15 pixels.
twt-cms-grid-gap-20 Block Sets the spacing in CMS blocks to 20 pixels.
twt-cms-grid-gap-25 Block Sets the spacing in CMS blocks to 25 pixels.
twt-cms-grid-gap-30 Block Sets the spacing in CMS blocks to 30 pixels.
twt-cms-grid-gap-35 Block Sets the spacing in CMS blocks to 35 pixels.
twt-cms-grid-gap-40 Block Sets the spacing in CMS blocks to 40 pixels.
twt-cms-grid-gap-45 Block Sets the spacing in CMS blocks to 45 pixels.
twt-cms-grid-gap-50 Block Sets the spacing in CMS blocks to 50 pixels.

Headline classes – headings in CMS text blocks

CSS class Area Description
twt-cms-headline-bath Block Styles the headline and the following paragraph in CMS blocks for various themes.
twt-cms-headline-classic Block Styles the headline in CMS blocks like in Shopware 5 shopping worlds.
twt-cms-headline-clean Block Styles the headline and the following paragraph in CMS blocks like in the Clean theme.
twt-cms-headline-flower Block Styles the headline in CMS blocks like in the Flower theme.
twt-cms-headline-kids Block Styles the headline in CMS blocks like in the Kids theme.
twt-cms-headline-ladieswear Block Styles the headline and the following paragraph in CMS blocks like in the Ladieswear theme.
twt-cms-headline-plants Block Styles the headline in CMS blocks like in the Plants theme.

Image classes – decoration classes for images

Class Area Description
twt-cms-image-border Block Adds a 12px border to images in a CMS block.
twt-cms-image-border-semi Block Adds a 12px semi-transparent border to images in a CMS block.
twt-cms-image-box-shadow Block Adds a drop shadow to images in a CMS block.
twt-cms-image-box-shadow-level-1 Block Adds a drop shadow to images in a CMS block.
twt-cms-image-box-shadow-level-2 Block Adds a drop shadow to images in a CMS block.
twt-cms-image-box-shadow-level-3 Block Adds a drop shadow to images in a CMS block.
twt-cms-image-box-shadow-level-4 Block Adds a drop shadow to images in a CMS block.
twt-cms-image-box-shadow-level-5 Block Adds a drop shadow to images in a CMS block.
twt-cms-image-box-shadow-lg Block Adds a striking drop shadow to images in a CMS block.
twt-cms-image-box-shadow-sm Block Adds a subtle drop shadow to images in a CMS block.
twt-cms-image-rounded Block Rounds the corners of images in a CMS block.

Hover classes – hover effects for images

Class Area Description
twt-cms-image-hover-blur Block Blurs images with a link (hover effect).
twt-cms-image-hover-blur-out Block Removes the blur from images with a link (hover effect).
twt-cms-image-hover-flash Block Makes images with a link flash (hover effect).
twt-cms-image-hover-grayscale Block Greys out images with a link (hover effect).
twt-cms-image-hover-grayscale-out Block Colours grey images with a link (hover effect).
twt-cms-image-hover-opacity Block Reduces the opacity of images with a link (hover effect).
twt-cms-image-hover-rotate Block Rotates images with a link (hover effect).
twt-cms-image-hover-rotate-left Block Rotates images with a link (hover effect).
twt-cms-image-hover-rotate-right Block Rotates images with a link (hover effect).
twt-cms-image-hover-shine Block A highlight moves across images with a link (hover effect).
twt-cms-image-hover-zoom Block Enlarges images with a link (hover effect).
twt-cms-image-hover-zoom-out Block Reduces images with a link (hover effect).

Max-width classes – width of CMS sections and blocks

Class Area Description
twt-cms-max-width Section, block Sets the maximum width to the "maximum container width" of the theme configuration.
twt-cms-max-width-500 Section, block Sets the maximum width to 500px.
twt-cms-max-width-576 Section, block Sets the maximum width to 576px.
twt-cms-max-width-600 Section, block Sets the maximum width to 600px.
twt-cms-max-width-700 Section, block Sets the maximum width to 700px.
twt-cms-max-width-768 Section, block Sets the maximum width to 768px.
twt-cms-max-width-800 Section, block Sets the maximum width to 800px.
twt-cms-max-width-900 Section, block Sets the maximum width to 900px.
twt-cms-max-width-992 Section, block Sets the maximum width to 992px.
twt-cms-max-width-1000 Section, block Sets the maximum width to 1000px.
twt-cms-max-width-1100 Section, block Sets the maximum width to 1100px.
twt-cms-max-width-1200 Section, block Sets the maximum width to 1200px.
twt-cms-max-width-1300 Section, block Sets the maximum width to 1300px.
twt-cms-max-width-1400 Section, block Sets the maximum width to 1400px.
twt-cms-max-width-1500 Section, block Sets the maximum width to 1500px.
twt-cms-max-width-1600 Section, block Sets the maximum width to 1600px.
twt-cms-max-width-1700 Section, block Sets the maximum width to 1700px.
twt-cms-max-width-1800 Section, block Sets the maximum width to 1800px.
twt-cms-max-width-1920 Section, block Sets the maximum width to 1920px.

Margin and padding classes – spacing classes for CMS sections and blocks

Class Area Description
twt-m-1 Section, block Margin, 10px (margin)
twt-mt-2 Section, block Top margin, 20px (margin-top)
twt-me-3 Section, block Right margin, 30px (margin-right)
twt-mb-4 Section, block Bottom margin, 40px (margin-bottom)
twt-ms-5 Section, block Left margin, 50px (margin-left)
twt-mx-6 Section, block Left and right margin, 60px (margin-left, margin-right)
twt-my-7 Section, block Top and bottom margin, 70px (margin-top, margin-bottom)
twt-my-md-8 Section, block Top and bottom margin, 80px from 768px (margin-top, margin-bottom)
twt-my-n9 Section, block Top and bottom margin, -90px (margin-top, margin-bottom)
twt-p-1 Section, block Padding, 10px (padding)
twt-pt-2 Section, block Top padding, 20px (padding-top)
twt-pe-3 Section, block Right padding, 30px (padding-right)
twt-pb-4 Section, block Bottom padding, 40px (padding-bottom)
twt-ps-5 Section, block Left padding, 50px (padding-left)
twt-px-6 Section, block Left and right padding, 60px (padding-left, padding-right)
twt-py-7 Section, block Top and bottom padding, 70px (padding-top, padding-bottom)
twt-py-md-8 Section, block Top and bottom padding, 80px from 768px (padding-top, padding-bottom)

Overlay classes

The overlay classes work with Shopware default CMS blocks. If you use these classes in a CMS section, the background is overlaid with a colour area.

CSS class Area Description
twt-custom-cms-element-overlay-primary Section Overlays the background image of a section with the primary colour (opacity 85%). Ideal for displaying text information on a background image.
twt-custom-cms-element-overlay-secondary Section Overlays the background image of a section with the secondary colour (opacity 85%). Ideal for displaying text information on a background image.
twt-custom-cms-element-overlay-success Section Overlays the background image of a section with the status colour "Success" (opacity 85%). Ideal for displaying text information on a background image.
twt-custom-cms-element-overlay-info Section Overlays the background image of a section with the status colour "Information" (opacity 85%). Ideal for displaying text information on a background image.
twt-custom-cms-element-overlay-warning Section Overlays the background image of a section with the status colour "Warning" (opacity 85%). Ideal for displaying text information on a background image.
twt-custom-cms-element-overlay-danger Section Overlays the background image of a section with the status colour "Error" (opacity 85%). Ideal for displaying text information on a background image.
twt-custom-cms-element-overlay-light Section Overlays the background image of a section with white (opacity 85%). Ideal for displaying text information on a background image.
twt-custom-cms-element-overlay-dark Section Overlays the background image of a section with black (opacity 85%). Ideal for displaying text information on a background image.

Other

CSS class Area Description
container Block, section In shopping experience sections with the layout "Full width", it sometimes makes sense to place a content block in a "boxed" layout. You can do this with the class "container". An example is the category banner in the category "Höhenluft & Abenteuer" of our demo shops.

Last updated on

More from ThemeWare®: About ThemeWare® · Demoshops · Manual · Video tutorial · Utilities

This page online: https://knowledge.themeware.design/knowledge-base/tutorials/shopping-experiences/themeware-css-classes-for-shopping-experiences-overview · ThemeWare® Service Portal, service.themeware.design