rule @community/rule-web-safe-fallback-stack

Web Safe Fallback Stack

Every `font-family` declaration for a custom web font MUST include a web-safe generic fallback stack ending in `serif`, `sans-serif`, or `monospace` — and SHOULD include at least one OS-native font (system-ui, -apple-sys…

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
96/378/799
$ aoe install @community/rule-web-safe-fallback-stack

Projection

Always in _index.xml · the agent never has to ask for this.

WebSafeFallbackStack [rule] v1.0.0

Every font-family declaration for a custom web font MUST include a web-safe generic fallback stack ending in serif, sans-serif, or monospace — and SHOULD include at least one OS-native font (system-ui, -apple-system, 'Segoe UI', Roboto) before the generic to minimize layout shift when the custom font is absent.

Source

aoe-engine/examples/frontend-design/primes/compiled/@community/rule-web-safe-fallback-stack/atom.yaml