primitiv-ui 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +44 -0
  2. package/package.json +6 -6
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # primitiv-ui
2
+
3
+ The **Primitiv UI** design-system CLI. Add headless, accessible,
4
+ fully-styled components — and their design tokens — to any Vite or
5
+ Next.js project from the command line.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm i -D primitiv-ui
11
+ # or: pnpm add -D primitiv-ui
12
+ ```
13
+
14
+ This provides the `primitiv` command. The CLI is a small native binary
15
+ (written in Rust); `primitiv-ui` is a thin launcher that pulls in the
16
+ matching per-platform package via `optionalDependencies` and runs it — so
17
+ you only download the one binary your machine needs.
18
+
19
+ ## Usage
20
+
21
+ ```sh
22
+ primitiv init # scaffold primitiv.json and wire up tokens/theme
23
+ primitiv add button # add a component: styled surface + headless React + contract
24
+ primitiv tokens # emit design tokens (CSS / SCSS / Tailwind)
25
+ primitiv theme # emit the theme overrides layer
26
+ primitiv list # list available components and what's installed
27
+ ```
28
+
29
+ Pass `--help` to any command for its flags (e.g. `primitiv add --help`).
30
+
31
+ ## Supported platforms
32
+
33
+ macOS (arm64, x64), Linux (x64, arm64 — glibc), and Windows (x64). On any
34
+ other target, install the binary from source:
35
+
36
+ ```sh
37
+ cargo install primitiv-cli
38
+ ```
39
+
40
+ > **Native binary.** This won't run inside StackBlitz / WebContainer — their
41
+ > in-browser WASM Node can't execute native binaries. Use a local, Codespace,
42
+ > or Docker Node environment.
43
+
44
+ Part of the [Primitiv](https://github.com/primitiv-ui/primitiv) design system.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primitiv-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Primitiv UI — the design system CLI. Run `primitiv add button` in any Vite or Next.js project.",
5
5
  "keywords": ["primitiv", "design-system", "cli", "react", "tailwind"],
6
6
  "bin": {
@@ -9,11 +9,11 @@
9
9
  "files": ["bin"],
10
10
  "engines": { "node": ">=18" },
11
11
  "optionalDependencies": {
12
- "@primitiv-ui/cli-darwin-arm64": "0.1.0",
13
- "@primitiv-ui/cli-darwin-x64": "0.1.0",
14
- "@primitiv-ui/cli-linux-x64-gnu": "0.1.0",
15
- "@primitiv-ui/cli-linux-arm64-gnu": "0.1.0",
16
- "@primitiv-ui/cli-win32-x64": "0.1.0"
12
+ "@primitiv-ui/cli-darwin-arm64": "0.1.1",
13
+ "@primitiv-ui/cli-darwin-x64": "0.1.1",
14
+ "@primitiv-ui/cli-linux-x64-gnu": "0.1.1",
15
+ "@primitiv-ui/cli-linux-arm64-gnu": "0.1.1",
16
+ "@primitiv-ui/cli-win32-x64": "0.1.1"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",