Full calendar custom color type atribute

Hello everyone, I have installed the full calendar plugin and I would like the color of the event to change according to the type.
I have created a calendar type option with color attribute

but I can’t figure out how to set the attribute dynamically for the event color property

I would also need to change the color of the buttons via custom css, is it possible to do that?

Maybe it expects a single color/text and is getting a list of colors

Exactly I don’t know how to set a different color for each item by reading the color attribute of the option set