Elgg  Version master
variables.css.php
Go to the documentation of this file.
1 <?php
6 echo ':root {';
7 echo 'color-scheme: light;';
8 
9 $css_vars = (array) elgg_extract('default', _elgg_services()->cssCompiler->getCssVars(), []);
10 
11 ksort($css_vars);
12 foreach ($css_vars as $variable => $value) {
13  echo "--elgg-{$variable}: {$value};";
14 }
15 
16 echo '}';
_elgg_services()
Get the global service provider.
Definition: elgglib.php:347
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:246
$value
Definition: generic.php:51
$css_vars
CSS variables.