fix(skills): use ScarfFont token for OFF pill badge

The disabled-skill row's "OFF" pill used `.font(.system(size: 9, weight:
.semibold))`, which the project CLAUDE.md flags as a code smell ("bypass
the type scale… is a code smell"). The design system documents
`scarfStyle(.captionUppercase)` as the canonical badge font; switching
to it picks up the matching tracking + uppercase casing as a bonus.

The pin glyph above (`Image(systemName: "pin.fill").font(.system(size:
9))`) is left as-is — that's intentional glyph sizing on an `Image`,
which the design rule explicitly excludes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alan Wizemann
2026-05-01 13:27:07 +02:00
parent 15642d37cf
commit 681fa40c3c
@@ -242,7 +242,7 @@ struct SkillsView: View {
} }
if !skill.enabled { if !skill.enabled {
Text("OFF") Text("OFF")
.font(.system(size: 9, weight: .semibold)) .scarfStyle(.captionUppercase)
.padding(.horizontal, 4) .padding(.horizontal, 4)
.padding(.vertical, 1) .padding(.vertical, 1)
.background(ScarfColor.backgroundTertiary) .background(ScarfColor.backgroundTertiary)