Repository navigation
@yugen-ui/cli 0.8.0
@yugen-ui/cli 0.8.0 and create-yugen-ui 0.8.0.
yugen css --watchkeeps the lean CSS file current while source imports change. The bundled Next.js template runs it beside
next dev; Vite templates include@yugen-ui/cli/viteandyugenCss().initwires the Vite plugin into an existing
Tailwind CSS v4 project.--watchcannot be combined with--check.init,doctorandthemenow print an explicit<Toaster />inside the root<YugenProvider>instead of the deprecated
withToasterprop.yugen css: writesyugen-ui.csswith@import "yugen-ui/theme-core.css";and one
@import "yugen-ui/sources/<Folder>.css";per component folder your code imports, instead oftheme.csswith every
component. On the templates the gzipped CSS goes from about 26 kB to 12–20 kB (−24% to −54%). Imports are read with
a small lexer, so examples inside strings, comments or JSX text don't count;import * as,export *and
import()ofyugen-uifall back totheme.css.--checkexits with 1 when the file is out of date;--src
limits the folders it reads;--precompilecompiles plain CSS for apps without Tailwind (26.8 kB → 12.8–21.1 kB)
with the project's owntailwindcss,@tailwindcss/nodeand@tailwindcss/oxide(#169).init(package mode, Tailwind CSS v4) writesyugen-ui.cssand imports it instead ofyugen-ui/theme.css. A CSS
file that already importstheme.cssis left as it is.addin package mode adds the component toyugen-ui.csswhen the app has one.doctoracceptsyugen-ui/theme-core.css(it reported "theme not imported"), warns whenyugen-ui.cssis out of
date or not imported, and names the components imported without theirsources/<Folder>.css.- No runtime dependencies: own prompts on
node:readlineand colors withnode:utilstyleTextreplace
@clack/promptsandpicocolors(#381). - Bundled templates ship
package.jsonas_package.json;createrenames it back. Scanners no longer read the
templates' manifests as dependencies of the CLI (#381). create --refno longer readsGITHUB_TOKEN/GH_TOKEN(#381).add/updaterefuse registry file paths that leave the target folder and dependency specs that are not npm
package specs; on Windows the package manager that launched the CLI runs without a shell (#381).LICENSEfile in@yugen-ui/cliandcreate-yugen-ui;homepagepoints to the path URL of the CLI page.
Full notes: packages/cli/CHANGELOG.md · News