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 SCSS Mixins Heading SCSS MixinDescription@mixin prose-heading-5xlApplies the 5x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-4xlApplies the 4x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-3xlApplies the 3x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-2xlApplies the 2x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-xlApplies the x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-lgApplies the large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-mdApplies the medium heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-smApplies the small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-xsApplies the x-small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@mixin prose-heading-2xsApplies the 2x-small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags. Text SCSS MixinDescription@mixin prose-text-5xlApplies the 5x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-4xlApplies the 4x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-3xlApplies the 3x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-2xlApplies the 2x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-xlApplies the x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-lgApplies the large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-mdApplies the medium text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-smApplies the small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-xsApplies the x-small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@mixin prose-text-2xsApplies the 2x-small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags. SCSS Variables SCSS VariableDescriptionValue$font-porsche-nextHolds the Porsche Next font family along with fallback fonts.'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif$font-weight-normalHolds the normal font weight optimized for the Porsche Next typeface.400$font-weight-semiboldHolds the semibold font weight optimized for the Porsche Next typeface.600$font-weight-boldHolds the bold font weight optimized for the Porsche Next typeface.700$leading-normalHolds a dynamic default line height specifically optimized for the Porsche Next typeface.calc(6px + 2.125ex)$typescale-2xsHolds the 2x-small font size optimized for the Porsche Next typeface..75rem$typescale-xsHolds the x-small font size optimized for the Porsche Next typeface..875rem$typescale-smHolds the small font size optimized for the Porsche Next typeface.1rem$typescale-mdHolds the medium font size optimized for the Porsche Next typeface.clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)$typescale-lgHolds the large font size optimized for the Porsche Next typeface.clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)$typescale-xlHolds the x-large font size optimized for the Porsche Next typeface.clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)$typescale-2xlHolds the 2x-large font size optimized for the Porsche Next typeface.clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)$typescale-3xlHolds the 3x-large font size optimized for the Porsche Next typeface.clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)$typescale-4xlHolds the 4x-large font size optimized for the Porsche Next typeface.clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)$typescale-5xlHolds 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%