Очистить проект от сборок и отчётов, оставить README на русском

This commit is contained in:
scandalist-trash committed 2026-10-27 11:19:07 -04:00
1 parent ee5f6f580e
commit ce9fe1bb03
42 files changed
+146 -2529

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Measure declared opaque token pairs; this is not a rendered GUI/a11y test."""
"""Проверка контраста заданных цветов; визуальная доступность проверяется отдельно."""
from pathlib import Path
import re
root=Path(__file__).resolve().parents[1]
@@ -10,5 +10,5 @@ def luminance(color):
return sum(a*b for a,b in zip(channels,(.2126,.7152,.0722)))
for front,back,required in [('text','background',4.5),('text','panel',4.5),('secondary','panel',4.5),('warning','panel',4.5),('background','accent',4.5),('accent','panel',4.5),('accent','elevated',3)]:
hi,lo=sorted([luminance(tokens[front]),luminance(tokens[back])],reverse=True);ratio=(hi+.05)/(lo+.05)
print(f'{front}/{back}: {ratio:.2f}:1 (required {required}:1)');assert ratio>=required
print('PASS: declared text/focus token contrast; rendered, high-contrast-mode and screen-reader checks remain pending')
print(f'{front}/{back}: {ratio:.2f}:1 (требуется {required}:1)');assert ratio>=required
print('Пройдено: контраст цветов текста и фокуса. Проверки отображения, высокого контраста и экранного диктора остаются отдельными.')