@kgalexander/mcreate 0.0.6 → 0.0.8

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
@@ -8,6 +8,20 @@ mcreate package
8
8
  npm install @kgalexander/mcreate
9
9
  ```
10
10
 
11
+ ## Tailwind CSS v4 Setup
12
+
13
+ This package uses Tailwind CSS utility classes. For styles to work correctly, you need to configure Tailwind to scan the package for class names.
14
+
15
+ Add the `@source` directive to your `globals.css` (or main CSS file):
16
+
17
+ ```css
18
+ @import "tailwindcss";
19
+
20
+ @source "../node_modules/@kgalexander/mcreate";
21
+ ```
22
+
23
+ > **Why is this needed?** Tailwind CSS v4 doesn't scan `node_modules` by default. The `@source` directive tells Tailwind to include class names from this package when compiling your CSS.
24
+
11
25
  ## Local Development with npm link
12
26
 
13
27
  When using `npm link` to develop this package locally with a Next.js application, you need to configure Next.js to resolve symlinked packages outside the project directory.