fancy-ui-vue 0.1.1 → 0.2.0

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 +25 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -103,6 +103,31 @@ pnpm --filter fancy-ui-vue build
103
103
  pnpm --filter fancy-ui-vue-example-nuxt dev # http://localhost:3000
104
104
  ```
105
105
 
106
+ ## Copy the source into your project
107
+
108
+ The npm package stays the canonical way to use these components. If you would rather own the code, every component is also published as a registry item by the docs site, and the ecosystem CLI installs it by URL:
109
+
110
+ ```bash
111
+ npx shadcn-vue@latest add https://fancy-ui.rama.app/r/vue/rainbow-button.json
112
+ ```
113
+
114
+ The index of all items is at <https://fancy-ui.rama.app/r/vue/registry.json>. The CLI writes the component folder and the shared modules it needs under a `fancy/` folder inside your project's `ui` alias (`components/ui` by default), keeping the package's own tree one level deeper so the relative imports stay untouched:
115
+
116
+ ```
117
+ components/ui/fancy/utils.ts
118
+ components/ui/fancy/internals/…
119
+ components/ui/fancy/sound/…
120
+ components/ui/fancy/components/<slug>/…
121
+ ```
122
+
123
+ Five shared items are pulled in automatically as needed: `utils`, `internals`, `internals-dom`, `internals-motion` and `sound`. Import from the copied folder:
124
+
125
+ ```ts
126
+ import { RainbowButton } from "@/components/ui/fancy/components/rainbow-button";
127
+ ```
128
+
129
+ The components carry their own styles (the `<style>` blocks of the single-file components, plus the CSS files the shared modules import), so the `fancy-ui-vue` imports from [Quick Start](#quick-start) are not needed; the components still expect the semantic colour tokens listed under [Setup](#setup), which a project set up by the same CLI already defines. Dark mode: the components' `light-dark()` colours follow `color-scheme`, which that setup does not declare, so add `:root { color-scheme: light dark } .dark { color-scheme: dark }` to your CSS for them to switch with the `dark` class. In Nuxt, keep the copied tree out of component auto-import: `components: { dirs: [{ path: "~/components", ignore: ["ui/fancy/**"] }] }`.
130
+
106
131
  ## Setup
107
132
 
108
133
  ### Tailwind and colour tokens
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fancy-ui-vue",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Animated UI components for Vue — the Vue counterpart of fancy-ui-svelte. WebGL, GSAP and CSS motion, styled with Tailwind CSS v4.",
5
5
  "license": "MIT",
6
6
  "author": "Rama Herbin",