peek-carousel 1.1.1 → 2.0.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.
@@ -1,75 +1,321 @@
1
- * {
2
- box-sizing: border-box;
1
+ .playground__stage .playground__theme {
2
+ --peek-carousel-card-radius: 16px;
3
+ --peek-carousel-indicators-background: var(--preview-color-selected-surface);
4
+ --peek-carousel-indicator-active-color: var(--accent);
5
+ --peek-carousel-indicator-color: #6c7c96;
6
+ --peek-carousel-indicator-track-color: var(--preview-color-control-border);
7
+
8
+ height: 100%;
3
9
  }
4
10
 
5
- body {
6
- margin: 0;
7
- padding: 24px;
8
- background: #10131b;
9
- color: #f5f5f5;
10
- font: 16px/1.5 system-ui;
11
+ aside.playground__settings {
12
+ padding: var(--preview-space-6);
13
+ border: 1px solid var(--preview-color-divider);
14
+ border-radius: var(--preview-radius-surface);
15
+ background: var(--preview-color-surface);
16
+ }
17
+
18
+ .playground__theme_settings {
19
+ display: grid;
20
+ grid-template-columns: repeat(4, minmax(0, 1fr));
21
+ align-items: start;
22
+ gap: var(--preview-space-5);
23
+ margin-top: var(--preview-space-5);
24
+ }
25
+
26
+ .playground__theme_settings label {
27
+ display: grid;
28
+ grid-template-columns: minmax(0, 1fr) auto;
29
+ align-items: center;
30
+ gap: 10px;
31
+ font-size: 12px;
32
+ color: var(--muted);
33
+ }
34
+
35
+ .playground__theme_settings button {
36
+ min-height: var(--preview-control-height);
37
+ padding: var(--preview-space-3) 14px;
38
+ border: 1px solid var(--line);
39
+ border-radius: var(--preview-radius-control);
40
+ background: var(--preview-color-surface);
41
+ color: var(--ink);
42
+ font: inherit;
43
+ line-height: 1.5;
44
+ }
45
+
46
+ .playground__color_controls {
47
+ display: inline-flex;
48
+ align-items: center;
49
+ gap: 10px;
11
50
  }
12
51
 
13
- main {
14
- max-width: 1000px;
15
- margin: auto;
52
+ .playground__color_controls output {
53
+ padding: 6px var(--preview-space-2);
54
+ border-radius: var(--preview-radius-small);
55
+ background: var(--preview-color-selected-surface);
56
+ color: var(--preview-color-primary-hover);
57
+ font-size: 11px;
16
58
  }
17
59
 
18
- h1 {
60
+ .playground__theme_settings input[type='color'] {
61
+ appearance: none;
62
+ width: var(--preview-control-min);
63
+ height: var(--preview-control-min);
64
+ padding: 5px;
65
+ border: 1px solid #8392ad;
66
+ border-radius: var(--preview-radius-control);
67
+ background: var(--preview-color-surface);
68
+ cursor: pointer;
69
+ }
70
+
71
+ .playground__theme_settings input[type='color']::-webkit-color-swatch-wrapper {
72
+ padding: 0;
73
+ }
74
+
75
+ .playground__theme_settings input[type='color']::-webkit-color-swatch {
76
+ border: 0;
77
+ border-radius: 7px;
78
+ }
79
+
80
+ .playground__theme_settings input[type='color']::-moz-color-swatch {
81
+ border: 0;
82
+ border-radius: 7px;
83
+ }
84
+
85
+ .playground__theme_settings input[type='range'] {
86
+ appearance: none;
87
+ grid-row: 2;
88
+ grid-column: 1 / -1;
89
+ width: 100%;
90
+ height: var(--preview-control-min);
19
91
  margin: 0;
92
+ padding: 0;
93
+ border: 0;
94
+ background: transparent;
95
+ cursor: pointer;
96
+ }
97
+
98
+ .playground__theme_settings input[type='range']::-webkit-slider-runnable-track {
99
+ height: 6px;
100
+ border-radius: var(--preview-radius-round);
101
+ background: linear-gradient(
102
+ to right,
103
+ var(--accent) var(--range-progress, 40%),
104
+ var(--preview-color-control-border) var(--range-progress, 40%)
105
+ );
106
+ }
107
+
108
+ .playground__theme_settings input[type='range']::-webkit-slider-thumb {
109
+ appearance: none;
110
+ width: 20px;
111
+ height: 20px;
112
+ margin-top: -7px;
113
+ border: 3px solid #fff;
114
+ border-radius: 50%;
115
+ background: var(--accent);
116
+ box-shadow: 0 0 0 2px var(--accent);
117
+ }
118
+
119
+ .playground__theme_settings input[type='range']::-moz-range-track {
120
+ height: 6px;
121
+ border-radius: var(--preview-radius-round);
122
+ background: var(--preview-color-control-border);
20
123
  }
21
124
 
22
- .settings {
125
+ .playground__theme_settings input[type='range']::-moz-range-progress {
126
+ height: 6px;
127
+ border-radius: var(--preview-radius-round);
128
+ background: var(--accent);
129
+ }
130
+
131
+ .playground__theme_settings input[type='range']::-moz-range-thumb {
132
+ width: 16px;
133
+ height: 16px;
134
+ border: 3px solid #fff;
135
+ border-radius: 50%;
136
+ background: var(--accent);
137
+ box-shadow: 0 0 0 2px var(--accent);
138
+ }
139
+
140
+ .playground__theme_settings input:focus-visible {
141
+ outline-offset: 6px;
142
+ }
143
+
144
+ .playground__preset {
145
+ position: relative;
146
+ color: var(--muted);
147
+ font-size: 12px;
148
+ }
149
+
150
+ .playground__preset > button {
23
151
  display: flex;
24
- flex-wrap: wrap;
25
- gap: 24px;
26
152
  align-items: center;
27
- margin: 24px 0;
153
+ justify-content: space-between;
154
+ width: 100%;
155
+ margin-top: var(--preview-space-2);
156
+ border-color: #8392ad;
157
+ background: #f8faff;
158
+ color: var(--ink);
28
159
  }
29
160
 
30
- label {
161
+ .playground__preset ul {
162
+ position: absolute;
163
+ z-index: 5;
164
+ width: 100%;
165
+ padding: 5px;
166
+ margin: 6px 0 0;
167
+ border: 1px solid var(--line);
168
+ border-radius: var(--preview-radius-control);
169
+ background: var(--preview-color-surface);
170
+ list-style: none;
171
+ box-shadow: 0 12px 36px rgb(23 43 85 / 14%);
172
+ }
173
+
174
+ .playground__preset [role='option'] {
175
+ padding: var(--preview-space-3);
176
+ border-radius: var(--preview-radius-control);
177
+ color: var(--ink);
178
+ cursor: pointer;
179
+ }
180
+
181
+ .playground__preset [aria-selected='true'] {
182
+ background: var(--preview-color-selected-surface);
183
+ color: var(--preview-color-primary-hover);
184
+ }
185
+
186
+ .playground__preset [role='option']:focus,
187
+ .playground__preset [role='option']:hover {
188
+ outline: 2px solid var(--accent);
189
+ outline-offset: -2px;
190
+ }
191
+
192
+ .playground__theme_settings > button {
193
+ grid-column: 1 / -1;
194
+ justify-self: start;
195
+ min-width: 160px;
196
+ border-color: var(--preview-color-control-border);
197
+ background: var(--preview-color-surface);
198
+ color: var(--ink);
199
+ }
200
+
201
+ .playground__theme_settings > button:enabled:hover {
202
+ border-color: var(--accent);
203
+ background: var(--preview-color-selected-surface);
204
+ color: var(--preview-color-selected-text);
205
+ }
206
+
207
+ .playground__theme_settings > button:enabled:active {
208
+ background: var(--preview-color-surface-subtle);
209
+ }
210
+
211
+ .playground__theme_settings label > output {
212
+ grid-row: 1;
213
+ grid-column: 2;
214
+ color: var(--ink);
215
+ font-variant-numeric: tabular-nums;
216
+ }
217
+
218
+ .preview__theme_code {
31
219
  display: grid;
32
- gap: 6px;
220
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
221
+ align-items: start;
222
+ gap: var(--preview-space-7);
223
+ margin: var(--preview-section-space) 0;
224
+ padding: 0;
33
225
  }
34
226
 
35
- button,
36
- select,
37
- input {
38
- font: inherit;
227
+ .preview__theme_code h2 {
228
+ margin: 0 0 var(--preview-space-4);
229
+ font-size: var(--preview-heading-size);
230
+ font-weight: var(--preview-heading-weight);
231
+ letter-spacing: var(--preview-heading-tracking);
232
+ line-height: var(--preview-heading-leading);
39
233
  }
40
234
 
41
- .theme-preview {
42
- height: 680px;
43
- overflow: hidden;
44
- background: #1b2130;
45
- border-radius: 20px;
235
+ .preview__theme_intro h2 > span {
236
+ display: block;
46
237
  }
47
238
 
48
- .theme-preview .peek-carousel__item {
49
- width: clamp(220px, 35vw, 380px);
239
+ .preview__theme_code p {
240
+ margin: 0;
241
+ color: var(--muted);
242
+ font-size: var(--preview-body-size);
243
+ line-height: var(--preview-body-leading);
50
244
  }
51
245
 
52
- textarea {
246
+ .preview__theme_code textarea {
53
247
  width: 100%;
54
- min-height: 230px;
55
- padding: 16px;
56
- border: 1px solid #566;
57
- border-radius: 8px;
58
- background: #171b24;
59
- color: #eff;
60
- font: 13px/1.5 monospace;
61
- }
62
-
63
- @media (max-width: 600px) {
64
- body {
65
- padding: 16px;
248
+ min-height: 320px;
249
+ padding: var(--preview-space-5);
250
+ border: 1px solid var(--preview-code-border);
251
+ border-radius: var(--preview-radius-surface);
252
+ background: var(--preview-code-background);
253
+ color: var(--preview-code-text);
254
+ font:
255
+ 12px/1.9 ui-monospace,
256
+ monospace;
257
+ resize: vertical;
258
+ letter-spacing: normal;
259
+ }
260
+
261
+ .preview__copy_actions {
262
+ margin-top: var(--preview-space-5);
263
+ }
264
+
265
+ .preview__copy_button {
266
+ min-height: var(--preview-control-height);
267
+ padding: var(--preview-space-3) 20px;
268
+ border: 1px solid var(--accent);
269
+ border-radius: var(--preview-radius-control);
270
+ background: var(--accent);
271
+ color: var(--preview-color-on-primary);
272
+ font: inherit;
273
+ font-size: 13px;
274
+ font-weight: var(--preview-button-weight);
275
+ line-height: 1.5;
276
+ }
277
+
278
+ .preview__copy_button:enabled:hover {
279
+ border-color: var(--preview-color-primary-hover);
280
+ background: var(--preview-color-primary-hover);
281
+ }
282
+
283
+ .preview__copy_button:enabled:active {
284
+ border-color: var(--preview-color-primary-pressed);
285
+ background: var(--preview-color-primary-pressed);
286
+ }
287
+
288
+ .preview__copy_button:disabled {
289
+ cursor: progress;
290
+ opacity: 0.65;
291
+ }
292
+
293
+ @media (max-width: 720px) {
294
+ .preview__theme_code {
295
+ grid-template-columns: minmax(0, 1fr);
296
+ gap: var(--preview-space-6);
66
297
  }
298
+ }
67
299
 
68
- .theme-preview {
69
- height: 560px;
300
+ @media (max-width: 1000px) {
301
+ .playground__theme_settings {
302
+ grid-template-columns: repeat(2, minmax(0, 1fr));
303
+ gap: 20px;
70
304
  }
71
305
 
72
- .theme-preview .peek-carousel__item {
73
- width: 72vw;
306
+ .playground__theme_settings label[for='theme-accent'] {
307
+ grid-template-columns: 1fr;
308
+ align-content: start;
309
+ }
310
+
311
+ .playground__color_controls {
312
+ min-height: var(--preview-control-height);
313
+ justify-content: space-between;
314
+ }
315
+ }
316
+
317
+ @media (max-width: 360px) {
318
+ .playground__theme_settings {
319
+ grid-template-columns: minmax(0, 1fr);
74
320
  }
75
321
  }
@@ -1,68 +1,102 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width,initial-scale=1" />
6
- <title>PeekCarousel custom themes</title>
7
- <link rel="stylesheet" href="../dist/peek-carousel.min.css" />
8
- <link rel="stylesheet" href="./custom-theme.css" />
9
- </head>
10
- <body>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>PeekCarousel — Live CSS Theme Editor</title>
7
+ <meta name="description" content="Design your carousel with CSS variables. Try presets, accent colors, card corners and button sizes, then copy your theme CSS.">
8
+ <meta name="robots" content="index, follow, max-image-preview:large">
9
+ <meta name="theme-color" content="#ffffff">
10
+ <meta property="og:type" content="website">
11
+ <meta property="og:site_name" content="PeekCarousel">
12
+ <meta property="og:locale" content="en_US">
13
+ <meta property="og:url" content="https://lledellebell.github.io/peek-carousel/examples/custom-theme.html">
14
+ <meta property="og:title" content="PeekCarousel — Live CSS Theme Editor">
15
+ <meta property="og:description" content="Design your carousel with CSS variables. Try presets, accent colors, card corners and button sizes, then copy your theme CSS.">
16
+ <meta property="og:image" content="https://lledellebell.github.io/peek-carousel/public/assets/share_image.png">
17
+ <meta property="og:image:type" content="image/png">
18
+ <meta property="og:image:width" content="1200">
19
+ <meta property="og:image:height" content="720">
20
+ <meta property="og:image:alt" content="PeekCarousel on a white background with blue controls and image cards">
21
+ <meta name="twitter:card" content="summary_large_image">
22
+ <meta name="twitter:title" content="PeekCarousel — Live CSS Theme Editor">
23
+ <meta name="twitter:description" content="Design your carousel with CSS variables. Try presets, accent colors, card corners and button sizes, then copy your theme CSS.">
24
+ <meta name="twitter:image" content="https://lledellebell.github.io/peek-carousel/public/assets/share_image.png">
25
+ <meta name="twitter:image:alt" content="PeekCarousel on a white background with blue controls and image cards">
26
+ <link rel="canonical" href="https://lledellebell.github.io/peek-carousel/examples/custom-theme.html">
27
+ <link rel="alternate" hreflang="en" href="https://lledellebell.github.io/peek-carousel/examples/custom-theme.html">
28
+ <link rel="alternate" hreflang="ja" href="https://lledellebell.github.io/peek-carousel/examples/custom-theme.ja.html">
29
+ <link rel="alternate" hreflang="ko" href="https://lledellebell.github.io/peek-carousel/examples/custom-theme.ko.html">
30
+ <link rel="alternate" hreflang="x-default" href="https://lledellebell.github.io/peek-carousel/examples/custom-theme.html">
31
+ <meta property="og:locale:alternate" content="ja_JP">
32
+ <meta property="og:locale:alternate" content="ko_KR">
33
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://lledellebell.github.io/peek-carousel/examples/custom-theme.html","url":"https://lledellebell.github.io/peek-carousel/examples/custom-theme.html","name":"PeekCarousel — Live CSS Theme Editor","description":"Design your carousel with CSS variables. Try presets, accent colors, card corners and button sizes, then copy your theme CSS.","inLanguage":"en","mainEntity":{"@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source"}},{"@type":"SoftwareSourceCode","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source","name":"PeekCarousel","description":"Design your carousel with CSS variables. Try presets, accent colors, card corners and button sizes, then copy your theme CSS.","programmingLanguage":"JavaScript","runtimePlatform":"Web browser","license":"https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE","url":"https://github.com/lledellebell/peek-carousel-docs"}]}</script>
34
+ <link rel="preload" href="../public/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin="anonymous">
35
+ <link rel="stylesheet" href="../public/fonts/inter-latin.css">
36
+
37
+ <link rel="icon" type="image/png" sizes="16x16" href="../public/favicon-16x16.png">
38
+ <link rel="icon" type="image/png" sizes="32x32" href="../public/favicon-32x32.png">
39
+ <link rel="icon" type="image/svg+xml" sizes="any" href="../public/peek-mark.svg">
40
+ <link rel="stylesheet" href="../dist/peek-carousel.min.css">
41
+ <link rel="stylesheet" href="./example.min.css">
42
+ <link rel="stylesheet" href="./custom-theme.css">
43
+ </head>
44
+ <body class="preview">
45
+ <a class="preview__skip" href="#theme-carousel">Skip to playground</a>
46
+ <header class="preview__header">
47
+ <a class="preview__brand" href="#"><img class="preview__brand_mark" src="../public/peek-mark.svg" alt="" width="32" height="32"> PeekCarousel</a>
48
+ <nav class="preview__nav" aria-label="Main navigation">
49
+ <a href="./example-built.html">Playground</a>
50
+ <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">Docs <span aria-hidden="true">↗</span></a>
51
+ <a href="https://github.com/lledellebell/peek-carousel-docs">GitHub <span aria-hidden="true">↗</span></a>
52
+ </nav>
53
+ <details class="preview__language_menu" id="language-menu"><summary aria-label="Choose language: EN"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6" fill="none" stroke="currentColor"/><path d="M2 8h12M8 2c-3 3-3 9 0 12M8 2c3 3 3 9 0 12" fill="none" stroke="currentColor"/></svg><span>EN</span><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true"><path d="m3 4.5 3 3 3-3" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><nav class="preview__languages" aria-label="Choose language">
54
+ <a href="./custom-theme.html" lang="en" hreflang="en" aria-label="EN — English" aria-current="page">EN</a>
55
+ <a href="./custom-theme.ja.html" lang="ja" hreflang="ja" aria-label="日本語">日本語</a>
56
+ <a href="./custom-theme.ko.html" lang="ko" hreflang="ko" aria-label="한국어">한국어</a>
57
+ </nav></details>
58
+ </header>
11
59
  <main>
12
- <h1>Custom themes</h1>
13
- <p>Style one carousel with CSS variables. Changes apply immediately.</p>
14
- <div class="settings">
15
- <label
16
- >Preset
17
- <select id="theme-preset">
18
- <option value="default">Original</option>
19
- <option value="light">Light</option>
20
- <option value="flat">Flat</option>
21
- </select></label
22
- >
23
- <label
24
- >Accent <input type="color" id="theme-accent" value="#22c55e"
25
- /></label>
26
- <label
27
- >Card radius
28
- <input
29
- type="range"
30
- id="theme-radius"
31
- min="0"
32
- max="40"
33
- value="16"
34
- /><output for="theme-radius" id="radius-value">16px</output></label
35
- >
36
- <label
37
- >Button size
38
- <input
39
- type="range"
40
- id="theme-size"
41
- min="32"
42
- max="64"
43
- value="36"
44
- /><output for="theme-size" id="size-value">36px</output></label
45
- >
46
- <button type="button" id="theme-reset">Reset theme</button>
60
+ <section class="preview__hero" aria-labelledby="theme-title">
61
+ <div class="preview__hero_copy">
62
+ <p class="preview__eyebrow"><svg class="preview__tagline_icon" width="18" height="18" viewBox="0 0 64 64" fill="none" aria-hidden="true" focusable="false"><rect x="6" y="15" width="32" height="40" rx="7" transform="rotate(-12 22 35)" stroke="currentColor" stroke-width="3"/><rect x="24" y="7" width="32" height="44" rx="7" fill="currentColor"/><path d="M47 17v24" stroke="white" stroke-width="3" stroke-linecap="round"/></svg><span class="preview__hero_tagline">YOUR GALLERY. YOUR SIGNATURE.</span></p>
63
+ <h1 id="theme-title"><span>Make it feel </span><span class="preview__hero_accent">like you.</span></h1>
64
+ </div>
65
+ <div class="preview__hero_summary">
66
+ <div class="preview__intro"><p>One carousel. A style of your own.<br>Choose a preset, fine-tune the details, and take the CSS with you.</p></div>
67
+ <div class="preview__hero_actions">
68
+ <a class="preview__hero_action" href="#theme-carousel">LIVE THEME PREVIEW<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10m-4-4 4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
69
+ <a class="preview__link" href="./example-built.html">Back to the playground<span aria-hidden="true">↗</span></a>
47
70
  </div>
48
- <div
49
- id="theme-carousel"
50
- class="peek-carousel theme-preview"
51
- role="region"
52
- aria-label="Custom theme preview"
53
- >
54
- <div class="peek-carousel__track"></div>
71
+
72
+ </div>
73
+ </section>
74
+ <section class="playground" aria-labelledby="theme-preview-title">
75
+ <div class="playground__preview">
76
+ <div class="playground__toolbar"><h2 class="preview__eyebrow" id="theme-preview-title"><span class="preview__section_number" aria-hidden="true">01</span>LIVE THEME PREVIEW</h2><span class="playground__live"><svg class="playground__live_icon" width="18" height="18" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false"><rect x="3" y="5" width="18" height="14" rx="4" stroke="currentColor" stroke-width="1.5"/><path d="m10 9 5 3-5 3Z" fill="currentColor"/></svg>Live preview</span></div>
77
+ <p class="playground__quick_help" id="theme-quick-help">Drag or focus the gallery and use ← / →.</p>
78
+ <div class="playground__stage"><div id="theme-carousel" class="peek-carousel playground__theme" tabindex="-1" role="region" aria-label="Custom theme preview" aria-describedby="theme-quick-help" data-demo-a11y="{&quot;slide&quot;:&quot;slide&quot;,&quot;position&quot;:&quot;{current} of {total}&quot;,&quot;show&quot;:&quot;Show slide {current} of {total}&quot;,&quot;choose&quot;:&quot;Choose a slide&quot;,&quot;previous&quot;:&quot;Previous slide&quot;,&quot;next&quot;:&quot;Next slide&quot;,&quot;start&quot;:&quot;Start automatic slide rotation&quot;,&quot;stop&quot;:&quot;Stop automatic slide rotation&quot;}"><div class="peek-carousel__track"><div class="peek-carousel__item"><figure class="peek-carousel__figure"><img class="peek-carousel__image" width="650" height="490" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22650%22%20height%3D%22490%22%3E%3Crect%20width%3D%22650%22%20height%3D%22490%22%20fill%3D%22hsl(210%2038%25%2040%25)%22%2F%3E%3Ccircle%20cx%3D%22460%22%20cy%3D%22140%22%20r%3D%2270%22%20fill%3D%22%23fff6%22%2F%3E%3Cpath%20d%3D%22M0%20490L220%20180L410%20490ZM230%20490L460%20230L650%20490Z%22%20fill%3D%22%23fff3%22%2F%3E%3C%2Fsvg%3E" alt="Illustrated mountain landscape 1"><figcaption class="peek-carousel__caption">Landscape 1</figcaption></figure></div>
79
+ <div class="peek-carousel__item"><figure class="peek-carousel__figure"><img class="peek-carousel__image" width="650" height="490" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22650%22%20height%3D%22490%22%3E%3Crect%20width%3D%22650%22%20height%3D%22490%22%20fill%3D%22hsl(245%2038%25%2040%25)%22%2F%3E%3Ccircle%20cx%3D%22460%22%20cy%3D%22140%22%20r%3D%2270%22%20fill%3D%22%23fff6%22%2F%3E%3Cpath%20d%3D%22M0%20490L220%20180L410%20490ZM230%20490L460%20230L650%20490Z%22%20fill%3D%22%23fff3%22%2F%3E%3C%2Fsvg%3E" alt="Illustrated mountain landscape 2"><figcaption class="peek-carousel__caption">Landscape 2</figcaption></figure></div>
80
+ <div class="peek-carousel__item"><figure class="peek-carousel__figure"><img class="peek-carousel__image" width="650" height="490" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22650%22%20height%3D%22490%22%3E%3Crect%20width%3D%22650%22%20height%3D%22490%22%20fill%3D%22hsl(280%2038%25%2040%25)%22%2F%3E%3Ccircle%20cx%3D%22460%22%20cy%3D%22140%22%20r%3D%2270%22%20fill%3D%22%23fff6%22%2F%3E%3Cpath%20d%3D%22M0%20490L220%20180L410%20490ZM230%20490L460%20230L650%20490Z%22%20fill%3D%22%23fff3%22%2F%3E%3C%2Fsvg%3E" alt="Illustrated mountain landscape 3"><figcaption class="peek-carousel__caption">Landscape 3</figcaption></figure></div>
81
+ <div class="peek-carousel__item"><figure class="peek-carousel__figure"><img class="peek-carousel__image" width="650" height="490" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22650%22%20height%3D%22490%22%3E%3Crect%20width%3D%22650%22%20height%3D%22490%22%20fill%3D%22hsl(315%2038%25%2040%25)%22%2F%3E%3Ccircle%20cx%3D%22460%22%20cy%3D%22140%22%20r%3D%2270%22%20fill%3D%22%23fff6%22%2F%3E%3Cpath%20d%3D%22M0%20490L220%20180L410%20490ZM230%20490L460%20230L650%20490Z%22%20fill%3D%22%23fff3%22%2F%3E%3C%2Fsvg%3E" alt="Illustrated mountain landscape 4"><figcaption class="peek-carousel__caption">Landscape 4</figcaption></figure></div>
82
+ <div class="peek-carousel__item"><figure class="peek-carousel__figure"><img class="peek-carousel__image" width="650" height="490" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22650%22%20height%3D%22490%22%3E%3Crect%20width%3D%22650%22%20height%3D%22490%22%20fill%3D%22hsl(350%2038%25%2040%25)%22%2F%3E%3Ccircle%20cx%3D%22460%22%20cy%3D%22140%22%20r%3D%2270%22%20fill%3D%22%23fff6%22%2F%3E%3Cpath%20d%3D%22M0%20490L220%20180L410%20490ZM230%20490L460%20230L650%20490Z%22%20fill%3D%22%23fff3%22%2F%3E%3C%2Fsvg%3E" alt="Illustrated mountain landscape 5"><figcaption class="peek-carousel__caption">Landscape 5</figcaption></figure></div></div></div></div>
83
+ <p class="playground__description">Copy this rule into your app after the library stylesheet.</p>
55
84
  </div>
56
- <h2>Your CSS</h2>
57
- <p>Copy this rule into your app after the library stylesheet.</p>
58
- <textarea
59
- id="theme-css"
60
- readonly
61
- aria-label="Generated custom theme CSS"
62
- spellcheck="false"
63
- ></textarea>
64
- </main>
65
- <script src="../dist/peek-carousel.js"></script>
66
- <script type="module" src="./custom-theme.js"></script>
67
- </body>
85
+ <aside class="playground__settings" aria-labelledby="theme-settings-title">
86
+ <p class="preview__eyebrow">THE FINISHING TOUCHES</p><h2 id="theme-settings-title">Your next look.</h2>
87
+ <div class="playground__theme_settings">
88
+ <div class="playground__preset"><span id="theme-preset-label">Preset</span><input type="hidden" id="theme-preset" value="default"><button type="button" id="theme-preset-trigger" aria-haspopup="listbox" aria-expanded="false" aria-controls="theme-preset-options" aria-labelledby="theme-preset-label theme-preset-value"><span id="theme-preset-value">Original</span><svg aria-hidden="true" width="16" height="16" viewBox="0 0 16 16"><path d="m4 6 4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></button><ul id="theme-preset-options" role="listbox" aria-labelledby="theme-preset-label" hidden><li role="option" tabindex="-1" data-preset="default" aria-selected="true">Original</li><li role="option" tabindex="-1" data-preset="light" aria-selected="false">Light</li><li role="option" tabindex="-1" data-preset="flat" aria-selected="false">Flat</li></ul></div>
89
+ <label for="theme-accent">Accent color<span class="playground__color_controls"><output for="theme-accent" id="theme-accent-value">#2458e8</output><input type="color" id="theme-accent" value="#2458e8"></span></label>
90
+ <label for="theme-radius">Card radius<input type="range" id="theme-radius" min="0" max="40" value="16"><output for="theme-radius" id="radius-value">16px</output></label>
91
+ <label for="theme-size">Button size<input type="range" id="theme-size" min="32" max="64" value="36"><output for="theme-size" id="size-value">36px</output></label>
92
+ <button type="button" id="theme-reset">Reset theme</button>
93
+ </div>
94
+ </aside>
95
+ </section>
96
+ <section class="preview__theme_code" aria-labelledby="theme-css-title"><div class="preview__theme_intro"><h2 id="theme-css-title"><span>Your CSS. </span><span>Ready to go.</span></h2><p>Copy this rule into your app after the library stylesheet.</p><div class="preview__copy_actions"><button class="preview__copy_button" id="theme-copy" type="button" data-pending="Copying..." data-success="CSS copied" data-fallback="CSS selected. Copy it with your keyboard.">Copy CSS</button><p class="preview__copy_status" id="theme-copy-status" role="status"></p></div></div><textarea id="theme-css" readonly aria-label="Generated custom theme CSS" spellcheck="false"></textarea></section>
97
+ </main>
98
+ <footer class="preview__footer"><span><strong class="preview__footer_brand">PeekCarousel</strong><span class="preview__footer_note">— A little more perspective.</span></span><span>Vanilla JavaScript · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE" >Application-use terms</a></span><small class="preview__copyright">© 2025 PeekCarousel · © 2026 PeekCarousel contributors. <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/COPYRIGHT.md">Copyright & permitted reuse</a> · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/THIRD_PARTY_NOTICES.md">Image rights & credits</a></small></footer>
99
+ <script src="../dist/peek-carousel.js"></script>
100
+ <script src="./custom-theme.js"></script>
101
+ </body>
68
102
  </html>