Files

23 lines
738 B
PowerShell
Raw Permalink Normal View History

2026-09-08 14:05:30 +08:00
$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*\{(?<body>[^}]*)\}'
)
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'