@onesaz/tailwind-config 0.2.6 → 0.2.8

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.
Files changed (2) hide show
  1. package/dist/v4.css +139 -126
  2. package/package.json +1 -1
package/dist/v4.css CHANGED
@@ -291,145 +291,158 @@
291
291
  * DEFAULT THEME CSS VARIABLES
292
292
  * These provide default values so components work out of the box.
293
293
  * Consumers can override these in their own CSS.
294
+ * IMPORTANT: Must be in @layer base for Tailwind v4 cascade to work!
294
295
  * ======================================== */
295
- :root {
296
- --background: #ffffff;
297
- --foreground: #0f172a;
298
- --card: #ffffff;
299
- --card-foreground: #0f172a;
300
- --popover: #ffffff;
301
- --popover-foreground: #0f172a;
302
- --muted: #f1f5f9;
303
- --muted-foreground: #64748b;
304
- --border: #e2e8f0;
305
- --input: #e2e8f0;
306
- --accent: #6739b7;
307
- --accent-hover: #4f2d8f;
308
- --accent-foreground: #ffffff;
309
- --ring: #6739b7;
310
- --destructive: #dc2626;
311
- --destructive-foreground: #ffffff;
312
- --radius: 0.375rem;
313
- --radius-lg: 0.5rem;
314
- }
315
-
316
- .dark, [data-theme="dark"] {
317
- --background: #0f172a;
318
- --foreground: #f8fafc;
319
- --card: #1e293b;
320
- --card-foreground: #f8fafc;
321
- --popover: #1e293b;
322
- --popover-foreground: #f8fafc;
323
- --muted: #334155;
324
- --muted-foreground: #94a3b8;
325
- --border: #334155;
326
- --input: #334155;
327
- --accent: #8b5cf6;
328
- --accent-hover: #6739b7;
329
- --destructive: #ef4444;
330
- --destructive-foreground: #ffffff;
296
+ @layer base {
297
+ /* Apply theme colors to body by default */
298
+ body {
299
+ background-color: var(--background);
300
+ color: var(--foreground);
301
+ }
302
+
303
+ :root {
304
+ --background: #ffffff;
305
+ --foreground: #0f172a;
306
+ --card: #ffffff;
307
+ --card-foreground: #0f172a;
308
+ --popover: #ffffff;
309
+ --popover-foreground: #0f172a;
310
+ --muted: #f1f5f9;
311
+ --muted-foreground: #64748b;
312
+ --border: #e2e8f0;
313
+ --input: #e2e8f0;
314
+ --accent: #6739b7;
315
+ --accent-hover: #4f2d8f;
316
+ --accent-foreground: #ffffff;
317
+ --ring: #6739b7;
318
+ --destructive: #dc2626;
319
+ --destructive-foreground: #ffffff;
320
+ --radius: 0.375rem;
321
+ --radius-lg: 0.5rem;
322
+ }
323
+
324
+ .dark, [data-theme="dark"] {
325
+ --background: #0f172a;
326
+ --foreground: #f8fafc;
327
+ --card: #1e293b;
328
+ --card-foreground: #f8fafc;
329
+ --popover: #1e293b;
330
+ --popover-foreground: #f8fafc;
331
+ --muted: #334155;
332
+ --muted-foreground: #94a3b8;
333
+ --border: #334155;
334
+ --input: #334155;
335
+ --accent: #8b5cf6;
336
+ --accent-hover: #6739b7;
337
+ --destructive: #ef4444;
338
+ --destructive-foreground: #ffffff;
339
+ }
331
340
  }
332
341
 
333
342
  /* ========================================
334
343
  * ACCENT COLOR PRESETS
335
344
  * Usage: <html data-accent="blue"> or <div data-accent="blue">
336
345
  * ======================================== */
346
+ @layer base {
347
+ /* Purple (Onesaz Custom - Default) */
348
+ [data-accent="purple"] {
349
+ --accent: #6739b7;
350
+ --accent-hover: #4f2d8f;
351
+ --accent-foreground: #ffffff;
352
+ --ring: #6739b7;
353
+ }
354
+ [data-accent="purple"].dark, .dark [data-accent="purple"], [data-accent="purple"][data-theme="dark"] {
355
+ --accent: #8b5cf6;
356
+ --accent-hover: #6739b7;
357
+ }
337
358
 
338
- /* Purple (Onesaz Custom - Default) */
339
- [data-accent="purple"] {
340
- --accent: #6739b7;
341
- --accent-hover: #4f2d8f;
342
- --accent-foreground: #ffffff;
343
- --ring: #6739b7;
344
- }
345
- [data-accent="purple"].dark, .dark [data-accent="purple"], [data-accent="purple"][data-theme="dark"] {
346
- --accent: #8b5cf6;
347
- --accent-hover: #6739b7;
348
- }
349
-
350
- /* Blue */
351
- [data-accent="blue"] {
352
- --accent: #3b82f6;
353
- --accent-hover: #2563eb;
354
- --accent-foreground: #ffffff;
355
- --ring: #3b82f6;
356
- }
357
- [data-accent="blue"].dark, .dark [data-accent="blue"], [data-accent="blue"][data-theme="dark"] {
358
- --accent: #60a5fa;
359
- --accent-hover: #3b82f6;
360
- }
359
+ /* Blue */
360
+ [data-accent="blue"] {
361
+ --accent: #3b82f6;
362
+ --accent-hover: #2563eb;
363
+ --accent-foreground: #ffffff;
364
+ --ring: #3b82f6;
365
+ }
366
+ [data-accent="blue"].dark, .dark [data-accent="blue"], [data-accent="blue"][data-theme="dark"] {
367
+ --accent: #60a5fa;
368
+ --accent-hover: #3b82f6;
369
+ }
361
370
 
362
- /* Cyan */
363
- [data-accent="cyan"] {
364
- --accent: #06b6d4;
365
- --accent-hover: #0891b2;
366
- --accent-foreground: #ffffff;
367
- --ring: #06b6d4;
368
- }
369
- [data-accent="cyan"].dark, .dark [data-accent="cyan"], [data-accent="cyan"][data-theme="dark"] {
370
- --accent: #22d3ee;
371
- --accent-hover: #06b6d4;
372
- }
371
+ /* Cyan */
372
+ [data-accent="cyan"] {
373
+ --accent: #06b6d4;
374
+ --accent-hover: #0891b2;
375
+ --accent-foreground: #ffffff;
376
+ --ring: #06b6d4;
377
+ }
378
+ [data-accent="cyan"].dark, .dark [data-accent="cyan"], [data-accent="cyan"][data-theme="dark"] {
379
+ --accent: #22d3ee;
380
+ --accent-hover: #06b6d4;
381
+ }
373
382
 
374
- /* Teal */
375
- [data-accent="teal"] {
376
- --accent: #14b8a6;
377
- --accent-hover: #0d9488;
378
- --accent-foreground: #ffffff;
379
- --ring: #14b8a6;
380
- }
381
- [data-accent="teal"].dark, .dark [data-accent="teal"], [data-accent="teal"][data-theme="dark"] {
382
- --accent: #2dd4bf;
383
- --accent-hover: #14b8a6;
384
- }
383
+ /* Teal */
384
+ [data-accent="teal"] {
385
+ --accent: #14b8a6;
386
+ --accent-hover: #0d9488;
387
+ --accent-foreground: #ffffff;
388
+ --ring: #14b8a6;
389
+ }
390
+ [data-accent="teal"].dark, .dark [data-accent="teal"], [data-accent="teal"][data-theme="dark"] {
391
+ --accent: #2dd4bf;
392
+ --accent-hover: #14b8a6;
393
+ }
385
394
 
386
- /* Green */
387
- [data-accent="green"] {
388
- --accent: #22c55e;
389
- --accent-hover: #16a34a;
390
- --accent-foreground: #ffffff;
391
- --ring: #22c55e;
392
- }
393
- [data-accent="green"].dark, .dark [data-accent="green"], [data-accent="green"][data-theme="dark"] {
394
- --accent: #4ade80;
395
- --accent-hover: #22c55e;
396
- }
395
+ /* Green */
396
+ [data-accent="green"] {
397
+ --accent: #22c55e;
398
+ --accent-hover: #16a34a;
399
+ --accent-foreground: #ffffff;
400
+ --ring: #22c55e;
401
+ }
402
+ [data-accent="green"].dark, .dark [data-accent="green"], [data-accent="green"][data-theme="dark"] {
403
+ --accent: #4ade80;
404
+ --accent-hover: #22c55e;
405
+ }
397
406
 
398
- /* Orange */
399
- [data-accent="orange"] {
400
- --accent: #f97316;
401
- --accent-hover: #ea580c;
402
- --accent-foreground: #ffffff;
403
- --ring: #f97316;
404
- }
405
- [data-accent="orange"].dark, .dark [data-accent="orange"], [data-accent="orange"][data-theme="dark"] {
406
- --accent: #fb923c;
407
- --accent-hover: #f97316;
408
- }
407
+ /* Orange */
408
+ [data-accent="orange"] {
409
+ --accent: #f97316;
410
+ --accent-hover: #ea580c;
411
+ --accent-foreground: #ffffff;
412
+ --ring: #f97316;
413
+ }
414
+ [data-accent="orange"].dark, .dark [data-accent="orange"], [data-accent="orange"][data-theme="dark"] {
415
+ --accent: #fb923c;
416
+ --accent-hover: #f97316;
417
+ }
409
418
 
410
- /* Red */
411
- [data-accent="red"] {
412
- --accent: #ef4444;
413
- --accent-hover: #dc2626;
414
- --accent-foreground: #ffffff;
415
- --ring: #ef4444;
416
- }
417
- [data-accent="red"].dark, .dark [data-accent="red"], [data-accent="red"][data-theme="dark"] {
418
- --accent: #f87171;
419
- --accent-hover: #ef4444;
420
- }
419
+ /* Red */
420
+ [data-accent="red"] {
421
+ --accent: #ef4444;
422
+ --accent-hover: #dc2626;
423
+ --accent-foreground: #ffffff;
424
+ --ring: #ef4444;
425
+ }
426
+ [data-accent="red"].dark, .dark [data-accent="red"], [data-accent="red"][data-theme="dark"] {
427
+ --accent: #f87171;
428
+ --accent-hover: #ef4444;
429
+ }
421
430
 
422
- /* Pink */
423
- [data-accent="pink"] {
424
- --accent: #ec4899;
425
- --accent-hover: #db2777;
426
- --accent-foreground: #ffffff;
427
- --ring: #ec4899;
428
- }
429
- [data-accent="pink"].dark, .dark [data-accent="pink"], [data-accent="pink"][data-theme="dark"] {
430
- --accent: #f472b6;
431
- --accent-hover: #ec4899;
431
+ /* Pink */
432
+ [data-accent="pink"] {
433
+ --accent: #ec4899;
434
+ --accent-hover: #db2777;
435
+ --accent-foreground: #ffffff;
436
+ --ring: #ec4899;
437
+ }
438
+ [data-accent="pink"].dark, .dark [data-accent="pink"], [data-accent="pink"][data-theme="dark"] {
439
+ --accent: #f472b6;
440
+ --accent-hover: #ec4899;
441
+ }
432
442
  }
433
443
 
434
- /* Scan @onesaz/ui for class generation (works in consuming apps' node_modules) */
435
- @source "../../@onesaz/ui/dist/**/*.js";
444
+ /* Scan @onesaz/ui for class generation (works in consuming apps' node_modules)
445
+ * Path: from node_modules/@onesaz/tailwind-config/dist/v4.css
446
+ * to node_modules/@onesaz/ui/dist/
447
+ */
448
+ @source "../../ui/dist/**/*.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesaz/tailwind-config",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Tailwind CSS preset for Onesaz UI - shared configuration with design tokens (supports v3 and v4)",
5
5
  "type": "module",
6
6
  "license": "MIT",