Spaces:
Sleeping
Sleeping
Daniel López Pérez commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,166 +19,288 @@ class Config:
|
|
| 19 |
# The color palette data is kept separate for clarity and easy modification.
|
| 20 |
|
| 21 |
COLOR_DATA = [
|
| 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 |
|
|
|
|
| 19 |
# The color palette data is kept separate for clarity and easy modification.
|
| 20 |
|
| 21 |
COLOR_DATA = [
|
| 22 |
+
# Reds & Pinks
|
| 23 |
+
{
|
| 24 |
+
"name": "Crimson",
|
| 25 |
+
"hex": "#DC143C",
|
| 26 |
+
"description": "A deep, rich red color, leaning slightly towards purple."
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "Scarlet",
|
| 30 |
+
"hex": "#FF2400",
|
| 31 |
+
"description": "A brilliant, vivid red with a hint of orange."
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "Ruby",
|
| 35 |
+
"hex": "#E0115F",
|
| 36 |
+
"description": "A deep red color, inspired by the gemstone of the same name."
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "Maroon",
|
| 40 |
+
"hex": "#800000",
|
| 41 |
+
"description": "A dark, brownish-red color, evoking richness and sophistication."
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name": "Coral",
|
| 45 |
+
"hex": "#FF7F50",
|
| 46 |
+
"description": "A vibrant pinkish-orange reminiscent of marine invertebrates."
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name": "Hot Pink",
|
| 50 |
+
"hex": "#FF69B4",
|
| 51 |
+
"description": "A bright, vivid pink that is both bold and energetic."
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name": "Fuchsia",
|
| 55 |
+
"hex": "#FF00FF",
|
| 56 |
+
"description": "An intense, purplish-pink color, vivid and bold."
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name": "Salmon",
|
| 60 |
+
"hex": "#FA8072",
|
| 61 |
+
"description": "A pinkish-orange hue, similar to the flesh of the fish."
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"name": "Rose Gold",
|
| 65 |
+
"hex": "#B76E79",
|
| 66 |
+
"description": "A soft, pinkish metallic hue that blends gold and copper tones."
|
| 67 |
+
},
|
| 68 |
+
# Oranges & Yellows
|
| 69 |
+
{
|
| 70 |
+
"name": "Tangerine",
|
| 71 |
+
"hex": "#F28500",
|
| 72 |
+
"description": "A saturated, zesty orange, like the ripe citrus fruit."
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "Gold",
|
| 76 |
+
"hex": "#FFD700",
|
| 77 |
+
"description": "A bright, metallic yellow associated with wealth and luxury."
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"name": "Lemon Chiffon",
|
| 81 |
+
"hex": "#FFFACD",
|
| 82 |
+
"description": "A pale, light yellow, as soft and airy as the dessert."
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"name": "Amber",
|
| 86 |
+
"hex": "#FFBF00",
|
| 87 |
+
"description": "A warm, honey-yellow color, named after the fossilized resin."
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"name": "Mustard",
|
| 91 |
+
"hex": "#FFDB58",
|
| 92 |
+
"description": "A dull, brownish-yellow, like the condiment."
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Peach",
|
| 96 |
+
"hex": "#FFE5B4",
|
| 97 |
+
"description": "A light, orangey-pink, resembling the skin of the fruit."
|
| 98 |
+
},
|
| 99 |
+
# Greens
|
| 100 |
+
{
|
| 101 |
+
"name": "Lime Green",
|
| 102 |
+
"hex": "#32CD32",
|
| 103 |
+
"description": "A bright green color, evoking freshness and zesty energy."
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"name": "Forest Green",
|
| 107 |
+
"hex": "#228B22",
|
| 108 |
+
"description": "A dark, shaded green, like the canopy of a dense forest."
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"name": "Emerald",
|
| 112 |
+
"hex": "#50C878",
|
| 113 |
+
"description": "A brilliant green, named after the precious gemstone."
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"name": "Peridot",
|
| 117 |
+
"hex": "#E6E200",
|
| 118 |
+
"description": "A light olive-green or yellowish-green, named for the gem."
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"name": "Olive",
|
| 122 |
+
"hex": "#808000",
|
| 123 |
+
"description": "A dark, yellowish-green, like the color of unripe olives."
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"name": "Sage",
|
| 127 |
+
"hex": "#BCB88A",
|
| 128 |
+
"description": "A muted, grayish-green, often associated with tranquility and nature."
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mint",
|
| 132 |
+
"hex": "#98FF98",
|
| 133 |
+
"description": "A pale, soft green with a hint of blue, reminiscent of a refreshing mint leaf."
|
| 134 |
+
},
|
| 135 |
+
# Blues & Teals
|
| 136 |
+
{
|
| 137 |
+
"name": "Teal",
|
| 138 |
+
"hex": "#008080",
|
| 139 |
+
"description": "A medium blue-green color, often seen as sophisticated and calming."
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"name": "Cyan",
|
| 143 |
+
"hex": "#00FFFF",
|
| 144 |
+
"description": "A vibrant greenish-blue, one of the primary subtractive colors."
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"name": "Sky Blue",
|
| 148 |
+
"hex": "#87CEEB",
|
| 149 |
+
"description": "A light, pale blue, like the color of a clear daytime sky."
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"name": "Royal Blue",
|
| 153 |
+
"hex": "#4169E1",
|
| 154 |
+
"description": "A deep, vivid blue that is both rich and bright."
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"name": "Sapphire",
|
| 158 |
+
"hex": "#0F52BA",
|
| 159 |
+
"description": "A deep, lustrous blue, reminiscent of the valuable gemstone."
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"name": "Turquoise",
|
| 163 |
+
"hex": "#40E0D0",
|
| 164 |
+
"description": "A greenish-blue color, often associated with tropical waters."
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Aquamarine",
|
| 168 |
+
"hex": "#7FFFD4",
|
| 169 |
+
"description": "A light blue-green color, reminiscent of clear tropical waters."
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"name": "Navy Blue",
|
| 173 |
+
"hex": "#000080",
|
| 174 |
+
"description": "A very dark blue, evoking the deep sea and formal attire."
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"name": "Cobalt",
|
| 178 |
+
"hex": "#0047AB",
|
| 179 |
+
"description": "A deep, vivid blue with a medium to dark shade."
|
| 180 |
+
},
|
| 181 |
+
# Purples & Violets
|
| 182 |
+
{
|
| 183 |
+
"name": "Indigo",
|
| 184 |
+
"hex": "#4B0082",
|
| 185 |
+
"description": "A deep, rich color between blue and violet in the spectrum."
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"name": "Lavender",
|
| 189 |
+
"hex": "#E6E6FA",
|
| 190 |
+
"description": "A light, pale purple with a bluish hue, named after the flower."
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"name": "Plum",
|
| 194 |
+
"hex": "#DDA0DD",
|
| 195 |
+
"description": "A reddish-purple color, like the ripe fruit it's named after."
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"name": "Magenta",
|
| 199 |
+
"hex": "#FF00FF",
|
| 200 |
+
"description": "A purplish-red color that lies between red and violet."
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Amethyst",
|
| 204 |
+
"hex": "#9966CC",
|
| 205 |
+
"description": "A moderate, violet-purple color, like the quartz gemstone."
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"name": "Mauve",
|
| 209 |
+
"hex": "#E0B0FF",
|
| 210 |
+
"description": "A pale purple color, sitting between violet and pink."
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"name": "Lilac",
|
| 214 |
+
"hex": "#C8A2C8",
|
| 215 |
+
"description": "A pale, soft violet color named after the flower."
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"name": "Orchid",
|
| 219 |
+
"hex": "#DA70D6",
|
| 220 |
+
"description": "A bright, pinkish-purple, named after the vibrant flower."
|
| 221 |
+
},
|
| 222 |
+
# Browns & Neutrals
|
| 223 |
+
{
|
| 224 |
+
"name": "Ivory",
|
| 225 |
+
"hex": "#FFFFF0",
|
| 226 |
+
"description": "An off-white color that resembles the material from tusks and teeth."
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"name": "Beige",
|
| 230 |
+
"hex": "#F5F5DC",
|
| 231 |
+
"description": "A pale sandy fawn color, often used as a warm, neutral tone."
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"name": "Taupe",
|
| 235 |
+
"hex": "#483C32",
|
| 236 |
+
"description": "A dark grayish-brown or brownish-gray color."
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Sienna",
|
| 240 |
+
"hex": "#A0522D",
|
| 241 |
+
"description": "A reddish-brown earth pigment, named after the Italian city of Siena."
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"name": "Chocolate",
|
| 245 |
+
"hex": "#D2691E",
|
| 246 |
+
"description": "A rich, deep brown, like milk chocolate."
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"name": "Tan",
|
| 250 |
+
"hex": "#D2B48C",
|
| 251 |
+
"description": "A pale tone of brown, the color of tanned leather."
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"name": "Khaki",
|
| 255 |
+
"hex": "#C3B091",
|
| 256 |
+
"description": "A light-brown color with a yellowish hue, often used for military uniforms."
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"name": "Cream",
|
| 260 |
+
"hex": "#FFFDD0",
|
| 261 |
+
"description": "An off-white color with a yellowish tinge, like dairy cream."
|
| 262 |
+
},
|
| 263 |
+
# Grays, Blacks & Metallics
|
| 264 |
+
{
|
| 265 |
+
"name": "Slate Gray",
|
| 266 |
+
"hex": "#708090",
|
| 267 |
+
"description": "A medium gray with a slight blue tinge, like the metamorphic rock."
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"name": "Charcoal",
|
| 271 |
+
"hex": "#36454F",
|
| 272 |
+
"description": "A dark, almost black gray, like burnt wood."
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Onyx",
|
| 276 |
+
"hex": "#353839",
|
| 277 |
+
"description": "A deep, rich black, often with a subtle hint of dark blue."
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"name": "Obsidian",
|
| 281 |
+
"hex": "#000000",
|
| 282 |
+
"description": "A pure, deep black, like the volcanic glass formed from cooled lava."
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"name": "Silver",
|
| 286 |
+
"hex": "#C0C0C0",
|
| 287 |
+
"description": "A metallic gray color that resembles polished silver."
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"name": "Bronze",
|
| 291 |
+
"hex": "#CD7F32",
|
| 292 |
+
"description": "A metallic brown color that resembles the alloy of copper and tin."
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"name": "Gunmetal",
|
| 296 |
+
"hex": "#2C3539",
|
| 297 |
+
"description": "A dark, bluish-gray, resembling the color of a gun barrel."
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"name": "Ash Gray",
|
| 301 |
+
"hex": "#B2BEB5",
|
| 302 |
+
"description": "A pale, cool gray, the color of wood ash."
|
| 303 |
+
}
|
| 304 |
]
|
| 305 |
|
| 306 |
|