# Brand Palette Contrast Repair Local source edition 1.0.0. Check text contrast across design roles, find passing foregrounds within your palette and download CSS plus a report of unresolved roles. ## Run locally Extract the complete ZIP. Use Python 3.12 from a terminal in the extracted directory. The tool uses the Python standard library. python run.py example.json results Use a new output folder for each run. Start with example.json and replace its synthetic values with your own data. Preserve field names, types and units. Files and reports are processed on your computer. ## Inputs Supply up to 64 named opaque #RRGGBB colors and 500 roles. Each role needs a distinct name, a foreground and background token, and size normal or large. Names use lowercase CSS identifiers. Large means at least 18 pt regular or 14 pt bold. Use actual opaque, flat colors; gradients, images, overlays and transparency are outside this check. ## Results CONTRAST.csv reports each original ratio and any replacement. FOREGROUNDS.css contains --ROLE-foreground variables only for roles that pass. Thresholds are 4.5 for normal text and 3 for large text, tested before rounding. For failures, choose the passing token closest in squared 8-bit RGB distance, then by token name. Backgrounds stay fixed. Review the actual typography and surrounding interface. The results folder includes summary.json and the output files produced by this input. The sample produces: CONTRAST.csv, FOREGROUNDS.css. ## Español · Corrección de contraste de paleta Prueba colores de texto de tu paleta y exporta las correcciones CSS y los usos sin solución. Extrae el ZIP completo y abre una terminal en esa carpeta con Python 3.12. El programa usa la biblioteca estándar de Python. Ejecuta: python run.py example.json resultados Copia example.json para preparar tus datos. Conserva los nombres y tipos de los campos, usa una carpeta de salida nueva y consulta summary.json junto con los archivos generados. La descripción detallada de los campos está en inglés. The included LICENSE covers use and modification for your own personal and commercial projects. This edition includes its source and can run locally after setup.