Colors
Colours are hex strings, "#8a64e5". Every colour field in ui::style and ui::theme takes one, and a wrong string stops the build.
Hex
Write #rgb, #rgba, #rrggbb or #rrggbbaa, the way a design tool shows it. See colours for rgb, rgba, with_alpha and the theme fields.
colors.cpp
#include "isolenui/ui/ui.h"
static_assert(ui::color("#8a64e5").v == 0xffe5648au);
static_assert(ui::color("#8a64e540").v == 0x40e5648au);
ui::style card()
{
return ui::col().bg("#0b0b0d").border(1.0f, "#ffffff22");
}Linear or sRGB
With isolen_app_desc::srgb on, the target encodes on write, so colours and clear are given in linear space. With it off, which is the default, they are used as written.