From 063afdbff6c0f45fb2c97553a0363a88c7a2602d Mon Sep 17 00:00:00 2001 From: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 09:33:54 +0000 Subject: [PATCH] chore(web): hex-color audit + annotate intentional shadows (UI audit #10) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extends scripts/audit-css.mjs to also report hardcoded hex colors outside CSS custom-property defs (`--name: #xxx;`) and outside `var(--token, #fallback)` token-default fallbacks (which are explicitly allowed per repo design-system rules). Initial run reports 4 violations — all intentional pre-cascade body defaults in :root and html.dark that must be literal hex (no var()) so the page renders correct colors before the cascade resolves the custom props. Annotated each with an explanatory comment; values intentionally mirror --foreground / --background. Future drift surfaces immediately. UI audit doc §5 #10 updated to reflect the sweep is done and the 4 known violations are documented. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- docs/ui/UI_AUDIT.md | 2 +- web/scripts/audit-css.mjs | 48 ++++++++++++++++++++++++++++++++++++--- web/src/index.css | 4 ++++ 3 files changed, 50 insertions(+), 4 deletions(-) diff --git a/docs/ui/UI_AUDIT.md b/docs/ui/UI_AUDIT.md index 5c73f26..4b715ac 100644 --- a/docs/ui/UI_AUDIT.md +++ b/docs/ui/UI_AUDIT.md @@ -259,7 +259,7 @@ Quick Actions block fixed in commit `343ffb4`. 28 inline-style blocks remain — 8. **Refactor OverviewTab + HomeView + MyStrategiesTab** to extract inline styles into `home.css` / `overview.css` / `strategies.css` partials. Highest user impact (these are landing pages). 9. **Component primitives audit:** add a `` primitive in `@bytelyst/ui` (or an `as="card"` variant on `