Class ColorRoles

java.lang.Object
com.iizix.prop.ColorRoles

public final class ColorRoles extends Object
The platform's semantic color vocabulary: the roles a component asks for, such as "the background of a hovered widget", each with the CSS custom property it becomes on the client.

The source of this table is the vocabulary of THEME-DESIGN.md section 4.3, exactly, frozen 2026-09-25 (ruling R9): 37 color roles organised by element and state. The shipped theme sheet (iz/css/iiziThemes.css) defines every one of these properties in every theme, and a completeness test there enforces it; here the table is the Java side of the same contract - the names the Designer shows, the names a GColor reference may use bare (%Accent), and the names the platform base palette holds. Neither side invents or renames a role: renaming one touches every converted CSS file and every palette (ruling Q2, 2026-09-12).

ACCENT is the first entry because the nine names this list grew from - the former GColor.THEME_NAMES, never read by anything - started with it. Adding a role is additive and cheap; reducing the set is not allowed (ruling Q3).

Each role belongs to one of the seven groups of the vocabulary table, which is the order the Designer's theme editor shows them in; and the CONTRAST_PAIRS name the foreground and background roles whose contrast a theme is checked for (WCAG 2.x, ColorContrast).

Author:
Christopher Mindus