@shortwind/catalog 0.1.0-beta.3 → 0.1.0-beta.5

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 ADDED
@@ -0,0 +1,31 @@
1
+ # @shortwind/catalog
2
+
3
+ The Shortwind recipe catalog — the built, versioned recipe files that the CLI installs from.
4
+
5
+ [Shortwind](https://shortwind.dev) is a token-efficient class layer for Tailwind: you write short `@recipe` names in `class=`/`className=` and they expand to full Tailwind class clusters at build time.
6
+
7
+ ## You don't install this directly
8
+
9
+ This package is a **source of recipes**, not a runtime dependency. The CLI fetches the latest catalog from npm (falling back to a bundled copy offline) and **copies** the recipe files into your project's `./recipes/`, shadcn-style — so you own and can edit them. It won't appear in your `dependencies` or `devDependencies`.
10
+
11
+ ```bash
12
+ npx @shortwind/cli@beta init # pulls recipes from this catalog into ./recipes/
13
+ ```
14
+
15
+ ## What's inside
16
+
17
+ `dist/registry/` contains the published catalog:
18
+
19
+ - `recipes/<family>.css` — each family's `@recipe` definitions, sealed with a versioned, hash-checked header (`/* shortwind: <family>@<version> sha:<…> */`).
20
+ - `presets.json` — the named install presets (`starter`, `app`, `content`, `all`).
21
+ - `manifest.json` — the family list with versions.
22
+
23
+ Current families:
24
+
25
+ `badge` `button` `card` `code` `dialog` `empty` `feedback` `form` `icon` `layout` `list` `media` `navigation` `progress` `skeleton` `surface` `table` `text` `tooltip`
26
+
27
+ ## Versioning
28
+
29
+ Each family is versioned independently; content changes are machine-checked against a committed ledger so a recipe body can't change without a version bump. The CLI's `upgrade` and `verify` commands use these versions and hashes to keep your vendored copies in sync (or flag intentional edits, which `shortwind reseal` re-signs).
30
+
31
+ Published on the `beta` tag. Docs: <https://shortwind.dev>