@poppyui/core 0.1.0 → 0.1.2-next.0c371f0

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 (56) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +225 -166
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/button.css +3 -3
  5. package/dist/components/checkbox.css +2 -2
  6. package/dist/components/drawer.css +4 -4
  7. package/dist/components/dropdown.css +3 -3
  8. package/dist/components/input.css +2 -2
  9. package/dist/components/modal.css +6 -6
  10. package/dist/components/progress.css +1 -1
  11. package/dist/components/radio.css +1 -1
  12. package/dist/components/skeleton.css +1 -1
  13. package/dist/components/stat.css +1 -1
  14. package/dist/components/tabs.css +2 -2
  15. package/dist/components/toast.css +2 -2
  16. package/dist/components/toggle.css +1 -1
  17. package/dist/core.css +2 -0
  18. package/dist/poppy.css +32 -30
  19. package/dist/poppy.min.css +1 -1
  20. package/package.json +53 -53
  21. package/src/base/base.css +40 -40
  22. package/src/components/accordion.css +98 -98
  23. package/src/components/alert.css +58 -58
  24. package/src/components/avatar.css +67 -67
  25. package/src/components/badge.css +87 -87
  26. package/src/components/breadcrumbs.css +68 -68
  27. package/src/components/button.css +139 -139
  28. package/src/components/card.css +87 -87
  29. package/src/components/checkbox.css +77 -77
  30. package/src/components/divider.css +46 -46
  31. package/src/components/drawer.css +84 -84
  32. package/src/components/dropdown.css +100 -100
  33. package/src/components/field.css +71 -71
  34. package/src/components/input.css +127 -127
  35. package/src/components/join.css +70 -70
  36. package/src/components/kbd.css +35 -35
  37. package/src/components/loading.css +74 -74
  38. package/src/components/menu.css +147 -147
  39. package/src/components/modal.css +83 -83
  40. package/src/components/navbar.css +54 -54
  41. package/src/components/progress.css +91 -91
  42. package/src/components/radio.css +65 -65
  43. package/src/components/range.css +83 -83
  44. package/src/components/skeleton.css +43 -43
  45. package/src/components/stat.css +54 -54
  46. package/src/components/steps.css +100 -100
  47. package/src/components/table.css +65 -65
  48. package/src/components/tabs.css +125 -125
  49. package/src/components/toast.css +80 -80
  50. package/src/components/toggle.css +76 -76
  51. package/src/components/tooltip.css +59 -59
  52. package/src/core.css +7 -7
  53. package/src/poppy.css +34 -34
  54. package/src/themes/dark.css +33 -31
  55. package/src/themes/light.css +33 -32
  56. package/src/tokens/tokens.css +52 -52
@@ -1,54 +1,54 @@
1
- /*
2
- * Navbar: zero JS. App bar with start / center / end regions.
3
- *
4
- * <header class="navbar navbar-sticky">
5
- * <div class="navbar-start"><a href="/">Brand</a></div>
6
- * <nav class="navbar-center" aria-label="Main">...</nav>
7
- * <div class="navbar-end"><button class="btn">Sign in</button></div>
8
- * </header>
9
- *
10
- * .navbar-sticky pins the bar to the top of its scroll container.
11
- */
12
- @layer poppy.tokens, poppy.base, poppy.components;
13
-
14
- @layer poppy.components {
15
- .navbar {
16
- display: flex;
17
- align-items: center;
18
- gap: var(--space-4);
19
- min-block-size: 3.5rem;
20
- padding-inline: var(--space-4);
21
- border-block-end: 1px solid var(--color-border);
22
- background: var(--color-base-100);
23
- color: var(--color-base-content);
24
- }
25
-
26
- .navbar-sticky {
27
- position: sticky;
28
- inset-block-start: 0;
29
- z-index: 10;
30
- }
31
-
32
- .navbar-start,
33
- .navbar-center,
34
- .navbar-end {
35
- display: flex;
36
- align-items: center;
37
- gap: var(--space-2);
38
- }
39
-
40
- .navbar-start {
41
- flex: 1;
42
- justify-content: flex-start;
43
- }
44
-
45
- .navbar-center {
46
- flex: none;
47
- justify-content: center;
48
- }
49
-
50
- .navbar-end {
51
- flex: 1;
52
- justify-content: flex-end;
53
- }
54
- }
1
+ /*
2
+ * Navbar: zero JS. App bar with start / center / end regions.
3
+ *
4
+ * <header class="navbar navbar-sticky">
5
+ * <div class="navbar-start"><a href="/">Brand</a></div>
6
+ * <nav class="navbar-center" aria-label="Main">...</nav>
7
+ * <div class="navbar-end"><button class="btn">Sign in</button></div>
8
+ * </header>
9
+ *
10
+ * .navbar-sticky pins the bar to the top of its scroll container.
11
+ */
12
+ @layer poppy.tokens, poppy.base, poppy.components;
13
+
14
+ @layer poppy.components {
15
+ .navbar {
16
+ display: flex;
17
+ align-items: center;
18
+ gap: var(--space-4);
19
+ min-block-size: 3.5rem;
20
+ padding-inline: var(--space-4);
21
+ border-block-end: 1px solid var(--color-border);
22
+ background: var(--color-base-100);
23
+ color: var(--color-base-content);
24
+ }
25
+
26
+ .navbar-sticky {
27
+ position: sticky;
28
+ inset-block-start: 0;
29
+ z-index: 10;
30
+ }
31
+
32
+ .navbar-start,
33
+ .navbar-center,
34
+ .navbar-end {
35
+ display: flex;
36
+ align-items: center;
37
+ gap: var(--space-2);
38
+ }
39
+
40
+ .navbar-start {
41
+ flex: 1;
42
+ justify-content: flex-start;
43
+ }
44
+
45
+ .navbar-center {
46
+ flex: none;
47
+ justify-content: center;
48
+ }
49
+
50
+ .navbar-end {
51
+ flex: 1;
52
+ justify-content: flex-end;
53
+ }
54
+ }
@@ -1,91 +1,91 @@
1
- /*
2
- * Progress
3
- * <progress class="progress progress-success" value="40" max="100" aria-label="Upload"></progress>
4
- * <progress class="progress" aria-label="Loading"></progress> (no value = indeterminate)
5
- * Colors: (primary default) | progress-secondary | progress-success | progress-warning | progress-info | progress-danger
6
- */
7
- @layer poppy.tokens, poppy.base, poppy.components;
8
-
9
- @layer poppy.components {
10
- .progress {
11
- --progress-color: var(--color-primary);
12
-
13
- appearance: none;
14
- display: block;
15
- inline-size: 100%;
16
- block-size: 0.5rem;
17
- border: 0;
18
- border-radius: var(--radius-full);
19
- background: var(--color-base-300);
20
- color: var(--progress-color);
21
- overflow: hidden;
22
-
23
- &::-webkit-progress-bar {
24
- background: var(--color-base-300);
25
- }
26
-
27
- &::-webkit-progress-value {
28
- border-radius: var(--radius-full);
29
- background: var(--progress-color);
30
- transition: inline-size var(--duration-normal) var(--ease-out);
31
- }
32
-
33
- &::-moz-progress-bar {
34
- border-radius: var(--radius-full);
35
- background: var(--progress-color);
36
- }
37
-
38
- /* Indeterminate: a moving stripe painted on the element itself. */
39
- &:indeterminate {
40
- background:
41
- linear-gradient(90deg, transparent 0 30%, var(--progress-color) 30% 70%, transparent 70% 100%) 0 0 / 200% 100%
42
- no-repeat var(--color-base-300);
43
- animation: poppy-progress-slide 1.4s linear infinite;
44
- }
45
-
46
- &:indeterminate::-webkit-progress-bar,
47
- &:indeterminate::-webkit-progress-value {
48
- background: transparent;
49
- }
50
-
51
- &:indeterminate::-moz-progress-bar {
52
- background: transparent;
53
- }
54
- }
55
-
56
- .progress-secondary {
57
- --progress-color: var(--color-secondary);
58
- }
59
-
60
- .progress-success {
61
- --progress-color: var(--color-success);
62
- }
63
-
64
- .progress-warning {
65
- --progress-color: var(--color-warning);
66
- }
67
-
68
- .progress-info {
69
- --progress-color: var(--color-info);
70
- }
71
-
72
- .progress-danger {
73
- --progress-color: var(--color-danger);
74
- }
75
-
76
- @keyframes poppy-progress-slide {
77
- from {
78
- background-position-x: 150%;
79
- }
80
-
81
- to {
82
- background-position-x: -50%;
83
- }
84
- }
85
-
86
- @media (prefers-reduced-motion: reduce) {
87
- .progress:indeterminate {
88
- animation-duration: 4s;
89
- }
90
- }
91
- }
1
+ /*
2
+ * Progress
3
+ * <progress class="progress progress-success" value="40" max="100" aria-label="Upload"></progress>
4
+ * <progress class="progress" aria-label="Loading"></progress> (no value = indeterminate)
5
+ * Colors: (primary default) | progress-secondary | progress-success | progress-warning | progress-info | progress-danger
6
+ */
7
+ @layer poppy.tokens, poppy.base, poppy.components;
8
+
9
+ @layer poppy.components {
10
+ .progress {
11
+ --progress-color: var(--color-primary);
12
+
13
+ appearance: none;
14
+ display: block;
15
+ inline-size: 100%;
16
+ block-size: 0.5rem;
17
+ border: 0;
18
+ border-radius: var(--radius-full);
19
+ background: var(--color-base-300);
20
+ color: var(--progress-color);
21
+ overflow: hidden;
22
+
23
+ &::-webkit-progress-bar {
24
+ background: var(--color-base-300);
25
+ }
26
+
27
+ &::-webkit-progress-value {
28
+ border-radius: var(--radius-full);
29
+ background: var(--progress-color);
30
+ transition: inline-size var(--duration-normal) var(--ease-out);
31
+ }
32
+
33
+ &::-moz-progress-bar {
34
+ border-radius: var(--radius-full);
35
+ background: var(--progress-color);
36
+ }
37
+
38
+ /* Indeterminate: a moving stripe painted on the element itself. */
39
+ &:indeterminate {
40
+ background:
41
+ linear-gradient(90deg, transparent 0 30%, var(--progress-color) 30% 70%, transparent 70% 100%) 0 0 / 200% 100%
42
+ no-repeat var(--color-base-300);
43
+ animation: poppy-progress-slide 1.4s linear infinite;
44
+ }
45
+
46
+ &:indeterminate::-webkit-progress-bar,
47
+ &:indeterminate::-webkit-progress-value {
48
+ background: transparent;
49
+ }
50
+
51
+ &:indeterminate::-moz-progress-bar {
52
+ background: transparent;
53
+ }
54
+ }
55
+
56
+ .progress-secondary {
57
+ --progress-color: var(--color-secondary);
58
+ }
59
+
60
+ .progress-success {
61
+ --progress-color: var(--color-success);
62
+ }
63
+
64
+ .progress-warning {
65
+ --progress-color: var(--color-warning);
66
+ }
67
+
68
+ .progress-info {
69
+ --progress-color: var(--color-info);
70
+ }
71
+
72
+ .progress-danger {
73
+ --progress-color: var(--color-danger);
74
+ }
75
+
76
+ @keyframes poppy-progress-slide {
77
+ from {
78
+ background-position-x: 150%;
79
+ }
80
+
81
+ to {
82
+ background-position-x: -50%;
83
+ }
84
+ }
85
+
86
+ @media (prefers-reduced-motion: reduce) {
87
+ .progress:indeterminate {
88
+ animation-duration: 4s;
89
+ }
90
+ }
91
+ }
@@ -1,65 +1,65 @@
1
- /*
2
- * Radio
3
- * <label class="label-inline"><input type="radio" name="plan" class="radio"> Free</label>
4
- * Colors: radio-primary | -secondary | -success | -warning | -info | -danger
5
- * Sizes: radio-sm | (default) | radio-lg
6
- */
7
- @layer poppy.tokens, poppy.base, poppy.components;
8
-
9
- @layer poppy.components {
10
- .radio {
11
- --radio-color: var(--color-primary);
12
- --radio-size: 1.25rem;
13
-
14
- appearance: none;
15
- display: inline-grid;
16
- place-content: center;
17
- flex: none;
18
- inline-size: var(--radio-size);
19
- block-size: var(--radio-size);
20
- margin: 0;
21
- border: 2px solid var(--color-border);
22
- border-radius: var(--radius-full);
23
- background: var(--color-base-100);
24
- cursor: pointer;
25
- transition: border-color var(--duration-fast) var(--ease-out);
26
-
27
- &::before {
28
- content: "";
29
- inline-size: calc(var(--radio-size) / 2);
30
- block-size: calc(var(--radio-size) / 2);
31
- border-radius: var(--radius-full);
32
- background: var(--radio-color);
33
- scale: 0;
34
- transition: scale var(--duration-fast) var(--ease-out);
35
- }
36
-
37
- &:checked {
38
- border-color: var(--radio-color);
39
-
40
- &::before {
41
- scale: 1;
42
- }
43
- }
44
-
45
- &:focus-visible {
46
- outline: var(--focus-width) solid var(--color-focus);
47
- outline-offset: var(--focus-offset);
48
- }
49
-
50
- &:disabled {
51
- opacity: 0.5;
52
- cursor: not-allowed;
53
- }
54
- }
55
-
56
- .radio-primary { --radio-color: var(--color-primary); }
57
- .radio-secondary { --radio-color: var(--color-secondary); }
58
- .radio-success { --radio-color: var(--color-success); }
59
- .radio-warning { --radio-color: var(--color-warning); }
60
- .radio-info { --radio-color: var(--color-info); }
61
- .radio-danger { --radio-color: var(--color-danger); }
62
-
63
- .radio-sm { --radio-size: 1rem; }
64
- .radio-lg { --radio-size: 1.5rem; }
65
- }
1
+ /*
2
+ * Radio
3
+ * <label class="label-inline"><input type="radio" name="plan" class="radio"> Free</label>
4
+ * Colors: radio-primary | -secondary | -success | -warning | -info | -danger
5
+ * Sizes: radio-sm | (default) | radio-lg
6
+ */
7
+ @layer poppy.tokens, poppy.base, poppy.components;
8
+
9
+ @layer poppy.components {
10
+ .radio {
11
+ --radio-color: var(--color-primary);
12
+ --radio-size: 1.25rem;
13
+
14
+ appearance: none;
15
+ display: inline-grid;
16
+ place-content: center;
17
+ flex: none;
18
+ inline-size: var(--radio-size);
19
+ block-size: var(--radio-size);
20
+ margin: 0;
21
+ border: 2px solid var(--color-border);
22
+ border-radius: var(--radius-full);
23
+ background: var(--color-field);
24
+ cursor: pointer;
25
+ transition: border-color var(--duration-fast) var(--ease-out);
26
+
27
+ &::before {
28
+ content: "";
29
+ inline-size: calc(var(--radio-size) / 2);
30
+ block-size: calc(var(--radio-size) / 2);
31
+ border-radius: var(--radius-full);
32
+ background: var(--radio-color);
33
+ scale: 0;
34
+ transition: scale var(--duration-fast) var(--ease-out);
35
+ }
36
+
37
+ &:checked {
38
+ border-color: var(--radio-color);
39
+
40
+ &::before {
41
+ scale: 1;
42
+ }
43
+ }
44
+
45
+ &:focus-visible {
46
+ outline: var(--focus-width) solid var(--color-focus);
47
+ outline-offset: var(--focus-offset);
48
+ }
49
+
50
+ &:disabled {
51
+ opacity: 0.5;
52
+ cursor: not-allowed;
53
+ }
54
+ }
55
+
56
+ .radio-primary { --radio-color: var(--color-primary); }
57
+ .radio-secondary { --radio-color: var(--color-secondary); }
58
+ .radio-success { --radio-color: var(--color-success); }
59
+ .radio-warning { --radio-color: var(--color-warning); }
60
+ .radio-info { --radio-color: var(--color-info); }
61
+ .radio-danger { --radio-color: var(--color-danger); }
62
+
63
+ .radio-sm { --radio-size: 1rem; }
64
+ .radio-lg { --radio-size: 1.5rem; }
65
+ }
@@ -1,83 +1,83 @@
1
- /*
2
- * Range
3
- * <input type="range" class="range" aria-label="Volume">
4
- * Colors: range-primary | -secondary | -success | -warning | -info | -danger
5
- * Sizes: range-sm | (default) | range-lg
6
- * Fill: Firefox draws the filled portion (::-moz-range-progress); WebKit/Blink show a plain track.
7
- */
8
- @layer poppy.tokens, poppy.base, poppy.components;
9
-
10
- @layer poppy.components {
11
- .range {
12
- --range-color: var(--color-primary);
13
- --range-thumb: 1.25rem;
14
- --range-track: 0.5rem;
15
-
16
- appearance: none;
17
- inline-size: 100%;
18
- block-size: var(--range-thumb);
19
- margin: 0;
20
- background: transparent;
21
- cursor: pointer;
22
-
23
- &::-webkit-slider-runnable-track {
24
- block-size: var(--range-track);
25
- border-radius: var(--radius-full);
26
- background: var(--color-base-300);
27
- }
28
-
29
- &::-moz-range-track {
30
- block-size: var(--range-track);
31
- border-radius: var(--radius-full);
32
- background: var(--color-base-300);
33
- }
34
-
35
- &::-moz-range-progress {
36
- block-size: var(--range-track);
37
- border-radius: var(--radius-full);
38
- background: var(--range-color);
39
- }
40
-
41
- &::-webkit-slider-thumb {
42
- appearance: none;
43
- inline-size: var(--range-thumb);
44
- block-size: var(--range-thumb);
45
- margin-block-start: calc((var(--range-track) - var(--range-thumb)) / 2);
46
- box-sizing: border-box;
47
- border: 2px solid var(--range-color);
48
- border-radius: var(--radius-full);
49
- background: var(--color-base-100);
50
- box-shadow: var(--shadow-md);
51
- }
52
-
53
- &::-moz-range-thumb {
54
- inline-size: var(--range-thumb);
55
- block-size: var(--range-thumb);
56
- box-sizing: border-box;
57
- border: 2px solid var(--range-color);
58
- border-radius: var(--radius-full);
59
- background: var(--color-base-100);
60
- box-shadow: var(--shadow-md);
61
- }
62
-
63
- &:focus-visible {
64
- outline: var(--focus-width) solid var(--color-focus);
65
- outline-offset: var(--focus-offset);
66
- }
67
-
68
- &:disabled {
69
- opacity: 0.5;
70
- cursor: not-allowed;
71
- }
72
- }
73
-
74
- .range-primary { --range-color: var(--color-primary); }
75
- .range-secondary { --range-color: var(--color-secondary); }
76
- .range-success { --range-color: var(--color-success); }
77
- .range-warning { --range-color: var(--color-warning); }
78
- .range-info { --range-color: var(--color-info); }
79
- .range-danger { --range-color: var(--color-danger); }
80
-
81
- .range-sm { --range-thumb: 1rem; --range-track: 0.25rem; }
82
- .range-lg { --range-thumb: 1.5rem; --range-track: 0.75rem; }
83
- }
1
+ /*
2
+ * Range
3
+ * <input type="range" class="range" aria-label="Volume">
4
+ * Colors: range-primary | -secondary | -success | -warning | -info | -danger
5
+ * Sizes: range-sm | (default) | range-lg
6
+ * Fill: Firefox draws the filled portion (::-moz-range-progress); WebKit/Blink show a plain track.
7
+ */
8
+ @layer poppy.tokens, poppy.base, poppy.components;
9
+
10
+ @layer poppy.components {
11
+ .range {
12
+ --range-color: var(--color-primary);
13
+ --range-thumb: 1.25rem;
14
+ --range-track: 0.5rem;
15
+
16
+ appearance: none;
17
+ inline-size: 100%;
18
+ block-size: var(--range-thumb);
19
+ margin: 0;
20
+ background: transparent;
21
+ cursor: pointer;
22
+
23
+ &::-webkit-slider-runnable-track {
24
+ block-size: var(--range-track);
25
+ border-radius: var(--radius-full);
26
+ background: var(--color-base-300);
27
+ }
28
+
29
+ &::-moz-range-track {
30
+ block-size: var(--range-track);
31
+ border-radius: var(--radius-full);
32
+ background: var(--color-base-300);
33
+ }
34
+
35
+ &::-moz-range-progress {
36
+ block-size: var(--range-track);
37
+ border-radius: var(--radius-full);
38
+ background: var(--range-color);
39
+ }
40
+
41
+ &::-webkit-slider-thumb {
42
+ appearance: none;
43
+ inline-size: var(--range-thumb);
44
+ block-size: var(--range-thumb);
45
+ margin-block-start: calc((var(--range-track) - var(--range-thumb)) / 2);
46
+ box-sizing: border-box;
47
+ border: 2px solid var(--range-color);
48
+ border-radius: var(--radius-full);
49
+ background: var(--color-base-100);
50
+ box-shadow: var(--shadow-md);
51
+ }
52
+
53
+ &::-moz-range-thumb {
54
+ inline-size: var(--range-thumb);
55
+ block-size: var(--range-thumb);
56
+ box-sizing: border-box;
57
+ border: 2px solid var(--range-color);
58
+ border-radius: var(--radius-full);
59
+ background: var(--color-base-100);
60
+ box-shadow: var(--shadow-md);
61
+ }
62
+
63
+ &:focus-visible {
64
+ outline: var(--focus-width) solid var(--color-focus);
65
+ outline-offset: var(--focus-offset);
66
+ }
67
+
68
+ &:disabled {
69
+ opacity: 0.5;
70
+ cursor: not-allowed;
71
+ }
72
+ }
73
+
74
+ .range-primary { --range-color: var(--color-primary); }
75
+ .range-secondary { --range-color: var(--color-secondary); }
76
+ .range-success { --range-color: var(--color-success); }
77
+ .range-warning { --range-color: var(--color-warning); }
78
+ .range-info { --range-color: var(--color-info); }
79
+ .range-danger { --range-color: var(--color-danger); }
80
+
81
+ .range-sm { --range-thumb: 1rem; --range-track: 0.25rem; }
82
+ .range-lg { --range-thumb: 1.5rem; --range-track: 0.75rem; }
83
+ }
@@ -1,43 +1,43 @@
1
- /*
2
- * Skeleton
3
- * <div class="skeleton" aria-hidden="true" style="block-size: 8rem"></div>
4
- * <div class="skeleton skeleton-text" aria-hidden="true"></div>
5
- * <div class="skeleton skeleton-circle" aria-hidden="true"></div>
6
- * Put aria-busy="true" on the surrounding region while content loads.
7
- */
8
- @layer poppy.tokens, poppy.base, poppy.components;
9
-
10
- @layer poppy.components {
11
- .skeleton {
12
- display: block;
13
- border-radius: var(--radius-md);
14
- background:
15
- linear-gradient(90deg, transparent, color-mix(in oklch, var(--color-base-100) 60%, transparent), transparent) -100% 0 /
16
- 50% 100% no-repeat var(--color-base-300);
17
- animation: poppy-skeleton-shimmer 1.5s ease-in-out infinite;
18
- }
19
-
20
- .skeleton-text {
21
- block-size: 1em;
22
- inline-size: 100%;
23
- border-radius: var(--radius-sm);
24
- }
25
-
26
- .skeleton-circle {
27
- inline-size: 3rem;
28
- block-size: 3rem;
29
- border-radius: var(--radius-full);
30
- }
31
-
32
- @keyframes poppy-skeleton-shimmer {
33
- to {
34
- background-position-x: 200%;
35
- }
36
- }
37
-
38
- @media (prefers-reduced-motion: reduce) {
39
- .skeleton {
40
- animation-duration: 6s;
41
- }
42
- }
43
- }
1
+ /*
2
+ * Skeleton
3
+ * <div class="skeleton" aria-hidden="true" style="block-size: 8rem"></div>
4
+ * <div class="skeleton skeleton-text" aria-hidden="true"></div>
5
+ * <div class="skeleton skeleton-circle" aria-hidden="true"></div>
6
+ * Put aria-busy="true" on the surrounding region while content loads.
7
+ */
8
+ @layer poppy.tokens, poppy.base, poppy.components;
9
+
10
+ @layer poppy.components {
11
+ .skeleton {
12
+ display: block;
13
+ border-radius: var(--radius-md);
14
+ background:
15
+ linear-gradient(90deg, transparent, color-mix(in oklch, var(--color-base-100) 60%, transparent), transparent) -100% 0 /
16
+ 50% 100% no-repeat var(--color-base-300);
17
+ animation: poppy-skeleton-shimmer 1.5s ease-in-out infinite;
18
+ }
19
+
20
+ .skeleton-text {
21
+ block-size: 1em;
22
+ inline-size: 100%;
23
+ border-radius: var(--radius-sm);
24
+ }
25
+
26
+ .skeleton-circle {
27
+ inline-size: 3rem;
28
+ block-size: 3rem;
29
+ border-radius: var(--radius-full);
30
+ }
31
+
32
+ @keyframes poppy-skeleton-shimmer {
33
+ to {
34
+ background-position-x: 200%;
35
+ }
36
+ }
37
+
38
+ @media (prefers-reduced-motion: reduce) {
39
+ .skeleton {
40
+ animation-duration: 6s;
41
+ }
42
+ }
43
+ }