@ponti-studios/ui 0.4.3 → 0.4.4

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
@@ -52,10 +52,12 @@ CI consumers should use a secret-backed npm token with read access.
52
52
  This package has no build output — every `exports` entry resolves to a file under `src/`. Consumers are expected to transpile the package themselves (Vite, Metro, Next, etc. all do this for workspace/npm packages by default). Tailwind v4 class detection for consumers of `./styles.css` requires an `@source` directive pointing at the installed package's `src/`, e.g.
53
53
 
54
54
  ```css
55
+ @import "tailwindcss";
56
+ @import "@ponti-studios/ui/styles.css";
55
57
  @source "../../../node_modules/@ponti-studios/ui/src";
56
58
  ```
57
59
 
58
- Bundling the package would break that detection, since Tailwind can't scan generated/minified output for class names. `pnpm run build` only type-checks; it does not emit JS.
60
+ **Important:** `./styles.css` uses `@reference "tailwindcss"` (it does not import Tailwind itself). Your project owns the `@import "tailwindcss"` — place it before the UI stylesheet. Omitting it will cause missing CSS variables (e.g. `--tw-shadow-color`) and unresolved utilities.
59
61
 
60
62
  ### `./native` subpath
61
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ponti-studios/ui",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "private": false,
5
5
  "description": "Shared UI component library for Ponti Studios",
6
6
  "license": "MIT",
@@ -1,4 +1,19 @@
1
- @import "tailwindcss";
1
+ /*
2
+ * DESIGN SYSTEM STYLESHEET — @ponti-studios/ui
3
+ *
4
+ * This file provides the design tokens and shared component styles consumed
5
+ * by your project. It does NOT import Tailwind CSS — your project owns that.
6
+ *
7
+ * Required in your project's entry CSS BEFORE this import:
8
+ *
9
+ * @import "tailwindcss";
10
+ * @import "@ponti-studios/ui/styles.css";
11
+ *
12
+ * If you omit the Tailwind import you may see missing CSS variables
13
+ * (e.g., --tw-shadow-color) or utilities that fail to resolve.
14
+ */
15
+
16
+ @reference "tailwindcss";
2
17
  @import "./tokens/generated/foundations.css";
3
18
  @import "./tokens/generated/light.css";
4
19
  @import "./tokens/generated/dark.css" (prefers-color-scheme: dark);