$ErrorActionPreference = 'Stop' $htmlPath = Join-Path $PSScriptRoot '..\assets\app.css' $html = Get-Content -Raw -LiteralPath $htmlPath $rule = [regex]::Match( $html, '(?s)\.app\[data-page="workbench"\]\s+\.entry\s+\.entry-icon\s*\{(?
[^}]*)\}' ) if (-not $rule.Success) { throw 'Homepage entry icons do not have a shared workbench-scoped color rule.' } $body = $rule.Groups['body'].Value if ($body -notmatch 'background\s*:\s*var\(--ios-blue-soft\)') { throw 'Homepage entry icon backgrounds are not uniformly light blue.' } if ($body -notmatch 'color\s*:\s*var\(--ios-blue\)') { throw 'Homepage entry icon foregrounds are not uniformly blue.' } Write-Output 'PASS: homepage entry icons use the shared blue treatment'