It can be done, the thing to be careful about is that the inheritance for RTE’s is usually e.g. All Paragraphs → All Paragraphs ( in RTB x ).
If you have styling set for All Paragraphs, you’ll more or less break the container styling inheritance.
Often I’ll fix this with a custom <style>
block that explicitly assigns inherit
to the attributes I want to inherit from the container, and that fixes most dynamic needs like lightmode/darkmode switching.