@aumnidigital/bms 0.1.2 → 0.1.3

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
@@ -88,6 +88,23 @@ This is a paragraph with **bold** and *italic* text.
88
88
 
89
89
  ### 1. Tailwind CSS Configuration
90
90
 
91
+ #### For Tailwind v4 (Recommended)
92
+
93
+ Import the package's styles.css in your main CSS file. This enables Tailwind to scan the package's classes:
94
+
95
+ ```css
96
+ @import "tailwindcss";
97
+ @import "@aumnidigital/bms/styles.css";
98
+
99
+ @layer base {
100
+ :root {
101
+ --background: 0 0% 100%;
102
+ --foreground: 222.2 84% 4.9%;
103
+ /* ... rest of CSS variables ... */
104
+ }
105
+ }
106
+ ```
107
+
91
108
  #### For Tailwind v3 (with tailwind.config.js)
92
109
 
93
110
  Add the package to your Tailwind `content` array:
@@ -106,27 +123,6 @@ module.exports = {
106
123
  };
107
124
  ```
108
125
 
109
- #### For Tailwind v4 (with CSS imports) - Vite
110
-
111
- In your main CSS file:
112
-
113
- ```css
114
- @import "tailwindcss";
115
-
116
- /* Include the package components */
117
- @source "../node_modules/@aumnidigital/bms/dist/**/*.{js,cjs}";
118
- @source "./src/**/*.{js,ts,jsx,tsx}";
119
-
120
- /* CSS variables for shadcn */
121
- @layer base {
122
- :root {
123
- /* ... CSS variables here ... */
124
- }
125
- }
126
- ```
127
-
128
- **Note for Vite users**: If `@source` doesn't work, use a `tailwind.config.js` file instead with the content array shown above.
129
-
130
126
  ### 2. CSS Variables
131
127
 
132
128
  Add these CSS variables to your global stylesheet (required for shadcn components):
@@ -0,0 +1,5 @@
1
+ /*
2
+ * @aumnidigital/bms styles
3
+ * Import this file in your main CSS to enable Tailwind scanning of this package
4
+ */
5
+ @source "./";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aumnidigital/bms",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Runtime MDX renderer with shadcn/ui components for React applications",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -43,7 +43,8 @@
43
43
  "types": "./dist/components/index.d.cts",
44
44
  "default": "./dist/components/index.cjs"
45
45
  }
46
- }
46
+ },
47
+ "./styles.css": "./dist/styles.css"
47
48
  },
48
49
  "files": [
49
50
  "dist",