Hi Michael,
Unfortunately not, because the class and its styling are related and attached to the element you’ve applied it to.
For example, you add a button in bricks, add a class of .gtb-btn to it and change the background-color and color, the generated styles will look like this:
.gtb-btn.bricks-element-button .bricks-button {
background-color: var(--bricks-color-d17103);
color: var(--bricks-color-35c339);
}
The classes of Gutenberg buttons are different, namely: .wp-block-button and .wp-block-button__link.
What you can do to override them is to create your button styling in bricks, inspect the button on the frontend, copy the code and paste it to bricks > settings > custom code > custom CSS.
.gtb-btn .wp-block-button__link {
background-color: var(--bricks-color-d17103);
color: var(--bricks-color-35c339);
}
Then, add the .gtb-btn class to the Gutenberg Button, which becomes the same styling as your bricks button. It’s best to take a look at how the default Gutenberg Buttons are styled (border-radius, padding, and so on) to get to know what needs to be overridden and to get a consistent look. The downside is: the styles are not in sync.
To make them in sync, you can add the same styling at once in bricks > settings > custom code > custom css:
.gtb-btn .wp-block-button__link,
.gtb-btn.bricks-element-button .bricks-button {
background-color: var(--bricks-color-d17103);
color: var(--bricks-color-35c339);
}
If you need to change the styling, edit the custom CSS, and it will apply to every button with the class .gtb-btn.
Best regards,
timmse