drip

drip vendors Lustre UI elements (Gleam, CSS, and sometimes a little FFI) straight into your project’s src/. Run it from the root of a Gleam + Lustre project with gleam run -m drip -- <command>.

Commands

CommandWhat it does
initScaffolds theme.css, the generated index.css, and wires up your entry stylesheet.
listLists the elements in the registry, marking which are already vendored.
add <element>...Vendors one or more elements and their dependencies into src/<prefix>/.
remove <element>...Deletes the named elements’ files.

Flags

FlagCommandsDescription
--prefix <dir>initDirectory under src/ that elements vendor into, saved to [tools.drip] in your gleam.toml (default: ui).
--source <url-or-path>initRegistry to vendor from, a URL or local path, saved to [tools.drip] in your gleam.toml (default: the latest GitHub release).
--forceinit, addOverwrite files that already exist on disk.

Pass --help to any command to see its usage. The full element catalog, configuration reference, and live examples live at https://drip.pink.

Values

pub fn main() -> Nil

Entry point for the drip CLI, invoked by gleam run -m drip.

Search Document