@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 +28 -27
- package/agent-docs/AGENTS.md +2 -2
- package/agent-docs/README.md +1 -1
- package/agent-docs/manifest.json +3 -3
- package/agent-docs/rules/LOADING-consumer.md +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
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
|
-
|
|
123
|
-
|
|
124
|
-
import
|
|
125
|
-
|
|
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/
|
|
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
|
-
|
|
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-
|
|
150
|
-
import '
|
|
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
|
-
###
|
|
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
|
-
###
|
|
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
|
-
<
|
|
245
|
-
<
|
|
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>
|
package/agent-docs/AGENTS.md
CHANGED
|
@@ -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.
|
|
10
|
+
**Version:** 0.14.0-beta.2 · **Rules snapshot:** 9b0e773d809b
|
package/agent-docs/README.md
CHANGED
package/agent-docs/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"packageVersion": "0.14.0-beta.
|
|
2
|
+
"packageVersion": "0.14.0-beta.2",
|
|
3
3
|
"rules": {
|
|
4
|
-
"snapshotRef": "
|
|
5
|
-
"snapshotDate": "2026-
|
|
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
|
}
|