Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorUsageAccessibilityAPI
Content Wrapper 🚫 Table of Contents The Content Wrapper enables you to … … define outer spacings between content area and left/right screen side. … center the content area within the screen. … set a maximum width for the content area. This component is deprecated and will be removed with the next major release. In general, please use native CSS Grid instead for better performance and more standardized layout technique. Additionally, we provide a Porsche Grid utility instead based on CSS Grid covering the specific layout needs for a harmonic appearance across all digital touch-points. Types Depending on your layout requirements you can choose between the following options for the content area, whereas each of them can be applied module-based to give you a maximum of flexibility for your page layouts: Basic Depending on the screen width the "Basic" variant includes a margin of 7% or 10% between content area and the left and right screen sides (100% = full screen width): ViewportMarginXS-L (320-1759 px)7%XL (1760 px or larger)10% Extended (default) The "Extended" content area includes no defined margin on the left and right of the content and has a maximum width of 1920 px. Thus, in viewport sizes from 1920 px onwards there is a growing white space outside the left and right edge of the content area. Fluid This is the variant of your choice when you want your content to span to the full screen width, containing no margin or visual gap between content area and screen edges. Layout combination of content width variants Content Wrapper with Fluid safe zone Layout approach or: How to combine Content Wrapper with Grid, Flex or … The Content Wrapper can house both the Grid and Flex or any custom content. The principle of how to apply the Content Wrapper component is quite simple – just think "from big to small" when defining the module layouts: First of all, you define the Content Wrapper type for your layout part based on the content width variants described above. The content area of each layout part can then itself be designed by using Grid and/or Flex or any custom way of content layouting, depending on the individual requirements of the module. Related components Grid Flex
Global settingsThemeChanges the theme of the application and any Porsche Design System component. It's possible to choose between forced theme light and dark. It's also possible to use auto, which applies light or dark theme depending on the operating system settings automatically.LightDarkAuto (sync with operating system)DirectionChanges the direction of HTML elements, mostly used on<html> tag to support languages which are read from right to left like e.g. Arabic.LTR (left-to-right)RTL (right-to-left)AutoText ZoomChanges the text size and values with unit rem or em relatively. This setting can be defined in browser settings for any website or by an application itself on<html> tag. To achieve WCAG 2.2 AA compliance it's obligatory to support text zoom up to at least 200%.100%130%150%200%