Repository navigation
·
16 commits
to main
since this release
Major Changes
-
#240
efcf6b6Thanks @stefan-karger! - solidui-cli 1.0 sets up Solid UI for Solid 2. Projects on Solid 1 keep usingsolidui-cli@0.7.2, which installs from the previous registry; the migration guide walks through the move.Breaking changes
- Requires Solid 2, Vite with
@solidjs/vite-plugin, Tailwind CSS 4.3 or later and TypeScript. On Solid 1 or Tailwind CSS 3, init stops and points to 0.7.2 and the migration guide. components.jsonreplacesui.config.json. A project that still hasui.config.jsonis pointed to 0.7.2.- Components come from the per-style registry at
/r/and are built with UI SDK instead of Kobalte and Corvu. - No
tailwind.config, Tailwind prefix or JavaScript output: the theme lives in a generatedsolid-ui.css.
init
- Starts from one of eight presets or a preset code from the Create page (
--preset) and writescomponents.json,solid-ui.csswith the theme tokens, fonts and shared utilities, and thecnhelper. - Installs the project's dependencies when they aren't installed yet, with the package manager that runs it.
- Checks
solid-jsandtailwindcssagainst the tested ranges and offers to update older minors. It only changes an installed version after asking, or with--yeswhere the components need it. - Sets up the import alias (
~by default,--aliasfor another prefix) intsconfig.jsonandvite.config. --forceswitches the preset and keeps your components and aliases.
add
- Adds components with the components they use, rewrites their imports to your aliases and applies your preset's menu color.
- Keeps files you changed unless you pass
--overwrite, and installs the exact UI SDK build the components are tested with. SOLID_UI_REGISTRY_URLpoints the CLI at another registry host, such as a local docs server.
- Requires Solid 2, Vite with