UDStyle component for Universal Dashboard

You can apply styles to individual components within Universal Dashboard by using the UDStyle component. This component can be found on the Universal Dashboard Marketplace.

Applying a Style

To apply a style to a component or a set of components, you call the New-UDStyle cmdlet, specify a CSS style and then include the components you wish to style within the -Content script block.

New-UDStyle -Style '
padding: 32px;
background-color: hotpink;
font-size: 24px;
border-radius: 4px;
&:hover {
color: white;
.card {
background-color: green !important;
}' -Content {
New-UDCard -Title 'Test' -Content {
UDStyled card