From add667fe009c2c8a0691d3425242333947f24467 Mon Sep 17 00:00:00 2001 From: Max Rozdobudko Date: Sat, 21 Feb 2026 00:13:56 +0200 Subject: [PATCH] Warn when token names conflict with SwiftUI built-in ShapeStyle properties Highlights conflicting tokens (e.g. "primary", "background") with a red outline and warning icon in the tag, and shows an inline hint in the popover prompting users to set a custom style name override. Co-Authored-By: Claude Opus 4.6 --- .../pages/src/components/TokenPopover.svelte | 10 +++++++ .github/pages/src/components/TokenTag.svelte | 11 ++++++- .github/pages/src/lib/validation.js | 27 +++++++++++++++++ .github/pages/src/styles/app.css | 30 +++++++++++++++++++ 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 .github/pages/src/lib/validation.js diff --git a/.github/pages/src/components/TokenPopover.svelte b/.github/pages/src/components/TokenPopover.svelte index c67a0ea..2f0657d 100644 --- a/.github/pages/src/components/TokenPopover.svelte +++ b/.github/pages/src/components/TokenPopover.svelte @@ -1,5 +1,6 @@ - + {token.name} + {#if hasConflict} + + + + + + {/if}