Skip to main content

Object styles

The WPP DS object styling system provides specific shapes and effects for better visual communication.

Border

Borders help you outline the component frame and structure content. Position all borders inside.

Styles

#TokenUsageComments
wpp-border-style-solidAll borders except the Upload form
wpp-border-style-dashedUpload form

Dash: 6 px
Gap: 6 px

Width

#TokenSizeWidthUsage
wpp-border-width-sS1 pxUI elements, dividers
wpp-border-width-mM2 px
wpp-border-width-lL3 px

Border radius

In the WPP DS, all components have rounded borders. This roundness is carried through in the design of icons, too.

#TokenSizeRadiusUsage
wpp-border-radius-xsXS4 pxDrop-down menu item, Context menu item, Checkbox, Tag
wpp-border-radius-sS6 px

Input, Dropdown, Button, Action button, Drop-down list menu, Context menu, Tooltip, Tree, List

wpp-border-radius-mM8 pxInput, Dropdown, Button, Toast, Text select, Popover
wpp-border-radius-lL12 pxPopover, Toggle, Data card, Modal window
wpp-border-radius-xsXL20 px
wpp-border-radius-round50%Floating button, Pill

Box shadow

In the WPP DS, box shadow is reserved for transient components that appear elevated and are dismissable (for instance, Card, dropdown menus, and so on).

#TokenSizePropertiesUsage
wpp-shadow-grey-xsXS

X: 0
Y: 1
B: 4
S: 0
HEX: #343A3F
Opacity: 12%

Segmented control
wpp-shadow-grey-sS

X: 0
Y: 1
B: 0
S: 0
HEX: #343A3F
Opacity: 10%


X: 0
Y: 1
B: 0
S: 0
HEX: #343A3F
Opacity: 10%

Card
wpp-shadow-grey-mM

X: 0
Y: 1
B: 4
S: 0
HEX: #343A3F
Opacity: 5%


X: 0
Y: 4
B: 12
S: 0
HEX: #343A3F
Opacity: 12%

Dropdown list menu, Date picker dropdown, Context menu, Card, Tooltip, Popover
wpp-shadow-brand-mM

X: 0
Y: 4
B: 12
S: 0
HEX: #5E00B5
Opacity: 30%

Floating button
wpp-shadow-grey-lL

X: 0
Y: 8
B: 32
S: 0
HEX: #343A3F
Opacity: 5%

Modal window, Side modal, Card