@sreedev/my3dui 0.2.3 → 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 +5 -10
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +16 -4
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
|
-
###
|
|
44
|
+
### Styles (zero-config)
|
|
45
45
|
|
|
46
|
-
|
|
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
|
|
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
|
|
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