@equal-experts/kuat-vue 0.14.0-beta.0 → 0.14.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
@@ -117,50 +117,49 @@ import { KuatCarousel } from '@equal-experts/kuat-vue';
117
117
 
118
118
  ## Recommended setup
119
119
 
120
- ### 1. Tailwind
120
+ ### 1. Tailwind v4 + Kuat tokens (CSS-first)
121
121
 
122
- ```typescript
123
- // tailwind.config.ts
124
- import type { Config } from 'tailwindcss';
125
- import kuatPreset from '@equal-experts/kuat-core';
126
-
127
- export default {
128
- presets: [kuatPreset],
129
- content: [
130
- './src/**/*.{vue,js,ts}',
131
- './node_modules/@equal-experts/kuat-vue/**/*.{vue,js,ts}',
132
- ],
133
- } satisfies Config;
134
- ```
135
-
136
- ### 2. Tailwind runtime stylesheet (required for Tailwind v4)
137
-
138
- Create a global stylesheet and load Tailwind:
122
+ Add the Tailwind v4 plugin to your build (e.g. `@tailwindcss/vite`), then create
123
+ a global stylesheet that imports Tailwind and the Kuat tokens. The tokens must
124
+ be pulled in **through Tailwind** (a CSS `@import`) so the `@theme` block in
125
+ `variables.css` is processed and the token utilities (`bg-primary`,
126
+ `text-foreground`, `rounded-lg`, …) are generated:
139
127
 
140
128
  ```css
141
- /* src/tailwind.css */
129
+ /* src/index.css */
130
+ @import "@equal-experts/kuat-core/fonts.css"; /* fonts; or a <link> — see kuat-core README */
142
131
  @import "tailwindcss";
132
+ @import "@equal-experts/kuat-core/variables.css";
143
133
  ```
144
134
 
145
- ### 3. Design tokens and Kuat styles
135
+ > A plain JS `import "@equal-experts/kuat-core/variables.css"` loads the raw
136
+ > variables but does **not** feed the `@theme` block to Tailwind, so the token
137
+ > utilities never generate (with no error). Always `@import` the tokens through
138
+ > Tailwind, as above.
139
+ >
140
+ > The legacy JS preset (`presets: [kuatPreset]`) is **deprecated** and is not
141
+ > auto-loaded by Tailwind v4 — don't use it. See the kuat-core README.
142
+
143
+ ### 2. Component styles (once per app entrypoint)
144
+
145
+ Kuat component CSS is pre-compiled, so a JS import is correct here:
146
146
 
147
147
  ```typescript
148
148
  // main.ts
149
- import '@equal-experts/kuat-core/variables.css';
150
- import '@equal-experts/kuat-vue/styles';
151
- import './tailwind.css';
149
+ import '@equal-experts/kuat-vue/styles'; // pre-compiled component CSS
150
+ import './index.css'; // Tailwind + Kuat tokens (from step 1)
152
151
  ```
153
152
 
154
153
  If you scaffolded from a starter template (for example Vite), remove or neutralize template CSS that resets fonts/layout globally (for example `src/style.css` with `:root { font: ... }`, `body { ... }`, `#app { ... }`). These rules can override Kuat typography and spacing.
155
154
 
156
- ### 4. shadcn-vue for gaps
155
+ ### 3. shadcn-vue for gaps
157
156
 
158
157
  ```bash
159
158
  npx shadcn-vue@latest init
160
159
  npx shadcn-vue@latest add dialog dropdown-menu
161
160
  ```
162
161
 
163
- ### 5. Use Kuat + shadcn-vue together
162
+ ### 4. Use Kuat + shadcn-vue together
164
163
 
165
164
  ```vue
166
165
  <script setup lang="ts">
@@ -228,6 +227,8 @@ Use this quick smoke test after installation to verify imports, styles, and Tail
228
227
  import {
229
228
  Button,
230
229
  Field,
230
+ FieldLabel,
231
+ Input,
231
232
  KuatCarousel,
232
233
  KuatCarouselContent,
233
234
  KuatCarouselItem,
@@ -241,8 +242,8 @@ import {
241
242
  <h1 class="text-4xl font-bold">Kuat install smoke test</h1>
242
243
 
243
244
  <Field>
244
- <label for="name">Name</label>
245
- <input id="name" placeholder="Test input" />
245
+ <FieldLabel for="name">Name</FieldLabel>
246
+ <Input id="name" placeholder="Test input" />
246
247
  </Field>
247
248
 
248
249
  <Button variant="primary">Primary action</Button>
@@ -4,7 +4,7 @@ Rules for this install live under `agent-docs/` in `@equal-experts/kuat-core`, `
4
4
 
5
5
  1. Run `ensure-rules.sh` from kuat-agent-docs skills (symlinked) — expect `RULES_SOURCE=package` when cwd has node_modules.
6
6
  2. Load `agent-docs/rules/LOADING-consumer.md`.
7
- 3. Load component guides via `agent-docs/components.manifest.json`.
7
+ 3. Load component guides via `agent-docs/components/components.manifest.json`.
8
8
  4. Skills: `kuat-review`, `kuat-create` from [kuat-agent-docs](https://github.com/equalexperts/kuat-agent-docs).
9
9
 
10
- **Version:** 0.14.0-beta.0 · **Rules snapshot:** 538afc80d437
10
+ **Version:** 0.14.0-beta.2 · **Rules snapshot:** 9b0e773d809b
@@ -14,4 +14,4 @@ Curated agent docs bundled with `@equal-experts/kuat-core`, `@equal-experts/kuat
14
14
  node scripts/agent-docs/bundle-for-core.mjs
15
15
  ```
16
16
 
17
- Built against upstream ref: `538afc80d437`
17
+ Built against upstream ref: `9b0e773d809b`
@@ -1,8 +1,8 @@
1
1
  {
2
- "packageVersion": "0.14.0-beta.0",
2
+ "packageVersion": "0.14.0-beta.2",
3
3
  "rules": {
4
- "snapshotRef": "538afc80d4372a6c6cdcd75c4d35782b5988a664",
5
- "snapshotDate": "2026-06-24T13:14:10.590Z",
4
+ "snapshotRef": "9b0e773d809beedff9cd663ecddc2b6be0b69897",
5
+ "snapshotDate": "2026-07-01T10:17:20.202Z",
6
6
  "sourceRepo": "equalexperts/kuat-agent-docs",
7
7
  "loadingPath": "agent-docs/rules/LOADING-consumer.md"
8
8
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Package:** @equal-experts/kuat-core (and mirrored in kuat-react / kuat-vue agent-docs)
4
4
 
5
- **Snapshot:** 538afc80d437
5
+ **Snapshot:** 9b0e773d809b
6
6
 
7
7
  ## Default load (web product / marketing UI)
8
8