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 {}
JavaScript
and SCSS
version. Look at the example above to see how the styles work.JSS
, styled-components
etc. JavaScript styles can be imported by:
import { … } from '@porsche-design-system/components-{js|angular|react|vue}/styles';
.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
@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