@auriel/peppertino 0.5.0 → 0.6.1

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 (134) hide show
  1. package/CHANGELOG.txt +249 -224
  2. package/LICENSE +21 -21
  3. package/MIGRATION.md +52 -52
  4. package/README.md +811 -764
  5. package/agents/peppertino/SKILL.md +84 -0
  6. package/agents/peppertino/accordion.md +134 -0
  7. package/agents/peppertino/alert.md +116 -0
  8. package/agents/peppertino/badge.md +74 -0
  9. package/agents/peppertino/base.md +252 -0
  10. package/agents/peppertino/button.md +65 -0
  11. package/agents/peppertino/card.md +82 -0
  12. package/agents/peppertino/carousel.md +147 -0
  13. package/agents/peppertino/catalog.md +83 -0
  14. package/agents/peppertino/components-ai-search.md +10 -0
  15. package/agents/peppertino/components-display.md +19 -0
  16. package/agents/peppertino/components-inputs.md +15 -0
  17. package/agents/peppertino/components-navigation.md +12 -0
  18. package/agents/peppertino/dark-mode.md +152 -0
  19. package/agents/peppertino/footer.md +109 -0
  20. package/agents/peppertino/forms-fieldset.md +85 -0
  21. package/agents/peppertino/forms-form-instructions.md +94 -0
  22. package/agents/peppertino/forms-label.md +110 -0
  23. package/agents/peppertino/forms-text-field.md +134 -0
  24. package/agents/peppertino/forms-validation.md +153 -0
  25. package/agents/peppertino/gradient.md +41 -0
  26. package/agents/peppertino/header.md +105 -0
  27. package/agents/peppertino/modal.md +123 -0
  28. package/agents/peppertino/section.md +56 -0
  29. package/agents/peppertino/select.md +110 -0
  30. package/agents/peppertino/switch.md +72 -0
  31. package/agents/peppertino/table.md +69 -0
  32. package/agents/peppertino/tabs.md +115 -0
  33. package/agents/peppertino/toast.md +96 -0
  34. package/agents/peppertino/tooltip.md +111 -0
  35. package/agents/peppertino/typography.md +118 -0
  36. package/agents/peppertino/utilities.md +194 -0
  37. package/agents/skill.md +65 -0
  38. package/build.js +53 -53
  39. package/dist/accordion.js +1 -1
  40. package/dist/accordion.js.map +2 -2
  41. package/dist/alert.js.map +1 -1
  42. package/dist/carousel.js.map +1 -1
  43. package/dist/header.js.map +1 -1
  44. package/dist/main.css +2566 -1008
  45. package/dist/main.css.map +1 -1
  46. package/dist/main.min.css +1 -0
  47. package/dist/modal.js.map +1 -1
  48. package/dist/peppertino.js +1 -1
  49. package/dist/peppertino.js.map +2 -2
  50. package/dist/select.js.map +1 -1
  51. package/dist/switch.js.map +1 -1
  52. package/dist/tabs.js.map +1 -1
  53. package/dist/theme.js.map +1 -1
  54. package/dist/toast.js.map +1 -1
  55. package/dist/validation.js.map +1 -1
  56. package/icon.svg +4 -0
  57. package/index.html +2177 -2098
  58. package/package.json +28 -28
  59. package/scripts/hex-to-hsl.mjs +75 -75
  60. package/scripts/lint-bem.mjs +53 -53
  61. package/scripts/lint-colors.mjs +87 -87
  62. package/site.webmanifest +18 -0
  63. package/src/js/accordion.js +105 -103
  64. package/src/js/alert.js +28 -28
  65. package/src/js/carousel.js +153 -153
  66. package/src/js/header.js +85 -85
  67. package/src/js/modal.js +138 -138
  68. package/src/js/peppertino.js +15 -15
  69. package/src/js/select.js +101 -101
  70. package/src/js/switch.js +28 -28
  71. package/src/js/tabs.js +104 -104
  72. package/src/js/theme.js +47 -47
  73. package/src/js/toast.js +79 -79
  74. package/src/js/validation.js +132 -132
  75. package/src/scss/accordion.scss +190 -156
  76. package/src/scss/activity.scss +17 -0
  77. package/src/scss/alert.scss +203 -203
  78. package/src/scss/badge.scss +90 -90
  79. package/src/scss/base.scss +511 -506
  80. package/src/scss/button.scss +119 -119
  81. package/src/scss/card.scss +121 -121
  82. package/src/scss/carousel.scss +303 -303
  83. package/src/scss/code-block.scss +22 -0
  84. package/src/scss/counter.scss +5 -0
  85. package/src/scss/dark-mode.scss +514 -514
  86. package/src/scss/duration.scss +26 -0
  87. package/src/scss/folder.scss +27 -0
  88. package/src/scss/footer.scss +224 -224
  89. package/src/scss/forms/fieldset.scss +127 -127
  90. package/src/scss/forms/form-instructions.scss +133 -133
  91. package/src/scss/forms/label.scss +115 -115
  92. package/src/scss/forms/text-field.scss +240 -240
  93. package/src/scss/forms/validation.scss +215 -215
  94. package/src/scss/forms.scss +8 -8
  95. package/src/scss/gradient.scss +11 -11
  96. package/src/scss/gravity-letters.scss +7 -0
  97. package/src/scss/header.scss +257 -238
  98. package/src/scss/helpers/color.scss +9 -0
  99. package/src/scss/helpers/flex.scss +14 -0
  100. package/src/scss/helpers/index.scss +6 -0
  101. package/src/scss/helpers/layout.scss +14 -0
  102. package/src/scss/helpers/spacing.scss +14 -0
  103. package/src/scss/helpers/typography.scss +11 -0
  104. package/src/scss/helpers/visibility.scss +9 -0
  105. package/src/scss/main.scss +49 -24
  106. package/src/scss/modal.scss +188 -188
  107. package/src/scss/model-picker.scss +5 -0
  108. package/src/scss/notification.scss +5 -0
  109. package/src/scss/orb.scss +7 -0
  110. package/src/scss/otp.scss +5 -0
  111. package/src/scss/pill-nav.scss +10 -0
  112. package/src/scss/prompt.scss +28 -0
  113. package/src/scss/rail.scss +7 -0
  114. package/src/scss/reactions.scss +5 -0
  115. package/src/scss/reset.scss +84 -84
  116. package/src/scss/response.scss +11 -0
  117. package/src/scss/reveal.scss +5 -0
  118. package/src/scss/scroll-progress.scss +4 -0
  119. package/src/scss/search-results.scss +13 -0
  120. package/src/scss/section.scss +87 -79
  121. package/src/scss/select.scss +210 -210
  122. package/src/scss/sidebar.scss +8 -0
  123. package/src/scss/status.scss +5 -0
  124. package/src/scss/step-list.scss +13 -0
  125. package/src/scss/switch.scss +121 -121
  126. package/src/scss/table.scss +89 -89
  127. package/src/scss/tabs.scss +156 -156
  128. package/src/scss/task-list.scss +18 -0
  129. package/src/scss/theme-picker.scss +5 -0
  130. package/src/scss/toast.scss +170 -170
  131. package/src/scss/tooltip.scss +126 -126
  132. package/src/scss/typography.scss +58 -58
  133. package/src/scss/utilities.scss +243 -243
  134. package/src/scss/voice-note.scss +5 -0
@@ -1,303 +1,303 @@
1
- // PeppertinoCSS — Carousel
2
- //
3
- // CSS-driven by default: scroll-snap + overflow-x handles all motion.
4
- // JS shim (carousel.js) wires ARIA roles, live region, and exposes a small
5
- // ppCarousel API — but it is strictly optional. Users can replace it entirely.
6
-
7
- @use 'sass:map';
8
- @use 'base' as *;
9
-
10
- // ─── Root ─────────────────────────────────────────────────────────────────────
11
- .pp-carousel {
12
- position: relative;
13
- width: 100%;
14
- overflow: hidden;
15
- border-radius: 16px;
16
- }
17
-
18
- // ─── Track ────────────────────────────────────────────────────────────────────
19
- .pp-carousel__track {
20
- display: flex;
21
- overflow-x: auto;
22
- scroll-snap-type: x mandatory;
23
- scroll-behavior: smooth;
24
- -webkit-overflow-scrolling: touch;
25
-
26
- scrollbar-width: none;
27
- &::-webkit-scrollbar { display: none; }
28
-
29
- will-change: scroll-position;
30
-
31
- &:hover,
32
- &:focus-within {
33
- animation-play-state: paused;
34
- }
35
- }
36
-
37
- // ─── Slide ────────────────────────────────────────────────────────────────────
38
- .pp-carousel__slide {
39
- flex: 0 0 100%;
40
- scroll-snap-align: start;
41
- scroll-snap-stop: always;
42
- position: relative;
43
- min-height: 280px;
44
- user-select: none;
45
-
46
- &[aria-hidden='true'] * { visibility: hidden; }
47
- &[aria-hidden='false'] * { visibility: visible; }
48
- &:not([aria-hidden]) * { visibility: visible; }
49
- }
50
-
51
- // ─── Slide variants — percentage widths ──────────────────────────────────────
52
- .pp-carousel--peek-2 .pp-carousel__slide { flex: 0 0 85%; }
53
- .pp-carousel--peek-3 .pp-carousel__slide { flex: 0 0 72%; }
54
-
55
- // ─── Slide media ─────────────────────────────────────────────────────────────
56
- .pp-carousel__media {
57
- display: block;
58
- width: 100%;
59
- height: 100%;
60
- object-fit: cover;
61
- border-radius: inherit;
62
- pointer-events: none;
63
- }
64
-
65
- // ─── Slide caption ────────────────────────────────────────────────────────────
66
- .pp-carousel__caption {
67
- position: absolute;
68
- inset: auto 0 0;
69
- padding: spacing(6) spacing(6) spacing(5);
70
-
71
- background: linear-gradient(
72
- to top,
73
- rgba(0, 0, 0, 0.65) 0%,
74
- rgba(0, 0, 0, 0.2) 60%,
75
- transparent 100%
76
- );
77
- border-radius: 0 0 16px 16px;
78
- color: #fff;
79
- }
80
-
81
- .pp-carousel__caption-title {
82
- font-size: font-size('xl');
83
- font-weight: map.get($font-weights, 'semibold');
84
- letter-spacing: -0.02em;
85
- line-height: 1.25;
86
- margin-bottom: spacing(1);
87
- }
88
-
89
- .pp-carousel__caption-body {
90
- font-size: font-size('sm');
91
- color: rgba(#fff, 0.75);
92
- line-height: 1.5;
93
- }
94
-
95
- // ─── Prev / Next controls ────────────────────────────────────────────────────
96
- .pp-carousel__prev,
97
- .pp-carousel__next {
98
- position: absolute;
99
- top: 50%;
100
- transform: translateY(-50%);
101
- z-index: z('raised');
102
-
103
- display: flex;
104
- align-items: center;
105
- justify-content: center;
106
- width: 36px;
107
- height: 36px;
108
- border-radius: 50%;
109
- border: none;
110
- cursor: pointer;
111
-
112
- background: rgba(255, 255, 255, 0.85);
113
- backdrop-filter: blur(8px) saturate(160%);
114
- -webkit-backdrop-filter: blur(8px) saturate(160%);
115
- box-shadow: var(--pp-shadow-md);
116
- color: var(--pp-neutral-800);
117
- transition:
118
- background $transition-fast,
119
- box-shadow $transition-fast,
120
- opacity $transition-fast,
121
- transform $transition-fast;
122
-
123
- svg {
124
- width: 18px;
125
- height: 18px;
126
- flex-shrink: 0;
127
- stroke: currentColor;
128
- fill: none;
129
- stroke-width: 2;
130
- stroke-linecap: round;
131
- stroke-linejoin: round;
132
- pointer-events: none;
133
- }
134
-
135
- &:hover {
136
- background: #fff;
137
- box-shadow: var(--pp-shadow-lg);
138
- transform: translateY(-50%) scale(1.08);
139
- }
140
-
141
- &:active {
142
- transform: translateY(-50%) scale(0.96);
143
- box-shadow: var(--pp-shadow);
144
- }
145
-
146
- &:focus-visible {
147
- outline: 2px solid var(--pp-primary);
148
- outline-offset: 2px;
149
- }
150
-
151
- &:disabled,
152
- &[aria-disabled='true'] {
153
- opacity: 0.3;
154
- pointer-events: none;
155
- }
156
- }
157
-
158
- .pp-carousel__prev { left: spacing(3); }
159
- .pp-carousel__next { right: spacing(3); }
160
-
161
- // ─── Dots (pagination indicators) ────────────────────────────────────────────
162
- .pp-carousel__dots {
163
- display: flex;
164
- align-items: center;
165
- justify-content: center;
166
- gap: spacing(2);
167
- padding: spacing(4) 0 spacing(2);
168
- list-style: none;
169
- }
170
-
171
- .pp-carousel__dot {
172
- display: block;
173
- width: 6px;
174
- height: 6px;
175
- border-radius: 50%;
176
- background: var(--pp-neutral-300);
177
- border: none;
178
- cursor: pointer;
179
- padding: 0;
180
- transition:
181
- background $transition-base,
182
- width $transition-base,
183
- border-radius $transition-base;
184
-
185
- &:focus-visible {
186
- outline: 2px solid var(--pp-primary);
187
- outline-offset: 2px;
188
- }
189
-
190
- &.is-active,
191
- &[aria-current='true'] {
192
- background: var(--pp-primary);
193
- width: 20px;
194
- border-radius: 3px;
195
- }
196
-
197
- &:hover:not(.is-active):not([aria-current='true']) {
198
- background: var(--pp-neutral-500);
199
- }
200
- }
201
-
202
- // ─── Live region (screen-reader slide announcements) ─────────────────────────
203
- .pp-carousel__announcer {
204
- position: absolute;
205
- width: 1px;
206
- height: 1px;
207
- padding: 0;
208
- margin: -1px;
209
- overflow: hidden;
210
- clip: rect(0, 0, 0, 0);
211
- white-space: nowrap;
212
- border: 0;
213
- }
214
-
215
- // ─── Autoplay toggle ─────────────────────────────────────────────────────────
216
- .pp-carousel__autoplay {
217
- position: absolute;
218
- top: spacing(3);
219
- right: spacing(3);
220
- z-index: z('raised');
221
-
222
- display: flex;
223
- align-items: center;
224
- justify-content: center;
225
- width: 30px;
226
- height: 30px;
227
- border-radius: 50%;
228
- border: none;
229
- cursor: pointer;
230
-
231
- background: rgba(255, 255, 255, 0.75);
232
- backdrop-filter: blur(8px);
233
- -webkit-backdrop-filter: blur(8px);
234
- color: var(--pp-neutral-700);
235
- transition: background $transition-fast, color $transition-fast;
236
-
237
- svg {
238
- width: 14px;
239
- height: 14px;
240
- fill: currentColor;
241
- pointer-events: none;
242
- }
243
-
244
- &:hover { background: rgba(255, 255, 255, 0.95); color: var(--pp-on-surface); }
245
-
246
- &:focus-visible {
247
- outline: 2px solid var(--pp-primary);
248
- outline-offset: 2px;
249
- }
250
-
251
- .pp-carousel--playing & .pp-carousel__autoplay-icon--play { display: none; }
252
- .pp-carousel--playing & .pp-carousel__autoplay-icon--pause { display: block; }
253
- .pp-carousel--paused & .pp-carousel__autoplay-icon--play { display: block; }
254
- .pp-carousel--paused & .pp-carousel__autoplay-icon--pause { display: none; }
255
- }
256
-
257
- // ─── Dark variant ────────────────────────────────────────────────────────────
258
- .pp-carousel--dark {
259
- background: var(--pp-neutral-900);
260
-
261
- .pp-carousel__prev,
262
- .pp-carousel__next {
263
- background: rgba(0, 0, 0, 0.6);
264
- color: #fff;
265
- &:hover { background: rgba(0, 0, 0, 0.85); }
266
- }
267
-
268
- .pp-carousel__dot {
269
- background: var(--pp-neutral-600);
270
- &.is-active, &[aria-current='true'] { background: var(--pp-primary-light); }
271
- }
272
-
273
- .pp-carousel__autoplay {
274
- background: rgba(0, 0, 0, 0.5);
275
- color: rgba(#fff, 0.8);
276
- &:hover { background: rgba(0, 0, 0, 0.8); color: #fff; }
277
- }
278
- }
279
-
280
- // ─── Flush variant (no border-radius) ────────────────────────────────────────
281
- .pp-carousel--flush {
282
- border-radius: 0;
283
- .pp-carousel__slide { border-radius: 0; }
284
- .pp-carousel__caption { border-radius: 0; }
285
- }
286
-
287
- // ─── Responsive ───────────────────────────────────────────────────────────────
288
- @media (max-width: 767px) {
289
- .pp-carousel__prev { left: spacing(2); }
290
- .pp-carousel__next { right: spacing(2); }
291
-
292
- .pp-carousel__prev,
293
- .pp-carousel__next {
294
- width: 32px;
295
- height: 32px;
296
- svg { width: 16px; height: 16px; }
297
- }
298
-
299
- .pp-carousel--peek-2 .pp-carousel__slide,
300
- .pp-carousel--peek-3 .pp-carousel__slide {
301
- flex: 0 0 92%;
302
- }
303
- }
1
+ // PeppertinoCSS — Carousel
2
+ //
3
+ // CSS-driven by default: scroll-snap + overflow-x handles all motion.
4
+ // JS shim (carousel.js) wires ARIA roles, live region, and exposes a small
5
+ // ppCarousel API — but it is strictly optional. Users can replace it entirely.
6
+
7
+ @use 'sass:map';
8
+ @use 'base' as *;
9
+
10
+ // ─── Root ─────────────────────────────────────────────────────────────────────
11
+ .pp-carousel {
12
+ position: relative;
13
+ width: 100%;
14
+ overflow: hidden;
15
+ border-radius: 16px;
16
+ }
17
+
18
+ // ─── Track ────────────────────────────────────────────────────────────────────
19
+ .pp-carousel__track {
20
+ display: flex;
21
+ overflow-x: auto;
22
+ scroll-snap-type: x mandatory;
23
+ scroll-behavior: smooth;
24
+ -webkit-overflow-scrolling: touch;
25
+
26
+ scrollbar-width: none;
27
+ &::-webkit-scrollbar { display: none; }
28
+
29
+ will-change: scroll-position;
30
+
31
+ &:hover,
32
+ &:focus-within {
33
+ animation-play-state: paused;
34
+ }
35
+ }
36
+
37
+ // ─── Slide ────────────────────────────────────────────────────────────────────
38
+ .pp-carousel__slide {
39
+ flex: 0 0 100%;
40
+ scroll-snap-align: start;
41
+ scroll-snap-stop: always;
42
+ position: relative;
43
+ min-height: 280px;
44
+ user-select: none;
45
+
46
+ &[aria-hidden='true'] * { visibility: hidden; }
47
+ &[aria-hidden='false'] * { visibility: visible; }
48
+ &:not([aria-hidden]) * { visibility: visible; }
49
+ }
50
+
51
+ // ─── Slide variants — percentage widths ──────────────────────────────────────
52
+ .pp-carousel--peek-2 .pp-carousel__slide { flex: 0 0 85%; }
53
+ .pp-carousel--peek-3 .pp-carousel__slide { flex: 0 0 72%; }
54
+
55
+ // ─── Slide media ─────────────────────────────────────────────────────────────
56
+ .pp-carousel__media {
57
+ display: block;
58
+ width: 100%;
59
+ height: 100%;
60
+ object-fit: cover;
61
+ border-radius: inherit;
62
+ pointer-events: none;
63
+ }
64
+
65
+ // ─── Slide caption ────────────────────────────────────────────────────────────
66
+ .pp-carousel__caption {
67
+ position: absolute;
68
+ inset: auto 0 0;
69
+ padding: spacing(6) spacing(6) spacing(5);
70
+
71
+ background: linear-gradient(
72
+ to top,
73
+ rgba(0, 0, 0, 0.65) 0%,
74
+ rgba(0, 0, 0, 0.2) 60%,
75
+ transparent 100%
76
+ );
77
+ border-radius: 0 0 16px 16px;
78
+ color: #fff;
79
+ }
80
+
81
+ .pp-carousel__caption-title {
82
+ font-size: font-size('xl');
83
+ font-weight: map.get($font-weights, 'semibold');
84
+ letter-spacing: -0.02em;
85
+ line-height: 1.25;
86
+ margin-bottom: spacing(1);
87
+ }
88
+
89
+ .pp-carousel__caption-body {
90
+ font-size: font-size('sm');
91
+ color: rgba(#fff, 0.75);
92
+ line-height: 1.5;
93
+ }
94
+
95
+ // ─── Prev / Next controls ────────────────────────────────────────────────────
96
+ .pp-carousel__prev,
97
+ .pp-carousel__next {
98
+ position: absolute;
99
+ top: 50%;
100
+ transform: translateY(-50%);
101
+ z-index: z('raised');
102
+
103
+ display: flex;
104
+ align-items: center;
105
+ justify-content: center;
106
+ width: 36px;
107
+ height: 36px;
108
+ border-radius: 50%;
109
+ border: none;
110
+ cursor: pointer;
111
+
112
+ background: rgba(255, 255, 255, 0.85);
113
+ backdrop-filter: blur(8px) saturate(160%);
114
+ -webkit-backdrop-filter: blur(8px) saturate(160%);
115
+ box-shadow: var(--pp-shadow-md);
116
+ color: var(--pp-neutral-800);
117
+ transition:
118
+ background $transition-fast,
119
+ box-shadow $transition-fast,
120
+ opacity $transition-fast,
121
+ transform $transition-fast;
122
+
123
+ svg {
124
+ width: 18px;
125
+ height: 18px;
126
+ flex-shrink: 0;
127
+ stroke: currentColor;
128
+ fill: none;
129
+ stroke-width: 2;
130
+ stroke-linecap: round;
131
+ stroke-linejoin: round;
132
+ pointer-events: none;
133
+ }
134
+
135
+ &:hover {
136
+ background: #fff;
137
+ box-shadow: var(--pp-shadow-lg);
138
+ transform: translateY(-50%) scale(1.08);
139
+ }
140
+
141
+ &:active {
142
+ transform: translateY(-50%) scale(0.96);
143
+ box-shadow: var(--pp-shadow);
144
+ }
145
+
146
+ &:focus-visible {
147
+ outline: 2px solid var(--pp-primary);
148
+ outline-offset: 2px;
149
+ }
150
+
151
+ &:disabled,
152
+ &[aria-disabled='true'] {
153
+ opacity: 0.3;
154
+ pointer-events: none;
155
+ }
156
+ }
157
+
158
+ .pp-carousel__prev { left: spacing(3); }
159
+ .pp-carousel__next { right: spacing(3); }
160
+
161
+ // ─── Dots (pagination indicators) ────────────────────────────────────────────
162
+ .pp-carousel__dots {
163
+ display: flex;
164
+ align-items: center;
165
+ justify-content: center;
166
+ gap: spacing(2);
167
+ padding: spacing(4) 0 spacing(2);
168
+ list-style: none;
169
+ }
170
+
171
+ .pp-carousel__dot {
172
+ display: block;
173
+ width: 6px;
174
+ height: 6px;
175
+ border-radius: 50%;
176
+ background: var(--pp-neutral-300);
177
+ border: none;
178
+ cursor: pointer;
179
+ padding: 0;
180
+ transition:
181
+ background $transition-base,
182
+ width $transition-base,
183
+ border-radius $transition-base;
184
+
185
+ &:focus-visible {
186
+ outline: 2px solid var(--pp-primary);
187
+ outline-offset: 2px;
188
+ }
189
+
190
+ &.is-active,
191
+ &[aria-current='true'] {
192
+ background: var(--pp-primary);
193
+ width: 20px;
194
+ border-radius: 3px;
195
+ }
196
+
197
+ &:hover:not(.is-active):not([aria-current='true']) {
198
+ background: var(--pp-neutral-500);
199
+ }
200
+ }
201
+
202
+ // ─── Live region (screen-reader slide announcements) ─────────────────────────
203
+ .pp-carousel__announcer {
204
+ position: absolute;
205
+ width: 1px;
206
+ height: 1px;
207
+ padding: 0;
208
+ margin: -1px;
209
+ overflow: hidden;
210
+ clip: rect(0, 0, 0, 0);
211
+ white-space: nowrap;
212
+ border: 0;
213
+ }
214
+
215
+ // ─── Autoplay toggle ─────────────────────────────────────────────────────────
216
+ .pp-carousel__autoplay {
217
+ position: absolute;
218
+ top: spacing(3);
219
+ right: spacing(3);
220
+ z-index: z('raised');
221
+
222
+ display: flex;
223
+ align-items: center;
224
+ justify-content: center;
225
+ width: 30px;
226
+ height: 30px;
227
+ border-radius: 50%;
228
+ border: none;
229
+ cursor: pointer;
230
+
231
+ background: rgba(255, 255, 255, 0.75);
232
+ backdrop-filter: blur(8px);
233
+ -webkit-backdrop-filter: blur(8px);
234
+ color: var(--pp-neutral-700);
235
+ transition: background $transition-fast, color $transition-fast;
236
+
237
+ svg {
238
+ width: 14px;
239
+ height: 14px;
240
+ fill: currentColor;
241
+ pointer-events: none;
242
+ }
243
+
244
+ &:hover { background: rgba(255, 255, 255, 0.95); color: var(--pp-on-surface); }
245
+
246
+ &:focus-visible {
247
+ outline: 2px solid var(--pp-primary);
248
+ outline-offset: 2px;
249
+ }
250
+
251
+ .pp-carousel--playing & .pp-carousel__autoplay-icon--play { display: none; }
252
+ .pp-carousel--playing & .pp-carousel__autoplay-icon--pause { display: block; }
253
+ .pp-carousel--paused & .pp-carousel__autoplay-icon--play { display: block; }
254
+ .pp-carousel--paused & .pp-carousel__autoplay-icon--pause { display: none; }
255
+ }
256
+
257
+ // ─── Dark variant ────────────────────────────────────────────────────────────
258
+ .pp-carousel--dark {
259
+ background: var(--pp-neutral-900);
260
+
261
+ .pp-carousel__prev,
262
+ .pp-carousel__next {
263
+ background: rgba(0, 0, 0, 0.6);
264
+ color: #fff;
265
+ &:hover { background: rgba(0, 0, 0, 0.85); }
266
+ }
267
+
268
+ .pp-carousel__dot {
269
+ background: var(--pp-neutral-600);
270
+ &.is-active, &[aria-current='true'] { background: var(--pp-primary-light); }
271
+ }
272
+
273
+ .pp-carousel__autoplay {
274
+ background: rgba(0, 0, 0, 0.5);
275
+ color: rgba(#fff, 0.8);
276
+ &:hover { background: rgba(0, 0, 0, 0.8); color: #fff; }
277
+ }
278
+ }
279
+
280
+ // ─── Flush variant (no border-radius) ────────────────────────────────────────
281
+ .pp-carousel--flush {
282
+ border-radius: 0;
283
+ .pp-carousel__slide { border-radius: 0; }
284
+ .pp-carousel__caption { border-radius: 0; }
285
+ }
286
+
287
+ // ─── Responsive ───────────────────────────────────────────────────────────────
288
+ @media (max-width: 767px) {
289
+ .pp-carousel__prev { left: spacing(2); }
290
+ .pp-carousel__next { right: spacing(2); }
291
+
292
+ .pp-carousel__prev,
293
+ .pp-carousel__next {
294
+ width: 32px;
295
+ height: 32px;
296
+ svg { width: 16px; height: 16px; }
297
+ }
298
+
299
+ .pp-carousel--peek-2 .pp-carousel__slide,
300
+ .pp-carousel--peek-3 .pp-carousel__slide {
301
+ flex: 0 0 92%;
302
+ }
303
+ }
@@ -0,0 +1,22 @@
1
+ // Standalone component; Peppertino tokens are optional.
2
+ .pp-code-block {
3
+ border: 1px solid var(--pp-border, hsl(240 5% 84%));
4
+ border-radius: 1rem;
5
+ background: var(--pp-bg-card, #fff);
6
+ color: var(--pp-on-surface, hsl(240 6% 10%));
7
+ overflow: hidden;
8
+ }
9
+ .pp-code-block__header {
10
+ display: flex;
11
+ flex-wrap: wrap;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ gap: .75rem;
15
+ padding: .75rem 1rem;
16
+ border-bottom: 1px solid var(--pp-border, hsl(240 5% 84%));
17
+ }
18
+ .pp-code-block pre { margin: 0; padding: 1rem; overflow: auto; }
19
+ .pp-code-block code { font-family: ui-monospace, monospace; white-space: pre; }
20
+ .pp-code-block__header { font-size: .875rem; font-weight: 600; }
21
+
22
+ .pp-code-block :focus-visible, .pp-code-block:focus-visible { outline: 2px solid var(--pp-primary, hsl(355 100% 39%)); outline-offset: 3px; }
@@ -0,0 +1,5 @@
1
+ // Standalone component; Peppertino tokens are optional.
2
+ .pp-counter { font-size: clamp(2rem, 7vw, 4rem); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
3
+
4
+ .pp-counter :focus-visible, .pp-counter:focus-visible { outline: 2px solid var(--pp-primary, hsl(355 100% 39%)); outline-offset: 3px; }
5
+ @media (prefers-reduced-motion: reduce) { .pp-counter { animation: none; transition: none; } }