Hardcoded Value Types
Colors
Spacing
Typography
Shadows
Borders
✗ Before: Hardcoded values everywhere
export function Card({ title }) {
return (
<div style={{
backgroundColor: '#ffffff', // ⚠️
padding: '16px', // ⚠️
borderRadius: '8px' // ⚠️
}}>
{title}
</div>
);
} ✓ After: Using design tokens
export function Card({ title }) {
return (
<div style={{
backgroundColor: 'var(--bg-surface)',
padding: 'var(--spacing-md)',
borderRadius: 'var(--radius-md)'
}}>
{title}
</div>
);
} See the worst hardcoded colors in the wild
Real examples from real codebases. Get the Hall of Shame PDF and see if your codebase makes the list.
No spam. Unsubscribe anytime.
Step 1: Find Every Hardcoded Value
Each issue shows the exact token replacement.
Step 2: Catch at the PR
Add Buoy to CI. Hardcoded values never reach main.
Hardcoded color #ffffff → Use var(--bg-surface)
Hardcoded spacing 16px → Use var(--spacing-md)
The Visible Outcome
Now when you update --color-primary, every component updates at once.
No hunting through files. No missed spots. One source of truth.