-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
500 lines (489 loc) · 28.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
<!DOCTYPE html>
<html lang="fr">
<head>
<!--
* Web Palette Lab - A web tool for generating color palettes
* Copyright (C) 2024 Sylvie Canongia
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
-->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Palette Lab</title>
<link rel="stylesheet" href="./src/css/main.css" />
</head>
<body>
<header class="app-header">
<button type="button" class="help-button" id="helpButton" data-i18n-aria="helpButton" aria-label="Ouvrir le guide utilisateur">
<svg aria-hidden="true" viewBox="0 0 24 24" width="24" height="24">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z" />
</svg>
</button>
<button type="button" class="theme-toggle" id="themeToggle" data-i18n-aria="themeToggle" aria-label="Basculer entre le thème clair et sombre">
<svg class="sun-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5" />
<path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" />
</svg>
<svg class="moon-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z" />
</svg>
</button>
<div class="language-picker custom-select">
<button class="selected-language" aria-haspopup="listbox" aria-expanded="false" aria-controls="language-list" data-i18n-aria="languageSelect" aria-label="Sélectionner la langue">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-fr"></use>
</svg>
<span class="flag-text">fr</span>
</button>
<ul class="language-list" role="listbox">
<li role="option" data-value="fr" aria-selected="true" lang="fr">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-fr"></use>
</svg>
<span class="flag-text">fr</span>
</li>
<li role="option" data-value="en" lang="en">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-en"></use>
</svg>
<span class="flag-text">en</span>
</li>
<li role="option" data-value="es" lang="es">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-es"></use>
</svg>
<span class="flag-text">es</span>
</li>
<li role="option" data-value="de" lang="de">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-de"></use>
</svg>
<span class="flag-text">de</span>
</li>
<li role="option" data-value="it" lang="it">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-it"></use>
</svg>
<span class="flag-text">it</span>
</li>
<li role="option" data-value="eu" lang="eu">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-eu"></use>
</svg>
<span class="flag-text">eu</span>
</li>
<li role="option" data-value="pt" lang="pt">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-pt"></use>
</svg>
<span class="flag-text">pt</span>
</li>
<li role="option" data-value="nl" lang="nl">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-nl"></use>
</svg>
<span class="flag-text">nl</span>
</li>
<li role="option" data-value="pl" lang="pl">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-pl"></use>
</svg>
<span class="flag-text">pl</span>
</li>
<li role="option" data-value="ca" lang="ca">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-ca"></use>
</svg>
<span class="flag-text">ca</span>
</li>
<li role="option" data-value="gl" lang="gl">
<svg class="flag-icon" aria-hidden="true" focusable="false">
<use href="#flag-gl"></use>
</svg>
<span class="flag-text">gl</span>
</li>
</ul>
</div>
</header>
<div class="container">
<h1 class="container-heading" data-i18n="title">Générateur de Palettes de couleurs</h1>
<div class="actions-wrapper-container">
<div class="actions-wrapper">
<!-- CSS Variable Prefix Input -->
<div class="prefix-input-wrapper">
<label for="cssVarPrefix" data-i18n="prefix">Préfixe :</label>
<input type="text" id="cssVarPrefix" data-i18n-placeholder="prefixPlaceholder" placeholder="wp" pattern="[a-z0-9-]+" title="Lettres minuscules, chiffres et tirets uniquement" />
</div>
<div class="export-actions-all">
<button id="exportAllPalettes" class="export-all-button" data-i18n-aria="exportAll" aria-label="Exporter toutes les palettes">
<svg class="export-icon" aria-hidden="true" fill="none" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" d="M20.1763 22.9203c0.8057 0 1.4561 -0.6505 1.4561 -1.4562V5.33131c0 -0.3882 -0.1554 -0.7668 -0.4369 -1.0386l-2.912 -2.7956c-0.2719 -0.2718 -0.6407 -0.4174 -1.0192 -0.4174H3.82361c-0.8056 0 -1.456 0.6504 -1.456 1.4561V21.4641c0 0.8057 0.6504 1.4562 1.456 1.4562H20.1763Z"></path>
<path stroke-linecap="round" stroke-linejoin="round" d="m8.68762 10.0753 3.31348 -3.3137 3.3137 3.3137"></path>
<path stroke-linecap="round" stroke-linejoin="round" d="M11.9984 6.76233V17.2372"></path>
</svg>
<span class="button-text" data-i18n="export">Exporter</span>
</button>
<select class="format-select export-all-select" data-i18n-aria="exportFormat" aria-label="Format d'export">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
</div>
<div class="copy-actions-all">
<button id="copyAllPalettes" class="copy-all-button" data-i18n-aria="copyAllPalettes" aria-label="Copier toutes les palettes">
<svg class="copy-icon" aria-hidden="true" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</svg>
<svg class="check-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
<span class="button-text" data-i18n="copyAll">Copier tout</span>
</button>
<select class="format-select copy-all-select" data-i18n-aria="copyFormat" aria-label="Format de copie">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
</div>
</div>
</div>
<div class="app-layout">
<!-- Left column : Entries -->
<div class="inputs-column">
<div class="color-tabs" role="tablist" data-i18n-aria="colorTabsLabel" aria-label="Sélection de couleur">
<button class="tab-button active" role="tab" aria-selected="true" aria-controls="primaryPanel" id="primaryTab">Primary</button>
<button class="tab-button" role="tab" aria-selected="false" aria-controls="secondaryPanel" id="secondaryTab">Secondary</button>
<button class="tab-button" role="tab" aria-selected="false" aria-controls="accentPanel" id="accentTab">Accent</button>
</div>
<form id="paletteForm" class="color-form" novalidate>
<!-- Primary Panel -->
<div id="primaryPanel" class="color-panel" role="tabpanel" aria-labelledby="primaryTab">
<div class="color-group">
<!-- Quick Entry Section -->
<div class="input-section quick-input">
<h2 data-i18n="quickInputTitle">Saisie rapide (HSL, RGB, HEX)</h2>
<div class="hsl-input-wrapper">
<div class="input-with-tooltip">
<input type="text" id="primaryHslInput" class="hsl-input" data-i18n-placeholder="quickInputPlaceholder" placeholder="hsl(320, 80%, 58%) ou #FF6432" data-i18n-aria="colorInput" aria-label="Saisie de couleur en format HSL, RGB ou HEX" aria-describedby="primaryHslTooltip" />
<span class="info-icon" role="tooltip" id="primaryHslTooltip">
<svg aria-hidden="true" viewBox="0 0 24 24" width="16" height="16">
<rect x="2" y="2" width="20" height="20" rx="2" fill="currentColor" />
<path d="M11 7h2v2h-2V7zm0 4h2v6h-2v-6z" fill="white" />
</svg>
<span class="tooltip-text">
<span data-i18n="formatsAccepted">Formats acceptés :</span>
<span>HSL : hsl(320, 80%, 58%)</span>
<span>RGB : rgb(255, 100, 50)</span>
<span>HEX : #FF6432 ou #F64</span>
</span>
</span>
</div>
</div>
<span id="primaryHslError" class="error-message" role="alert"></span>
</div>
<!-- Detailed Entry Section -->
<div class="input-section detailed-input">
<h2 data-i18n="detailedInputTitle">Saisie détaillée (HSL)</h2>
<div class="form-group">
<div class="input-group">
<label for="primary-hue"><span data-i18n="hueLabel">Teinte </span><span data-i18n="hueRange">(0-360) :</span></label>
<input type="number" id="primary-hue" name="primary-hue" min="0" max="360" data-i18n-aria="hueLabelAria" aria-label="Teinte de 0 à 360 degrés" />
<span class="error-message" role="alert"></span>
</div>
<div class="input-group">
<label for="primary-saturation"><span data-i18n="saturationLabel">Saturation </span><span data-i18n="percentageRange">(0-100%) :</span></label>
<input type="number" id="primary-saturation" name="primary-saturation" min="0" max="100" data-i18n-aria="saturationLabelAria" aria-label="Saturation de 0 à 100 pourcents" />
<span class="error-message" role="alert"></span>
</div>
<div class="input-group">
<label for="primary-lightness"><span data-i18n="lightnessLabel">Luminosité </span><span data-i18n="percentageRange">(0-100%) :</span></label>
<input type="number" id="primary-lightness" name="primary-lightness" min="0" max="100" data-i18n-aria="lightnessLabelAria" aria-label="Luminosité de 0 à 100 pourcents" />
<span class="error-message" role="alert"></span>
</div>
<span class="help-message" role="status"></span>
</div>
</div>
</div>
</div>
<!-- Secondary Panel -->
<div id="secondaryPanel" class="color-panel" role="tabpanel" aria-labelledby="secondaryTab" hidden>
<div class="color-group">
<!-- Quick Entry Section -->
<div class="input-section quick-input">
<h2 data-i18n="quickInputTitle">Saisie rapide (HSL, RGB, HEX)</h2>
<div class="hsl-input-wrapper">
<div class="input-with-tooltip">
<input type="text" id="secondaryHslInput" class="hsl-input" data-i18n-placeholder="quickInputPlaceholder" placeholder="hsl(320, 80%, 58%) ou #FF6432" data-i18n-aria="colorInput" aria-label="Saisie de couleur en format HSL, RGB ou HEX" aria-describedby="secondaryHslTooltip" />
<span class="info-icon" role="tooltip" id="secondaryHslTooltip">
<svg aria-hidden="true" viewBox="0 0 24 24" width="16" height="16">
<rect x="2" y="2" width="20" height="20" rx="2" fill="currentColor" />
<path d="M11 7h2v2h-2V7zm0 4h2v6h-2v-6z" fill="white" />
</svg>
<span class="tooltip-text">
<span data-i18n="formatsAccepted">Formats acceptés :</span>
<span>HSL : hsl(320, 80%, 58%)</span>
<span>RGB : rgb(255, 100, 50)</span>
<span>HEX : #FF6432 ou #F64</span>
</span>
</span>
</div>
</div>
<span id="secondaryHslError" class="error-message" role="alert"></span>
</div>
<!-- Detailed Entry Section -->
<div class="input-section detailed-input">
<h2 data-i18n="detailedInputTitle">Saisie détaillée (HSL)</h2>
<div class="form-group">
<div class="input-group">
<label for="secondary-hue" data-i18n="hueLabel">Teinte <span data-i18n="hueRange">(0-360) :</span></label>
<input type="number" id="secondary-hue" name="secondary-hue" min="0" max="360" data-i18n-aria="hueLabelAria" aria-label="Teinte de 0 à 360 degrés" />
<span class="error-message" role="alert"></span>
</div>
<div class="input-group">
<label for="secondary-saturation"><span data-i18n="saturationLabel">Saturation </span><span data-i18n="percentageRange">(0-100%) :</span></label>
<input type="number" id="secondary-saturation" name="secondary-saturation" min="0" max="100" data-i18n-aria="saturationLabelAria" aria-label="Saturation de 0 à 100 pourcents" />
<span class="error-message" role="alert"></span>
</div>
<div class="input-group">
<label for="secondary-lightness"><span data-i18n="lightnessLabel">Luminosité </span><span data-i18n="percentageRange">(0-100%) :</span></label>
<input type="number" id="secondary-lightness" name="secondary-lightness" min="0" max="100" data-i18n-aria="lightnessLabelAria" aria-label="Luminosité de 0 à 100 pourcents" />
<span class="error-message" role="alert"></span>
</div>
<span class="help-message" role="status"></span>
</div>
</div>
</div>
</div>
<!-- Accent Panel -->
<div id="accentPanel" class="color-panel" role="tabpanel" aria-labelledby="accentTab" hidden>
<div class="color-group">
<!-- Quick Entry Section -->
<div class="input-section quick-input">
<h2 data-i18n="quickInputTitle">Saisie rapide (HSL, RGB, HEX)</h2>
<div class="hsl-input-wrapper">
<!-- <label for="accentHslInput">Format HSL :</label> -->
<div class="input-with-tooltip">
<input type="text" id="accentHslInput" class="hsl-input" data-i18n-placeholder="quickInputPlaceholder" placeholder="hsl(320, 80%, 58%) ou #FF6432" data-i18n-aria="colorInput" aria-label="Saisie de couleur en format HSL, RGB ou HEX" aria-describedby="accentHslTooltip" />
<span class="info-icon" role="tooltip" id="accentHslTooltip">
<svg aria-hidden="true" viewBox="0 0 24 24" width="16" height="16">
<rect x="2" y="2" width="20" height="20" rx="2" fill="currentColor" />
<path d="M11 7h2v2h-2V7zm0 4h2v6h-2v-6z" fill="white" />
</svg>
<span class="tooltip-text">
<span data-i18n="formatsAccepted">Formats acceptés :</span>
<span>HSL : hsl(320, 80%, 58%)</span>
<span>RGB : rgb(255, 100, 50)</span>
<span>HEX : #FF6432 ou #F64</span>
</span>
</span>
</div>
</div>
<span id="accentHslError" class="error-message" role="alert"></span>
</div>
<!-- Detailed Entry Section -->
<div class="input-section detailed-input">
<h2 data-i18n="detailedInputTitle">Saisie détaillée (HSL)</h2>
<div class="form-group">
<div class="input-group">
<label for="accent-hue" data-i18n="hueLabel">Teinte <span data-i18n="hueRange">(0-360) :</span></label>
<input type="number" id="accent-hue" name="accent-hue" min="0" max="360" aria-label="Teinte de 0 à 360 degrés" />
<span class="error-message" role="alert"></span>
</div>
<div class="input-group">
<label for="accent-saturation"><span data-i18n="saturationLabel">Saturation </span><span data-i18n="percentageRange">(0-100%) :</span></label>
<input type="number" id="accent-saturation" name="accent-saturation" min="0" max="100" data-i18n-aria="saturationLabelAria" aria-label="Saturation de 0 à 100 pourcents" />
<span class="error-message" role="alert"></span>
</div>
<div class="input-group">
<label for="accent-lightness"><span data-i18n="lightnessLabel">Luminosité </span><span data-i18n="percentageRange">(0-100%) :</span></label>
<input type="number" id="accent-lightness" name="accent-lightness" min="0" max="100" data-i18n-aria="lightnessLabelAria" aria-label="Luminosité de 0 à 100 pourcents" />
<span class="error-message" role="alert"></span>
</div>
<span class="help-message" role="status"></span>
</div>
</div>
</div>
</div>
<!-- <button type="submit" class="submit-button">Générer les Palettes</button> -->
</form>
</div>
<!-- Right column : Previews and Palettes -->
<div class="preview-column">
<!-- Preview area -->
<div class="previews-container">
<div class="color-preview-wrapper">
<div class="color-preview">
<div id="primaryColorPreview" class="base-color-preview"></div>
<p>Primary</p>
<p id="primaryColorValue"></p>
</div>
<div class="color-preview">
<div id="secondaryColorPreview" class="base-color-preview"></div>
<p>Secondary</p>
<p id="secondaryColorValue"></p>
</div>
<div class="color-preview">
<div id="accentColorPreview" class="base-color-preview"></div>
<p>Accent</p>
<p id="accentColorValue"></p>
</div>
</div>
</div>
<!-- Palettes area -->
<div class="all-palettes">
<!-- Primary Palettes -->
<div class="palette-section">
<h2 data-i18n="palettesPrimaryTitle">Palettes "Primary"</h2>
<div class="palettes">
<section class="palette-container">
<h3>Normal</h3>
<div id="primaryNormalPalette" class="palette"></div>
<div class="copy-actions">
<select class="format-select" data-i18n-aria="exportFormat" aria-label="Format d'export">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
<button id="copyPrimaryNormal" class="copy-button" data-i18n-aria="copyPaletteAria" aria-label="Copier la palette">
<svg class="copy-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</svg>
<svg class="check-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
</button>
</div>
</section>
<section class="palette-container">
<h3>Vivid</h3>
<div id="primaryVividPalette" class="palette"></div>
<div class="copy-actions">
<select class="format-select" data-i18n-aria="exportFormat" aria-label="Format d'export">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
<button id="copyPrimaryVivid" class="copy-button" data-i18n-aria="copyPaletteAria" aria-label="Copier la palette">
<svg class="copy-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</svg>
<svg class="check-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
</button>
</div>
</section>
</div>
</div>
<!-- Secondary Palettes -->
<div class="palette-section">
<h2 data-i18n="palettesSecondaryTitle">Palettes "Secondary"</h2>
<div class="palettes">
<section class="palette-container">
<h3>Normal</h3>
<div id="secondaryNormalPalette" class="palette"></div>
<div class="copy-actions">
<select class="format-select" data-i18n-aria="exportFormat" aria-label="Format d'export">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
<button id="copySecondaryNormal" class="copy-button" data-i18n-aria="copyPaletteAria" aria-label="Copier la palette">
<svg class="copy-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</svg>
<svg class="check-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
</button>
</div>
</section>
<section class="palette-container">
<h3>Vivid</h3>
<div id="secondaryVividPalette" class="palette"></div>
<div class="copy-actions">
<select class="format-select" data-i18n-aria="exportFormat" aria-label="Format d'export">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
<button id="copySecondaryVivid" class="copy-button" data-i18n-aria="copyPaletteAria" aria-label="Copier la palette">
<svg class="copy-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</svg>
<svg class="check-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
</button>
</div>
</section>
</div>
</div>
<!-- Accent Palettes -->
<div class="palette-section">
<h2 data-i18n="palettesAccentTitle">Palettes "Accent"</h2>
<div class="palettes">
<section class="palette-container">
<h3>Normal</h3>
<div id="accentNormalPalette" class="palette"></div>
<div class="copy-actions">
<select class="format-select" data-i18n-aria="exportFormat" aria-label="Format d'export">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
<button id="copyAccentNormal" class="copy-button" data-i18n-aria="copyPaletteAria" aria-label="Copier la palette">
<svg class="copy-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</svg>
<svg class="check-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
</button>
</div>
</section>
<section class="palette-container">
<h3>Vivid</h3>
<div id="accentVividPalette" class="palette"></div>
<div class="copy-actions">
<select class="format-select" data-i18n-aria="exportFormat" aria-label="Format d'export">
<option value="hsl">HSL</option>
<option value="rgb">RGB</option>
<option value="hex">HEX</option>
</select>
<button id="copyAccentVivid" class="copy-button" data-i18n-aria="copyPaletteAria" aria-label="Copier la palette">
<svg class="copy-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</svg>
<svg class="check-icon" aria-hidden="true" viewBox="0 0 24 24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
</button>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
</div>
<dialog id="helpDialog" class="help-dialog">
<div class="help-content">
<header class="dialog-header">
<h2 data-i18n="helpDialogTitle">Guide d'utilisation</h2>
<button class="close-button close-dialog" data-i18n-aria="closeDialog" aria-label="Fermer le guide">×</button>
</header>
<div class="dialog-tabs" role="tablist" data-i18n-aria="dialogTabs" aria-label="Sélectionner la langue du guide">
<!-- Tabs will be created dynamically -->
</div>
<div id="guideContent" class="dialog-body">
<!-- Content will be dynamically loaded -->
</div>
</div>
</dialog>
<script type="module" src="./src/js/main.js"></script>
</body>
</html>