@zoonini, sorry for the delay.
This is my code snippet.
Input:
<style>
.content {
background-color: <?php echo (wp_get_global_styles(array('color', 'background'))); ?>;
}
<?php echo var_dump(wp_get_global_styles(array('color', 'background'))); ?>
</style>
Output:
<style>
.content {
background-color: var:preset|color|luminous-vivid-amber;
}
string(37) "var:preset|color|luminous-vivid-amber"
</style>
The problem occurs when the colors are based on CSS variables. When it gets a color from the colors picker, that’s fine.
– What version of WordPress are you using?
6.0.2 and 6.1-alpha-54226
– Does the issue occur when all plugins are deactivated?
Yes.
– Is the issue present with Twenty Twenty-Two?
Yes, and any other block theme.
– Is the standalone Gutenberg plugin active, and if so, what version is it?
Yes (14.1.1 and Gutenberg Nightly).
-
This reply was modified 2 years, 2 months ago by Gyurmey.
-
This reply was modified 2 years, 2 months ago by Gyurmey.