Elffuss BraidHub

utopia-ia/elffuss-code public

Keep level 2's primary button readable with main's darker violet

Main darkened --accent2 to #6e63c5 (same saturation as the sand), and
dark text on that end of the gradient fell to 4.0:1, below WCAG's 4.5:1;
white text would be 2.4:1 on the sand end. Level 2's primary button now
ends its gradient on the same violet slightly lighter (#7c72ce): 8.1:1
and 4.8:1 with dark text. Code's other buttons are unchanged.
Changeset9ce12407e99b8c2c1d4a7f12104ecf61a48ca010c56bef1a780a1f1ad669f113
AuthorKikoCis <kikocisneros@gmail.com> · 2026-10-12 12:01 +02:00
CommitterKikoCis <kikocisneros@gmail.com> · 2026-10-12 12:01 +02:00
Parents16e1b35e41ba

Browse the files at this changeset

1 file changed

modified web/css/ext2.css +4 −2
@@ -28,8 +28,10 @@
2828 border-radius: 6px; padding: 5px 11px; font-size: .76rem; cursor: pointer; white-space: nowrap;
2929 }
3030 .x2-btn:hover:not([aria-disabled="true"]) { border-color: var(--accent2, #8272ff); }
31-/* texto oscuro sobre el degradado de Code: 8,1:1 en el dorado y 5,4:1 en el violeta (WCAG 1.4.3 pide 4,5:1) */
32-.x2-btn.x2-primary { background: linear-gradient(135deg, var(--accent, #c8a06a), var(--accent2, #8272ff)); border: none; color: #0b0c12; font-weight: 600; }
31+/* texto oscuro sobre el degradado de Code: 8,1:1 en el dorado y 4,8:1 en el violeta (WCAG 1.4.3 pide 4,5:1).
32+ El violeta es el --accent2 de Code (misma saturación) un poco más claro: con el
33+ --accent2 tal cual el texto oscuro se queda en 4,0:1 y el blanco en 2,4:1 sobre el dorado. */
34+.x2-btn.x2-primary { background: linear-gradient(135deg, var(--accent, #c8a06a), #7c72ce); border: none; color: #0b0c12; font-weight: 600; }
3335 .x2-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
3436 .x2-btn:focus-visible, .x2-toast-close:focus-visible { outline: 2px solid var(--accent2, #8272ff); outline-offset: 2px; }
3537