I’m attempting to modify the way certain elements in my dashboard behave/look. I’m having issues with using raw CSS, I tried writing it as it is here but only the background and primary change.
I’ve tried the following:
$UDScriptRoot = $PSScriptRoot $themeCards = *New-UDTheme -Name "Basic" -Definition* @{ '.fa-sm' = @{ 'font-size' = '6em' opacity = '0.2' float = 'left' position = 'absolute' top = '10%' 'margin-left' = '50%' } '.MuiCard-root' = @{ overflow = 'hidden' position = 'relative' } palette = @{ primary = @{ #main = '#1d3557' main = '#2a9d8f' } background = @{ #default = '#a8dadc' default = '#264653' } } } $Pages = @() $Pages += New-UDPage -Name 'Dashboard1' -Content { . "$UDScriptRoot\Dashboard1.ps1" } $Pages += New-UDPage -Name 'Dashboard2' -Content { . "$UDScriptRoot\Dashboard2.ps1" } New-UDDashboard -Title 'Home' -Pages $Pages -Theme $themeCards
$UDScriptRoot = $PSScriptRoot $themeCards = @{ '.fa-sm' = @{ 'font-size' = '6em' opacity = '0.2' float = 'left' position = 'absolute' top = '10%' 'margin-left' = '50%' } '.MuiCard-root' = @{ overflow = 'hidden' position = 'relative' } palette = @{ primary = @{ #main = '#1d3557' main = '#2a9d8f' } background = @{ #default = '#a8dadc' default = '#264653' } } } $Pages = @() $Pages += New-UDPage -Name 'Dashboard1' -Content { . "$UDScriptRoot\Dashboard1.ps1" } $Pages += New-UDPage -Name 'Dashboard2' -Content { . "$UDScriptRoot\Dashboard2.ps1" } New-UDDashboard -Title 'Home' -Pages $Pages -Theme $themeCards
Product: PowerShell Universal
Version: 1.5.7