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.
@@ -0,0 +1,103 @@
1
+ <!doctype html>
2
+ <html lang="ja">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>PeekCarousel — CSSテーマのライブエディター</title>
7
+ <meta name="description" content="CSS変数でカルーセルをデザイン。プリセット、アクセントカラー、角丸、ボタンサイズを試して、テーマの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="ja_JP">
13
+ <meta property="og:url" content="https://lledellebell.github.io/peek-carousel/examples/custom-theme.ja.html">
14
+ <meta property="og:title" content="PeekCarousel — CSSテーマのライブエディター">
15
+ <meta property="og:description" content="CSS変数でカルーセルをデザイン。プリセット、アクセントカラー、角丸、ボタンサイズを試して、テーマの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">
21
+ <meta name="twitter:card" content="summary_large_image">
22
+ <meta name="twitter:title" content="PeekCarousel — CSSテーマのライブエディター">
23
+ <meta name="twitter:description" content="CSS変数でカルーセルをデザイン。プリセット、アクセントカラー、角丸、ボタンサイズを試して、テーマの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">
26
+ <link rel="canonical" href="https://lledellebell.github.io/peek-carousel/examples/custom-theme.ja.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="en_US">
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.ja.html","url":"https://lledellebell.github.io/peek-carousel/examples/custom-theme.ja.html","name":"PeekCarousel — CSSテーマのライブエディター","description":"CSS変数でカルーセルをデザイン。プリセット、アクセントカラー、角丸、ボタンサイズを試して、テーマのCSSをコピーできます。","inLanguage":"ja","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":"CSS変数でカルーセルをデザイン。プリセット、アクセントカラー、角丸、ボタンサイズを試して、テーマの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
+ <link rel="preload" href="../public/fonts/noto-sans-ja.woff2" as="font" type="font/woff2" crossorigin="anonymous">
37
+ <link rel="stylesheet" href="../public/fonts/noto-sans-ja.css">
38
+ <link rel="icon" type="image/png" sizes="16x16" href="../public/favicon-16x16.png">
39
+ <link rel="icon" type="image/png" sizes="32x32" href="../public/favicon-32x32.png">
40
+ <link rel="icon" type="image/svg+xml" sizes="any" href="../public/peek-mark.svg">
41
+ <link rel="stylesheet" href="../dist/peek-carousel.min.css">
42
+ <link rel="stylesheet" href="./example.min.css">
43
+ <link rel="stylesheet" href="./custom-theme.css">
44
+ </head>
45
+ <body class="preview">
46
+ <a class="preview__skip" href="#theme-carousel">デモへ移動</a>
47
+ <header class="preview__header">
48
+ <a class="preview__brand" href="#"><img class="preview__brand_mark" src="../public/peek-mark.svg" alt="" width="32" height="32"> PeekCarousel</a>
49
+ <nav class="preview__nav" aria-label="メインナビゲーション">
50
+ <a href="./example-built.ja.html">デモ</a>
51
+ <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">ドキュメント <span aria-hidden="true">↗</span></a>
52
+ <a href="https://github.com/lledellebell/peek-carousel-docs">GitHub <span aria-hidden="true">↗</span></a>
53
+ </nav>
54
+ <details class="preview__language_menu" id="language-menu"><summary aria-label="言語を選択: 日本語"><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>日本語</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="言語を選択">
55
+ <a href="./custom-theme.html" lang="en" hreflang="en" aria-label="EN — English">EN</a>
56
+ <a href="./custom-theme.ja.html" lang="ja" hreflang="ja" aria-label="日本語" aria-current="page">日本語</a>
57
+ <a href="./custom-theme.ko.html" lang="ko" hreflang="ko" aria-label="한국어">한국어</a>
58
+ </nav></details>
59
+ </header>
60
+ <main>
61
+ <section class="preview__hero" aria-labelledby="theme-title">
62
+ <div class="preview__hero_copy">
63
+ <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">あなたのギャラリーに、あなたらしさを。</span></p>
64
+ <h1 id="theme-title"><span>自分らしい</span><span class="preview__hero_accent">表情に。</span></h1>
65
+ </div>
66
+ <div class="preview__hero_summary">
67
+ <div class="preview__intro"><p>ひとつのカルーセルに、自分だけのスタイルを。<br>プリセットを選び、細部を調整したら、CSSをプロジェクトへ。</p></div>
68
+ <div class="preview__hero_actions">
69
+ <a class="preview__hero_action" href="#theme-carousel">テーマをプレビュー<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>
70
+ <a class="preview__link" href="./example-built.ja.html">デモに戻る<span aria-hidden="true">↗</span></a>
71
+ </div>
72
+
73
+ </div>
74
+ </section>
75
+ <section class="playground" aria-labelledby="theme-preview-title">
76
+ <div class="playground__preview">
77
+ <div class="playground__toolbar"><h2 class="preview__eyebrow" id="theme-preview-title"><span class="preview__section_number" aria-hidden="true">01</span>テーマをプレビュー</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>ライブプレビュー</span></div>
78
+ <p class="playground__quick_help" id="theme-quick-help">ドラッグ、またはフォーカスして ← / → で移動。</p>
79
+ <div class="playground__stage"><div id="theme-carousel" class="peek-carousel playground__theme" tabindex="-1" role="region" aria-label="カスタムテーマのプレビュー" aria-describedby="theme-quick-help" data-demo-a11y="{&quot;slide&quot;:&quot;スライド&quot;,&quot;position&quot;:&quot;全{total}枚中{current}枚目&quot;,&quot;show&quot;:&quot;全{total}枚中{current}枚目を表示&quot;,&quot;choose&quot;:&quot;スライドを選択&quot;,&quot;previous&quot;:&quot;前のスライド&quot;,&quot;next&quot;:&quot;次のスライド&quot;,&quot;start&quot;:&quot;自動再生を開始&quot;,&quot;stop&quot;:&quot;自動再生を停止&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="山の風景のイラスト 1"><figcaption class="peek-carousel__caption">風景 1</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(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="山の風景のイラスト 2"><figcaption class="peek-carousel__caption">風景 2</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(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="山の風景のイラスト 3"><figcaption class="peek-carousel__caption">風景 3</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(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="山の風景のイラスト 4"><figcaption class="peek-carousel__caption">風景 4</figcaption></figure></div>
83
+ <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="山の風景のイラスト 5"><figcaption class="peek-carousel__caption">風景 5</figcaption></figure></div></div></div></div>
84
+ <p class="playground__description">ライブラリのスタイルシートの後に、このルールを追加してください。</p>
85
+ </div>
86
+ <aside class="playground__settings" aria-labelledby="theme-settings-title">
87
+ <p class="preview__eyebrow">仕上げのひと工夫</p><h2 id="theme-settings-title">次のスタイルへ。</h2>
88
+ <div class="playground__theme_settings">
89
+ <div class="playground__preset"><span id="theme-preset-label">プリセット</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">オリジナル</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">オリジナル</li><li role="option" tabindex="-1" data-preset="light" aria-selected="false">ライト</li><li role="option" tabindex="-1" data-preset="flat" aria-selected="false">フラット</li></ul></div>
90
+ <label for="theme-accent">アクセントカラー<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>
91
+ <label for="theme-radius">カードの角丸<input type="range" id="theme-radius" min="0" max="40" value="16"><output for="theme-radius" id="radius-value">16px</output></label>
92
+ <label for="theme-size">ボタンサイズ<input type="range" id="theme-size" min="32" max="64" value="36"><output for="theme-size" id="size-value">36px</output></label>
93
+ <button type="button" id="theme-reset">テーマをリセット</button>
94
+ </div>
95
+ </aside>
96
+ </section>
97
+ <section class="preview__theme_code" aria-labelledby="theme-css-title"><div class="preview__theme_intro"><h2 id="theme-css-title"><span>あなたのCSS。</span><span>すぐ使えます。</span></h2><p>ライブラリのスタイルシートの後に、このルールを追加してください。</p><div class="preview__copy_actions"><button class="preview__copy_button" id="theme-copy" type="button" data-pending="コピー中..." data-success="コピーしました" data-fallback="CSSを選択してコピーしてください。">CSSをコピー</button><p class="preview__copy_status" id="theme-copy-status" role="status"></p></div></div><textarea id="theme-css" readonly aria-label="生成されたカスタムテーマCSS" spellcheck="false"></textarea></section>
98
+ </main>
99
+ <footer class="preview__footer"><span><strong class="preview__footer_brand">PeekCarousel</strong><span class="preview__footer_note">— 視点を、少し広げよう。</span></span><span>Vanilla JavaScript · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE" >アプリ利用条件</a></span><small class="preview__copyright">© 2025 PeekCarousel · © 2026 PeekCarousel contributors. <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/COPYRIGHT.md">著作権と再利用条件</a> · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/THIRD_PARTY_NOTICES.md">画像の権利とクレジット</a></small></footer>
100
+ <script src="../dist/peek-carousel.js"></script>
101
+ <script src="./custom-theme.js"></script>
102
+ </body>
103
+ </html>
@@ -1,121 +1,6 @@
1
- const gallery = document.querySelector('#theme-carousel');
2
- const tokens = new Map();
3
- const presets = {
4
- default: {},
5
- light: {
6
- 'text-color': '#172033',
7
- 'button-background': '#ffffff',
8
- 'button-hover-background': '#e2e8f0',
9
- 'button-active-background': '#cbd5e1',
10
- 'button-border-color': '#cbd5e1',
11
- 'button-radius': '12px',
12
- 'counter-background': '#ffffff',
13
- 'indicators-background': '#ffffff',
14
- 'indicator-color': '#94a3b8',
15
- 'indicator-track-color': '#e2e8f0',
16
- 'indicator-active-color': '#2563eb',
17
- 'indicator-shadow': 'none',
18
- 'focus-color': '#2563eb',
19
- 'caption-background': '#ffffff',
20
- 'active-shadow': '0 12px 32px #0003',
21
- 'image-filter': 'none',
22
- },
23
- flat: {
24
- 'card-radius': '4px',
25
- 'card-shadow': 'none',
26
- 'active-shadow': 'none',
27
- 'image-filter': 'none',
28
- 'button-background': '#22c55e',
29
- 'button-hover-background': '#16a34a',
30
- 'button-active-background': '#15803d',
31
- 'button-border-color': 'transparent',
32
- 'button-radius': '8px',
33
- 'indicator-active-color': '#22c55e',
34
- 'indicator-shadow': 'none',
35
- 'focus-color': '#22c55e',
36
- },
37
- };
38
- function setToken(name, value) {
39
- const property = '--peek-carousel-' + name;
40
- gallery.style.setProperty(property, value);
41
- tokens.set(property, value);
42
- }
43
- function showCSS() {
44
- document.querySelector('#theme-css').value =
45
- '.theme-preview {\n' +
46
- [...tokens]
47
- .map(([key, value]) => ' ' + key + ': ' + value + ';')
48
- .join('\n') +
49
- '\n}';
50
- }
51
- function applyPreset(name) {
52
- for (const property of tokens.keys()) {
53
- gallery.style.removeProperty(property);
54
- }
55
- tokens.clear();
56
- for (const [key, value] of Object.entries(presets[name])) {
57
- setToken(key, value);
58
- }
59
- const radius = presets[name]['card-radius'] || '16px';
60
- document.querySelector('#theme-radius').value = Number(
61
- radius.replace(/px$/, ''),
62
- );
63
- document.querySelector('#radius-value').value = radius;
64
- document.querySelector('#theme-size').value = 36;
65
- document.querySelector('#size-value').value = '36px';
66
- document.querySelector('#theme-accent').value =
67
- presets[name]['focus-color'] || '#22c55e';
68
- showCSS();
69
- }
70
- for (let index = 0; index < 5; index++) {
71
- const item = document.createElement('div');
72
- item.className = 'peek-carousel__item';
73
- const figure = document.createElement('figure');
74
- figure.className = 'peek-carousel__figure';
75
- const image = document.createElement('img');
76
- image.className = 'peek-carousel__image';
77
- image.width = 650;
78
- image.height = 490;
79
- image.alt = 'Colored landscape ' + (index + 1);
80
- image.src =
81
- 'data:image/svg+xml,' +
82
- encodeURIComponent(
83
- `<svg xmlns="http://www.w3.org/2000/svg" width="650" height="490"><rect width="650" height="490" fill="hsl(${index * 65} 40% 35%)"/><circle cx="460" cy="140" r="70" fill="#fff6"/><path d="M0 490L220 180L410 490ZM230 490L460 230L650 490Z" fill="#fff3"/></svg>`,
84
- );
85
- const caption = document.createElement('figcaption');
86
- caption.className = 'peek-carousel__caption';
87
- caption.textContent = 'Landscape ' + (index + 1);
88
- figure.append(image, caption);
89
- item.append(figure);
90
- gallery.querySelector('.peek-carousel__track').append(item);
91
- }
92
- new PeekCarousel(gallery, {
93
- startIndex: 0,
94
- enableKeyboard: false,
95
- enableWheel: false,
96
- });
97
- document
98
- .querySelector('#theme-preset')
99
- .addEventListener('change', (event) => applyPreset(event.target.value));
100
- document.querySelector('#theme-accent').addEventListener('input', (event) => {
101
- setToken('focus-color', event.target.value);
102
- setToken('indicator-active-color', event.target.value);
103
- showCSS();
104
- });
105
- for (const [id, token] of [
106
- ['theme-radius', 'card-radius'],
107
- ['theme-size', 'button-size'],
108
- ]) {
109
- document.querySelector('#' + id).addEventListener('input', (event) => {
110
- const value = event.target.value + 'px';
111
- setToken(token, value);
112
- document.querySelector('#' + id.replace('theme-', '') + '-value').value =
113
- value;
114
- showCSS();
115
- });
116
- }
117
- document.querySelector('#theme-reset').addEventListener('click', () => {
118
- document.querySelector('#theme-preset').value = 'default';
119
- applyPreset('default');
120
- });
121
- applyPreset('default');
1
+ /*! PeekCarousel v2.0.1
2
+ * Copyright (c) 2025 PeekCarousel
3
+ * Copyright (c) 2026 PeekCarousel contributors
4
+ * @license See LICENSE, LICENSE-MIT and THIRD_PARTY_NOTICES.md.
5
+ */
6
+ var PeekCarouselTheme=function(e){"use strict";let t=null,n=0;function o(e){t?.status===e&&(window.clearTimeout(t.timer),t=null),e.textContent="",e.style.removeProperty("--preview-toast-duration")}function r(e,r,a,c){if(c!==n)return;t&&o(t.status);const s="pending"===a?0:"fallback"===a?8e3:4e3,i=document.createElement("span");i.className="preview__toast_message",i.textContent=r,e.style.setProperty("--preview-toast-duration",`${s}ms`),e.replaceChildren(function(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.classList.add("preview__toast_timer"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("width","24"),t.setAttribute("height","24"),t.setAttribute("aria-hidden","true"),t.setAttribute("focusable","false");for(const n of["preview__toast_track","preview__toast_progress"]){const o=document.createElementNS(e,"circle");o.setAttribute("class",n),o.setAttribute("cx","12"),o.setAttribute("cy","12"),o.setAttribute("r","9"),t.appendChild(o)}return t}(),i);const u={status:e,timer:0};t=u,"pending"!==a&&(u.timer=window.setTimeout(()=>{t===u&&o(e)},s))}return e.initTheme=function(e){const t=function(){const e=document.getElementById("language-menu"),t=e.querySelector("summary"),n=n=>{e.open&&"Escape"===n.key&&(n.preventDefault(),e.open=!1,t.focus())},o=t=>{e.open&&!e.contains(t.target)&&(e.open=!1)};return e.addEventListener("keydown",n),document.addEventListener("pointerdown",o),{destroy(){e.removeEventListener("keydown",n),document.removeEventListener("pointerdown",o),e.open=!1}}}(),a=[];function c(e,t,n){e.addEventListener(t,n),a.push(()=>e.removeEventListener(t,n))}const s=document.querySelector("#theme-carousel"),i=document.querySelector("#theme-css"),u=function(e,t,a){let c=!1,s=!1;a.classList.add("preview__toast"),a.setAttribute("aria-atomic","true"),e.disabled=!1;const i=t=>{e.dataset.copyState=t,a.dataset.copyState=t};i("idle");const u=()=>t instanceof HTMLTextAreaElement?t.value:t.textContent??"",l=async()=>{if(e.disabled)return;const l=u(),d=++n;s=!0,e.disabled=!0,e.setAttribute("aria-busy","true"),i("pending"),r(a,e.dataset.pending??"","pending",d);try{if(!navigator.clipboard?.writeText)throw new Error("Clipboard access is unavailable");await navigator.clipboard.writeText(l),c||l!==u()||(i("success"),r(a,e.dataset.success,"success",d))}catch{if(!c&&l===u()){if(i("fallback"),t.focus(),t instanceof HTMLTextAreaElement)t.select();else{const e=window.getSelection();if(e){const n=document.createRange();n.selectNodeContents(t),e.removeAllRanges(),e.addRange(n)}}r(a,e.dataset.fallback,"fallback",d)}}finally{s=!1,c||(e.disabled=!1,e.setAttribute("aria-busy","false"),"pending"===e.dataset.copyState&&(o(a),i("idle")))}};return e.addEventListener("click",l),{clear(){o(a),i(s?"pending":"idle")},destroy(){c=!0,e.disabled=!1,e.setAttribute("aria-busy","false"),i("idle"),o(a),e.removeEventListener("click",l)}}}(document.querySelector("#theme-copy"),i,document.querySelector("#theme-copy-status")),l=new Map,d={default:{},light:{"text-color":"#172033","button-background":"#ffffff","button-hover-background":"#e2e8f0","button-active-background":"#cbd5e1","button-border-color":"#cbd5e1","button-radius":"12px","counter-background":"#ffffff","indicators-background":"#ffffff","indicator-color":"#94a3b8","indicator-track-color":"#e2e8f0","indicator-active-color":"#2563eb","indicator-shadow":"none","focus-color":"#2563eb","caption-background":"#ffffff","active-shadow":"0 12px 32px #0003","image-filter":"none"},flat:{"card-radius":"4px","card-shadow":"none","active-shadow":"none","image-filter":"none","button-background":"#2458e8","button-hover-background":"#1c45b8","button-active-background":"#173994","button-border-color":"transparent","button-radius":"8px","indicator-active-color":"#2458e8","indicator-shadow":"none","focus-color":"#2458e8"}};function f(e,t){const n="--peek-carousel-"+e;s.style.setProperty(n,t),l.set(n,t)}function m(){u.clear(),i.value=".playground__theme {\n"+[...l].map(([e,t])=>" "+e+": "+t+";").join("\n")+"\n}"}function p(e){g.setValue(e);for(const e of l.keys())s.style.removeProperty(e);l.clear();for(const[t,n]of Object.entries(d[e]))f(t,n);const t=d[e]["card-radius"]||"16px";document.querySelector("#theme-radius").value=Number(t.replace(/px$/,"")),document.querySelector("#radius-value").value=t,document.querySelector("#theme-size").value=36,document.querySelector("#size-value").value="36px",document.querySelector("#theme-accent").value=d[e]["focus-color"]||"#2458e8",document.querySelector("#theme-accent-value").value=document.querySelector("#theme-accent").value;for(const e of document.querySelectorAll('input[type="range"]'))b(e);m()}function b(e){const t=(Number(e.value)-Number(e.min))/(Number(e.max)-Number(e.min))*100;e.style.setProperty("--range-progress",`${t}%`)}const y=new e(s,{startIndex:0,enableKeyboard:!1,enableWheel:!1});y.elements.controls&&y.elements.nav&&y.elements.controls.appendChild(y.elements.nav);const v=function(e){const{container:t,items:n,indicators:o}=e,r=JSON.parse(t.dataset.demoA11y),a=[];let c=!1;function s(e,t){return e.replace("{current}",t+1).replace("{total}",n.length)}function i(e,t,n){e&&e.getAttribute(t)!==n&&e.setAttribute(t,n)}function u(e,t,n){e.addEventListener(t,n),a.push(()=>e.removeEventListener(t,n))}function l(){const{currentIndex:a,isAutoRotating:c,counterElement:u}=e;for(let e=0;e<n.length;e++)i(n[e],"role","group"),i(n[e],"aria-roledescription",r.slide),i(n[e],"aria-label",s(r.position,e)),i(n[e],"aria-hidden",String(e!==a));for(let e=0;e<o.length;e++){const t=o[e];t.removeAttribute("role"),t.removeAttribute("aria-selected"),i(t,"aria-label",s(r.show,e)),i(t,"aria-pressed",String(e===a)),i(t,"tabindex","0")}const l=t.querySelector(".peek-carousel__indicators");i(l,"role","group"),i(l,"aria-label",r.choose),i(e.elements.prevBtn,"aria-label",r.previous),i(e.elements.nextBtn,"aria-label",r.next),i(u,"aria-live",c?"off":"polite"),i(e.elements.autoRotateBtn,"aria-label",c?r.stop:r.start)}function d(){e.stopAutoRotate(),l()}u(t,"pointerdown",t=>{c=t.target.closest("button")===e.elements.autoRotateBtn}),u(t,"pointerup",()=>{c=!1}),u(t,"focusin",t=>{t.target===e.elements.autoRotateBtn&&c||d()}),u(t,"pointerenter",d),u(document,"visibilitychange",()=>{document.hidden&&d()}),u(t,"click",l),u(t,"keydown",t=>{const n=o.indexOf(t.target);if(-1===n)return;const r={ArrowLeft:n-1,ArrowRight:n+1,Home:0,End:o.length-1};Object.prototype.hasOwnProperty.call(r,t.key)&&(t.preventDefault(),d(),e.goTo(r[t.key]),l(),o[e.currentIndex].focus())});const f=new MutationObserver(l);return f.observe(t,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-current","aria-selected","aria-pressed"]}),l(),{sync:l,destroy(){f.disconnect();for(const e of a)e()}}}(y),g=function(e){const t=document.getElementById("theme-preset"),n=document.getElementById("theme-preset-trigger"),o=document.getElementById("theme-preset-options"),r=document.getElementById("theme-preset-value"),a=[...o.querySelectorAll('[role="option"]')],c=[];function s(e,t,n){e.addEventListener(t,n),c.push(()=>e.removeEventListener(t,n))}function i(e=!1){o.hidden=!0,n.setAttribute("aria-expanded","false"),e&&n.focus()}function u(e){t.value=e;for(const t of a){const n=t.dataset.preset===e;t.setAttribute("aria-selected",String(n)),n&&(r.textContent=t.textContent)}}function l(){o.hidden=!1,n.setAttribute("aria-expanded","true"),a.find(e=>e.dataset.preset===t.value).focus()}function d(n){u(n.dataset.preset),e(t.value),i(!0)}s(n,"click",()=>{o.hidden?l():i()}),s(n,"keydown",e=>{"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),l())});for(const e of a)s(e,"click",()=>d(e));return s(o,"keydown",e=>{const t=a.indexOf(document.activeElement),n={ArrowDown:(t+1)%a.length,ArrowUp:(t+a.length-1)%a.length,Home:0,End:a.length-1};if(Object.prototype.hasOwnProperty.call(n,e.key))e.preventDefault(),a[n[e.key]].focus();else if("Enter"===e.key||" "===e.key)e.preventDefault(),d(a[t]);else if("Escape"===e.key||"Tab"===e.key)"Escape"===e.key&&e.preventDefault(),i(!0);else if(1===e.key.length&&!e.isComposing){const t=a.find(t=>t.textContent.toLowerCase().startsWith(e.key.toLowerCase()));t?.focus()}}),s(document,"pointerdown",e=>{n.parentElement.contains(e.target)||i()}),u(t.value),{setValue:u,destroy(){i();for(const e of c)e()}}}(p);c(document.querySelector("#theme-preset"),"change",e=>p(e.target.value)),c(document.querySelector("#theme-accent"),"input",e=>{f("focus-color",e.target.value),f("indicator-active-color",e.target.value),document.querySelector("#theme-accent-value").value=e.target.value,m()});for(const[e,t]of[["theme-radius","card-radius"],["theme-size","button-size"]])c(document.querySelector("#"+e),"input",n=>{const o=n.target.value+"px";b(n.target),f(t,o),document.querySelector("#"+e.replace("theme-","")+"-value").value=o,m()});return c(document.querySelector("#theme-reset"),"click",()=>{document.querySelector("#theme-preset").value="default",p("default")}),p("default"),{carousel:y,destroy(){t.destroy(),u.destroy(),v.destroy(),g.destroy();for(const e of a)e();y.destroy()}}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});PeekCarouselTheme.initTheme(PeekCarousel);
@@ -0,0 +1,102 @@
1
+ <!doctype html>
2
+ <html lang="ko">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>PeekCarousel — CSS 테마 실시간 편집기</title>
7
+ <meta name="description" content="CSS 변수로 나만의 캐러셀을 디자인하세요. 프리셋, 포인트 색상, 카드 모서리와 버튼 크기를 조절하고 테마 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="ko_KR">
13
+ <meta property="og:url" content="https://lledellebell.github.io/peek-carousel/examples/custom-theme.ko.html">
14
+ <meta property="og:title" content="PeekCarousel — CSS 테마 실시간 편집기">
15
+ <meta property="og:description" content="CSS 변수로 나만의 캐러셀을 디자인하세요. 프리셋, 포인트 색상, 카드 모서리와 버튼 크기를 조절하고 테마 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">
21
+ <meta name="twitter:card" content="summary_large_image">
22
+ <meta name="twitter:title" content="PeekCarousel — CSS 테마 실시간 편집기">
23
+ <meta name="twitter:description" content="CSS 변수로 나만의 캐러셀을 디자인하세요. 프리셋, 포인트 색상, 카드 모서리와 버튼 크기를 조절하고 테마 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">
26
+ <link rel="canonical" href="https://lledellebell.github.io/peek-carousel/examples/custom-theme.ko.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="en_US">
32
+ <meta property="og:locale:alternate" content="ja_JP">
33
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://lledellebell.github.io/peek-carousel/examples/custom-theme.ko.html","url":"https://lledellebell.github.io/peek-carousel/examples/custom-theme.ko.html","name":"PeekCarousel — CSS 테마 실시간 편집기","description":"CSS 변수로 나만의 캐러셀을 디자인하세요. 프리셋, 포인트 색상, 카드 모서리와 버튼 크기를 조절하고 테마 CSS를 복사할 수 있습니다.","inLanguage":"ko","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":"CSS 변수로 나만의 캐러셀을 디자인하세요. 프리셋, 포인트 색상, 카드 모서리와 버튼 크기를 조절하고 테마 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
+
35
+ <link rel="preload" href="../public/fonts/peek-preview-kr.woff2" as="font" type="font/woff2" crossorigin="anonymous">
36
+ <link rel="stylesheet" href="../public/fonts/peek-preview-kr.css">
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">미리보기로 건너뛰기</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="주요 탐색">
49
+ <a href="./example-built.ko.html">미리보기</a>
50
+ <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.md">문서 <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="언어 선택: 한국어"><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>한국어</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="언어 선택">
54
+ <a href="./custom-theme.html" lang="en" hreflang="en" aria-label="EN — English">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="한국어" aria-current="page">한국어</a>
57
+ </nav></details>
58
+ </header>
59
+ <main>
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">나의 갤러리에, 나만의 분위기를.</span></p>
63
+ <h1 id="theme-title"><span>내 취향을 담은 </span><span class="preview__hero_accent">장면.</span></h1>
64
+ </div>
65
+ <div class="preview__hero_summary">
66
+ <div class="preview__intro"><p>하나의 캐러셀, 나다운 스타일.<br>프리셋을 고르고 디테일을 조절한 뒤, CSS를 가져가세요.</p></div>
67
+ <div class="preview__hero_actions">
68
+ <a class="preview__hero_action" href="#theme-carousel">실시간 테마 미리보기<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.ko.html">미리보기로 돌아가기<span aria-hidden="true">↗</span></a>
70
+ </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>실시간 테마 미리보기</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>실시간 미리보기</span></div>
77
+ <p class="playground__quick_help" id="theme-quick-help">드래그하거나 ← / → 키로 이동하세요.</p>
78
+ <div class="playground__stage"><div id="theme-carousel" class="peek-carousel playground__theme" tabindex="-1" role="region" aria-label="사용자 테마 미리보기" aria-describedby="theme-quick-help" data-demo-a11y="{&quot;slide&quot;:&quot;슬라이드&quot;,&quot;position&quot;:&quot;전체 {total}장 중 {current}번째&quot;,&quot;show&quot;:&quot;전체 {total}장 중 {current}번째 슬라이드 표시&quot;,&quot;choose&quot;:&quot;슬라이드 선택&quot;,&quot;previous&quot;:&quot;이전 슬라이드&quot;,&quot;next&quot;:&quot;다음 슬라이드&quot;,&quot;start&quot;:&quot;자동 재생 시작&quot;,&quot;stop&quot;:&quot;자동 재생 중지&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="산 풍경 일러스트 1"><figcaption class="peek-carousel__caption">풍경 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="산 풍경 일러스트 2"><figcaption class="peek-carousel__caption">풍경 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="산 풍경 일러스트 3"><figcaption class="peek-carousel__caption">풍경 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="산 풍경 일러스트 4"><figcaption class="peek-carousel__caption">풍경 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="산 풍경 일러스트 5"><figcaption class="peek-carousel__caption">풍경 5</figcaption></figure></div></div></div></div>
83
+ <p class="playground__description">라이브러리 스타일시트 다음에 이 규칙을 추가하세요.</p>
84
+ </div>
85
+ <aside class="playground__settings" aria-labelledby="theme-settings-title">
86
+ <p class="preview__eyebrow">마지막 디테일까지</p><h2 id="theme-settings-title">다음 스타일을 찾아서.</h2>
87
+ <div class="playground__theme_settings">
88
+ <div class="playground__preset"><span id="theme-preset-label">프리셋</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">기본</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">기본</li><li role="option" tabindex="-1" data-preset="light" aria-selected="false">라이트</li><li role="option" tabindex="-1" data-preset="flat" aria-selected="false">플랫</li></ul></div>
89
+ <label for="theme-accent">포인트 색상<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">카드 모서리<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">버튼 크기<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">테마 초기화</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>바로 가져가는 </span><span>나만의 CSS.</span></h2><p>라이브러리 스타일시트 다음에 이 규칙을 추가하세요.</p><div class="preview__copy_actions"><button class="preview__copy_button" id="theme-copy" type="button" data-pending="복사 중..." data-success="CSS 복사 성공" data-fallback="CSS를 선택하고 복사하세요.">CSS 복사</button><p class="preview__copy_status" id="theme-copy-status" role="status"></p></div></div><textarea id="theme-css" readonly aria-label="생성된 사용자 테마 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">— 시선을 조금 더 넓게.</span></span><span>Vanilla JavaScript · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE" >앱 이용 조건</a></span><small class="preview__copyright">© 2025 PeekCarousel · © 2026 PeekCarousel contributors. <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/COPYRIGHT.md">저작권과 재사용 조건</a> · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/THIRD_PARTY_NOTICES.md">이미지 권리와 출처</a></small></footer>
99
+ <script src="../dist/peek-carousel.js"></script>
100
+ <script src="./custom-theme.js"></script>
101
+ </body>
102
+ </html>