@djangocfg/ui-core 2.1.217 → 2.1.219
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 +16 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -200,10 +200,24 @@ function App() {
|
|
|
200
200
|
}
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
## Styling
|
|
203
|
+
## Styling (Next.js / Tailwind v4)
|
|
204
|
+
|
|
205
|
+
In your app's `globals.css`, import the package styles and add `@source` directives for every workspace package that ships Tailwind classes. Tailwind v4 does **not** scan `node_modules` automatically.
|
|
206
|
+
|
|
207
|
+
```css
|
|
208
|
+
/* globals.css */
|
|
209
|
+
@import "@djangocfg/ui-nextjs/styles"; /* ui-core + ui-nextjs tokens & theme */
|
|
210
|
+
@import "@djangocfg/layouts/styles"; /* layout tokens */
|
|
211
|
+
@import "@djangocfg/ui-tools/styles"; /* heavy tool components */
|
|
212
|
+
@import "@djangocfg/debuger/styles"; /* debug panel (if used) */
|
|
213
|
+
@import "tailwindcss";
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Each package that ships Tailwind classes exposes a `./styles` entry containing a single `@source` directive — no manual path configuration needed.
|
|
217
|
+
|
|
218
|
+
For non-Next.js (Electron, Vite):
|
|
204
219
|
|
|
205
220
|
```tsx
|
|
206
|
-
// Import global styles
|
|
207
221
|
import '@djangocfg/ui-core/styles/globals';
|
|
208
222
|
```
|
|
209
223
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ui-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.219",
|
|
4
4
|
"description": "Pure React UI component library without Next.js dependencies - for Electron, Vite, CRA apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui-components",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"playground": "playground dev"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@djangocfg/i18n": "^2.1.
|
|
84
|
+
"@djangocfg/i18n": "^2.1.219",
|
|
85
85
|
"react-device-detect": "^2.2.3",
|
|
86
86
|
"consola": "^3.4.2",
|
|
87
87
|
"lucide-react": "^0.545.0",
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
"vaul": "1.1.2"
|
|
144
144
|
},
|
|
145
145
|
"devDependencies": {
|
|
146
|
-
"@djangocfg/i18n": "^2.1.
|
|
146
|
+
"@djangocfg/i18n": "^2.1.219",
|
|
147
147
|
"@djangocfg/playground": "workspace:*",
|
|
148
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
148
|
+
"@djangocfg/typescript-config": "^2.1.219",
|
|
149
149
|
"@types/node": "^24.7.2",
|
|
150
150
|
"@types/react": "^19.1.0",
|
|
151
151
|
"@types/react-dom": "^19.1.0",
|