ArcaneColorOps extension
Opacity and blend helpers for ANY CSS color string.
Colors cross the ArcaneStyleData boundary as raw strings — a hex value
(#4CAF50), a theme variable (var(--primary)), an ArcaneColor.*.css
token, or a runtime accent. The historic ${color}30 hex-alpha suffix hack
silently corrupts any non-hex color (var(--primary)30 is invalid CSS);
these emit color-mix(), which works for every color form.
- on
Methods
-
on(
String base, double amount) → String -
Available on String, provided by the ArcaneColorOps extension
Blendsamountof this color overbase(alpha stays1). -
opacity(
double amount) → String -
Available on String, provided by the ArcaneColorOps extension
Fades this color toward transparent.amountis clamped to0.0..1.0.