React PlumberInstall package

Reference

Configuration

Plumber reads plumber.config.ts, .mts, .mjs or .js from your project root, or the file you pass to --config. The config is optional, and plumber init writes one for you.

ts
// plumber.config.ts
export default {
  css: 'src/index.css',
  decisions: { spacing: { from: ['theme:--spacing-*'] } },
  habits: ['hover-gate', 'focus-outline', 'transition-named', 'no-ease-in'],
}
OptionWhat it sets
cssYour CSS entry.
sourceWhich files are read. Leave it out to read all of your own code.
decisionsWhere each family’s tokens come from. See Decisions.
habitsThe habits that run.
componentsWhere your components live.
classHelpersYour own functions that join class names.
craftThe numbers and rules the page checks use. npx plumber spec prints the values in effect.