starwind 3.0.0-beta.1 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,8 +4,6 @@
4
4
 
5
5
  <p align="center">
6
6
  <a href="https://github.com/starwind-ui/starwind-ui"><img alt="npm + stars" src="https://shieldcn.dev/group/npm/starwind+github/stars/starwind-ui/starwind-ui.svg" /></a>
7
- <!-- <a href="https://www.npmjs.com/package/starwind"><img alt="badge" src="https://shieldcn.dev/npm/starwind.svg" /></a>
8
- <a href="https://github.com/starwind-ui/starwind-ui"><img alt="badge" src="https://shieldcn.dev/github/starwind-ui/starwind-ui/stars.svg" /></a> -->
9
7
  <a href="https://www.npmjs.com/package/starwind"><img alt="downloads" src="https://shieldcn.dev/npm/dm/starwind.svg" /></a>
10
8
  <a href="https://x.com/boston343builds"><img alt="follow" src="https://shieldcn.dev/x/follow/boston343builds.svg?split=true" /></a>
11
9
  </p>
@@ -15,53 +13,101 @@
15
13
  Starwind UI gives you accessible, Tailwind CSS components with Starwind/shadcn-style ergonomics,
16
14
  backed by a portable Runtime that powers Astro and React adapters today.
17
15
 
18
- **[Get Started →](https://starwind.dev/docs/getting-started/installation/)** &nbsp;|&nbsp; **[Explore Components](https://starwind.dev/docs/components/)**
16
+ The Starwind CLI is the main way to get started. Initialize a project, add only the components you
17
+ need, and keep the resulting source in your own codebase.
18
+
19
+ **[Get Started →](https://beta.starwind.dev/docs/getting-started/installation/)** &nbsp;|&nbsp;
20
+ **[Explore Components](https://beta.starwind.dev/docs/components/)**
19
21
 
20
22
  ## Why Starwind?
21
23
 
22
- - **🎯 Own Your Code** — Components live in your project, not hidden in `node_modules`. Customize everything.
23
- - **✨ Animated by Default** — Smooth, polished animations out of the box with Tailwind CSS v4.
24
- - **♿ Accessible** — Keyboard navigable and screen reader friendly. Built with a11y in mind.
25
- - **🚀 Portable Runtime** — Shared DOM behavior with generated Astro and React adapters.
26
- - **🛠️ CLI-Powered** — Add only what you need with a simple `npx starwind add` command.
24
+ - **🎯 Own Your Code** — Components are added to your project so you can customize and extend them.
25
+ - **🌌 Astro First** — A first-class Astro experience with React support from the same behavior foundation.
26
+ - **♿ Accessible** — Keyboard, focus, form, and screen reader behavior are built into the Runtime-backed components.
27
+ - **🚀 Portable Runtime** — Shared DOM behavior powers generated Astro and React adapters.
28
+ - **🛠️ CLI-Powered** — Initialize projects and add only what you need with a simple command-line workflow.
27
29
 
28
30
  ## Quick Start
29
31
 
30
- To test the portable Runtime beta in an Astro or React project:
32
+ Initialize an Astro project and add a component:
33
+
34
+ ```bash
35
+ npx starwind@beta init --framework astro
36
+ npx starwind@beta add button
37
+ ```
38
+
39
+ For React projects, use `--framework react`:
40
+
41
+ ```bash
42
+ npx starwind@beta init --framework react
43
+ npx starwind@beta add button
44
+ ```
45
+
46
+ You can omit the framework flag to select it interactively.
47
+
48
+ ## What the CLI can do
49
+
50
+ ### Add components
51
+
52
+ ```bash
53
+ npx starwind@beta add button dialog
54
+ ```
55
+
56
+ Run `add` without component names to browse the available components. The CLI installs required
57
+ dependencies and records the installed components in your Starwind configuration.
58
+
59
+ ### Update and remove components
31
60
 
32
61
  ```bash
33
- npx starwind@beta init
34
- npx starwind@beta add
62
+ npx starwind@beta update --all --dry-run
63
+ npx starwind@beta remove button
35
64
  ```
36
65
 
37
- The beta keeps Color Picker as a legacy Astro-only migration compatibility surface; it is not
38
- available for fresh Runtime or React installs.
66
+ Use `--dry-run`, `--diff`, and `--view` to inspect updates before changing files.
39
67
 
40
- ### Initialize your project
68
+ ### Find components and documentation
41
69
 
42
70
  ```bash
43
- npx starwind@latest init
71
+ npx starwind@beta search button
72
+ npx starwind@beta docs button
44
73
  ```
45
74
 
46
- ### Select components to add
75
+ Search can also discover primitive source with `--primitives` and emit JSON with `--json`.
76
+
77
+ ### Migrate legacy projects
47
78
 
48
79
  ```bash
49
- npx starwind@latest add
80
+ npx starwind@beta migrate
50
81
  ```
51
82
 
83
+ This moves legacy Starwind projects to the current Runtime setup.
84
+
85
+ ### Work with primitive source
86
+
87
+ Primitive source is available through the advanced `primitives add`, `primitives update`, and
88
+ `primitives list` commands when you need direct control over framework adapter source.
89
+
90
+ ### Starwind Pro
91
+
92
+ Use `npx starwind@beta setup` to configure Starwind Pro before adding Pro components or blocks.
93
+
52
94
  ## AI integration
53
95
 
54
96
  Resources for AI:
55
97
 
56
- - [Starwind Skills](https://starwind.dev/docs/getting-started/skills/)
57
- - [MCP server](https://starwind.dev/docs/getting-started/mcp/)
58
- - [llms.txt](https://starwind.dev/llms.txt)
59
- - [llms-full.txt](https://starwind.dev/llms-full.txt)
98
+ - [Starwind Skills](https://beta.starwind.dev/docs/getting-started/skills/)
99
+ - [MCP server](https://beta.starwind.dev/docs/getting-started/mcp/)
100
+ - [llms.txt](https://beta.starwind.dev/llms.txt)
101
+ - [llms-full.txt](https://beta.starwind.dev/llms-full.txt)
102
+
103
+ ## Documentation
104
+
105
+ Read the [Starwind documentation](https://beta.starwind.dev/docs/).
60
106
 
61
107
  ## Contributing
62
108
 
63
- Please read the [contributing guide](/CONTRIBUTING.md).
109
+ Please read the [contributing guide](https://github.com/starwind-ui/starwind-ui/blob/main/CONTRIBUTING.md).
64
110
 
65
111
  ## License
66
112
 
67
- Licensed under the [MIT license](/LICENSE).
113
+ Licensed under the [MIT license](https://github.com/starwind-ui/starwind-ui/blob/main/LICENSE).