Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
Typography Table of Contents Example

Display

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

Heading

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog

Text

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

import { ChangeDetectionStrategy, Component } from '@angular/core';

@Component({
  selector: 'porsche-design-system-app',
  styles: [
    `
      @use '@porsche-design-system/components-angular/styles' as *;

      // Wrapper
      .wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: $pds-grid-gap;
        padding: $pds-spacing-fluid-medium;
      }

      // Typography
      .typography {
        color: $pds-theme-light-primary;
        margin: 0;
      }

      .heading {
        @include pds-heading-medium;
        color: $pds-theme-light-primary;
        margin: 0;
      }

      // Display
      .display-large {
        @include pds-display-large;
      }

      .display-medium {
        @include pds-display-medium;
      }

      .display-small {
        @include pds-display-small;
      }

      // Heading
      .heading-xx-large {
        @include pds-heading-xx-large;
      }

      .heading-x-large {
        @include pds-heading-x-large;
      }

      .heading-large {
        @include pds-heading-large;
      }

      .heading-medium {
        @include pds-heading-medium;
      }

      .heading-small {
        @include pds-heading-small;
      }

      // Text
      .text-x-large {
        @include pds-text-x-large;
      }

      .text-large {
        @include pds-text-large;
      }

      .text-medium {
        @include pds-text-medium;
      }

      .text-small {
        @include pds-text-small;
      }

      .text-x-small {
        @include pds-text-x-small;
      }

      .text-xx-small {
        @include pds-text-xx-small;
      }
    `,
  ],
  template: `
    <div class="wrapper">
      <h3 class="heading">Display</h3>
      <h3 class="display-large typography">The quick brown fox jumps over the lazy dog</h3>
      <h3 class="display-medium typography">The quick brown fox jumps over the lazy dog</h3>
      <h3 class="display-small typography">The quick brown fox jumps over the lazy dog</h3>
    </div>
    <div class="wrapper">
      <h3 class="heading">Heading</h3>
      <h6 class="heading-xx-large typography">The quick brown fox jumps over the lazy dog</h6>
      <h6 class="heading-x-large typography">The quick brown fox jumps over the lazy dog</h6>
      <h6 class="heading-large typography">The quick brown fox jumps over the lazy dog</h6>
      <h6 class="heading-medium typography">The quick brown fox jumps over the lazy dog</h6>
      <h6 class="heading-small typography">The quick brown fox jumps over the lazy dog</h6>
    </div>
    <div class="wrapper">
      <h3 class="heading">Text</h3>
      <p class="text-x-large typography">The quick brown fox jumps over the lazy dog</p>
      <p class="text-large typography">The quick brown fox jumps over the lazy dog</p>
      <p class="text-medium typography">The quick brown fox jumps over the lazy dog</p>
      <p class="text-small typography">The quick brown fox jumps over the lazy dog</p>
      <p class="text-x-small typography">The quick brown fox jumps over the lazy dog</p>
      <p class="text-xx-small typography">The quick brown fox jumps over the lazy dog</p>
    </div>
  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
  standalone: false,
})
export class ExampleComponent {}
Usage Fluid typography scales up or down based on the size of the viewing device or browser window within a predefined min-max font size. This is in contrast to static font sizes, which are set to a specific pixel value and do not scale according to the viewport. Do: Use fluid font styles as default. Section headings should be center-aligned. Ensure that all headlines have the same vertical line of the grid when left-aligned. Use only predefined font styles for text, headline, and display copy to ensure a proportional scaling of all copies, aligned with the fluid spacers, and a consistent appearance over all products. Use display styles for either hero intro, stats, or emotional moments. Use headline-xx-large for dedicated appointing of a section. Use text-styles for running text. Text-small is the default, but a bigger text style can be picked for introductions and short descriptions. Pair a headline style with a text style one or two steps below (e.g. headline-large with text-medium). Use text-xx-small only for disclaimers/consumption. Don't: Don't use static font styles. Don't use thin or any italic style of the Porsche Next. Styles The styles are available as JavaScript and SCSS version. Look at the example above to see how the styles work. JS When using JSS, styled-components etc. JavaScript styles can be imported by: import { … } from '@porsche-design-system/components-{js|angular|react|vue}/styles';. When using vanilla-extract JavaScript styles can be imported by: import { … } from '@porsche-design-system/components-{js|angular|react|vue}/styles/vanilla-extract';. displayLargeStyle displayMediumStyle displaySmallStyle headingXXLargeStyle headingXLargeStyle headingLargeStyle headingMediumStyle headingSmallStyle textXLargeStyle textLargeStyle textMediumStyle textSmallStyle textXSmallStyle textXXSmallStyle SCSS SCSS styles can be imported by @use '@porsche-design-system/components-{js|angular|react|vue}/styles' as *; @mixin pds-display-large @mixin pds-display-medium @mixin pds-display-small @mixin pds-heading-xx-large @mixin pds-heading-x-large @mixin pds-heading-large @mixin pds-heading-medium @mixin pds-heading-small @mixin pds-text-x-large @mixin pds-text-large @mixin pds-text-medium @mixin pds-text-small @mixin pds-text-x-small @mixin pds-text-xx-small
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%