Skip to main content Sidebar
Skip to table of contents

    Component groups

    For components that share similar qualities, Placer Toolkit includes custom properties to change the appearance of these related components all at once.

    Form controls#

    Components such as Input, Select, Textarea and Checkbox share a number of styles to give your forms a cohesive appearance. Placer Toolkit defines custom properties for these styles using the --pc-form-control-{style} format.

    Not every form control uses all of these custom properties. For example, <pc-radio> defines its own height and border radius to achieve its familiar shape but shares many other styles with other components for a cohesive look and feel. Similarly, <pc-button> defines many of its own styles but matches the height and border width of other form controls.

    Custom propertyDefault value
    --pc-form-control-background-colorvar(--pc-color-surface-default)
    --pc-form-control-border-widthvar(--pc-border-width-s)
    --pc-form-control-border-stylevar(--pc-border-style)
    --pc-form-control-border-colorvar(--pc-color-neutral-border-loud)
    --pc-form-control-border-radiusvar(--pc-border-radius-m)
    --pc-form-control-activated-colorvar(--pc-color-primary-fill-loud)
    --pc-form-control-label-colorvar(--pc-color-text-normal)
    --pc-form-control-label-font-weightvar(--pc-font-weight-medium)
    --pc-form-control-label-line-heightvar(--pc-line-height-dense)
    --pc-form-control-value-colorvar(--pc-color-text-normal)
    --pc-form-control-value-font-weightvar(--pc-font-weight-normal)
    --pc-form-control-value-line-heightvar(--pc-line-height-dense)
    --pc-form-control-hint-colorvar(--pc-color-text-quiet)
    --pc-form-control-hint-font-weightvar(--pc-font-weight-normal)
    --pc-form-control-hint-line-heightvar(--pc-line-height-normal)
    --pc-form-control-placeholder-colorvar(--pc-color-neutral-50)
    --pc-form-control-required-content"*"
    --pc-form-control-required-content-offset0.125em
    --pc-form-control-required-content-colorvar(--pc-color-danger-60)
    --pc-form-control-padding-block0.6em
    --pc-form-control-padding-inline0.85em
    --pc-form-control-heightround(calc(2 * var(--pc-form-control-padding-block) + 1em * var(--pc-form-control-value-line-height)), 1px)
    --pc-form-control-toggle-sizeround(1.25em, 1px)

    Panels#

    Panels consist of components with larger, contained surface areas like callouts, cards, details and dialogs.

    Custom propertyDefault value
    --pc-panel-border-stylevar(--pc-border-style)
    --pc-panel-border-widthvar(--pc-border-width-s)
    --pc-panel-border-radiusvar(--pc-border-radius-l)

    Tooltips#

    Tooltip styles are used in the Tooltip component.

    Custom propertyDefault value
    --pc-tooltip-border-radiusvar(--pc-border-radius-s)
    --pc-tooltip-background-colorvar(--pc-color-neutral-fill-normal)
    --pc-tooltip-colorvar(--pc-color-text-normal)
    --pc-tooltip-font-familyvar(--pc-font-sans)
    --pc-tooltip-font-weightvar(--pc-font-weight-medium)
    --pc-tooltip-font-sizevar(--pc-font-size-s)
    --pc-tooltip-line-heightvar(--pc-line-height-dense)
    --pc-tooltip-paddingvar(--pc-spacing-xs) var(--pc-spacing-s)
    --pc-tooltip-arrow-size0.375rem

    We’d love to hear from you. Please reach out to us with any questions or enquiries 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!
    Dangerous lands

    Whoa! You’ve wandered into the dangerous lands of Placer Toolkit. Version 0 is out of date and doesn’t meet EU privacy standards, including GDPR.

    Want the latest powers, security and compliance? Stick with the current version of Placer Toolkit!

    Yikes! Power up!