Zum Hauptinhalt springen Seitenleiste
Zum Inhaltsverzeichnis springen

    Shadows

    Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

    Shadows indicate elevation and, often, interactivity. Placer Toolkit offers highly modular shadow properties to easily create custom shadow effects or transform elements based on specific shadow qualities. Together with --pc-color-shadow, these tokens create realistic shadows for Placer Toolkit components.

    These are constructed using the corresponding x‐offset, y‐offset, blur and spread properties, detailed in the sections below. In Placer Toolkit, shadows use a size‐based scale, where larger shadows have greater offset and blur values to indicate greater distance from the surface below.

    Custom propertyExample
    --pc-shadow-xs
    --pc-shadow-s
    --pc-shadow-m
    --pc-shadow-l
    --pc-shadow-xl

    Any shadow may be implemented as an inner box shadow using the inset keyword, e.g., box-shadow: inset var(--pc-shadow-m).

    Horizontal offset (X‐offset)#

    Each x‐offset property uses a calc() function with --pc-shadow-offset-x-scale to uniformly scale horizontal offset values. By default, this multiplier is 0. The table below lists the result of the calculation.

    Custom propertyDefault value
    --pc-shadow-offset-x-xs0rem
    --pc-shadow-offset-x-s0rem
    --pc-shadow-offset-x-m0rem
    --pc-shadow-offset-x-l0rem
    --pc-shadow-offset-x-xl0rem

    Vertical offset (Y‐offset)#

    Each y‐offset property uses a calc() function with --pc-shadow-offset-y-scale to uniformly scale vertical offset values. By default, this multiplier is 1. The table below lists the result of the calculation.

    Custom propertyDefault value
    --pc-shadow-offset-y-xs0.0625rem (1 px)
    --pc-shadow-offset-y-s0.125rem (2 px)
    --pc-shadow-offset-y-m0.25rem (4 px)
    --pc-shadow-offset-y-l0.5rem (8 px)
    --pc-shadow-offset-y-xl1rem (16 px)

    Blur#

    Each blur property uses calc() function with --pc-shadow-blur-scale to uniformly scale blur values. By default, this multiplier is 1. The table below lists the result of the calculation.

    Custom propertyDefault value
    --pc-shadow-blur-xs0.0625rem (1 px)
    --pc-shadow-blur-s0.125rem (2 px)
    --pc-shadow-blur-m0.25rem (4 px)
    --pc-shadow-blur-l0.5rem (8 px)
    --pc-shadow-blur-xl0.75rem (12 px)

    Spread#

    Each spread property uses calc() function with --pc-shadow-spread-scale to uniformly scale spread values. By default, this multiplier is −0,5. The table below lists the result of the calculation.

    Custom propertyDefault value
    --pc-shadow-spread-xs-0.03125rem (−0,5 px)
    --pc-shadow-spread-s-0.0625rem (−1 px)
    --pc-shadow-spread-m-0.125rem (−2 px)
    --pc-shadow-spread-l-0.25rem (−4 px)
    --pc-shadow-spread-xl-0.375rem (−6 px)

    Wir würden uns freuen, von dir zu hören. Bitte kontaktiere uns bei Fragen oder Anliegen, die du hast.

    Du kannst uns per E‐Mail unter placer.coc.reports+contact@gmail.com erreichen.

    Wir freuen uns darauf, von dir zu hören!

    Alles klar!
    Gefährliche Lande

    Ui! Du bist in die gefährlichen Lande von Placer Toolkit geraten. Version 0 ist veraltet und entspricht nicht den EU‐Datenschutzstandards, einschließlich DSGVO.

    Willst du die neuesten Kräfte, Sicherheit und Compliance? Bleib bei der aktuellen Version von Placer Toolkit!

    Ups! Aufladen!