FSE themes use CSS variables for their colors.
And WP will return the variable in the color property for any core blocks.
This does not work in GenerateBlocks, where it returns the static variable.
To replicate:
use Twenty24 Theme
add a Group block and Container Block, give them both a background color from the theme pallet
inspect the results.
GB block outputs the the hex color in the bakcground property eg. #b1c5a4 and not the var eg. var(--wp--preset--color--accent-4)
FSE themes use CSS variables for their colors. And WP will return the variable in the color property for any core blocks. This does not work in GenerateBlocks, where it returns the static variable.
To replicate:
GB block outputs the the hex color in the bakcground property eg.
#b1c5a4
and not the var eg.var(--wp--preset--color--accent-4)