@qtalo/qt-ui-library 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qtalo/qt-ui-library",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,7 +75,7 @@
75
75
  --color-neutral-900-variant-2: #1f1f1f;
76
76
 
77
77
  --color-brand-primary: #6558fd;
78
-
78
+
79
79
  --color-primary-400: #abaaff;
80
80
  --color-primary-400-variant-1: #abaaff;
81
81
  --color-primary-500: #6558fd;
@@ -374,3 +374,53 @@ body {
374
374
  }
375
375
  }
376
376
 
377
+ /* Skeleton theme */
378
+
379
+ :root {
380
+ --skeleton-base: var(--color-neutral-300-variant-3);
381
+ --skeleton-highlight: var(--color-neutral-500-variant-4);
382
+ --skeleton-duration: 4s;
383
+ }
384
+
385
+ /* Shimmer animation */
386
+
387
+ @keyframes skeleton-shimmer {
388
+ from {
389
+ background-position-x: 200%;
390
+ }
391
+ to {
392
+ background-position-x: -200%;
393
+ }
394
+ }
395
+
396
+ /* Skeleton block */
397
+
398
+ .skeleton {
399
+ position: relative;
400
+ overflow: hidden;
401
+
402
+ /* Base surface */
403
+ background-color: var(--skeleton-base);
404
+
405
+ /* Shimmer layer */
406
+ background-image: linear-gradient(
407
+ 110deg,
408
+ transparent 15%,
409
+ var(--skeleton-highlight) 50%,
410
+ transparent 85%
411
+ );
412
+
413
+ background-size: 200% 100%;
414
+ background-attachment: fixed;
415
+
416
+ animation: skeleton-shimmer var(--skeleton-duration) linear infinite;
417
+ }
418
+
419
+ /* Reduced motion support */
420
+
421
+ @media (prefers-reduced-motion: reduce) {
422
+ .skeleton {
423
+ animation: none;
424
+ background-image: none;
425
+ }
426
+ }