Skip to main content

Configuration

Every yummaui command, flag & config field.

View as Markdown

Setting up a project

Detects your framework, package manager & import alias before asking where components live.

Option
--forceReplace an existing yummaui.config.mjs
-y, --yesSkip prompts & take the defaults

Adding components

Copies one or more components in. With no names, it opens a list to search & pick from.

Option
-a, --allAdd every component
--shape <name>none, rounded or pill
--overwriteReplace files that already exist
-y, --yesSkip prompts & take the defaults

It asks before installing what a component needs from npm, and offers the same Yumma CSS setup as init when it is missing.

Listing components

Prints every component.

Removing unused components

Finds component files nothing in your project reaches.

Option
--writeDelete, instead of only listing
-y, --yesSkip the confirmation

Configuration file

yummaui.config.mjs
FieldMeaning
componentsDirWhere components are written, relative to the project root
aliasThe import prefix for that directory, or null to use relative imports
registryWhere components are fetched from
shapeThe shape add uses when --shape is not given

Registry

The registry is static JSON published by this site.

Point registry at your own copy to serve components from somewhere else.