@hex-core/components 1.2.0 → 1.2.1

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
@@ -20,6 +20,15 @@ If you want to import the built components directly:
20
20
  pnpm add @hex-core/components
21
21
  ```
22
22
 
23
+ **Tailwind v4 consumers must register this package's bundle so utility classes resolve.** One line in your app's `globals.css`:
24
+
25
+ ```css
26
+ @import "tailwindcss";
27
+ @import "@hex-core/components/tailwind.css";
28
+ ```
29
+
30
+ Without it, classes like `inset-ring-foreground/[0.06]` (used by Button outline, Input, Card, etc.) appear in the rendered HTML but have no CSS rule, and components render unstyled. Tailwind v4 doesn't auto-scan `node_modules`.
31
+
23
32
  ```tsx
24
33
  import { Button } from "@hex-core/components";
25
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hex-core/components",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "AI-native React components for Hex UI — Radix UI + Tailwind CSS with machine-readable schemas.",
5
5
  "keywords": [
6
6
  "react",
@@ -30,10 +30,12 @@
30
30
  ".": {
31
31
  "import": "./dist/index.js",
32
32
  "types": "./dist/index.d.ts"
33
- }
33
+ },
34
+ "./tailwind.css": "./tailwind.css"
34
35
  },
35
36
  "files": [
36
37
  "dist",
38
+ "tailwind.css",
37
39
  "README.md",
38
40
  "LICENSE"
39
41
  ],
package/tailwind.css ADDED
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Tailwind v4 content-scan registration for @hex-core/components.
3
+ *
4
+ * Tailwind v4 doesn't auto-scan node_modules — without an explicit @source,
5
+ * utility classes embedded in this package's published JS bundle (e.g.
6
+ * `inset-ring-foreground/[0.06]` used by Button, Input, Checkbox, etc.)
7
+ * appear in the rendered HTML but have no matching CSS rule, so components
8
+ * render unstyled.
9
+ *
10
+ * Consumer usage (one line in the app's globals.css):
11
+ *
12
+ * @import "tailwindcss";
13
+ * @import "@hex-core/components/tailwind.css";
14
+ *
15
+ * The path resolves through the package's installed location, so it works
16
+ * with pnpm, npm, yarn, and any monorepo layout.
17
+ */
18
+ @source "./dist/*.js";