mirror of
https://github.com/awizemann/scarf.git
synced 2026-05-10 10:36:35 +00:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user