Eliminate all blue tint from canvas trailing colors and CSS variables

This commit is contained in:
2026-07-10 16:24:07 +05:30
parent 7a293b6df0
commit d04295552e
2 changed files with 23 additions and 6 deletions

View File

@@ -61,6 +61,23 @@ def port_html():
html = html.replace("Math.max(target,5)/5", "Math.max(target,3)/3")
html = html.replace("(4 - target) / 3", "(3 - target) / 3")
# Replace blue canvas trailing colors
html = html.replace("'rgba(8,18,38,0.22)'", "'rgba(0,0,0,0.22)'")
html = html.replace("'rgba(10,16,23,0.3)'", "'rgba(0,0,0,0.3)'")
html = html.replace("rgba(8,18,38,0.22)", "rgba(0,0,0,0.22)")
html = html.replace("rgba(10,16,23,0.3)", "rgba(0,0,0,0.3)")
# Replace blue root CSS variables
html = html.replace("#081226", "#000000")
html = html.replace("#0c1c39", "#000000")
html = html.replace("#13294d", "#000000")
html = html.replace("#16305c", "#000000")
html = html.replace("#22303f", "#000000")
html = html.replace("#131c26", "#000000")
html = html.replace("#0a1017", "#000000")
html = html.replace("rgba(130,160,200,.30)", "rgba(100,100,100,.30)")
html = html.replace("rgba(96,124,164,.14)", "rgba(80,80,80,.14)")
# 5. Adjust badge size from 230px to 240px
html = html.replace("--badge:230px;", "--badge:240px;")