# Convert To Css

Convert To Css on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example-ConvertToCSS`

```powershell
Import-Module .\PSWriteHTML.psd1 -Force

$Css = [ordered] @{
    ".tabsWrapper"         = [ordered]@{
        'text-align'     = 'center'
        'margin'         = "10px auto"
        'font-family'    = "'Roboto', sans-serif !important"
        'text-transform' = 'uppercase'
        'font-size'      = '15px'
    }
    '[data-tabs]'          = [ordered]@{
        'display'         = 'flex'
        'margin-top'      = '10px'
        # /*font-size =  15px;*/
        'padding'         = '0px'
        'box-shadow'      = '0px 5px 20px rgba(0, 0, 0, 0.1)'
        'border-radius'   = '4px'
        'justify-content' = 'center'
    }

    '[data-tabs]>*'        = [ordered]@{
        'cursor'  = 'pointer'
        'padding' = '10px 20px'
    }

    '[data-tabs] .active'  = [ordered]@{
        'background'    = '#1e90ff' # DodgerBlue
        'color'         = '#fff'
        'border-radius' = '4px'
    }

    '[data-panes]>*'       = [ordered]@{
        'display' = 'none'
    }

    '[data-panes]>.active' = [ordered]@{
        'display' = 'block'
    }
}

ConvertTo-CascadingStyleSheets -Css $Css
```

<!-- PowerForge markdown artifact sha256:467FFA3CB09E34B96BE3BA289D927FA818526E16F46B827C18A58C1C567C7865 -->
