performa 1.0.2 → 1.0.3

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 +15 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -38,9 +38,22 @@ npm install performa @tanstack/start
38
38
 
39
39
  ### Tailwind CSS Setup
40
40
 
41
- performa uses Tailwind CSS for styling. To ensure the styles work correctly in your project, add the performa library path to your Tailwind configuration.
41
+ performa uses Tailwind CSS for styling. The setup depends on your Tailwind version:
42
42
 
43
- Add the following to your `tailwind.config.js` or `tailwind.config.ts`:
43
+ #### Tailwind CSS v4.0+
44
+
45
+ Add the `@source` directive to your main CSS file to scan the performa library:
46
+
47
+ ```css
48
+ @import "tailwindcss";
49
+
50
+ /* Add performa library as a source */
51
+ @source "../node_modules/performa/dist";
52
+ ```
53
+
54
+ #### Tailwind CSS v3.x
55
+
56
+ Add the performa library path to your `tailwind.config.js` or `tailwind.config.ts`:
44
57
 
45
58
  ```javascript
46
59
  /** @type {import('tailwindcss').Config} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "performa",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Type-safe React forms with server-side validation and framework adapters",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",