Porsche Design System
You are currently viewing an earlier release of the Porsche Design System.Switch to the latest Porsche Design System documentation.
SearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ExamplesUsageAPI
Typography Table of Contents JS Objects Heading JSDescriptionproseHeading5XlStyleApplies the 5x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeading4XlStyleApplies the 4x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeading3XlStyleApplies the 3x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeading2XlStyleApplies the 2x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeadingXlStyleApplies the x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeadingLgStyleApplies the large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeadingMdStyleApplies the medium heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeadingSmStyleApplies the small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeadingXsStyleApplies the x-small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.proseHeading2XsStyleApplies the 2x-small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags. Text JSDescriptionproseText5XlStyleApplies the 5x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseText4XlStyleApplies the 4x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseText3XlStyleApplies the 3x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseText2XlStyleApplies the 2x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseTextXlStyleApplies the x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseTextLgStyleApplies the large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseTextMdStyleApplies the medium text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseTextSmStyleApplies the small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseTextXsStyleApplies the x-small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.proseText2XsStyleApplies the 2x-small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags. JS Variables JSDescriptionValuefontPorscheNextHolds the Porsche Next font family along with fallback fonts.'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-seriffontWeightNormalHolds the normal font weight optimized for the Porsche Next typeface.400fontWeightSemiboldHolds the semibold font weight optimized for the Porsche Next typeface.600fontWeightBoldHolds the bold font weight optimized for the Porsche Next typeface.700leadingNormalHolds a dynamic default line height specifically optimized for the Porsche Next typeface.calc(6px + 2.125ex)typescale2XsHolds the 2x-small font size optimized for the Porsche Next typeface..75remtypescaleXsHolds the x-small font size optimized for the Porsche Next typeface..875remtypescaleSmHolds the small font size optimized for the Porsche Next typeface.1remtypescaleMdHolds the medium font size optimized for the Porsche Next typeface.clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)typescaleLgHolds the large font size optimized for the Porsche Next typeface.clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)typescaleXlHolds the x-large font size optimized for the Porsche Next typeface.clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)typescale2XlHolds the 2x-large font size optimized for the Porsche Next typeface.clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)typescale3XlHolds the 3x-large font size optimized for the Porsche Next typeface.clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)typescale4XlHolds the 4x-large font size optimized for the Porsche Next typeface.clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)typescale5XlHolds the 5x-large font size optimized for the Porsche Next typeface.clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)
Global settingsColor SchemeAll color tokens use the light-dark() CSS function. Set the theme via the CSS color-scheme property: light for light mode, dark for dark mode, or light dark to follow the user's system preference.LightDarkLight DarkDirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%