Download index.html from EdCumberpatch/chromatic-canvas-explorer: direct link, hf CLI and curl.
- Browser
- Download file 9.15 kB
-
https://huggingface.co/spaces/EdCumberpatch/chromatic-canvas-explorer/resolve/main/index.html
- Command line
-
hf download hf://spaces/EdCumberpatch/chromatic-canvas-explorer/index.html
-
curl -L -o index.html https://huggingface.co/spaces/EdCumberpatch/chromatic-canvas-explorer/resolve/main/index.html
9.15 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Chromatic Canvas Explorer</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 50: '#eef2ff', | |
| 100: '#e0e7ff', | |
| 200: '#c7d2fe', | |
| 300: '#a5b4fc', | |
| 400: '#818cf8', | |
| 500: '#6366f1', | |
| 600: '#4f46e5', | |
| 700: '#4338ca', | |
| 800: '#3730a3', | |
| 900: '#312e81', | |
| }, | |
| secondary: { | |
| 50: '#f0fdf4', | |
| 100: '#dcfce7', | |
| 200: '#bbf7d0', | |
| 300: '#86efac', | |
| 400: '#4ade80', | |
| 500: '#22c55e', | |
| 600: '#16a34a', | |
| 700: '#15803d', | |
| 800: '#166534', | |
| 900: '#14532d', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-50 dark:bg-gray-900 transition-colors duration-300"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <section class="mb-12"> | |
| <h1 class="text-4xl font-bold text-gray-900 dark:text-white mb-4">Color Distributions</h1> | |
| <p class="text-gray-600 dark:text-gray-300 max-w-3xl"> | |
| Explore beautiful color distributions and palettes. Click on any color to copy its hex code to your clipboard. | |
| </p> | |
| </section> | |
| <div class="grid grid-cols-1 gap-8"> | |
| <!-- Color Palette Cards --> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl"> | |
| <div class="p-6"> | |
| <h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Primary Color Spectrum</h2> | |
| <div class="grid grid-cols-10 gap-1 h-12 rounded-md overflow-hidden"> | |
| <div class="bg-primary-50 hover:opacity-80 cursor-pointer transition-all" data-color="eef2ff"></div> | |
| <div class="bg-primary-100 hover:opacity-80 cursor-pointer transition-all" data-color="e0e7ff"></div> | |
| <div class="bg-primary-200 hover:opacity-80 cursor-pointer transition-all" data-color="c7d2fe"></div> | |
| <div class="bg-primary-300 hover:opacity-80 cursor-pointer transition-all" data-color="a5b4fc"></div> | |
| <div class="bg-primary-400 hover:opacity-80 cursor-pointer transition-all" data-color="818cf8"></div> | |
| <div class="bg-primary-500 hover:opacity-80 cursor-pointer transition-all" data-color="6366f1"></div> | |
| <div class="bg-primary-600 hover:opacity-80 cursor-pointer transition-all" data-color="4f46e5"></div> | |
| <div class="bg-primary-700 hover:opacity-80 cursor-pointer transition-all" data-color="4338ca"></div> | |
| <div class="bg-primary-800 hover:opacity-80 cursor-pointer transition-all" data-color="3730a3"></div> | |
| <div class="bg-primary-900 hover:opacity-80 cursor-pointer transition-all" data-color="312e81"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl"> | |
| <div class="p-6"> | |
| <h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Secondary Color Spectrum</h2> | |
| <div class="grid grid-cols-10 gap-1 h-12 rounded-md overflow-hidden"> | |
| <div class="bg-secondary-50 hover:opacity-80 cursor-pointer transition-all" data-color="f0fdf4"></div> | |
| <div class="bg-secondary-100 hover:opacity-80 cursor-pointer transition-all" data-color="dcfce7"></div> | |
| <div class="bg-secondary-200 hover:opacity-80 cursor-pointer transition-all" data-color="bbf7d0"></div> | |
| <div class="bg-secondary-300 hover:opacity-80 cursor-pointer transition-all" data-color="86efac"></div> | |
| <div class="bg-secondary-400 hover:opacity-80 cursor-pointer transition-all" data-color="4ade80"></div> | |
| <div class="bg-secondary-500 hover:opacity-80 cursor-pointer transition-all" data-color="22c55e"></div> | |
| <div class="bg-secondary-600 hover:opacity-80 cursor-pointer transition-all" data-color="16a34a"></div> | |
| <div class="bg-secondary-700 hover:opacity-80 cursor-pointer transition-all" data-color="15803d"></div> | |
| <div class="bg-secondary-800 hover:opacity-80 cursor-pointer transition-all" data-color="166534"></div> | |
| <div class="bg-secondary-900 hover:opacity-80 cursor-pointer transition-all" data-color="14532d"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl"> | |
| <div class="p-6"> | |
| <h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Random Color Generator</h2> | |
| <div class="flex flex-col md:flex-row gap-6"> | |
| <div class="flex-1"> | |
| <div class="grid grid-cols-5 gap-2 mb-4" id="random-colors"> | |
| <!-- Random colors will be generated here --> | |
| </div> | |
| <button id="generate-colors" class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg transition-colors"> | |
| Generate New Colors | |
| </button> | |
| </div> | |
| <div class="flex-1"> | |
| <div class="p-4 rounded-lg bg-gray-100 dark:bg-gray-700"> | |
| <h3 class="font-medium text-gray-800 dark:text-white mb-2">Color Theory Basics</h3> | |
| <p class="text-gray-600 dark:text-gray-300 text-sm"> | |
| Color distribution refers to how colors are arranged and proportioned in a design. Good color distribution creates visual harmony, while poor distribution can make a design feel unbalanced. | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl"> | |
| <div class="p-6"> | |
| <h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Color Gradient Creator</h2> | |
| <div class="flex flex-col gap-4"> | |
| <div class="flex gap-4"> | |
| <div class="flex-1"> | |
| <label class="block text-gray-700 dark:text-gray-300 mb-2">Start Color</label> | |
| <input type="color" id="gradient-start" value="#6366f1" class="w-full h-10 cursor-pointer"> | |
| </div> | |
| <div class="flex-1"> | |
| <label class="block text-gray-700 dark:text-gray-300 mb-2">End Color</label> | |
| <input type="color" id="gradient-end" value="#22c55e" class="w-full h-10 cursor-pointer"> | |
| </div> | |
| </div> | |
| <div class="h-32 rounded-lg overflow-hidden" id="gradient-preview"></div> | |
| <div class="grid grid-cols-10 gap-1 h-10 rounded-md overflow-hidden" id="gradient-steps"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <div id="toast" class="fixed bottom-4 left-1/2 transform -translate-x-1/2 bg-gray-800 text-white px-4 py-2 rounded-lg shadow-lg opacity-0 transition-opacity duration-300"> | |
| Color copied to clipboard! | |
| </div> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |