Skill Wiki v0.1.0
anti-pattern @community/anti-pattern-hardcoded-pixel-values

Hardcoded Pixel Values

Writing raw pixel values (`padding: 16px`, `font-size: 14px`, `border-radius: 8px`) directly into component CSS instead of referencing CSS custom properties or design tokens.…

Skill
@community
Domain
design-system
Version
1.0.0
Quality
4.0
Edges
3 out · 7 in
Tokens
94/471/848
$ prime install @community/anti-pattern-hardcoded-pixel-values

Projection

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

HardcodedPixelValues [anti-pattern] v1.0.0

Writing raw pixel values (padding: 16px, font-size: 14px, border-radius: 8px) directly into component CSS instead of referencing CSS custom properties or design tokens. The values may individually look correct, but they bypass the token layer that allows theming, scaling, and consistent global change.

Source

prime-system/examples/frontend-design/primes/compiled/@community/anti-pattern-hardcoded-pixel-values/atom.yaml

Compiled at 2026-05-07