@sreedev/my3dui 0.2.4 → 0.2.5

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
@@ -41,21 +41,16 @@ yarn add @sreedev/my3dui react react-dom
41
41
  pnpm add @sreedev/my3dui react react-dom
42
42
  ```
43
43
 
44
- ### Import styles (required for theming)
44
+ ### Styles (zero-config)
45
45
 
46
- Import the library's built CSS once in your app (e.g. in `main.tsx` or `_app.tsx`) so design tokens and Tailwind utilities apply:
46
+ **Styles load automatically** when you import any component from `@sreedev/my3dui`. You do **not** need to import CSS manually.
47
47
 
48
48
  ```tsx
49
- import "@sreedev/my3dui/styles.css";
50
- ```
51
-
52
- Or from the package path:
53
-
54
- ```tsx
55
- import "@sreedev/my3dui/styles.css"; // or "./node_modules/@sreedev/my3dui/dist/styles.css"
49
+ import { Button3D, ThemeProvider } from "@sreedev/my3dui";
50
+ // That's it — design tokens and Tailwind utilities are already loaded
56
51
  ```
57
52
 
58
- The CSS includes Tailwind base/components/utilities and all theme token definitions (`:root`, `.dark`, `.neon`, `.glass`, `.corporate`, `.vibrant`). You do **not** need to install Tailwind in your app to use My3DUI components; the built CSS is self-contained. For custom utilities or content beyond the library, you can still add your own Tailwind config and extend the theme.
53
+ The built CSS (Tailwind base/components/utilities and theme tokens for `:root`, `.dark`, `.neon`, `.glass`, `.corporate`, `.vibrant`) is bundled with the library and injected when your bundler resolves the package. You do **not** need to install Tailwind in your app. Optional: if you need to load styles without importing a component (e.g. for SSR or a custom entry), you can still do `import "@sreedev/my3dui/styles.css"`.
59
54
 
60
55
  ### Optional Dependencies
61
56
 
package/dist/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ require("./styles.css");
1
2
  "use strict";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;