@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,331 @@
|
|
|
1
|
+
# Porsche Design System — Global styles
|
|
2
|
+
|
|
3
|
+
The global styles are the **foundation every Porsche Design System component depends on** — not an optional add-on. Each
|
|
4
|
+
component reads its colors, fonts, spacing, radii and motion from the global CSS variables and expects the reset and
|
|
5
|
+
font faces to be present. Without the global styles loaded, components render with the wrong colors, wrong fonts and
|
|
6
|
+
broken layout, or fail to render correctly at all. **Any** task that installs PDS, renders a component, sets up a page,
|
|
7
|
+
debugs "components look unstyled / wrong font / wrong colors", or touches theming and dark mode depends on what is
|
|
8
|
+
described here — read this reference for all of them.
|
|
9
|
+
|
|
10
|
+
> As of Porsche Design System **v4** the global styles are **required**, and `variables.css` and `font-face.css` in
|
|
11
|
+
> particular are mandatory — components will not render correctly without them. The single package CSS import
|
|
12
|
+
> (`@import '@porsche-design-system/components-angular/index.css'`, see "How to use" below) pulls in all
|
|
13
|
+
> of them at once and is the recommended setup.
|
|
14
|
+
|
|
15
|
+
## What the global styles contain
|
|
16
|
+
|
|
17
|
+
PDS ships four global stylesheets. The single package CSS import bundles all four; you can also import them individually
|
|
18
|
+
(see "How to use").
|
|
19
|
+
|
|
20
|
+
- **`variables.css`** _(required)_ — exposes the design system's **CSS variables** (custom properties) on `:root`: the
|
|
21
|
+
full palette of theme-aware colors, which resolve to the right value for the active color scheme via the native CSS
|
|
22
|
+
[`light-dark()`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) function,
|
|
23
|
+
plus spacing, typography, border-radius, blur, shadow and motion tokens, and `:lang()` font-family overrides. This is
|
|
24
|
+
what every component and every styling solution reads its values from — it is the single palette shared across PDS
|
|
25
|
+
components and your own custom markup.
|
|
26
|
+
- **`font-face.css`** _(required)_ — declares the Porsche `@font-face` sources. Without it the correct brand fonts never
|
|
27
|
+
load and text falls back to system fonts.
|
|
28
|
+
- **`color-scheme.css`** — the `.scheme-light` / `.scheme-dark` / `.scheme-light-dark` utility classes that drive the
|
|
29
|
+
CSS `color-scheme` property, plus an `@supports` polyfill for browsers without `light-dark()`. This one class themes
|
|
30
|
+
**both** the components and your custom markup — it is the entire theming mechanism; there is no `theme` prop on the
|
|
31
|
+
provider or on any component.
|
|
32
|
+
- **`normalize.css`** — the recommended reset / normalize rules and base typography (font family and line height) for
|
|
33
|
+
`html` and `body`.
|
|
34
|
+
|
|
35
|
+
Reach for the global CSS variables directly for a pure-CSS approach — to align components in your page layout or to
|
|
36
|
+
build custom components — when you prefer not to use one of the dedicated styling solutions
|
|
37
|
+
([Tailwind CSS](./styles/tailwindcss.md), [SCSS](./styles/scss.md), [Emotion](./styles/emotion.md) or
|
|
38
|
+
[Vanilla Extract](./styles/vanilla-extract.md)).
|
|
39
|
+
|
|
40
|
+
This document then serves as the complete index of the global styles: it lists every documented stylesheet, every
|
|
41
|
+
exposed CSS variable with its value, and every color-scheme class.
|
|
42
|
+
|
|
43
|
+
## How to use
|
|
44
|
+
|
|
45
|
+
### Import
|
|
46
|
+
|
|
47
|
+
When you import the main package CSS file, all global styles are included (CSS variables, color
|
|
48
|
+
scheme, font face and normalize):
|
|
49
|
+
|
|
50
|
+
```css
|
|
51
|
+
@import '@porsche-design-system/components-angular/index.css';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The explicit `/index.css` path resolves in every framework package. The `js`, React and Vue packages
|
|
55
|
+
additionally expose an extensionless shorthand via a `style` export condition, so with those you can
|
|
56
|
+
also write `@import '@porsche-design-system/components-react'` (bare, no `/index.css`). The Angular
|
|
57
|
+
package does **not** expose that condition — always use the explicit `/index.css` path there.
|
|
58
|
+
|
|
59
|
+
If you only need specific styles, import each stylesheet separately for more granular control. Note
|
|
60
|
+
that `variables.css` and `font-face.css` are **required** — components will not render correctly
|
|
61
|
+
without them:
|
|
62
|
+
|
|
63
|
+
```css
|
|
64
|
+
@import '@porsche-design-system/components-angular/variables.css';
|
|
65
|
+
@import '@porsche-design-system/components-angular/font-face.css';
|
|
66
|
+
@import '@porsche-design-system/components-angular/normalize.css';
|
|
67
|
+
@import '@porsche-design-system/components-angular/color-scheme.css';
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### CSS variables
|
|
71
|
+
|
|
72
|
+
Consume the exposed custom properties with `var(…)` in your own styles. Color variables resolve to
|
|
73
|
+
the correct value for the active color scheme automatically:
|
|
74
|
+
|
|
75
|
+
```css
|
|
76
|
+
.my-component {
|
|
77
|
+
background-color: var(--p-color-canvas);
|
|
78
|
+
color: var(--p-color-primary);
|
|
79
|
+
border-radius: var(--p-radius-md);
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Color scheme (light / dark)
|
|
84
|
+
|
|
85
|
+
Colors are driven by the native CSS [`light-dark()`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark)
|
|
86
|
+
function via the CSS [`color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/color-scheme)
|
|
87
|
+
property — no proprietary switching logic. By default, color tokens use the light color scheme. To
|
|
88
|
+
enable the dark color scheme or automatic switching, add one of the `.scheme-*` classes to the
|
|
89
|
+
`<html>` element or any ancestor; the selected scheme cascades to all child elements:
|
|
90
|
+
|
|
91
|
+
- `.scheme-light` — enforces the light color scheme.
|
|
92
|
+
- `.scheme-dark` — enforces the dark color scheme.
|
|
93
|
+
- `.scheme-light-dark` — automatically switches based on the user's system preference.
|
|
94
|
+
- `.scheme-only-light` — forces a light page island and prevents the browser from overriding it.
|
|
95
|
+
- `.scheme-only-dark` — forces a dark page island and prevents the browser from overriding it.
|
|
96
|
+
|
|
97
|
+
This one class themes **both** PDS components and your own custom markup — everything resolves colors
|
|
98
|
+
through the same `light-dark()` palette, so there is no separate component-level theming API and no
|
|
99
|
+
`theme` prop on `PorscheDesignSystemProvider` or on any component. Switching theme means setting the
|
|
100
|
+
`.scheme-*` class, nothing else.
|
|
101
|
+
|
|
102
|
+
```html
|
|
103
|
+
<html class="scheme-dark">
|
|
104
|
+
<body>
|
|
105
|
+
<!-- rendered in dark mode -->
|
|
106
|
+
<div class="my-component"></div>
|
|
107
|
+
</body>
|
|
108
|
+
</html>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
For fixed light or dark sections within a page, apply `.scheme-only-light` or `.scheme-only-dark` to each page island.
|
|
112
|
+
Before creating custom color aliases or hardcoded values, inspect the existing `.scheme-*` utilities. **Never redefine
|
|
113
|
+
PDS-owned variables such as `--p-color-*` to force a local scheme.**
|
|
114
|
+
|
|
115
|
+
```css
|
|
116
|
+
/* Anti-pattern: don't overwrite the PDS palette. */
|
|
117
|
+
.campaign-section {
|
|
118
|
+
--p-color-canvas: #0e0e12;
|
|
119
|
+
--p-color-primary: #fff;
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
```html
|
|
124
|
+
<!-- Recommended: the page follows the system while these islands stay fixed. -->
|
|
125
|
+
<html class="scheme-light-dark">
|
|
126
|
+
<body>
|
|
127
|
+
<main>
|
|
128
|
+
<section class="campaign-section scheme-only-dark">Dark campaign content</section>
|
|
129
|
+
<section class="campaign-section scheme-only-light">Light campaign content</section>
|
|
130
|
+
</main>
|
|
131
|
+
</body>
|
|
132
|
+
</html>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```css
|
|
136
|
+
.campaign-section {
|
|
137
|
+
background-color: var(--p-color-canvas);
|
|
138
|
+
color: var(--p-color-primary);
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
The `color-scheme.css` stylesheet additionally ships a polyfill for browsers without `light-dark()`
|
|
143
|
+
support. If [browser support](https://caniuse.com/mdn-css_types_color_light-dark) is already
|
|
144
|
+
sufficient for your project, you can skip the polyfill and use the native `color-scheme` property and
|
|
145
|
+
`light-dark()` function directly (e.g. `html { color-scheme: light dark; }`).
|
|
146
|
+
|
|
147
|
+
## Contents
|
|
148
|
+
|
|
149
|
+
- [Stylesheets](#stylesheets) — variables.css, color-scheme.css, normalize.css
|
|
150
|
+
- [CSS variables](#css-variables) — Color (Background / Foreground / Semantic / A11y), Font (Family / Weight / Line height / Size), Spacing (Fluid / Static), Border (Radius), Blur, Shadow, Motion (Duration / Ease)
|
|
151
|
+
- [Color-scheme classes](#color-scheme-classes) — Color scheme
|
|
152
|
+
|
|
153
|
+
## Stylesheets
|
|
154
|
+
|
|
155
|
+
| Stylesheet | Description |
|
|
156
|
+
| --- | --- |
|
|
157
|
+
| `variables.css` | Exposes the design system **CSS variables** (custom properties) on `:root`, including theme-aware colors resolved via `light-dark()` and `:lang()` font overrides. |
|
|
158
|
+
| `color-scheme.css` | Provides the `.scheme-*` utility classes controlling the CSS `color-scheme` property, plus the `@supports` `light-dark()` polyfill. |
|
|
159
|
+
| `normalize.css` | Recommended **normalize** styles including CSS reset rules and base typography (font family and line height) for `html` and `body`. |
|
|
160
|
+
|
|
161
|
+
## CSS variables
|
|
162
|
+
|
|
163
|
+
### Color — Background
|
|
164
|
+
|
|
165
|
+
| CSS variable | Value | Description |
|
|
166
|
+
| --- | --- | --- |
|
|
167
|
+
| `--p-color-canvas` | `light-dark(#fff,hsl(225 66.7% 1.2%))` | Applies the **canvas** color, typically used for surfaces. |
|
|
168
|
+
| `--p-color-surface` | `light-dark(hsl(240 10% 95%),hsl(240 2% 10%))` | Applies the **surface** color, typically used for surfaces. |
|
|
169
|
+
| `--p-color-frosted` | `light-dark(hsl(240 5% 70% / 0.148),hsl(240 2% 43% / 0.228))` | Applies the **frosted** color, typically used as a background in combination with a blur effect. |
|
|
170
|
+
| `--p-color-frosted-soft` | `light-dark(hsl(234 9.8% 60% / 0.06),hsl(240 3.7% 26.5% / 0.154))` | Applies the **frosted** color, typically used as a background `:hover`. |
|
|
171
|
+
| `--p-color-frosted-strong` | `light-dark(hsl(236 6.5% 42% / 0.236),hsl(240 1.5% 61.8% / 0.302))` | Applies the **frosted-strong** color, typically used as a background in combination with a blur effect. |
|
|
172
|
+
| `--p-color-backdrop` | `light-dark(hsl(240 5.3% 14.9% / 0.5),hsl(240 5.3% 14.9% / 0.5))` | Applies the **backdrop** color, typically used for backdrops. |
|
|
173
|
+
|
|
174
|
+
### Color — Foreground
|
|
175
|
+
|
|
176
|
+
| CSS variable | Value | Description |
|
|
177
|
+
| --- | --- | --- |
|
|
178
|
+
| `--p-color-primary` | `light-dark(hsl(225 66.7% 1.2%),hsl(225 100% 99%))` | Applies the **primary** color, typically used for text. |
|
|
179
|
+
| `--p-color-contrast-higher` | `light-dark(hsl(240 8.7% 9% / 0.8),hsl(240 12.5% 96.9% / 0.78))` | Applies the **contrast-higher** color, typically used for text. |
|
|
180
|
+
| `--p-color-contrast-high` | `light-dark(hsl(240 7.1% 11% / 0.7),hsl(240 12.5% 96.9% / 0.67))` | Applies the **contrast-high** color, typically used for text. |
|
|
181
|
+
| `--p-color-contrast-medium` | `light-dark(hsl(240 6.1% 7% / 0.6),hsl(240 12.5% 96.9% / 0.56))` | Applies the **contrast-medium** color, typically used for text. |
|
|
182
|
+
| `--p-color-contrast-low` | `light-dark(hsl(240 5.3% 14.9% / 0.5),hsl(240 12.5% 96.9% / 0.45))` | Applies the **contrast-low** color, intended only for decorative elements, as it is not accessibility-compliant. |
|
|
183
|
+
| `--p-color-contrast-lower` | `light-dark(hsl(234 6% 32.9% / 0.324),hsl(240 1.5% 61.8% / 0.302))` | Applies the **contrast-lower** color, intended only for decorative elements, as it is not accessibility-compliant. |
|
|
184
|
+
|
|
185
|
+
### Color — Semantic
|
|
186
|
+
|
|
187
|
+
| CSS variable | Value | Description |
|
|
188
|
+
| --- | --- | --- |
|
|
189
|
+
| `--p-color-info` | `light-dark(hsl(228 83.2% 51%),hsl(210 100% 54.5%))` | Applies the **info** color, typically used for text. |
|
|
190
|
+
| `--p-color-info-medium` | `light-dark(hsl(228 83.2% 51% / 0.6),hsl(210 100% 54.5% / 0.6))` | Applies the **info** color, typically used for text or border. |
|
|
191
|
+
| `--p-color-info-low` | `light-dark(hsl(228 83.2% 51% / 0.18),hsl(210 100% 54.5% / 0.18))` | Applies the **info** color, typically used for text or border. |
|
|
192
|
+
| `--p-color-info-frosted` | `light-dark(hsl(211 100% 90% / 0.55),hsl(210 79% 20% / 0.66))` | Applies the **info-frosted** color, typically used as background in combination with a blur effect. |
|
|
193
|
+
| `--p-color-info-frosted-soft` | `light-dark(hsl(211 80% 95% / 0.55),hsl(210 59% 15% / 0.66))` | Applies the **info-frosted-soft** color, typically used as background `:hover`. |
|
|
194
|
+
| `--p-color-success` | `light-dark(hsl(115 77.5% 27.8%),hsl(157 84.9% 41.6%))` | Applies the **success** color, typically used for text. |
|
|
195
|
+
| `--p-color-success-medium` | `light-dark(hsl(115 77.5% 27.8% / 0.6),hsl(157 84.9% 41.6% / 0.6))` | Applies the **success** color, typically used for text or border. |
|
|
196
|
+
| `--p-color-success-low` | `light-dark(hsl(115 77.5% 27.8% / 0.18),hsl(157 84.9% 41.6% / 0.18))` | Applies the **success** color, typically used for text or border. |
|
|
197
|
+
| `--p-color-success-frosted` | `light-dark(hsl(109 100% 90% / 0.55),hsl(157 79% 20% / 0.66))` | Applies the **success-frosted** color, typically used as background in combination with a blur effect. |
|
|
198
|
+
| `--p-color-success-frosted-soft` | `light-dark(hsl(109 80% 95% / 0.55),hsl(157 59% 15% / 0.66))` | Applies the **success-frosted-soft** color, typically used as background `:hover`. |
|
|
199
|
+
| `--p-color-warning` | `light-dark(hsl(28 97.7% 34.1%),hsl(28 90.2% 56.1%))` | Applies the **warning** color, typically used for text. |
|
|
200
|
+
| `--p-color-warning-medium` | `light-dark(hsl(28 97.7% 34.1% / 0.6),hsl(28 90.2% 56.1% / 0.6))` | Applies the **warning** color, typically used for text or border. |
|
|
201
|
+
| `--p-color-warning-low` | `light-dark(hsl(28 97.7% 34.1% / 0.18),hsl(28 90.2% 56.1% / 0.18))` | Applies the **warning** color, typically used for text or border. |
|
|
202
|
+
| `--p-color-warning-frosted` | `light-dark(hsl(40 100% 90% / 0.55),hsl(52 79% 20% / 0.66))` | Applies the **warning-frosted** color, typically used as background in combination with a blur effect. |
|
|
203
|
+
| `--p-color-warning-frosted-soft` | `light-dark(hsl(40 80% 95% / 0.55),hsl(52 59% 15% / 0.66))` | Applies the **warning-frosted-soft** color, typically used as background `:hover`. |
|
|
204
|
+
| `--p-color-error` | `light-dark(hsl(357 78% 41%),hsl(0 96.9% 62%))` | Applies the **error** color, typically used for text. |
|
|
205
|
+
| `--p-color-error-medium` | `light-dark(hsl(357 78% 41% / 0.6),hsl(0 96.9% 62% / 0.6))` | Applies the **error** color, typically used for text or border. |
|
|
206
|
+
| `--p-color-error-low` | `light-dark(hsl(357 78% 41% / 0.18),hsl(0 96.9% 62% / 0.18))` | Applies the **error** color, typically used for text or border. |
|
|
207
|
+
| `--p-color-error-frosted` | `light-dark(hsl(0 100% 90% / 0.55),hsl(0 79% 20% / 0.66))` | Applies the **error-frosted** color, typically used as background in combination with a blur effect. |
|
|
208
|
+
| `--p-color-error-frosted-soft` | `light-dark(hsl(0 80% 95% / 0.55),hsl(0 59% 15% / 0.66))` | Applies the **error-frosted-soft** color, typically used as background `:hover`. |
|
|
209
|
+
|
|
210
|
+
### Color — A11y
|
|
211
|
+
|
|
212
|
+
| CSS variable | Value | Description |
|
|
213
|
+
| --- | --- | --- |
|
|
214
|
+
| `--p-color-focus` | `light-dark(#1A44EA,#1A44EA)` | Applies the **focus** color, typically used as the outline for `:focus-visible` states. |
|
|
215
|
+
|
|
216
|
+
### Font — Family
|
|
217
|
+
|
|
218
|
+
| CSS variable | Value | Description |
|
|
219
|
+
| --- | --- | --- |
|
|
220
|
+
| `--p-font-porsche-next` | `'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif` | Applies the **Porsche Next** font family along with fallback fonts. Automatically swaps to the locale-specific CJK stack (Simplified Chinese, Traditional Chinese, Japanese, Korean) via `:lang()` based on the nearest `lang` attribute. |
|
|
221
|
+
| `--p-font-sans` | `var(--p-font-porsche-next)` | Alias for `--p-font-porsche-next`, provided for Tailwind-style `font-sans` usage. |
|
|
222
|
+
|
|
223
|
+
### Font — Weight
|
|
224
|
+
|
|
225
|
+
| CSS variable | Value | Description |
|
|
226
|
+
| --- | --- | --- |
|
|
227
|
+
| `--p-font-weight-normal` | `400` | Applies the **regular** font weight optimized for the Porsche Next typeface. |
|
|
228
|
+
| `--p-font-weight-semibold` | `600` | Applies the **semi-bold** font weight optimized for the Porsche Next typeface. |
|
|
229
|
+
| `--p-font-weight-bold` | `700` | Applies the **bold** font weight optimized for the Porsche Next typeface. |
|
|
230
|
+
|
|
231
|
+
### Font — Line height
|
|
232
|
+
|
|
233
|
+
| CSS variable | Value | Description |
|
|
234
|
+
| --- | --- | --- |
|
|
235
|
+
| `--p-leading-normal` | `calc(6px + 2.125ex)` | Applies a dynamic default line height specifically optimized for the Porsche Next typeface. |
|
|
236
|
+
|
|
237
|
+
### Font — Size
|
|
238
|
+
|
|
239
|
+
| CSS variable | Value | Description |
|
|
240
|
+
| --- | --- | --- |
|
|
241
|
+
| `--p-typescale-2xs` | `.75rem` | Applies the **2x-small** font size for the Porsche Next typeface. |
|
|
242
|
+
| `--p-typescale-xs` | `.875rem` | Applies the **x-small** font size for the Porsche Next typeface. |
|
|
243
|
+
| `--p-typescale-sm` | `1rem` | Applies the **small** font size for the Porsche Next typeface. |
|
|
244
|
+
| `--p-typescale-md` | `clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)` | Applies the **medium** font size for the Porsche Next typeface. |
|
|
245
|
+
| `--p-typescale-lg` | `clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)` | Applies the **large** font size for the Porsche Next typeface. |
|
|
246
|
+
| `--p-typescale-xl` | `clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)` | Applies the **x-large** font size for the Porsche Next typeface. |
|
|
247
|
+
| `--p-typescale-2xl` | `clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)` | Applies the **2x-large** font size for the Porsche Next typeface. |
|
|
248
|
+
| `--p-typescale-3xl` | `clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)` | Applies the **3x-large** font size for the Porsche Next typeface. |
|
|
249
|
+
| `--p-typescale-4xl` | `clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)` | Applies the **4x-large** font size for the Porsche Next typeface. |
|
|
250
|
+
| `--p-typescale-5xl` | `clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)` | Applies the **5x-large** font size for the Porsche Next typeface. |
|
|
251
|
+
|
|
252
|
+
### Spacing — Fluid
|
|
253
|
+
|
|
254
|
+
| CSS variable | Value | Description |
|
|
255
|
+
| --- | --- | --- |
|
|
256
|
+
| `--p-spacing-fluid-xs` | `clamp(4px, 0.25vw + 3px, 8px)` | Applies the **x-small** fluid spacing. |
|
|
257
|
+
| `--p-spacing-fluid-sm` | `clamp(8px, 0.5vw + 6px, 16px)` | Applies the **small** fluid spacing. |
|
|
258
|
+
| `--p-spacing-fluid-md` | `clamp(16px, 1.25vw + 12px, 36px)` | Applies the **medium** fluid spacing. |
|
|
259
|
+
| `--p-spacing-fluid-lg` | `clamp(32px, 2.75vw + 23px, 76px)` | Applies the **large** fluid spacing. |
|
|
260
|
+
| `--p-spacing-fluid-xl` | `clamp(48px, 3vw + 38px, 96px)` | Applies the **x-large** fluid spacing. |
|
|
261
|
+
| `--p-spacing-fluid-2xl` | `clamp(80px, 7.5vw + 56px, 200px)` | Applies the **2x-large** fluid spacing. |
|
|
262
|
+
|
|
263
|
+
### Spacing — Static
|
|
264
|
+
|
|
265
|
+
| CSS variable | Value | Description |
|
|
266
|
+
| --- | --- | --- |
|
|
267
|
+
| `--p-spacing-static-2xs` | `1px` | Applies the **2x-small** static spacing. |
|
|
268
|
+
| `--p-spacing-static-xs` | `4px` | Applies the **x-small** static spacing. |
|
|
269
|
+
| `--p-spacing-static-sm` | `8px` | Applies the **small** static spacing. |
|
|
270
|
+
| `--p-spacing-static-md` | `16px` | Applies the **medium** static spacing. |
|
|
271
|
+
| `--p-spacing-static-lg` | `32px` | Applies the **large** static spacing. |
|
|
272
|
+
| `--p-spacing-static-xl` | `48px` | Applies the **x-large** static spacing. |
|
|
273
|
+
| `--p-spacing-static-2xl` | `80px` | Applies the **2x-large** static spacing. |
|
|
274
|
+
|
|
275
|
+
### Border — Radius
|
|
276
|
+
|
|
277
|
+
| CSS variable | Value | Description |
|
|
278
|
+
| --- | --- | --- |
|
|
279
|
+
| `--p-radius-xs` | `2px` | Applies a **x-small** `border-radius`. |
|
|
280
|
+
| `--p-radius-sm` | `4px` | Applies a **small** `border-radius`. |
|
|
281
|
+
| `--p-radius-md` | `6px` | Applies a **medium** `border-radius`. |
|
|
282
|
+
| `--p-radius-lg` | `8px` | Applies a **large** `border-radius`. |
|
|
283
|
+
| `--p-radius-xl` | `12px` | Applies a **x-large** `border-radius`. |
|
|
284
|
+
| `--p-radius-2xl` | `16px` | Applies a **2x-large** `border-radius`. |
|
|
285
|
+
| `--p-radius-3xl` | `24px` | Applies a **3x-large** `border-radius`. |
|
|
286
|
+
| `--p-radius-4xl` | `32px` | Applies a **4x-large** `border-radius`. |
|
|
287
|
+
| `--p-radius-full` | `calc(infinity * 1px)` | Applies a **fully** rounded `border-radius`. |
|
|
288
|
+
|
|
289
|
+
### Blur
|
|
290
|
+
|
|
291
|
+
| CSS variable | Value | Description |
|
|
292
|
+
| --- | --- | --- |
|
|
293
|
+
| `--p-blur-frosted` | `blur(32px)` | Applies a **frosted** effect when used with `backdrop-filter` or `filter: blur()` when combined with a semi-transparent color. |
|
|
294
|
+
|
|
295
|
+
### Shadow
|
|
296
|
+
|
|
297
|
+
| CSS variable | Value | Description |
|
|
298
|
+
| --- | --- | --- |
|
|
299
|
+
| `--p-shadow-sm` | `0px 3px 8px rgba(0,0,0,.16)` | Applies a **small** `box-shadow`. |
|
|
300
|
+
| `--p-shadow-md` | `0px 4px 16px rgba(0,0,0,.16)` | Applies a **medium** `box-shadow`. |
|
|
301
|
+
| `--p-shadow-lg` | `0px 8px 40px rgba(0,0,0,.16)` | Applies a **large** `box-shadow`. |
|
|
302
|
+
|
|
303
|
+
### Motion — Duration
|
|
304
|
+
|
|
305
|
+
| CSS variable | Value | Description |
|
|
306
|
+
| --- | --- | --- |
|
|
307
|
+
| `--p-duration-sm` | `.25s` | Applies a **short** `transition-duration`. |
|
|
308
|
+
| `--p-duration-md` | `.4s` | Applies a **moderate** `transition-duration`. |
|
|
309
|
+
| `--p-duration-lg` | `.6s` | Applies a **long** `transition-duration`. |
|
|
310
|
+
| `--p-duration-xl` | `1.2s` | Applies a **very long** `transition-duration`. |
|
|
311
|
+
|
|
312
|
+
### Motion — Ease
|
|
313
|
+
|
|
314
|
+
| CSS variable | Value | Description |
|
|
315
|
+
| --- | --- | --- |
|
|
316
|
+
| `--p-ease-in-out` | `cubic-bezier(.25,.1,.25,1)` | Applies an **in-out** `transition-timing-function`. |
|
|
317
|
+
| `--p-ease-in` | `cubic-bezier(0,0,.2,1)` | Applies an **in** `transition-timing-function`. |
|
|
318
|
+
| `--p-ease-out` | `cubic-bezier(.4,0,.5,1)` | Applies an **out** `transition-timing-function`. |
|
|
319
|
+
|
|
320
|
+
## Color-scheme classes
|
|
321
|
+
|
|
322
|
+
### Color scheme
|
|
323
|
+
|
|
324
|
+
| Class | Usage | Description |
|
|
325
|
+
| --- | --- | --- |
|
|
326
|
+
| `.scheme-normal` | Set class="scheme-normal" on the html element or any container. | Sets `color-scheme: normal`. The element isn't rendered with any color scheme at all — the browser default applies. |
|
|
327
|
+
| `.scheme-dark` | Set class="scheme-dark" on the html element or any container. | Sets `color-scheme: dark`. Indicates the element supports only the dark color scheme. |
|
|
328
|
+
| `.scheme-light` | Set class="scheme-light" on the html element or any container. | Sets `color-scheme: light`. Indicates the element supports only the light color scheme. |
|
|
329
|
+
| `.scheme-light-dark` | Set class="scheme-light-dark" on the html element or any container. | Sets `color-scheme: light dark`. Indicates the element supports both light and dark, chosen by user preference. |
|
|
330
|
+
| `.scheme-only-dark` | Set class="scheme-only-dark" on the html element or any container. | Sets `color-scheme: only dark`. Forces the dark color scheme and prevents the browser from overriding it. |
|
|
331
|
+
| `.scheme-only-light` | Set class="scheme-only-light" on the html element or any container. | Sets `color-scheme: only light`. Forces the light color scheme and prevents the browser from overriding it. |
|