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!

    Frame

    Frames are containers that maintain a consistent aspect ratio, ideal for images and other media.

    <div class="frame-overview pc-frame" style="max-inline-size: 20rem">
        <div></div>
    </div>
    
    <style>
        .frame-overview:has(div:empty) {
            padding: var(--pc-spacing-s);
            border: var(--pc-border-width-s) dashed
                var(--pc-color-neutral-border-normal);
            border-radius: var(--pc-border-radius-l);
        }
    
        .frame-overview > div:empty {
            min-inline-size: 4rem;
            min-block-size: 4rem;
            background-color: var(--pc-color-indigo-60);
            border-radius: var(--pc-border-radius-m);
        }
    </style>
    Code Edit

    Demos#

    Card image placeholders#

    Frames are well‐suited for images and image placeholders.

    Edit

    Aspect ratio#

    Frames have a square aspect ratio by default. You can append :square (1∶1), :landscape (16∶9) or :portrait (9∶16) to the pc-frame class in your markup to specify an aspect ratio for the frame. Alternatively you can define the aspect-ratio property to set a custom proportion.

    Edit

    Border radius#

    Frames have a square border radius by default. You can add any of the following pc-border-radius-* classes to an element with pc-frame to specify the border radius:

    • pc-border-radius-s
    • pc-border-radius-m
    • pc-border-radius-l
    • pc-border-radius-xl
    • pc-border-radius-pill
    • pc-border-radius-circle
    • pc-border-radius-square

    Alternatively, you can define the border-radius property to set custom rounding.

    Edit