remix_cli 0.1.0
remix_cli: ^0.1.0 copied to clipboard
Install editable Remix design-system source into Flutter applications.
0.1.0 #
Initial release of remix_cli: a command-line tool that installs editable Remix
design-system source into Flutter applications. Requires Flutter 3.44 (Dart 3.12)
or later.
Projects and registries #
remix initwrites a schema 3remix.yamlconfiguration file. The file sets the component prefix, preset (vanillaby default, orfortal), UI path, and pins the official@remixregistry to aregistry-stablecommit.- Repeating
remix initwith matching options is safe. The command rejects conflicting configurations without modifying existing files. remix registry addadds an external GitHub registry.remix registry updateadvances a pinned registry to its latest commit.- The CLI resolves all registries in a single dependency graph before writing files. It rejects cycles, conflicting target paths, and incompatible package requirements.
- Optional
iconLibrary: remix|lucideselects the icon package for installed components. Registry templates resolve icon placeholders fromicons.yaml. Omitting the key defaults to Remix icons. - The prefixes
RemixandMixare reserved for runtime dependencies.
Installing items #
remix addinstalls requested components and shared dependencies in a single batch. Dependency resolution, code generation, formatting, and analysis each run once per batch.- Unknown or duplicate items cause the command to fail before writing files.
remix addadds missing compatible dependencies topubspec.yamland preserves existing dependency declarations. Misplaced or duplicate entries cause the command to fail before execution, reporting the package name and target section.- Code generation runs only for declared adapters and preserves existing adapters. New dependencies cannot remove previously generated code.
- Enables Mix's spec-styler builder only when installed components require it.
- Inspection and overwrite flags:
--dry-runpreviews planned changes.--diffcompares local component source against pinned registry source.--overwritereplaces authored files for requested items without modifying shared dependencies.
remix addwarns when the resolvedremixversion is newer than the version recorded in the registry snapshot.- Uses the Flutter SDK's Dart executable on Windows.
- Supports explicit, glob, and nested workspace members in monorepos.
Presets #
vanilla: a neutral, shadcn-style theme set in Geist fromremix_ui_fonts, with light and dark themes and a component recipe for every styled Remix surface.fortal: application-owned source derived from Radix Themes 3.3.0, with a prefixed token theme, the full component catalog, and no direct dependency onremix_fortal,mix, ornaked_ui.- Both presets generate
theme,darkTheme, andmodescope parameters that follow the system appearance by default. - Both presets include
app_bar,sidebar,sidebar_layout,toast,dashboard_shell,dashboard_demo, an opt-iniconsseam, an optionalchartcomponent backed bymix_chart, and unstyled Agent items with opt-in<component>_recipestylers. - Generated adapters require Remix
^1.0.0-beta.11.