Skip to main content Sidebar Design tokens Components Layout Style utilities

We’d love to hear from you. Please reach out to us with any questions or inquiries you may have.

You can contact us via e‐mail at placer.coc.reports+contact@gmail.com.

We look forward to hearing from you!

Got it!
Skip to table of contents

The Placer Toolkit alpha has arrived! 🎉
Plenty of changes are coming your way—some big, some breaking, some even nuclear! Beware the changelog…

Bring it on!

    Shadows

    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)