@onesaz/tailwind-config 0.2.4 → 0.2.7

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