@onesaz/tailwind-config 0.2.3 → 0.2.6

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 +138 -34
  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
@@ -291,40 +292,143 @@
291
292
  * These provide default values so components work out of the box.
292
293
  * Consumers can override these in their own CSS.
293
294
  * ======================================== */
294
- @layer base {
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: #8b5cf6;
307
- --accent-foreground: #ffffff;
308
- --ring: #8b5cf6;
309
- --destructive: #dc2626;
310
- --destructive-foreground: #ffffff;
311
- --radius: 0.375rem;
312
- }
313
-
314
- .dark, [data-theme="dark"] {
315
- --background: #0f172a;
316
- --foreground: #f8fafc;
317
- --card: #1e293b;
318
- --card-foreground: #f8fafc;
319
- --popover: #1e293b;
320
- --popover-foreground: #f8fafc;
321
- --muted: #334155;
322
- --muted-foreground: #94a3b8;
323
- --border: #334155;
324
- --input: #334155;
325
- --destructive: #ef4444;
326
- --destructive-foreground: #ffffff;
327
- }
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;
331
+ }
332
+
333
+ /* ========================================
334
+ * ACCENT COLOR PRESETS
335
+ * Usage: <html data-accent="blue"> or <div data-accent="blue">
336
+ * ======================================== */
337
+
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
+ }
361
+
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
+ }
373
+
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
+ }
385
+
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
+ }
397
+
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
+ }
409
+
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
+ }
421
+
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;
328
432
  }
329
433
 
330
434
  /* Scan @onesaz/ui for class generation (works in consuming apps' node_modules) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesaz/tailwind-config",
3
- "version": "0.2.3",
3
+ "version": "0.2.6",
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",