Skip to main content Design tokens Components Style utilities
Skip to table of contents

    Colour

    Colour tokens help maintain consistent use of colour throughout your app. Placer Toolkit provides palettes for theme colours and primitives that you can use as a foundation for your design system.

    Colour tokens are referenced using the --pc-color-{name}-{n} CSS custom property, where {name} is the name of the palette and {n} is the numeric value of the desired swatch.

    Theme tokens

    Theme tokens give you a semantic way to reference colours in your app. The primary palette is typically based on an accent colour, whereas the success, neutral, warning and danger palettes are used to visualise actions that correspond to their respective meanings.

    Neutral
    --pc-color-neutral-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Primary
    --pc-color-primary-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Success
    --pc-color-success-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Warning
    --pc-color-warning-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Danger
    --pc-color-danger-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    One‐offs
    --pc-color-neutral-{n}
    0
    1000

    Colour primitives

    Additional palettes are provided in the form of colour primitives. Use these when you need arbitrary colours that don’t have semantic meaning.

    Grey
    --pc-color-grey-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Red
    --pc-color-red-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Orange
    --pc-color-orange-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Amber
    --pc-color-amber-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Yellow
    --pc-color-yellow-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Lime
    --pc-color-lime-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Green
    --pc-color-green-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Emerald
    --pc-color-emerald-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Teal
    --pc-color-teal-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Cyan
    --pc-color-cyan-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Sky
    --pc-color-sky-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Blue
    --pc-color-blue-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Indigo
    --pc-color-indigo-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Violet
    --pc-color-violet-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Purple
    --pc-color-purple-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Fuchsia
    --pc-color-fuchsia-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Pink
    --pc-color-pink-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950
    Rose
    --pc-color-rose-{n}
    50
    100
    200
    300
    400
    500
    600
    700
    800
    900
    950