theming – How to add conditional on Gutenberg’s color theme-support?

I’ve added the Gutenberg theme-support on my custom theme. I want to add conditional based on text color and background color. For example, selecting the black color background will reset the default text color to white and disable the black text option. Is there a solution or documentation about this?