@porsche-design-system/components-angular 4.5.0 → 4.6.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/bin/pds-skill.js +259 -0
- package/fesm2022/porsche-design-system-components-angular.mjs.map +1 -1
- package/package.json +5 -2
- package/skill/SKILL.md +124 -0
- package/skill/references/components/p-accordion/examples/Default.ts +26 -0
- package/skill/references/components/p-accordion/examples/InteractiveElementsInSummary.ts +30 -0
- package/skill/references/components/p-accordion/examples/StickySummary.ts +26 -0
- package/skill/references/components/p-accordion/p-accordion.md +95 -0
- package/skill/references/components/p-ai-tag/examples/Default.ts +13 -0
- package/skill/references/components/p-ai-tag/examples/WithinCheckbox.ts +33 -0
- package/skill/references/components/p-ai-tag/examples/WithinFormLabel.ts +40 -0
- package/skill/references/components/p-ai-tag/examples/WithinImage.ts +16 -0
- package/skill/references/components/p-ai-tag/examples/WithinInputSearch.ts +15 -0
- package/skill/references/components/p-ai-tag/examples/WithinRadioGroup.ts +32 -0
- package/skill/references/components/p-ai-tag/examples/WithinTable.ts +94 -0
- package/skill/references/components/p-ai-tag/examples/WithinText.ts +17 -0
- package/skill/references/components/p-ai-tag/p-ai-tag.md +47 -0
- package/skill/references/components/p-banner/examples/Customization.ts +37 -0
- package/skill/references/components/p-banner/examples/Default.ts +26 -0
- package/skill/references/components/p-banner/p-banner.md +92 -0
- package/skill/references/components/p-button/examples/Default.ts +15 -0
- package/skill/references/components/p-button/examples/Form.ts +26 -0
- package/skill/references/components/p-button/examples/FormAttribute.ts +30 -0
- package/skill/references/components/p-button/p-button.md +118 -0
- package/skill/references/components/p-button-pure/examples/CustomClickableArea.ts +15 -0
- package/skill/references/components/p-button-pure/examples/Default.ts +15 -0
- package/skill/references/components/p-button-pure/examples/Form.ts +26 -0
- package/skill/references/components/p-button-pure/examples/FormAttribute.ts +30 -0
- package/skill/references/components/p-button-pure/p-button-pure.md +118 -0
- package/skill/references/components/p-button-tile/examples/ColorScheme.ts +18 -0
- package/skill/references/components/p-button-tile/examples/Default.ts +21 -0
- package/skill/references/components/p-button-tile/examples/FooterSlot.ts +32 -0
- package/skill/references/components/p-button-tile/examples/Hyphens.ts +38 -0
- package/skill/references/components/p-button-tile/examples/UiBehaviour.ts +44 -0
- package/skill/references/components/p-button-tile/p-button-tile.md +115 -0
- package/skill/references/components/p-canvas/examples/Default.ts +13 -0
- package/skill/references/components/p-canvas/p-canvas.md +91 -0
- package/skill/references/components/p-carousel/examples/Default.ts +26 -0
- package/skill/references/components/p-carousel/examples/DynamicSlides.ts +37 -0
- package/skill/references/components/p-carousel/examples/FlexibleWidths.ts +32 -0
- package/skill/references/components/p-carousel/examples/FocusOnCenterSlide.ts +65 -0
- package/skill/references/components/p-carousel/examples/Intl.ts +23 -0
- package/skill/references/components/p-carousel/examples/JumpToSlide.ts +50 -0
- package/skill/references/components/p-carousel/p-carousel.md +142 -0
- package/skill/references/components/p-checkbox/examples/Default.ts +13 -0
- package/skill/references/components/p-checkbox/examples/Form.ts +31 -0
- package/skill/references/components/p-checkbox/examples/Indeterminate.ts +16 -0
- package/skill/references/components/p-checkbox/examples/Slots.ts +57 -0
- package/skill/references/components/p-checkbox/examples/WrappedLabel.ts +27 -0
- package/skill/references/components/p-checkbox/p-checkbox.md +122 -0
- package/skill/references/components/p-crest/examples/CustomClickableArea.ts +13 -0
- package/skill/references/components/p-crest/examples/Default.ts +13 -0
- package/skill/references/components/p-crest/examples/Link.ts +13 -0
- package/skill/references/components/p-crest/p-crest.md +65 -0
- package/skill/references/components/p-display/examples/Color.ts +15 -0
- package/skill/references/components/p-display/examples/Default.ts +15 -0
- package/skill/references/components/p-display/examples/Semantics.ts +21 -0
- package/skill/references/components/p-display/examples/Size.ts +15 -0
- package/skill/references/components/p-display/examples/SizeResponsive.ts +15 -0
- package/skill/references/components/p-display/p-display.md +78 -0
- package/skill/references/components/p-divider/examples/Default.ts +13 -0
- package/skill/references/components/p-divider/examples/Responsive.ts +15 -0
- package/skill/references/components/p-divider/examples/Vertical.ts +15 -0
- package/skill/references/components/p-divider/p-divider.md +49 -0
- package/skill/references/components/p-drilldown/examples/CustomContent.ts +166 -0
- package/skill/references/components/p-drilldown/examples/Default.ts +119 -0
- package/skill/references/components/p-drilldown/p-drilldown.md +168 -0
- package/skill/references/components/p-fieldset/examples/Default.ts +15 -0
- package/skill/references/components/p-fieldset/examples/Required.ts +16 -0
- package/skill/references/components/p-fieldset/examples/SlottedLabel.ts +18 -0
- package/skill/references/components/p-fieldset/examples/SlottedMessage.ts +18 -0
- package/skill/references/components/p-fieldset/p-fieldset.md +88 -0
- package/skill/references/components/p-flag/examples/Default.ts +13 -0
- package/skill/references/components/p-flag/examples/ResponsiveSize.ts +13 -0
- package/skill/references/components/p-flag/examples/Size.ts +16 -0
- package/skill/references/components/p-flag/examples/SizeCssVar.ts +13 -0
- package/skill/references/components/p-flag/p-flag.md +68 -0
- package/skill/references/components/p-flyout/examples/CustomStyling.ts +47 -0
- package/skill/references/components/p-flyout/examples/Default.ts +44 -0
- package/skill/references/components/p-flyout/examples/Form.ts +47 -0
- package/skill/references/components/p-flyout/examples/StickyTop.ts +44 -0
- package/skill/references/components/p-flyout/p-flyout.md +128 -0
- package/skill/references/components/p-heading/examples/Color.ts +15 -0
- package/skill/references/components/p-heading/examples/Default.ts +15 -0
- package/skill/references/components/p-heading/examples/Semantics.ts +21 -0
- package/skill/references/components/p-heading/p-heading.md +78 -0
- package/skill/references/components/p-icon/examples/Color.ts +16 -0
- package/skill/references/components/p-icon/examples/ColorCssVar.ts +13 -0
- package/skill/references/components/p-icon/examples/Custom.ts +13 -0
- package/skill/references/components/p-icon/examples/Default.ts +13 -0
- package/skill/references/components/p-icon/examples/Overview.ts +591 -0
- package/skill/references/components/p-icon/examples/ResponsiveSize.ts +13 -0
- package/skill/references/components/p-icon/examples/Size.ts +16 -0
- package/skill/references/components/p-icon/examples/SizeCssVar.ts +13 -0
- package/skill/references/components/p-icon/p-icon.md +88 -0
- package/skill/references/components/p-inline-notification/examples/ActionButton.ts +29 -0
- package/skill/references/components/p-inline-notification/examples/Default.ts +13 -0
- package/skill/references/components/p-inline-notification/examples/EventHandling.ts +31 -0
- package/skill/references/components/p-inline-notification/p-inline-notification.md +74 -0
- package/skill/references/components/p-input-date/examples/Default.ts +13 -0
- package/skill/references/components/p-input-date/examples/Form.ts +31 -0
- package/skill/references/components/p-input-date/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-date/p-input-date.md +138 -0
- package/skill/references/components/p-input-email/examples/Default.ts +13 -0
- package/skill/references/components/p-input-email/examples/Form.ts +31 -0
- package/skill/references/components/p-input-email/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-email/p-input-email.md +142 -0
- package/skill/references/components/p-input-month/examples/Default.ts +13 -0
- package/skill/references/components/p-input-month/examples/Form.ts +31 -0
- package/skill/references/components/p-input-month/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-month/p-input-month.md +138 -0
- package/skill/references/components/p-input-number/examples/Default.ts +13 -0
- package/skill/references/components/p-input-number/examples/Form.ts +31 -0
- package/skill/references/components/p-input-number/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-number/p-input-number.md +146 -0
- package/skill/references/components/p-input-password/examples/Default.ts +13 -0
- package/skill/references/components/p-input-password/examples/Form.ts +31 -0
- package/skill/references/components/p-input-password/examples/Slots.ts +42 -0
- package/skill/references/components/p-input-password/examples/Toggle.ts +13 -0
- package/skill/references/components/p-input-password/p-input-password.md +141 -0
- package/skill/references/components/p-input-search/examples/AriaCombobox.ts +38 -0
- package/skill/references/components/p-input-search/examples/Default.ts +13 -0
- package/skill/references/components/p-input-search/examples/Form.ts +31 -0
- package/skill/references/components/p-input-search/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-search/p-input-search.md +178 -0
- package/skill/references/components/p-input-tel/examples/Default.ts +13 -0
- package/skill/references/components/p-input-tel/examples/Form.ts +31 -0
- package/skill/references/components/p-input-tel/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-tel/p-input-tel.md +141 -0
- package/skill/references/components/p-input-text/examples/Controlled.ts +36 -0
- package/skill/references/components/p-input-text/examples/Default.ts +13 -0
- package/skill/references/components/p-input-text/examples/Form.ts +31 -0
- package/skill/references/components/p-input-text/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-text/p-input-text.md +146 -0
- package/skill/references/components/p-input-time/examples/Default.ts +13 -0
- package/skill/references/components/p-input-time/examples/Form.ts +31 -0
- package/skill/references/components/p-input-time/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-time/p-input-time.md +140 -0
- package/skill/references/components/p-input-url/examples/Default.ts +13 -0
- package/skill/references/components/p-input-url/examples/Form.ts +31 -0
- package/skill/references/components/p-input-url/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-url/p-input-url.md +141 -0
- package/skill/references/components/p-input-week/examples/Default.ts +13 -0
- package/skill/references/components/p-input-week/examples/Form.ts +31 -0
- package/skill/references/components/p-input-week/examples/Slots.ts +44 -0
- package/skill/references/components/p-input-week/p-input-week.md +138 -0
- package/skill/references/components/p-link/examples/Default.ts +15 -0
- package/skill/references/components/p-link/examples/FrameworkRouting.ts +17 -0
- package/skill/references/components/p-link/examples/Icon.ts +20 -0
- package/skill/references/components/p-link/p-link.md +101 -0
- package/skill/references/components/p-link-pure/examples/CustomClickableArea.ts +15 -0
- package/skill/references/components/p-link-pure/examples/Default.ts +15 -0
- package/skill/references/components/p-link-pure/examples/FrameworkRouting.ts +17 -0
- package/skill/references/components/p-link-pure/examples/Icon.ts +20 -0
- package/skill/references/components/p-link-pure/p-link-pure.md +110 -0
- package/skill/references/components/p-link-tile/examples/ColorScheme.ts +18 -0
- package/skill/references/components/p-link-tile/examples/Default.ts +21 -0
- package/skill/references/components/p-link-tile/examples/FooterSlot.ts +32 -0
- package/skill/references/components/p-link-tile/examples/Hyphens.ts +39 -0
- package/skill/references/components/p-link-tile/examples/UiBehaviour.ts +44 -0
- package/skill/references/components/p-link-tile/examples/WithVideo.ts +18 -0
- package/skill/references/components/p-link-tile/p-link-tile.md +105 -0
- package/skill/references/components/p-link-tile-product/examples/Default.ts +24 -0
- package/skill/references/components/p-link-tile-product/examples/FrameworkRouting.ts +27 -0
- package/skill/references/components/p-link-tile-product/p-link-tile-product.md +93 -0
- package/skill/references/components/p-modal/examples/AlertDialog.ts +41 -0
- package/skill/references/components/p-modal/examples/CustomStyling.ts +28 -0
- package/skill/references/components/p-modal/examples/Default.ts +41 -0
- package/skill/references/components/p-modal/examples/Scrollable.ts +45 -0
- package/skill/references/components/p-modal/p-modal.md +135 -0
- package/skill/references/components/p-model-signature/examples/CustomStyling.ts +17 -0
- package/skill/references/components/p-model-signature/examples/Default.ts +13 -0
- package/skill/references/components/p-model-signature/examples/MaskBlendMode.ts +35 -0
- package/skill/references/components/p-model-signature/examples/MaskImage.ts +15 -0
- package/skill/references/components/p-model-signature/examples/MaskVideo.ts +15 -0
- package/skill/references/components/p-model-signature/examples/SafeZone.ts +63 -0
- package/skill/references/components/p-model-signature/p-model-signature.md +62 -0
- package/skill/references/components/p-multi-select/examples/AsyncFilter.ts +149 -0
- package/skill/references/components/p-multi-select/examples/Default.ts +32 -0
- package/skill/references/components/p-multi-select/examples/Form.ts +38 -0
- package/skill/references/components/p-multi-select/examples/Optgroups.ts +45 -0
- package/skill/references/components/p-multi-select/examples/SelectedSlot.ts +103 -0
- package/skill/references/components/p-multi-select/examples/SetValue.ts +76 -0
- package/skill/references/components/p-multi-select/examples/Slots.ts +51 -0
- package/skill/references/components/p-multi-select/p-multi-select.md +197 -0
- package/skill/references/components/p-pagination/examples/Default.ts +13 -0
- package/skill/references/components/p-pagination/p-pagination.md +83 -0
- package/skill/references/components/p-pin-code/examples/CopyPaste.ts +13 -0
- package/skill/references/components/p-pin-code/examples/Default.ts +13 -0
- package/skill/references/components/p-pin-code/examples/Form.ts +31 -0
- package/skill/references/components/p-pin-code/examples/Slots.ts +42 -0
- package/skill/references/components/p-pin-code/p-pin-code.md +109 -0
- package/skill/references/components/p-popover/examples/Default.ts +17 -0
- package/skill/references/components/p-popover/examples/SlottedButton.ts +18 -0
- package/skill/references/components/p-popover/p-popover.md +116 -0
- package/skill/references/components/p-radio-group/examples/Default.ts +20 -0
- package/skill/references/components/p-radio-group/examples/Form.ts +38 -0
- package/skill/references/components/p-radio-group/examples/Slots.ts +72 -0
- package/skill/references/components/p-radio-group/p-radio-group.md +157 -0
- package/skill/references/components/p-scroller/examples/Default.ts +54 -0
- package/skill/references/components/p-scroller/examples/Height.ts +29 -0
- package/skill/references/components/p-scroller/examples/ScrollToPosition.ts +43 -0
- package/skill/references/components/p-scroller/p-scroller.md +93 -0
- package/skill/references/components/p-segmented-control/examples/Default.ts +29 -0
- package/skill/references/components/p-segmented-control/examples/Form.ts +37 -0
- package/skill/references/components/p-segmented-control/examples/Slots.ts +57 -0
- package/skill/references/components/p-segmented-control/examples/WithLabels.ts +29 -0
- package/skill/references/components/p-segmented-control/p-segmented-control.md +162 -0
- package/skill/references/components/p-select/examples/AsyncFilter.ts +149 -0
- package/skill/references/components/p-select/examples/Default.ts +32 -0
- package/skill/references/components/p-select/examples/Form.ts +38 -0
- package/skill/references/components/p-select/examples/Optgroups.ts +45 -0
- package/skill/references/components/p-select/examples/Required.ts +48 -0
- package/skill/references/components/p-select/examples/SelectedSlot.ts +130 -0
- package/skill/references/components/p-select/examples/SetValue.ts +71 -0
- package/skill/references/components/p-select/examples/Slots.ts +51 -0
- package/skill/references/components/p-select/examples/SlottedImages.ts +38 -0
- package/skill/references/components/p-select/p-select.md +194 -0
- package/skill/references/components/p-sheet/examples/Default.ts +33 -0
- package/skill/references/components/p-sheet/p-sheet.md +121 -0
- package/skill/references/components/p-spinner/examples/Color.ts +16 -0
- package/skill/references/components/p-spinner/examples/ColorCssVar.ts +13 -0
- package/skill/references/components/p-spinner/examples/Default.ts +13 -0
- package/skill/references/components/p-spinner/examples/ResponsiveSize.ts +13 -0
- package/skill/references/components/p-spinner/examples/Size.ts +16 -0
- package/skill/references/components/p-spinner/examples/SizeCssVar.ts +13 -0
- package/skill/references/components/p-spinner/p-spinner.md +96 -0
- package/skill/references/components/p-stepper-horizontal/examples/Default.ts +26 -0
- package/skill/references/components/p-stepper-horizontal/examples/FrameworkImplementation.ts +107 -0
- package/skill/references/components/p-stepper-horizontal/p-stepper-horizontal.md +109 -0
- package/skill/references/components/p-switch/examples/Default.ts +21 -0
- package/skill/references/components/p-switch/p-switch.md +103 -0
- package/skill/references/components/p-table/examples/Advanced.ts +162 -0
- package/skill/references/components/p-table/examples/CaptionProperty.ts +40 -0
- package/skill/references/components/p-table/examples/CaptionSlot.ts +43 -0
- package/skill/references/components/p-table/examples/Default.ts +120 -0
- package/skill/references/components/p-table/examples/HideLabel.ts +40 -0
- package/skill/references/components/p-table/examples/LayoutFixed.ts +53 -0
- package/skill/references/components/p-table/examples/Sorting.ts +79 -0
- package/skill/references/components/p-table/p-table.md +189 -0
- package/skill/references/components/p-tabs/examples/ActiveTab.ts +29 -0
- package/skill/references/components/p-tabs/examples/Default.ts +29 -0
- package/skill/references/components/p-tabs/examples/Gradient.ts +114 -0
- package/skill/references/components/p-tabs/examples/Labelling.ts +29 -0
- package/skill/references/components/p-tabs/p-tabs.md +136 -0
- package/skill/references/components/p-tabs-bar/examples/Default.ts +29 -0
- package/skill/references/components/p-tabs-bar/examples/Gradient.ts +80 -0
- package/skill/references/components/p-tabs-bar/examples/Labelling.ts +29 -0
- package/skill/references/components/p-tabs-bar/examples/Links.ts +23 -0
- package/skill/references/components/p-tabs-bar/p-tabs-bar.md +181 -0
- package/skill/references/components/p-tag/examples/Default.ts +15 -0
- package/skill/references/components/p-tag/examples/Multiline.ts +17 -0
- package/skill/references/components/p-tag/examples/SlottedButton.ts +44 -0
- package/skill/references/components/p-tag/examples/SlottedLink.ts +44 -0
- package/skill/references/components/p-tag/p-tag.md +66 -0
- package/skill/references/components/p-tag-dismissible/examples/Default.ts +15 -0
- package/skill/references/components/p-tag-dismissible/p-tag-dismissible.md +75 -0
- package/skill/references/components/p-text/examples/Default.ts +15 -0
- package/skill/references/components/p-text/examples/Semantics.ts +21 -0
- package/skill/references/components/p-text/examples/Size.ts +15 -0
- package/skill/references/components/p-text/examples/SizeResponsive.ts +15 -0
- package/skill/references/components/p-text/p-text.md +68 -0
- package/skill/references/components/p-text-list/examples/Default.ts +31 -0
- package/skill/references/components/p-text-list/p-text-list.md +68 -0
- package/skill/references/components/p-textarea/examples/Default.ts +13 -0
- package/skill/references/components/p-textarea/examples/Form.ts +31 -0
- package/skill/references/components/p-textarea/examples/Slots.ts +42 -0
- package/skill/references/components/p-textarea/p-textarea.md +122 -0
- package/skill/references/components/p-toast/examples/Default.ts +23 -0
- package/skill/references/components/p-toast/p-toast.md +61 -0
- package/skill/references/components/p-wordmark/examples/CustomClickableArea.ts +13 -0
- package/skill/references/components/p-wordmark/examples/Default.ts +13 -0
- package/skill/references/components/p-wordmark/examples/Size.ts +13 -0
- package/skill/references/components/p-wordmark/p-wordmark.md +66 -0
- package/skill/references/icons.md +5 -0
- package/skill/references/styles/emotion.md +439 -0
- package/skill/references/styles/scss.md +402 -0
- package/skill/references/styles/tailwindcss.md +356 -0
- package/skill/references/styles/vanilla-extract.md +444 -0
- package/skill/references/stylesheets.md +331 -0
- package/skill/references/tokens.md +323 -0
- package/types/porsche-design-system-components-angular.d.ts +2 -2
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
# Porsche Design System — Vanilla Extract
|
|
2
|
+
|
|
3
|
+
The Porsche Design System ships a ready-made [Vanilla Extract](https://vanilla-extract.style) package: a curated catalog
|
|
4
|
+
of design tokens exposed as JavaScript values (colors, typography, spacing, border radii, blur, shadow, motion and
|
|
5
|
+
breakpoints) plus a set of documented style utilities (the layout grid, focus, skeletons, media queries, typography
|
|
6
|
+
shorthands and the color-scheme styles). Every documented symbol is a named export you import and apply inside your
|
|
7
|
+
`*.css.ts` style definitions.
|
|
8
|
+
|
|
9
|
+
Reach for these foundational styles when you build a custom component or pattern that is not yet available in the
|
|
10
|
+
component library, or for foundational layout work such as typography, surfaces and boxes.
|
|
11
|
+
|
|
12
|
+
This document is an index of the package. Tokens resolve to native CSS
|
|
13
|
+
[`light-dark()`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) custom
|
|
14
|
+
properties at runtime, so the exact value follows the active color scheme — import the token by name and let it resolve.
|
|
15
|
+
|
|
16
|
+
## How to use
|
|
17
|
+
|
|
18
|
+
### Import
|
|
19
|
+
|
|
20
|
+
Install Vanilla Extract (see the [official guide](https://vanilla-extract.style/documentation/getting-started)),
|
|
21
|
+
then import the documented tokens and utilities from the Porsche Design System Vanilla Extract entry
|
|
22
|
+
inside a `*.css.ts` file:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
// my-component.css.ts
|
|
26
|
+
import { colorPrimary, spacingFluidMd } from '@porsche-design-system/components-angular/vanilla-extract';
|
|
27
|
+
import { style } from '@vanilla-extract/css';
|
|
28
|
+
|
|
29
|
+
export const card = style({
|
|
30
|
+
color: colorPrimary,
|
|
31
|
+
padding: spacingFluidMd,
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Tokens are plain values you assign to CSS properties; utilities are style objects or functions you
|
|
36
|
+
spread/call inside `style()`/`globalStyle()` (e.g. `getFocusVisibleStyle()`, `proseHeadingMdStyle`).
|
|
37
|
+
|
|
38
|
+
### Color scheme (light / dark)
|
|
39
|
+
|
|
40
|
+
Colors are driven by the native CSS [`light-dark()`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark)
|
|
41
|
+
function via the CSS [`color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/color-scheme)
|
|
42
|
+
property — no proprietary switching logic. Register the global `colorSchemeStyles` **once** in your
|
|
43
|
+
global styles to generate the `.scheme-*` utility classes and add a polyfill for browsers without
|
|
44
|
+
`light-dark()` support:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
// app.css.ts
|
|
48
|
+
import { colorSchemeStyles } from '@porsche-design-system/components-angular/vanilla-extract';
|
|
49
|
+
import { type GlobalStyleRule, globalStyle } from '@vanilla-extract/css';
|
|
50
|
+
|
|
51
|
+
for (const { selector, rule } of colorSchemeStyles) {
|
|
52
|
+
globalStyle(selector, rule as GlobalStyleRule);
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Then use the light-dark color tokens in your component styles; they resolve to the correct value for
|
|
57
|
+
the active theme automatically. Apply one of the `.scheme-*` classes to the document or any container
|
|
58
|
+
and the selected context cascades to all child elements:
|
|
59
|
+
|
|
60
|
+
- `.scheme-light` — forces light mode.
|
|
61
|
+
- `.scheme-dark` — forces dark mode.
|
|
62
|
+
- `.scheme-light-dark` — dynamically follows the system/OS setting.
|
|
63
|
+
|
|
64
|
+
The same class themes **both** the PDS components and your own vanilla-extract-styled markup — one
|
|
65
|
+
`light-dark()` palette drives both layers. There is no separate component theming API and no `theme`
|
|
66
|
+
prop on `PorscheDesignSystemProvider` or on components; the `.scheme-*` class is the whole switch.
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<div class="scheme-dark"><!-- rendered in dark mode --></div>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Grid
|
|
73
|
+
|
|
74
|
+
For pages whose sections share one alignment system, apply `gridStyle` once to the page root. Make each full-width section
|
|
75
|
+
a subgrid, then place its content with the Porsche Grid variables. This avoids repeating `gridStyle` and keeps all
|
|
76
|
+
sections aligned. Section-level grid instances remain valid when sections need independent grids.
|
|
77
|
+
|
|
78
|
+
### Tokens and utilities
|
|
79
|
+
|
|
80
|
+
Every documented token is a named value export (e.g. `colorPrimary`, `radiusMd`); every documented
|
|
81
|
+
utility is a style object or a function returning one (e.g. `getMediaQueryMin`, `proseHeadingMdStyle`,
|
|
82
|
+
`gridNarrow`, `skeletonKeyframes`). Use the reference below to discover what is available.
|
|
83
|
+
|
|
84
|
+
### Deprecated aliases
|
|
85
|
+
|
|
86
|
+
The package still ships legacy exports as deprecated aliases so existing code keeps working. They are
|
|
87
|
+
intentionally **not** listed here — prefer the documented tokens and utilities below for new code.
|
|
88
|
+
|
|
89
|
+
## Contents
|
|
90
|
+
|
|
91
|
+
- [Tokens](#tokens) — Border, Blur, Breakpoint, Color, Font, Shadow, Spacing, Motion, Gradient, Grid
|
|
92
|
+
- [Utilities](#utilities) — Breakpoint, Color, Font, Typography (Heading / Text), Skeleton, Focus, Media query, Grid (Base / Narrow / Basic / Extended / Wide / Full)
|
|
93
|
+
|
|
94
|
+
## Tokens
|
|
95
|
+
|
|
96
|
+
### Border — Radius
|
|
97
|
+
|
|
98
|
+
| Export | Description | Value |
|
|
99
|
+
| --- | --- | --- |
|
|
100
|
+
| `radiusXs` | Holds a **x-small** `border-radius`. | `2px` |
|
|
101
|
+
| `radiusSm` | Holds a **small** `border-radius`. | `4px` |
|
|
102
|
+
| `radiusMd` | Holds a **medium** `border-radius`. Used for `p-checkbox` in **compact mode**. | `6px` |
|
|
103
|
+
| `radiusLg` | Holds a **large** `border-radius`. Used for interactive controls in **compact mode** (e.g. `p-tabs-bar`, `p-input-*`, `p-textarea`, `p-select`, `p-button`, `p-link`,…). | `8px` |
|
|
104
|
+
| `radiusXl` | Holds a **x-large** `border-radius`. Used for interactive controls (e.g. `p-tabs-bar`, `p-input-*`, `p-textarea`, `p-select`, `p-button`, `p-link`,…). Defines the primary visual appearance alongside **radius3Xl**. | `12px` |
|
|
105
|
+
| `radius2Xl` | Holds a **2x-large** `border-radius`. Used for notification components (e.g. `p-banner`, `p-inline-notification`, `p-toast`,…). | `16px` |
|
|
106
|
+
| `radius3Xl` | Holds a **3x-large** `border-radius`. Used for card-like containers or dialogs (e.g. `p-link-tile`, `p-modal`, `p-flyout`, `p-sheet`,…). Defines the primary visual appearance alongside **radiusXl**. | `24px` |
|
|
107
|
+
| `radius4Xl` | Holds a **4x-large** `border-radius`. | `32px` |
|
|
108
|
+
| `radiusFull` | Holds a **fully** rounded `border-radius`. Used for pill shapes (e.g. `p-tag`, `p-switch`,…). Recommended only for standalone indicators. | `calc(infinity * 1px)` |
|
|
109
|
+
|
|
110
|
+
### Blur
|
|
111
|
+
|
|
112
|
+
| Export | Description | Value |
|
|
113
|
+
| --- | --- | --- |
|
|
114
|
+
| `blurFrosted` | Holds a blur value for a **frosted** effect when combined with a semi-transparent color. | `blur(32px)` |
|
|
115
|
+
|
|
116
|
+
### Breakpoint
|
|
117
|
+
|
|
118
|
+
| Export | Description | Value |
|
|
119
|
+
| --- | --- | --- |
|
|
120
|
+
| `breakpointXS` | Holds the `xs` breakpoint value. | `480` |
|
|
121
|
+
| `breakpointS` | Holds the `sm` breakpoint value. | `760` |
|
|
122
|
+
| `breakpointM` | Holds the `md` breakpoint value. | `1000` |
|
|
123
|
+
| `breakpointL` | Holds the `lg` breakpoint value. | `1300` |
|
|
124
|
+
| `breakpointXL` | Holds the `xl` breakpoint value. | `1760` |
|
|
125
|
+
| `breakpointXXL` | Holds the `2xl` breakpoint value. | `1920` |
|
|
126
|
+
| `breakpointBase` | Holds the `base` breakpoint value. | `0` |
|
|
127
|
+
|
|
128
|
+
### Color — Background
|
|
129
|
+
|
|
130
|
+
| Export | Description | Value |
|
|
131
|
+
| --- | --- | --- |
|
|
132
|
+
| `colorCanvas` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **canvas** color, typically used for surfaces. | `var(--_color-canvas, light-dark(#fff,hsl(225 66.7% 1.2%)))` |
|
|
133
|
+
| `colorSurface` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **surface** color, typically used for surfaces. | `var(--_color-surface, light-dark(hsl(240 10% 95%),hsl(240 2% 10%)))` |
|
|
134
|
+
| `colorFrosted` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **frosted** color, typically used as a background in combination with `blur()`. | `var(--_color-frosted, light-dark(hsl(240 5% 70% / 0.148),hsl(240 2% 43% / 0.228)))` |
|
|
135
|
+
| `colorFrostedSoft` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **frosted-soft** color, typically used as a background `:hover`. | `var(--_color-frosted-soft, light-dark(hsl(234 9.8% 60% / 0.06),hsl(240 3.7% 26.5% / 0.154)))` |
|
|
136
|
+
| `colorFrostedStrong` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **frosted-strong** color, typically used as a background in combination with `blur()`. | `var(--_color-frosted-strong, light-dark(hsl(236 6.5% 42% / 0.236),hsl(240 1.5% 61.8% / 0.302)))` |
|
|
137
|
+
| `colorBackdrop` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **backdrop** color, typically used for backdrops. | `var(--_color-backdrop, light-dark(hsl(240 5.3% 14.9% / 0.5),hsl(240 5.3% 14.9% / 0.5)))` |
|
|
138
|
+
|
|
139
|
+
### Color — Foreground
|
|
140
|
+
|
|
141
|
+
| Export | Description | Value |
|
|
142
|
+
| --- | --- | --- |
|
|
143
|
+
| `colorPrimary` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **primary** color, typically used for text. | `var(--_color-primary, light-dark(hsl(225 66.7% 1.2%),hsl(225 100% 99%)))` |
|
|
144
|
+
| `colorContrastHigher` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **contrast-higher** color, typically used for text. | `var(--_color-contrast-higher, light-dark(hsl(240 8.7% 9% / 0.8),hsl(240 12.5% 96.9% / 0.78)))` |
|
|
145
|
+
| `colorContrastHigh` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **contrast-high** color, typically used for text. | `var(--_color-contrast-high, light-dark(hsl(240 7.1% 11% / 0.7),hsl(240 12.5% 96.9% / 0.67)))` |
|
|
146
|
+
| `colorContrastMedium` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **contrast-medium** color, typically used for text. | `var(--_color-contrast-medium, light-dark(hsl(240 6.1% 7% / 0.6),hsl(240 12.5% 96.9% / 0.56)))` |
|
|
147
|
+
| `colorContrastLow` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **contrast-low** color, intended only for decorative elements. | `var(--_color-contrast-low, light-dark(hsl(240 5.3% 14.9% / 0.5),hsl(240 12.5% 96.9% / 0.45)))` |
|
|
148
|
+
| `colorContrastLower` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **contrast-lower** color, intended only for decorative elements. | `var(--_color-contrast-lower, light-dark(hsl(234 6% 32.9% / 0.324),hsl(240 1.5% 61.8% / 0.302)))` |
|
|
149
|
+
|
|
150
|
+
### Color — Semantic
|
|
151
|
+
|
|
152
|
+
| Export | Description | Value |
|
|
153
|
+
| --- | --- | --- |
|
|
154
|
+
| `colorInfo` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **info** color, typically used for text. | `var(--_color-info, light-dark(hsl(228 83.2% 51%),hsl(210 100% 54.5%)))` |
|
|
155
|
+
| `colorInfoMedium` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **info-medium** color, typically used for text or border. | `var(--_color-info-medium, light-dark(hsl(228 83.2% 51% / 0.6),hsl(210 100% 54.5% / 0.6)))` |
|
|
156
|
+
| `colorInfoLow` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **info-low** color, typically used for text or border. | `var(--_color-info-low, light-dark(hsl(228 83.2% 51% / 0.18),hsl(210 100% 54.5% / 0.18)))` |
|
|
157
|
+
| `colorInfoFrosted` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **info-frosted** color, typically used as background with `.backdrop-blur-frosted`. | `var(--_color-info-frosted, light-dark(hsl(211 100% 90% / 0.55),hsl(210 79% 20% / 0.66)))` |
|
|
158
|
+
| `colorInfoFrostedSoft` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **info-frosted-soft** color, typically used as background `:hover`. | `var(--_color-info-frosted-soft, light-dark(hsl(211 80% 95% / 0.55),hsl(210 59% 15% / 0.66)))` |
|
|
159
|
+
| `colorSuccess` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **success** color, typically used for text. | `var(--_color-success, light-dark(hsl(115 77.5% 27.8%),hsl(157 84.9% 41.6%)))` |
|
|
160
|
+
| `colorSuccessMedium` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **success-medium** color, typically used for text or border. | `var(--_color-success-medium, light-dark(hsl(115 77.5% 27.8% / 0.6),hsl(157 84.9% 41.6% / 0.6)))` |
|
|
161
|
+
| `colorSuccessLow` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **success-low** color, typically used for text or border. | `var(--_color-success-low, light-dark(hsl(115 77.5% 27.8% / 0.18),hsl(157 84.9% 41.6% / 0.18)))` |
|
|
162
|
+
| `colorSuccessFrosted` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **success-frosted** color, typically used as background with `.backdrop-blur-frosted`. | `var(--_color-success-frosted, light-dark(hsl(109 100% 90% / 0.55),hsl(157 79% 20% / 0.66)))` |
|
|
163
|
+
| `colorSuccessFrostedSoft` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **success-frosted-soft** color, typically used as background `:hover`. | `var(--_color-success-frosted-soft, light-dark(hsl(109 80% 95% / 0.55),hsl(157 59% 15% / 0.66)))` |
|
|
164
|
+
| `colorWarning` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **warning** color, typically used for text. | `var(--_color-warning, light-dark(hsl(28 97.7% 34.1%),hsl(28 90.2% 56.1%)))` |
|
|
165
|
+
| `colorWarningMedium` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **warning-medium** color, typically used for text or border. | `var(--_color-warning-medium, light-dark(hsl(28 97.7% 34.1% / 0.6),hsl(28 90.2% 56.1% / 0.6)))` |
|
|
166
|
+
| `colorWarningLow` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **warning-low** color, typically used for text or border. | `var(--_color-warning-low, light-dark(hsl(28 97.7% 34.1% / 0.18),hsl(28 90.2% 56.1% / 0.18)))` |
|
|
167
|
+
| `colorWarningFrosted` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **warning-frosted** color, typically used as background with `.backdrop-blur-frosted`. | `var(--_color-warning-frosted, light-dark(hsl(40 100% 90% / 0.55),hsl(52 79% 20% / 0.66)))` |
|
|
168
|
+
| `colorWarningFrostedSoft` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **warning-frosted-soft** color, typically used as background `:hover`. | `var(--_color-warning-frosted-soft, light-dark(hsl(40 80% 95% / 0.55),hsl(52 59% 15% / 0.66)))` |
|
|
169
|
+
| `colorError` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **error** color, typically used for text. | `var(--_color-error, light-dark(hsl(357 78% 41%),hsl(0 96.9% 62%)))` |
|
|
170
|
+
| `colorErrorMedium` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **error-medium** color, typically used for text or border. | `var(--_color-error-medium, light-dark(hsl(357 78% 41% / 0.6),hsl(0 96.9% 62% / 0.6)))` |
|
|
171
|
+
| `colorErrorLow` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **error-low** color, typically used for text or border. | `var(--_color-error-low, light-dark(hsl(357 78% 41% / 0.18),hsl(0 96.9% 62% / 0.18)))` |
|
|
172
|
+
| `colorErrorFrosted` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **error-frosted** color, typically used as background with `.backdrop-blur-frosted`. | `var(--_color-error-frosted, light-dark(hsl(0 100% 90% / 0.55),hsl(0 79% 20% / 0.66)))` |
|
|
173
|
+
| `colorErrorFrostedSoft` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **error-frosted-soft** color, typically used as background `:hover`. | `var(--_color-error-frosted-soft, light-dark(hsl(0 80% 95% / 0.55),hsl(0 59% 15% / 0.66)))` |
|
|
174
|
+
|
|
175
|
+
### Color — A11y
|
|
176
|
+
|
|
177
|
+
| Export | Description | Value |
|
|
178
|
+
| --- | --- | --- |
|
|
179
|
+
| `colorFocus` | Holds the [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) **focus** color, typically used as the outline for `:focus-visible` states. | `var(--_color-focus, light-dark(#1A44EA,#1A44EA))` |
|
|
180
|
+
|
|
181
|
+
### Font — Family
|
|
182
|
+
|
|
183
|
+
| Export | Description | Value |
|
|
184
|
+
| --- | --- | --- |
|
|
185
|
+
| `fontPorscheNext` | Holds the **Porsche Next** font family along with fallback fonts. | `'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif` |
|
|
186
|
+
| `fontPorscheNextZhHans` | Holds 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` |
|
|
187
|
+
| `fontPorscheNextZhHant` | Holds 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` |
|
|
188
|
+
| `fontPorscheNextJa` | Holds 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` |
|
|
189
|
+
| `fontPorscheNextKo` | Holds 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` |
|
|
190
|
+
|
|
191
|
+
### Font — Weight
|
|
192
|
+
|
|
193
|
+
| Export | Description | Value |
|
|
194
|
+
| --- | --- | --- |
|
|
195
|
+
| `fontWeightNormal` | Holds the **normal** font weight optimized for the Porsche Next typeface. | `400` |
|
|
196
|
+
| `fontWeightSemibold` | Holds the **semibold** font weight optimized for the Porsche Next typeface. | `600` |
|
|
197
|
+
| `fontWeightBold` | Holds the **bold** font weight optimized for the Porsche Next typeface. | `700` |
|
|
198
|
+
|
|
199
|
+
### Font — Line height
|
|
200
|
+
|
|
201
|
+
| Export | Description | Value |
|
|
202
|
+
| --- | --- | --- |
|
|
203
|
+
| `leadingNormal` | Holds a dynamic default line height specifically optimized for the Porsche Next typeface. | `calc(6px + 2.125ex)` |
|
|
204
|
+
|
|
205
|
+
### Font — Size
|
|
206
|
+
|
|
207
|
+
| Export | Description | Value |
|
|
208
|
+
| --- | --- | --- |
|
|
209
|
+
| `typescale2Xs` | Holds the **2x-small** font size optimized for the Porsche Next typeface. | `.75rem` |
|
|
210
|
+
| `typescaleXs` | Holds the **x-small** font size optimized for the Porsche Next typeface. | `.875rem` |
|
|
211
|
+
| `typescaleSm` | Holds the **small** font size optimized for the Porsche Next typeface. | `1rem` |
|
|
212
|
+
| `typescaleMd` | Holds the **medium** font size optimized for the Porsche Next typeface. | `clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)` |
|
|
213
|
+
| `typescaleLg` | Holds the **large** font size optimized for the Porsche Next typeface. | `clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)` |
|
|
214
|
+
| `typescaleXl` | Holds the **x-large** font size optimized for the Porsche Next typeface. | `clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)` |
|
|
215
|
+
| `typescale2Xl` | Holds the **2x-large** font size optimized for the Porsche Next typeface. | `clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)` |
|
|
216
|
+
| `typescale3Xl` | Holds the **3x-large** font size optimized for the Porsche Next typeface. | `clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)` |
|
|
217
|
+
| `typescale4Xl` | Holds the **4x-large** font size optimized for the Porsche Next typeface. | `clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)` |
|
|
218
|
+
| `typescale5Xl` | Holds the **5x-large** font size optimized for the Porsche Next typeface. | `clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)` |
|
|
219
|
+
|
|
220
|
+
### Shadow
|
|
221
|
+
|
|
222
|
+
| Export | Description | Value |
|
|
223
|
+
| --- | --- | --- |
|
|
224
|
+
| `shadowSm` | Holds a **small** `shadow`. | `0px 3px 8px rgba(0,0,0,.16)` |
|
|
225
|
+
| `shadowMd` | Holds a **medium** `shadow`. | `0px 4px 16px rgba(0,0,0,.16)` |
|
|
226
|
+
| `shadowLg` | Holds a **large** `shadow`. | `0px 8px 40px rgba(0,0,0,.16)` |
|
|
227
|
+
|
|
228
|
+
### Spacing — Fluid
|
|
229
|
+
|
|
230
|
+
| Export | Description | Value |
|
|
231
|
+
| --- | --- | --- |
|
|
232
|
+
| `spacingFluidXs` | Holds the **x-small fluid** spacing. | `clamp(4px, 0.25vw + 3px, 8px)` |
|
|
233
|
+
| `spacingFluidSm` | Holds the **small fluid** spacing. | `clamp(8px, 0.5vw + 6px, 16px)` |
|
|
234
|
+
| `spacingFluidMd` | Holds the **medium fluid** spacing. | `clamp(16px, 1.25vw + 12px, 36px)` |
|
|
235
|
+
| `spacingFluidLg` | Holds the **large fluid** spacing. | `clamp(32px, 2.75vw + 23px, 76px)` |
|
|
236
|
+
| `spacingFluidXl` | Holds the **x-large fluid** spacing. | `clamp(48px, 3vw + 38px, 96px)` |
|
|
237
|
+
| `spacingFluid2Xl` | Holds the **2x-large fluid** spacing. | `clamp(80px, 7.5vw + 56px, 200px)` |
|
|
238
|
+
|
|
239
|
+
### Spacing — Static
|
|
240
|
+
|
|
241
|
+
| Export | Description | Value |
|
|
242
|
+
| --- | --- | --- |
|
|
243
|
+
| `spacingStatic2Xs` | Holds the **2x-small static** spacing. | `1px` |
|
|
244
|
+
| `spacingStaticXs` | Holds the **x-small static** spacing. | `4px` |
|
|
245
|
+
| `spacingStaticSm` | Holds the **small static** spacing. | `8px` |
|
|
246
|
+
| `spacingStaticMd` | Holds the **medium static** spacing. | `16px` |
|
|
247
|
+
| `spacingStaticLg` | Holds the **large static** spacing. | `32px` |
|
|
248
|
+
| `spacingStaticXl` | Holds the **x-large static** spacing. | `48px` |
|
|
249
|
+
| `spacingStatic2Xl` | Holds the **2x-large static** spacing. | `80px` |
|
|
250
|
+
|
|
251
|
+
### Motion — Duration
|
|
252
|
+
|
|
253
|
+
| Export | Description | Value |
|
|
254
|
+
| --- | --- | --- |
|
|
255
|
+
| `durationSm` | Holds a **short** `transition-duration` / `animation-duration`. | `.25s` |
|
|
256
|
+
| `durationMd` | Holds a **moderate** `transition-duration` / `animation-duration`. | `.4s` |
|
|
257
|
+
| `durationLg` | Holds a **long** `transition-duration` / `animation-duration`. | `.6s` |
|
|
258
|
+
| `durationXl` | Holds a **very long** `transition-duration` / `animation-duration`. | `1.2s` |
|
|
259
|
+
|
|
260
|
+
### Motion — Ease
|
|
261
|
+
|
|
262
|
+
| Export | Description | Value |
|
|
263
|
+
| --- | --- | --- |
|
|
264
|
+
| `easeInOut` | Holds an **in-out** `transition-timing-function`. | `cubic-bezier(.25,.1,.25,1)` |
|
|
265
|
+
| `easeIn` | Holds an **in** `transition-timing-function`. | `cubic-bezier(0,0,.2,1)` |
|
|
266
|
+
| `easeOut` | Holds an **out** `transition-timing-function`. | `cubic-bezier(.4,0,.5,1)` |
|
|
267
|
+
|
|
268
|
+
### Gradient
|
|
269
|
+
|
|
270
|
+
| Export | Description | Value |
|
|
271
|
+
| --- | --- | --- |
|
|
272
|
+
| `gradientStopsFadeDark` | Holds color stops for a faded gradient, used as `background-image`. | `hsla(0,0%,0%,.8) 0%,hsla(0,0%,0%,.8) 8.1%,hsla(0,0%,0%,.8) 15.5%,hsla(0,0%,0%,.8) 22.5%,hsla(0,0%,0%,.78) 29%,hsla(0,0%,0%,.73) 35.3%,hsla(0,0%,0%,.67) 41.2%,hsla(0,0%,0%,.6) 47.1%,hsla(0,0%,0%,.52) 52.9%,hsla(0,0%,0%,.44) 58.8%,hsla(0,0%,0%,.33) 64.7%,hsla(0,0%,0%,.22) 71%,hsla(0,0%,0%,.12) 77.5%,hsla(0,0%,0%,.05) 84.5%,hsla(0,0%,0%,.011) 91.9%,hsla(0,0%,0%,0) 100%` |
|
|
273
|
+
|
|
274
|
+
### Grid — Base
|
|
275
|
+
|
|
276
|
+
| Export | Description | Value |
|
|
277
|
+
| --- | --- | --- |
|
|
278
|
+
| `gridGap` | Holds the grid **gap** of the Porsche Grid. | `clamp(16px, 1.25vw + 12px, 36px)` |
|
|
279
|
+
|
|
280
|
+
### Grid — Narrow
|
|
281
|
+
|
|
282
|
+
| Export | Description | Value |
|
|
283
|
+
| --- | --- | --- |
|
|
284
|
+
| `gridNarrowColumnStart` | Holds the **start** position of the `narrow` area within the Porsche Grid. | `narrow-start` |
|
|
285
|
+
| `gridNarrowColumnEnd` | Holds the **end** position of the `narrow` area within the Porsche Grid. | `narrow-end` |
|
|
286
|
+
| `gridNarrowSpanOneHalf` | Holds a **one half** span within the `narrow` area of the Porsche Grid. | `var(--pds-grid-narrow-span-one-half)` |
|
|
287
|
+
| `gridNarrowOffsetBase` | Holds a **base** offset within the `narrow` area of the Porsche Grid. | `max(22px, 10.625vw - 12px)` |
|
|
288
|
+
| `gridNarrowOffsetS` | Holds a **small** offset within the `narrow` area of the Porsche Grid. | `calc(calc(5vw - 16px) + (clamp(16px, 1.25vw + 12px, 36px) + calc((100vw - calc(5vw - 16px) * 2 - clamp(16px, 1.25vw + 12px, 36px) * 15) / 16)) * 4)` |
|
|
289
|
+
| `gridNarrowOffsetXXL` | Holds a **xxl** offset within the `narrow` area of the Porsche Grid. | `calc(max(0px, 50vw - 2560px / 2) + min(50vw - 880px, 400px) + (clamp(16px, 1.25vw + 12px, 36px) + calc((min(100vw, 2560px) - min(50vw - 880px, 400px) * 2 - clamp(16px, 1.25vw + 12px, 36px) * 15) / 16)) * 4)` |
|
|
290
|
+
|
|
291
|
+
### Grid — Basic
|
|
292
|
+
|
|
293
|
+
| Export | Description | Value |
|
|
294
|
+
| --- | --- | --- |
|
|
295
|
+
| `gridBasicColumnStart` | Holds the **start** position of the `basic` area within the Porsche Grid. | `basic-start` |
|
|
296
|
+
| `gridBasicColumnEnd` | Holds the **end** position of the `basic` area within the Porsche Grid. | `basic-end` |
|
|
297
|
+
| `gridBasicSpanOneHalf` | Holds a **half** span within the `basic` area of the Porsche Grid. | `var(--pds-grid-basic-span-one-half)` |
|
|
298
|
+
| `gridBasicSpanOneThird` | Holds a **one third** span within the `basic` area of the Porsche Grid. | `var(--pds-grid-basic-span-one-third)` |
|
|
299
|
+
| `gridBasicSpanTwoThirds` | Holds a **two thirds** span within the `basic` area of the Porsche Grid. | `var(--pds-grid-basic-span-two-thirds)` |
|
|
300
|
+
| `gridBasicOffsetBase` | Holds a **base** offset within the `basic` area of the Porsche Grid. | `max(22px, 10.625vw - 12px)` |
|
|
301
|
+
| `gridBasicOffsetS` | Holds a **small** offset within the `basic` area of the Porsche Grid. | `calc(calc(5vw - 16px) + (clamp(16px, 1.25vw + 12px, 36px) + calc((100vw - calc(5vw - 16px) * 2 - clamp(16px, 1.25vw + 12px, 36px) * 15) / 16)) * 2)` |
|
|
302
|
+
| `gridBasicOffsetXXL` | Holds a **xxl** offset within the `basic` area of the Porsche Grid. | `calc(max(0px, 50vw - 2560px / 2) + min(50vw - 880px, 400px) + (clamp(16px, 1.25vw + 12px, 36px) + calc((min(100vw, 2560px) - min(50vw - 880px, 400px) * 2 - clamp(16px, 1.25vw + 12px, 36px) * 15) / 16)) * 2)` |
|
|
303
|
+
|
|
304
|
+
### Grid — Extended
|
|
305
|
+
|
|
306
|
+
| Export | Description | Value |
|
|
307
|
+
| --- | --- | --- |
|
|
308
|
+
| `gridExtendedColumnStart` | Holds the **start** position of the `extended` area within the Porsche Grid. | `extended-start` |
|
|
309
|
+
| `gridExtendedColumnEnd` | Holds the **end** position of the `extended` area within the Porsche Grid. | `extended-end` |
|
|
310
|
+
| `gridExtendedSpanOneHalf` | Holds a **half** span within the `extended` area of the Porsche Grid. | `var(--pds-grid-extended-span-one-half)` |
|
|
311
|
+
| `gridExtendedOffsetBase` | Holds a **base** offset within the `extended` area of the Porsche Grid. | `max(22px, 10.625vw - 12px)` |
|
|
312
|
+
| `gridExtendedOffsetS` | Holds a **small** offset within the `extended` area of the Porsche Grid. | `calc(calc(5vw - 16px) + (clamp(16px, 1.25vw + 12px, 36px) + calc((100vw - calc(5vw - 16px) * 2 - clamp(16px, 1.25vw + 12px, 36px) * 15) / 16)) * 1)` |
|
|
313
|
+
| `gridExtendedOffsetXXL` | Holds a **xxl** offset within the `extended` area of the Porsche Grid. | `calc(max(0px, 50vw - 2560px / 2) + min(50vw - 880px, 400px) + (clamp(16px, 1.25vw + 12px, 36px) + calc((min(100vw, 2560px) - min(50vw - 880px, 400px) * 2 - clamp(16px, 1.25vw + 12px, 36px) * 15) / 16)) * 1)` |
|
|
314
|
+
|
|
315
|
+
### Grid — Wide
|
|
316
|
+
|
|
317
|
+
| Export | Description | Value |
|
|
318
|
+
| --- | --- | --- |
|
|
319
|
+
| `gridWideColumnStart` | Holds the **start** position of the `wide` area within the Porsche Grid. | `wide-start` |
|
|
320
|
+
| `gridWideColumnEnd` | Holds the **end** position of the `wide` area within the Porsche Grid. | `wide-end` |
|
|
321
|
+
| `gridWideOffsetBase` | Holds a **base** offset within the `wide` area of the Porsche Grid. | `max(22px, 10.625vw - 12px)` |
|
|
322
|
+
| `gridWideOffsetS` | Holds a **small** offset within the `wide` area of the Porsche Grid. | `calc(5vw - 16px)` |
|
|
323
|
+
| `gridWideOffsetXXL` | Holds a **xxl** offset within the `wide` area of the Porsche Grid. | `calc(max(0px, 50vw - 2560px / 2) + min(50vw - 880px, 400px))` |
|
|
324
|
+
|
|
325
|
+
### Grid — Full
|
|
326
|
+
|
|
327
|
+
| Export | Description | Value |
|
|
328
|
+
| --- | --- | --- |
|
|
329
|
+
| `gridFullColumnStart` | Holds the **start** position of the `full` area within the Porsche Grid. | `full-start` |
|
|
330
|
+
| `gridFullColumnEnd` | Holds the **end** position of the `full` area within the Porsche Grid. | `full-end` |
|
|
331
|
+
| `gridFullOffset` | Holds a **full** offset within the `full` area of the Porsche Grid. | `max(0px, 50vw - 2560px / 2)` |
|
|
332
|
+
|
|
333
|
+
## Utilities
|
|
334
|
+
|
|
335
|
+
### Breakpoint
|
|
336
|
+
|
|
337
|
+
| Export | Description |
|
|
338
|
+
| --- | --- |
|
|
339
|
+
| `breakpoint` | Object containing all breakpoint values. |
|
|
340
|
+
| `breakpoints` | Array containing all breakpoint keys. |
|
|
341
|
+
|
|
342
|
+
### Color
|
|
343
|
+
|
|
344
|
+
| Export | Description |
|
|
345
|
+
| --- | --- |
|
|
346
|
+
| `colorSchemeStyles` | Holds the global style rules for the `.scheme-*` color-scheme classes, including [light-dark()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) fallback variables for browsers without support. |
|
|
347
|
+
|
|
348
|
+
### Font
|
|
349
|
+
|
|
350
|
+
| Export | Description |
|
|
351
|
+
| --- | --- |
|
|
352
|
+
| `getCJKFontFamilyStyle` | Applies locale-specific **Porsche Next** font stacks for **CJK** languages (Simplified Chinese, Traditional Chinese, Japanese, Korean) based on the element's `lang` attribute. |
|
|
353
|
+
| `fontHyphenationStyle` | Applies **hyphenation** styles (`overflow-wrap` and `hyphens`) to break and hyphenate long words. |
|
|
354
|
+
|
|
355
|
+
### Typography — Heading
|
|
356
|
+
|
|
357
|
+
| Export | Description |
|
|
358
|
+
| --- | --- |
|
|
359
|
+
| `proseHeading5XlStyle` | Applies the **5x-large** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
360
|
+
| `proseHeading4XlStyle` | Applies the **4x-large** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
361
|
+
| `proseHeading3XlStyle` | Applies the **3x-large** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
362
|
+
| `proseHeading2XlStyle` | Applies the **2x-large** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
363
|
+
| `proseHeadingXlStyle` | Applies the **x-large** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
364
|
+
| `proseHeadingLgStyle` | Applies the **large** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
365
|
+
| `proseHeadingMdStyle` | Applies the **medium** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
366
|
+
| `proseHeadingSmStyle` | Applies the **small** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
367
|
+
| `proseHeadingXsStyle` | Applies the **x-small** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
368
|
+
| `proseHeading2XsStyle` | Applies the **2x-small** heading typography variant primarily to `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` tags. |
|
|
369
|
+
|
|
370
|
+
### Typography — Text
|
|
371
|
+
|
|
372
|
+
| Export | Description |
|
|
373
|
+
| --- | --- |
|
|
374
|
+
| `proseText5XlStyle` | Applies the **5x-large** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
375
|
+
| `proseText4XlStyle` | Applies the **4x-large** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
376
|
+
| `proseText3XlStyle` | Applies the **3x-large** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
377
|
+
| `proseText2XlStyle` | Applies the **2x-large** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
378
|
+
| `proseTextXlStyle` | Applies the **x-large** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
379
|
+
| `proseTextLgStyle` | Applies the **large** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
380
|
+
| `proseTextMdStyle` | Applies the **medium** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
381
|
+
| `proseTextSmStyle` | Applies the **small** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
382
|
+
| `proseTextXsStyle` | Applies the **x-small** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
383
|
+
| `proseText2XsStyle` | Applies the **2x-small** text typography variant primarily to `<p>`, `<ul>`, `<ol>`, `<blockquote>` tags. |
|
|
384
|
+
|
|
385
|
+
### Skeleton
|
|
386
|
+
|
|
387
|
+
| Export | Description |
|
|
388
|
+
| --- | --- |
|
|
389
|
+
| `getSkeletonStyle` | Applies a skeleton placeholder style to indicate loading state. |
|
|
390
|
+
| `skeletonKeyframes` | Holds the **keyframes** to be used with the `keyframes` vanilla-extract function. |
|
|
391
|
+
|
|
392
|
+
### Focus
|
|
393
|
+
|
|
394
|
+
| Export | Description |
|
|
395
|
+
| --- | --- |
|
|
396
|
+
| `getFocusVisibleStyle` | Applies a **focus-visible** style. |
|
|
397
|
+
|
|
398
|
+
### Media query
|
|
399
|
+
|
|
400
|
+
| Export | Description |
|
|
401
|
+
| --- | --- |
|
|
402
|
+
| `getMediaQueryMax` | Applies a **max** media query with the specified breakpoint. |
|
|
403
|
+
| `getMediaQueryMin` | Applies a **min** media query with the specified breakpoint. |
|
|
404
|
+
| `getMediaQueryMinMax` | Applies a **min-max** media query with the specified breakpoints. |
|
|
405
|
+
|
|
406
|
+
### Grid — Base
|
|
407
|
+
|
|
408
|
+
| Export | Description |
|
|
409
|
+
| --- | --- |
|
|
410
|
+
| `gridStyle` | Applies the **Porsche Grid** layout system (must be applied once at the top level, span the full viewport width, and cannot be nested). |
|
|
411
|
+
|
|
412
|
+
### Grid — Narrow
|
|
413
|
+
|
|
414
|
+
| Export | Description |
|
|
415
|
+
| --- | --- |
|
|
416
|
+
| `gridNarrow` | Object containing all `narrow` grid styles. |
|
|
417
|
+
| `gridNarrowOffset` | Object containing all `narrow` grid offset styles. |
|
|
418
|
+
|
|
419
|
+
### Grid — Basic
|
|
420
|
+
|
|
421
|
+
| Export | Description |
|
|
422
|
+
| --- | --- |
|
|
423
|
+
| `gridBasic` | Object containing all `basic` grid styles. |
|
|
424
|
+
| `gridBasicOffset` | Object containing all `basic` grid offset styles. |
|
|
425
|
+
|
|
426
|
+
### Grid — Extended
|
|
427
|
+
|
|
428
|
+
| Export | Description |
|
|
429
|
+
| --- | --- |
|
|
430
|
+
| `gridExtended` | Object containing all `extended` grid styles. |
|
|
431
|
+
| `gridExtendedOffset` | Object containing all `extended` grid offset styles. |
|
|
432
|
+
|
|
433
|
+
### Grid — Wide
|
|
434
|
+
|
|
435
|
+
| Export | Description |
|
|
436
|
+
| --- | --- |
|
|
437
|
+
| `gridWide` | Object containing all `wide` grid styles. |
|
|
438
|
+
| `gridWideOffset` | Object containing all `wide` grid offset styles. |
|
|
439
|
+
|
|
440
|
+
### Grid — Full
|
|
441
|
+
|
|
442
|
+
| Export | Description |
|
|
443
|
+
| --- | --- |
|
|
444
|
+
| `gridFull` | Object containing all `full` grid styles. |
|