stylelint-plugin-css-performance-budget
stylelint-plugin-css-performance-budget provides focused Stylelint guardrails for CSS rendering cost.
Start Hereโ
- New setup: Getting Started
- Config comparison: Config Matrix
- Low-noise preset: ๐ข performance-budget-recommended
- Strict preset: ๐ก๏ธ performance-budget-strict
- Full audit preset: ๐ฃ performance-budget-all
What it checksโ
- heavy selectors
- giant selector lists
- render-blocking CSS imports
- excessive filter/backdrop stacks and blur radii
- expensive transition and keyframe property targets
- expensive fixed/sticky positioning patterns
- fixed background attachment
- global expensive effects
- oversized performance-sensitive custom property values
- reduced-motion coverage for expensive motion
- broad or risky will-change usage
- layout-affecting motion targets
- paint/compositing value budgets
Package exportsโ
- default plugin pack export
performanceBudgetPluginConfigs- ๐ข
performance-budget-recommended - ๐ฃ
performance-budget-all - ๐ก๏ธ
performance-budget-strict
- ๐ข
Rule philosophyโ
๐ข Recommended mode aims for low-noise defaults. ๐ฃ All and ๐ก๏ธ strict profiles include broader enforcement for teams that want tighter budgets.
Use the config matrix to compare rule coverage before enabling a stricter profile.