styles_set(...)
Sets the hublify-internal styles-array.
The internal-styles-array is primarily used for the css-inline-functions: style_get(...) and styles_merge(...)
From the source-code ...
/** * Sets the hublify-internal styles-array. * * You can call this multiple times, in order to merge multiple styles-array-definitions. * * @param array|string $styles The standardized "global style-array" containing all possible sub-styles. * Expected structure is: * [style] * [<$area>] * [<tag>] * [<style-attr>] - "<style value>" * * [templates] * [<$template>] * [<tag>] * [<style-attr>] - "<style value>" * Instead of passing an array, it is also possible to provide a string, containing the array definition * encoded in JSON-syntax. * If you pass a JSON-string be sure, to follow the quite picky JSON-syntax, as described here: * https://www.php.net/manual/de/function.json-decode.php * * @param bool $merge If TRUE any previous set styles-definition is kept and $styles is merged to it. * If FALSE $styles is set only. * * @return bool Returns TRUE on success (a valid array or valid JSON-string was provided) or FALSE on error. */ function styles_set($styles, bool $merge = false): bool