Skip to contentPorsche Design System
You are currently viewing an earlier release of the Porsche Design System.Switch to the latest Porsche Design System documentation.
SearchGitHub repository of Porsche Design SystemOpen settings sidebar
Typography Table of Contents SCSS Mixins Heading SCSS mixinDescription@include prose-heading-5xlApplies the 5x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-4xlApplies the 4x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-3xlApplies the 3x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-2xlApplies the 2x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-xlApplies the x-large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-lgApplies the large heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-mdApplies the medium heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-smApplies the small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-xsApplies the x-small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.@include prose-heading-2xsApplies the 2x-small heading typography variant primarily to <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags. Text SCSS mixinDescription@include prose-text-5xlApplies the 5x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-4xlApplies the 4x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-3xlApplies the 3x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-2xlApplies the 2x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-xlApplies the x-large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-lgApplies the large text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-mdApplies the medium text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-smApplies the small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-xsApplies the x-small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags.@include prose-text-2xsApplies the 2x-small text typography variant primarily to <p>, <ul>, <ol>, <blockquote> tags. SCSS Variables Family 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-porsche-next-zh-hansHolds the Porsche Next font family along with fallback fonts for Simplified Chinese.'Porsche Next', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Arial Narrow', Arial, sans-serif$font-porsche-next-zh-hantHolds the Porsche Next font family along with fallback fonts for Traditional Chinese.'Porsche Next', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Arial Narrow', Arial, sans-serif$font-porsche-next-jaHolds the Porsche Next font family along with fallback fonts for Japanese.'Porsche Next', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'Arial Narrow', Arial, sans-serif$font-porsche-next-koHolds the Porsche Next font family along with fallback fonts for Korean.'Porsche Next', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Arial Narrow', Arial, sans-serif Weight SCSS variableDescriptionValue$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 Line height SCSS variableDescriptionValue$leading-normalHolds a dynamic default line height specifically optimized for the Porsche Next typeface.calc(6px + 2.125ex) Text SCSS variableDescriptionValue$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) CJK auto-detection Use the cjk-font-family() mixin on any rule that sets font-family to automatically swap to the locale-specific Porsche Next font stack for Simplified Chinese, Traditional Chinese, Japanese or Korean based on the nearest lang attribute (typically set on <html>). SCSS MixinDescription@mixin cjk-font-family()Applies locale-specific Porsche Next font stacks for CJK languages (Simplified Chinese, Traditional Chinese, Japanese, Korean) based on the element's lang attribute.
@use '@porsche-design-system/components-{js|angular|react|vue}/scss' as *; .headline { font-family: $font-porsche-next; @include cjk-font-family; }
The prose-heading-*() and prose-text-*() mixins already include this :lang() logic, so when you compose styles with them you can skip the extra @include. Reach for the per-language tokens ($font-porsche-next-zh-hans, …) only when you intentionally need to pin a specific CJK family regardless of the document's language.
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%