The library should be upgraded in GWT SDK.
For now, it kind of depends on what exactly you need to do but in UiBinder you might be able to use a wrapper element and add the variable overrides to it, e.g.
<div style="display: contents; --bs-table-color: black;">
<my:BootstrapComponent/>
</div>
I am not sure if UiBinder supports unknown elements but Svelte for example uses a custom HTML element named <svelte-css-wrapper> to make it more unlikely to accidentally hit a CSS rule targeting "div".
As a last resort you can likely set CSS variables programatically using Element.getStyle().setProperty() as it does not run through any kind of CSS parser or you use a plain CSS file and plain CSS classes.
For global theming of Bootstrap I would just create a plain CSS file and add all the variable overrides, just like you would do in any other page.
-- J.